/* ==========================================================================
   Single Prodotto — Lindhaus custom template
   ========================================================================== */

/* ---------- Design tokens ---------- */
: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: 30px;
    --lh-section-spacing: 60px;
    --lh-font-heading: 'Inter', sans-serif;
    --lh-font-body: 'Inter', sans-serif;
    --lh-font-btn: 'Roboto', sans-serif;
}


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

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

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

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

/* ---------- 1. Breadcrumb ---------- */
.lh-breadcrumb {
    background: #EBEBEB;
    padding: 15px 0;
    font-size: 13px;
    color: var(--lh-footer-gray);
}

.lh-breadcrumb__list {
    margin: 0;
}

.lh-breadcrumb__list > span:last-child {
    color: #333;
}

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

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

/* ---------- 2. Product Nav (anchor) ---------- */
.lh-product-nav {
    background: var(--lh-white);
    border-bottom: 1px solid #e0e0e0;
    z-index: 100;
    transition: box-shadow 0.2s;
    margin-top: 60px;
    position: sticky;
    top: var(--lh-header-height, 80px);
}

.lh-product-nav.is-sticky {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lh-product-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.lh-product-nav__list::-webkit-scrollbar {
    display: none;
}

.lh-product-nav__list li {
    flex: 0 0 auto;
}

.lh-product-nav__list a {
    display: block;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--lh-text);
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.lh-product-nav__list a:hover,
.lh-product-nav__list .current-menu-item a {
    color: var(--lh-blue);
    border-bottom-color: var(--lh-blue);
}

/* ---------- 3. Hero ---------- */
.lh-hero {
    padding: var(--lh-section-spacing) 0;
    background: var(--lh-blue-light);
}

.lh-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--lh-gap);
    align-items: center;
}

/* Gallery column: thumbnails a sinistra, immagine a destra */
.lh-hero__image-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.lh-hero__thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.lh-hero__thumb {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    padding: 4px;
    transition: border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lh-hero__thumb:hover,
.lh-hero__thumb.is-active {
    border-color: var(--lh-blue);
}

.lh-hero__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lh-hero__main-image {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lh-hero__main-img {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Variants (sopra immagine, colonna sinistra) */
.lh-hero__variants {
    margin: 20px 0;
}

.variant-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.variant-count {
    font-size: 14px;
    font-weight: 500;
    color: var(--lh-text-dark, #333);
    white-space: nowrap;
}

.variant-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.variant-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--lh-blue, #4992BB);
    border: 2px solid transparent;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
    position: relative;
}

.variant-btn:not(.is-active) {
    opacity: 0.4;
}

.variant-btn:hover {
    opacity: 1;
    border-color: var(--lh-blue, #4992BB);
    background: #3d7fa5;
}

.variant-btn.is-active {
    border-color: var(--lh-text-dark, #333);
    background: var(--lh-blue, #4992BB);
    cursor: default;
}

.variant-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.variant-icon-wrap img,
.variant-icon-wrap svg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Info column — sfondo bianco */
.lh-hero__info {
    background: var(--lh-white);
    padding: 40px;
    border-radius: var(--lh-radius);
}

.lh-hero__title {
    font-family: var(--lh-font-heading);
    font-size: 32px;
    font-weight: 600;
    color: var(--lh-text-dark);
    margin: 0 0 10px;
    line-height: 1.2;
}

.lh-hero__subtitle {
    font-family: var(--lh-font-heading);
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--lh-text);
    margin: 0 0 20px;
}

.lh-hero__excerpt {
    font-size: 15px;
    margin-bottom: 25px;
}

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

/* Action buttons */
.lh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.lh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--lh-font-btn);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1;
}

.lh-btn--white,
.lh-btn--white:visited {
    background: #fff;
    color: #565656;
    border: 1px solid #4992BB;
    padding: 15px;
    border-radius: var(--lh-radius);
}

.lh-btn--white:hover {
    background: #4992BB;
    color: #fff;
}

.lh-btn--blue,
.lh-btn--blue:visited {
    background: #DCEBF3;
    color: #565656;
    border: 1px solid #4992BB;
    padding: 15px;
    border-radius: var(--lh-radius);
}

.lh-btn--blue:hover {
    background: #4992BB;
    color: #fff;
}

.lh-btn__icon {
    flex-shrink: 0;
}

/* ---------- 4. Description + Features ---------- */
.lh-desc-features {
    padding: var(--lh-section-spacing) 0;
    background: var(--lh-white);
}

.lh-desc-features__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--lh-gap);
    align-items: start;
}

.lh-section-title {
    font-family: var(--lh-font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--lh-text-dark);
    margin: 0 0 25px;
}

/* ---------- 5. Features table ---------- */
.lh-features {
}

.lh-features__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
    font-size: 14px;
}

.lh-features__table td {
    padding: 5px 10px;
    border: none;
}

.lh-features__table tr td.lh-features__label {
    font-weight: 600;
    color: var(--lh-text-dark);
    width: 40%;
    background: #F0F0F0;
}

.lh-features__table tr td.lh-features__value {
    color: var(--lh-text);
    background: var(--lh-blue-light);
}

.lh-features--collapsed .lh-features__hidden-row {
    display: none;
}

.lh-features__toggle {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    background: var(--lh-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: Roboto, Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.lh-features__toggle:hover {
    background: #3a7a9e;
}

.lh-description__content {
    max-width: 800px;
    font-size: 15px;
}

.lh-description__content h2,
.lh-description__content h3 {
    font-family: var(--lh-font-heading);
    font-weight: 600;
    color: var(--lh-text-dark);
}

/* ---------- 6. Why choose ---------- */
.lh-why-choose {
    padding: var(--lh-section-spacing) 0;
}

.lh-why-choose__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--lh-gap);
}

.lh-why-choose__card {
    border-radius: var(--lh-radius);
    overflow: hidden;
    background: var(--lh-white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
}

.lh-why-choose__card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.lh-why-choose__card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

/* Safari < 15 fallback for aspect-ratio */
@supports not (aspect-ratio: 16/10) {
    .lh-why-choose__card-image {
        height: 0;
        padding-bottom: 62.5%; /* 10/16 */
    }
}

.lh-why-choose__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lh-why-choose__card-title {
    font-family: var(--lh-font-heading);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--lh-white);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.lh-why-choose__card-title--no-img {
    position: static;
    color: var(--lh-text-dark);
    padding: 16px;
    background: none;
}

.lh-why-choose__card-desc {
    padding: 16px;
    font-size: 14px;
}

.lh-why-choose__card-desc p:last-child {
    margin-bottom: 0;
}

/* ---------- 7. Gallery ---------- */
.lh-gallery {
    padding: var(--lh-section-spacing) 0;
    background: var(--lh-gray-bg);
}

.lh-gallery__grid {
    columns: 3;
    column-gap: 15px;
}

.lh-gallery__item {
    border-radius: var(--lh-radius);
    overflow: hidden;
    display: block;
    break-inside: avoid;
    margin-bottom: 15px;
}

.lh-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.lh-gallery__item:hover .lh-gallery__img {
    transform: scale(1.05);
}

/* Lightbox */
.lh-lightbox {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lh-lightbox[hidden] {
    display: none;
}

.lh-lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lh-lightbox__close,
.lh-lightbox__prev,
.lh-lightbox__next {
    position: absolute;
    background: none;
    border: none;
    color: var(--lh-white);
    cursor: pointer;
    font-size: 40px;
    padding: 10px;
    line-height: 1;
    z-index: 1;
    transition: opacity 0.2s;
}

.lh-lightbox__close:hover,
.lh-lightbox__prev:hover,
.lh-lightbox__next:hover {
    opacity: 0.7;
}

.lh-lightbox__close {
    top: 20px;
    right: 20px;
    font-size: 48px;
}

.lh-lightbox__prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
}

.lh-lightbox__next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
}

/* ---------- 8. Full screen + Tech & Patents ---------- */
.lh-fullscreen-tech {
    padding-bottom: var(--lh-section-spacing);
}

.lh-fullscreen-tech__banner {
    width: 100%;
    min-height: 400px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.lh-tech-patents {
    padding-top: var(--lh-section-spacing);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.lh-tech-patents__item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--lh-gap);
    align-items: start;
}

.lh-tech-patents__img {
    border-radius: var(--lh-radius);
}

.lh-tech-patents__title {
    font-family: var(--lh-font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--lh-text-dark);
    margin: 0 0 10px;
}

.lh-tech-patents__desc {
    font-size: 14px;
}

.lh-tech-patents__desc p:last-child {
    margin-bottom: 0;
}

/* ---------- 9. Video ---------- */
.lh-videos {
    padding: var(--lh-section-spacing) 0;
    background: var(--lh-gray-bg);
}

.lh-videos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.lh-videos__embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--lh-radius);
}

.lh-videos__embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lh-videos__title {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--lh-text-dark);
}

/* ---------- 10. Settori ---------- */
.lh-sectors {
    padding: var(--lh-section-spacing) 0;
}

.lh-sectors__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
}

.lh-sectors__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--lh-text);
    text-align: center;
}

.lh-sectors__item:hover {
    color: var(--lh-text-dark);
}

.lh-sectors__image {
    width: 80%;
    aspect-ratio: 1/1;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

@supports not (aspect-ratio: 1/1) {
    .lh-sectors__image {
        height: 0;
        padding-bottom: 100%;
    }
}

.lh-sectors__item:hover .lh-sectors__image {
    border-color: var(--lh-blue);
}

.lh-sectors__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lh-sectors__name {
    font-size: 14px;
    font-weight: 500;
    padding: 0 5px;
    text-align: center;
}

/* ---------- 11. Tecnologie ---------- */
.lh-technologies {
    padding: var(--lh-section-spacing) 0;
    background: var(--lh-gray-bg);
}

.lh-technologies__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.lh-technologies__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    text-decoration: none;
    color: var(--lh-text);
    border-radius: var(--lh-radius);
    background: var(--lh-white);
    transition: box-shadow 0.2s, transform 0.2s;
    min-width: 120px;
    text-align: center;
}

.lh-technologies__item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    color: var(--lh-blue);
}

.lh-technologies__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lh-technologies__icon-img {
    max-width: 100%;
    max-height: 100%;
}

.lh-technologies__name {
    font-size: 14px;
    font-weight: 500;
}

/* ---------- 12. FAQs ---------- */
.lh-faqs {
    padding: var(--lh-section-spacing) 0;
}

.lh-faqs__list {
    max-width: 800px;
    margin: 0 auto;
}

.lh-faqs__item {
    border-bottom: 1px solid #e0e0e0;
}

.lh-faqs__item:first-child {
    border-top: 1px solid #e0e0e0;
}

.lh-faqs__question {
    padding: 18px 40px 18px 0;
    font-family: var(--lh-font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--lh-text-dark);
    cursor: pointer;
    list-style: none;
    position: relative;
}

.lh-faqs__question::-webkit-details-marker {
    display: none;
}

/* Arrow icon */
.lh-faqs__question::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--lh-blue);
    border-bottom: 2px solid var(--lh-blue);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s;
}

.lh-faqs__item[open] > .lh-faqs__question::after {
    transform: translateY(-30%) rotate(-135deg);
}

.lh-faqs__answer {
    padding: 0 0 18px;
    font-size: 14px;
}

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

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

/* Tablet */
@media (max-width: 1024px) {
    .lh-desc-features__grid {
        grid-template-columns: 1fr;
    }

    .lh-hero__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .lh-hero__image-row {
        justify-content: center;
    }

    .lh-why-choose__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lh-gallery__grid {
        columns: 2;
    }

    .lh-tech-patents__item {
        grid-template-columns: 150px 1fr;
    }

    .lh-fullscreen-tech__banner {
        min-height: 300px;
    }

    .lh-sectors__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --lh-section-spacing: 40px;
        --lh-gap: 20px;
    }

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

    .lh-hero__image-row {
        flex-direction: column-reverse;
    }

    .lh-hero__thumbnails {
        flex-direction: row;
        gap: 8px;
    }

    .lh-hero__thumb {
        width: 50px;
        height: 50px;
    }

    .lh-hero__actions {
        flex-direction: column;
    }

    .lh-btn {
        justify-content: center;
        width: 100%;
    }

    .lh-why-choose__grid {
        grid-template-columns: 1fr;
    }

    .lh-gallery__grid {
        columns: 2;
        column-gap: 10px;
    }

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

    .lh-tech-patents__item {
        grid-template-columns: 1fr;
    }

    .lh-tech-patents__media {
        max-width: 200px;
    }

    .lh-features__label {
        width: 50%;
    }

    .lh-sectors__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lh-product-nav__list a {
        padding: 12px 14px;
        font-size: 13px;
    }

    .lh-lightbox__prev {
        left: 5px;
        font-size: 40px;
    }

    .lh-lightbox__next {
        right: 5px;
        font-size: 40px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .lh-gallery__grid {
        columns: 1;
    }

    .lh-sectors__item,
    .lh-technologies__item {
        min-width: 100px;
        padding: 15px;
    }

    .lh-sectors__icon,
    .lh-technologies__icon {
        width: 45px;
        height: 45px;
    }
}
