/* ==========================================================================
   Homepage — Lindhaus custom template
   ========================================================================== */

/* ---------- Design tokens (riusa quelli di single-prodotto se già caricati) ---------- */
: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: 80px;
    --lh-font-heading: 'Inter', sans-serif;
    --lh-font-body: 'Inter', sans-serif;
    --lh-font-btn: 'Roboto', sans-serif;
}

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

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

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

.lh-home img {
    max-width: 100%;
    display: block;
}


/* ==========================================================================
   1. HERO VIDEO
   ========================================================================== */
.lh-hero-video {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    background: #000;
}

.lh-hero-video__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lh-hero-video__poster {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 0.6s ease;
}

.lh-hero-video__poster.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.lh-hero-video__overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0;
}

.lh-hero-video__box {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0 10px 10px 0;
    border-left: 4px solid var(--lh-blue);
    padding: 30px 40px;
    max-width: 750px;
    margin-bottom: 60px;
}

.lh-hero-video__box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 10px;
}

.lh-hero-video__title {
    font-family: var(--lh-font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--lh-white);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.lh-hero-video__btn {
    display: inline-flex;
    align-items: center;
    font-family: var(--lh-font-btn);
    font-size: 20px;
    font-weight: 500;
    color: var(--lh-white);
    background: var(--lh-blue);
    border: 2px solid var(--lh-blue);
    padding: 10px 24px;
    border-radius: var(--lh-radius);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}

.lh-hero-video__btn:hover {
    background: transparent;
    border-color: var(--lh-white);
    color: var(--lh-white);
}

.lh-hero-video__subtitle {
    font-family: var(--lh-font-body);
    font-size: 20px;
    font-weight: 400;
    color: var(--lh-white);
    margin: 0;
    line-height: 1.3;
}

/* ==========================================================================
   2. 4 IMAGE LINKS
   ========================================================================== */
.lh-image-links {
    padding: var(--lh-section-spacing) 0;
    background: var(--lh-white);
}

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

.lh-image-links__item {
    display: flex;
    flex-direction: column;
    border-radius: var(--lh-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--lh-text-dark);
    outline: 2px solid transparent;
    outline-offset: -2px;
    transition: outline-color 0.3s;
}

.lh-image-links__item:hover {
    outline-color: var(--lh-blue);
}

.lh-image-links__img-wrap {
    overflow: hidden;
    max-height: 180px;
}

.lh-image-links__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.lh-image-links__item:hover .lh-image-links__img {
    transform: scale(1.05);
}

.lh-image-links__title {
    padding: 12px;
    font-family: var(--lh-font-heading);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

/* ==========================================================================
   3. CTA
   ========================================================================== */
.lh-cta {
    position: relative;
    display: grid;
    overflow: hidden;
}

.lh-cta__bg {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lh-cta__overlay {
    grid-area: 1 / 1;
    background: rgba(0, 0, 0, 0.3);
}

.lh-cta .lh-home-container {
    grid-area: 1 / 1;
    z-index: 1;
    margin: 0;
    align-self: flex-start;
}

.lh-cta__content {
    max-width: 500px;
    padding: 50px 0;
}

.lh-cta__title {
    font-family: var(--lh-font-heading);
    font-size: 32px;
    font-weight: 600;
    color: var(--lh-white);
    margin: 0 0 12px;
    line-height: 1.2;
}

.lh-cta__text {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 24px;
    line-height: 1.2;
    font-weight: 500;
}

.lh-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--lh-font-btn);
    font-size: 15px;
    font-weight: 500;
    color: var(--lh-text-dark);
    background: var(--lh-white);
    border: 2px solid var(--lh-white);
    padding: 14px 32px;
    border-radius: var(--lh-radius);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lh-cta__btn:hover {
    background: transparent;
    border-color: var(--lh-white);
    color: var(--lh-white);
}

/* ==========================================================================
   4. PRODOTTI IN EVIDENZA
   ========================================================================== */
.lh-featured {
    padding: var(--lh-section-spacing) 0;
    background: var(--lh-white);
}

.lh-featured__title {
    font-family: var(--lh-font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--lh-text-dark);
    margin: 0 0 40px;
    text-align: center;
}

.lh-featured__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.lh-featured__card {
    border-radius: var(--lh-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--lh-text);
    display: flex;
    flex-direction: column;
    outline: 2px solid transparent;
    outline-offset: -2px;
    transition: outline-color 0.3s;
}

.lh-featured__card:hover {
    outline-color: var(--lh-blue);
}

.lh-featured__card-image {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.lh-featured__card-name {
    padding: 12px;
    font-family: var(--lh-font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--lh-text-dark);
    margin: 0;
    text-align: center;
}

/* ==========================================================================
   5. PARTNER CAROUSEL
   ========================================================================== */
.lh-partners {
    padding: var(--lh-section-spacing) 0;
    background: var(--lh-gray-bg);
    overflow: hidden;
}

.lh-partners__track {
    display: flex;
    width: max-content;
    animation: lh-scroll 30s linear infinite;
}

.lh-partners__track:hover {
    animation-play-state: paused;
}

.lh-partners__logo {
    flex: 0 0 auto;
    height: 100px;
    width: auto;
    max-width: 150px;
    margin: 0 40px;
    object-fit: contain;
    transition: filter 0.3s, opacity 0.3s;
}

.lh-partners__logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes lh-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   6. NEWSLETTER + INSTAGRAM
   ========================================================================== */
.lh-newsletter-ig {
    padding: var(--lh-section-spacing) 0;
    background: var(--lh-white);
}

.lh-newsletter-ig__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

/* Newsletter */
.lh-newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-self: center;
    width: 100%;
}

.lh-newsletter:only-child {
    grid-column: 1 / -1;
}

.lh-newsletter__title {
    font-family: var(--lh-font-heading);
    font-size: 20px;
    font-weight: 600;
    font-style: italic;
    color: var(--lh-text-dark);
    margin: 0 0 6px;
}

.lh-newsletter__subtitle {
    font-size: 15px;
    color: var(--lh-footer-gray);
    margin: 0 0 20px;
}

.lh-newsletter__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 480px;
    gap: 16px;
}

.lh-newsletter__usage {
    display: flex;
    gap: 24px;
    border: none;
    padding: 0;
    margin: 0;
}

.lh-newsletter__check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--lh-text-dark);
    cursor: pointer;
}

.lh-newsletter__check,
.lh-newsletter__radio {
    width: 18px;
    height: 18px;
    accent-color: var(--lh-blue);
    cursor: pointer;
    flex-shrink: 0;
}

.lh-newsletter__input-row {
    display: flex;
    width: 100%;
}

.lh-newsletter__input {
    flex: 1;
    font-family: var(--lh-font-body);
    font-size: 15px;
    padding: 12px 16px;
    border: 2px solid var(--lh-blue);
    border-right: none;
    border-radius: 10px 0 0 10px;
    outline: none;
    background: var(--lh-white);
}

.lh-newsletter__input::placeholder {
    color: #aaa;
}

.lh-newsletter__btn {
    font-family: var(--lh-font-btn);
    font-size: 15px;
    font-weight: 500;
    color: var(--lh-white);
    background: var(--lh-blue);
    border: 1px solid var(--lh-blue);
    padding: 12px 28px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.lh-newsletter__btn:hover {
    background: #3a7a9e;
    border-color: #3a7a9e;
}

.lh-newsletter__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lh-newsletter__privacy-label {
    font-size: 13px;
}

.lh-newsletter__privacy-label a {
    color: var(--lh-blue);
    text-decoration: underline;
}

.lh-newsletter__msg {
    margin: 4px 0 0;
    font-size: 14px;
    min-height: 20px;
}

.lh-newsletter__msg--success {
    color: #2e7d32;
}

.lh-newsletter__msg--error {
    color: #c62828;
}

.lh-newsletter__hint {
    font-size: 12px;
    color: var(--lh-footer-gray);
    margin: 8px 0 0;
}

/* Instagram */
.lh-instagram {
    text-align: center;
}

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

.lh-instagram__handle {
    display: inline-block;
    font-family: var(--lh-font-body);
    font-size: 15px;
    color: var(--lh-blue);
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s;
}

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

.lh-instagram__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    position: relative;
}

.lh-instagram__item {
    display: block;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
}

@supports not (aspect-ratio: 1/1) {
    .lh-instagram__item {
        height: 0;
        padding-bottom: 100%;
        position: relative;
    }
    .lh-instagram__img {
        position: absolute;
        top: 0;
        left: 0;
    }
}

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

.lh-instagram__item:hover .lh-instagram__img {
    transform: scale(1.08);
}

.lh-instagram__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.lh-instagram__logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.lh-instagram__logo-img {
    width: 56px;
    height: auto;
}

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

/* Tablet */
@media (max-width: 1024px) {
    .lh-hero-video {
        height: 60vh;
        min-height: 400px;
    }

    .lh-hero-video__box {
        max-width: 500px;
        padding: 24px 30px;
        margin-bottom: 40px;
    }

    .lh-hero-video__title {
        font-size: 20px;
    }

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

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

    .lh-cta__title {
        font-size: 28px;
    }

    .lh-newsletter-ig__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lh-instagram__logo {
        width: 76px;
        height: 76px;
    }

    .lh-instagram__logo-img {
        width: 46px;
    }
}

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

    .lh-hero-video {
        height: 50vh;
        min-height: 350px;
    }

    .lh-hero-video__box {
        max-width: 100%;
        padding: 20px 24px;
        margin-bottom: 30px;
        border-radius: 0;
    }

    .lh-hero-video__box-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .lh-hero-video__title {
        font-size: 18px;
        white-space: normal;
    }

    .lh-hero-video__subtitle {
        font-size: 14px;
    }

    .lh-image-links__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .lh-image-links__title {
        font-size: 16px;
        padding: 14px;
    }

    .lh-cta__title {
        font-size: 24px;
    }

    .lh-cta__content {
        padding: 40px 0;
    }

    .lh-featured__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .lh-newsletter__usage {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .lh-newsletter__input-row {
        flex-direction: column;
    }

    .lh-newsletter__input {
        border-right: 2px solid var(--lh-blue);
        border-radius: 10px 10px 0 0;
    }

    .lh-newsletter__btn {
        border-radius: 0 0 10px 10px;
    }

    .lh-partners__logo {
        height: 40px;
        margin: 0 24px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .lh-image-links__grid {
        grid-template-columns: 1fr;
    }

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

    .lh-hero-video__title {
        font-size: 16px;
    }
}
