/* ==========================================================================
   Page Sostenibilità — Lindhaus custom template
   ========================================================================== */

/* ---------- Design tokens (shared) ---------- */
: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-sost-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-sost-page *,
.lh-sost-page *::before,
.lh-sost-page *::after {
    box-sizing: border-box;
}

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

/* ==========================================================================
   1. Hero (diagonal pattern from taxonomy-settore)
   ========================================================================== */
.lh-sost-hero {
    position: relative;
    overflow: hidden;
    background-color: #e5f2dc;
    background-position: right center;
    background-repeat: no-repeat;
    background-size: contain;
    min-height: 60vh;
    min-height: 60dvh;
}

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

.lh-sost-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-sost-hero__text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 400px;
}

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

.lh-sost-hero__text {
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.3;
    color: #000;
}

.lh-sost-hero__text p:last-child {
    margin-bottom: 0;
}

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

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

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

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

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

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

/* ==========================================================================
   3. Accordion Section
   ========================================================================== */
.lh-sost-accordion-section {
    padding: 0 0 var(--lh-section-spacing);
    background: var(--lh-gray-bg);
}

.lh-sost-accordion-section__inner {
    max-width: var(--lh-container);
    margin: 0 auto;
    padding: 0 20px;
}

.lh-sost-accordion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--lh-gap);
}

/* --- Accordion Item --- */
.lh-sost-acc-item {
    display: flex;
    background: var(--lh-white);
    border-radius: 30px;
    overflow: visible;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
    align-self: start;
}

.lh-sost-acc-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* --- Track (vertical green rail on the left) --- */
.lh-sost-acc-item__track {
    position: relative;
    flex-shrink: 0;
    width: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Light green vertical pill background (narrower than icon) */
.lh-sost-acc-item__track::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    background: #e8f5e9;
    border-radius: 20px;
}

/* --- Icon (sits on the track, slides top→bottom) --- */
.lh-sost-acc-item__icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: contain;
    z-index: 1;
    transition: top 0.35s ease;
    background: #73BA49;
    padding: 10px;
}

.lh-sost-acc-item.is-open .lh-sost-acc-item__icon {
    top: calc(100% - 56px);
}

/* --- Main content column --- */
.lh-sost-acc-item__main {
    flex: 1;
    min-width: 0;
}

/* --- Accordion Header --- */
.lh-sost-acc-item__header {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px 24px 18px 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--lh-font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--lh-text-dark);
    text-transform: uppercase;
    text-align: left;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.lh-sost-acc-item__header:hover,
.lh-sost-acc-item__header:focus,
.lh-sost-acc-item__header:active {
    background: transparent;
    outline: none;
    color: inherit;
}

.lh-sost-acc-item__header:focus-visible {
    outline: 2px solid var(--lh-blue);
    outline-offset: -2px;
}

/* Open state: title + chevron turn green */
.lh-sost-acc-item.is-open .lh-sost-acc-item__header {
    color: #73BA49;
}

/* Title */
.lh-sost-acc-item__title {
    flex: 1;
    min-width: 0;
}

/* Chevron */
.lh-sost-acc-item__chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--lh-footer-gray);
    transition: transform 0.3s ease, color 0.3s ease;
}

.lh-sost-acc-item.is-open .lh-sost-acc-item__chevron {
    transform: rotate(180deg);
    color: #73BA49;
}

/* --- Accordion Body --- */
.lh-sost-acc-item__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.lh-sost-acc-item.is-open .lh-sost-acc-item__body {
    max-height: 600px;
}

.lh-sost-acc-item__content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--lh-text);
    background: #e8f5e9;
    border-radius: 16px;
    padding: 16px 20px;
    margin: 0 24px 20px 8px;
}

.lh-sost-acc-item__content p:first-child {
    margin-top: 0;
}

.lh-sost-acc-item__content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   4. Sezione Green
   ========================================================================== */
.lh-sost-green {
    padding: var(--lh-section-spacing) 0;
    background: var(--lh-white);
}

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

.lh-sost-green__label {
    display: block;
    font-family: var(--lh-font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #73BA49;
    margin: 0 0 8px;
}

.lh-sost-green__subtitle {
    font-family: var(--lh-font-heading);
    font-size: 28px;
    font-weight: 400;
    font-style: italic;
    color: var(--lh-text-dark);
    margin: 0 0 40px;
    line-height: 1.3;
}

/* Green block wrapping image + text */
.lh-sost-green__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    background: #e8f5e9;
    border-radius: var(--lh-radius);
    overflow: hidden;
}

/* Infografica column */
.lh-sost-green__infog-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lh-sost-green__infog-img {
    max-width: 100%;
    height: auto;
}

/* Text column — vertically centered */
.lh-sost-green__text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

.lh-sost-green__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--lh-text);
}

.lh-sost-green__text p:first-child {
    margin-top: 0;
}

.lh-sost-green__text p:last-child {
    margin-bottom: 0;
}

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

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

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

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

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

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

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

    .lh-sost-accordion-grid {
        grid-template-columns: 1fr;
    }

    .lh-sost-green__subtitle {
        font-size: 22px;
    }

    .lh-sost-green__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lh-sost-green__infog-col {
        order: -1;
    }

}

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

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

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

    .lh-sost-acc-item__track {
        width: 56px;
    }

    .lh-sost-acc-item__track::before {
        width: 32px;
    }

    .lh-sost-acc-item__icon {
        width: 44px;
        height: 44px;
    }

    .lh-sost-acc-item.is-open .lh-sost-acc-item__icon {
        top: calc(100% - 44px - 10px);
    }

    .lh-sost-acc-item__header {
        padding: 14px 16px 14px 4px;
        font-size: 13px;
    }

    .lh-sost-acc-item__content {
        padding: 14px 16px;
        margin: 0 16px 16px 4px;
        font-size: 13px;
    }
}