/* =========================================================
   JEXORA — HOMEPAGE
   ========================================================= */

/* PANORAMIC HERO */

.home-hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background-color: var(--navy);
    background-image:
        linear-gradient(
            180deg,
            rgba(2, 31, 52, 0.48) 0%,
            rgba(2, 43, 64, 0.08) 35%,
            rgba(2, 40, 60, 0.35) 100%
        ),
        var(--hero-image);
    background-position: center;
    background-size: cover;
    color: #ffffff;
}

.home-hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    padding: 75px 0 110px;
    text-align: center;
}

.home-hero__eyebrow {
    margin: 0 0 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(35px, 5vw, 65px);
    font-style: italic;
    font-weight: 400;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.2);
}

.home-hero__title {
    margin: 0;
    font-size: clamp(39px, 6vw, 75px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 2px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.2);
}

.home-hero__description {
    max-width: 650px;
    margin: 20px auto 30px;
    font-size: 17px;
    line-height: 1.6;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* FLOATING SEARCH BAR */

.home-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(560px, 100%);
    padding: 7px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(0, 36, 54, 0.25);
}

.home-search__icon {
    padding-left: 13px;
    color: var(--turquoise);
    font-size: 22px;
}

.home-search__input {
    flex: 1;
    min-width: 0;
    padding: 13px 5px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
}

.home-search__button {
    flex-shrink: 0;
    padding: 13px 23px;
    border: 0;
    border-radius: 8px;
    background: var(--navy);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.home-search__button:hover {
    background: var(--navy-dark);
}

/* EXPERIENCE FILTERS */

.home-experiences {
    position: relative;
    z-index: 2;
    margin-top: -54px;
    padding: 25px 0 30px;
    background: linear-gradient(
        180deg,
        rgba(247, 251, 253, 0.94),
        var(--background) 45%
    );
}

.home-experiences__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 10px 24px;
}

.home-experience {
    display: flex;
    flex: 0 0 110px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border: 0;
    background: transparent;
    color: var(--navy);
    text-align: center;
}

.home-experience__icon {
    display: grid;
    place-items: center;
    width: 59px;
    height: 59px;
    border: 1px solid #9dc3d4;
    border-radius: 50%;
    background: #ffffff;
    font-size: 25px;
    transition: 0.2s ease;
}

.home-experience:hover .home-experience__icon,
.home-experience.active .home-experience__icon {
    transform: translateY(-3px);
    border-color: var(--navy);
    background: var(--navy);
    color: #ffffff;
}

.home-experience__label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

/* CATEGORY SECTION */

.home-catalogue {
    padding: 38px 0 75px;
}

.home-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.home-section-heading h2 {
    margin: 0 0 7px;
    font-size: clamp(25px, 3vw, 34px);
}

.home-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.home-see-all {
    flex-shrink: 0;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
}

/* PROMOTIONAL BANNER */

.home-promo {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 270px;
    background-color: var(--navy);
    background-image:
        linear-gradient(
            90deg,
            rgba(3, 40, 61, 0.87),
            rgba(4, 84, 105, 0.35)
        ),
        var(--hero-image);
    background-position: center 60%;
    background-size: cover;
    color: #ffffff;
}

.home-promo h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
}

.home-promo p {
    margin: 10px 0 0;
    font-size: 17px;
}

/* RESPONSIVE LAYOUT */

@media (max-width: 950px) {
    .home-experiences__grid {
        gap: 10px 18px;
    }
}

@media (max-width: 650px) {
    .home-hero {
        min-height: 610px;
    }

    .home-hero__content {
        min-height: 425px;
        padding: 60px 0 80px;
    }

    .home-hero__description {
        font-size: 15px;
    }

    .home-search__input {
        font-size: 12px;
    }

    .home-search__button {
        padding: 13px 15px;
    }

    .home-experiences {
        margin-top: -30px;
    }

    .home-experiences__grid {
        gap: 8px 10px;
    }

    .home-experience {
        flex-basis: 82px;
    }

    .home-experience__icon {
        width: 49px;
        height: 49px;
        font-size: 21px;
    }

    .home-experience__label {
        font-size: 10px;
    }

    .home-catalogue {
        padding-top: 25px;
    }

    .home-promo {
        min-height: 220px;
    }
}

/* JEXORA — Hero regolabile dall'Excursion Center */
.home-hero {
    min-height: var(--hero-desktop-height, 650px);
    height: var(--hero-desktop-height, 650px);
}

.home-hero > .home-hero__content {
    min-height: 0;
    padding: 20px 0 35px;
}

@media (max-width: 650px) {
    .home-hero {
        min-height: var(--hero-mobile-height, 610px);
        height: var(--hero-mobile-height, 610px);
    }

    .home-hero > .home-hero__content {
        min-height: 0;
        padding: 20px 0 30px;
    }
}

/* JEXORA — raccordo fotografico hero -> bianco (solo homepage) */
.home-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: auto 0 0;
    height: 145px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.30) 20%, #fff 49%, #fff 100%);
}
.home-hero > .home-hero__content {
    position: relative;
    z-index: 2;
}
.home-experiences {
    margin-top: -74px;
    padding-top: 15px;
    background: #fff;
}
.home-experience__icon i {
    font-size: 23px;
    line-height: 1;
}
@media (max-width: 650px) {
    .home-hero::after { height: 105px; background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.30) 25%, #fff 60%, #fff 100%); }
    .home-experiences { margin-top: -42px; padding-top: 15px; }
    .home-experience__icon i { font-size: 20px; }
}
