/* ============================================================
   HOESCAPE HOME — Layout dedicato (full-bleed hero + tabs OFFERTE TOP)
   Caricato solo da home_hoescape.html.
   Colori brand presi da static/css/hoescape.css:
     --hoe-primary: #1e4d9c  (blu deep navy)
     --hoe-accent:  #d4e85a  (giallo-verde lime brand HoEscape)
   ============================================================ */

:root {
    --hoe-primary: #1e4d9c;
    --hoe-primary-dark: #163a78;
    --hoe-accent: #d4e85a;
    --hoe-accent-dark: #b9d138;
    --hoe-green: #2d4a52;        /* topbar phone pill */
    --hoe-text-dark: #0f1729;
    --hoe-text-muted: #5b6b85;
    --hoe-bg-soft: #f5f7fb;
}

body.hoe-home {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--hoe-text-dark);
    background: white;
    margin: 0;
}

/* ─────────── TOPBAR ─────────── */
.hoe-topbar {
    background: var(--hoe-primary);
    color: white;
    font-size: 13px;
    padding: 0;
}
.hoe-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    min-height: 40px;
}
.hoe-topbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
}
.hoe-topbar-left a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: opacity 0.2s;
}
.hoe-topbar-left a:hover { opacity: 0.85; }
.hoe-topbar-left a[aria-label] { font-size: 14px; }
.hoe-topbar-link { padding: 8px 0; }
.hoe-topbar-right {
    display: flex;
    align-items: stretch;
    gap: 0;
}
.hoe-topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: filter 0.2s;
}
.hoe-topbar-pill:hover { filter: brightness(1.08); color: white; }
.hoe-topbar-pill--phone {
    background: linear-gradient(135deg, #c8de44 0%, #b9d138 100%);
    color: var(--hoe-primary-dark);
}
.hoe-topbar-pill--phone i { color: var(--hoe-primary-dark); }
.hoe-topbar-pill--email {
    background: #2d4a52;
    color: white;
}
.hoe-topbar-pill--email i { color: white; }

/* ─────────── NAVBAR ─────────── */
.hoe-navbar {
    background: white;
    border-bottom: 1px solid #ecf0f6;
    padding: 14px 0;
}
.hoe-navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hoe-logo img {
    height: 48px;
    width: auto;
    display: block;
}
.hoe-nav {
    display: flex;
    gap: 36px;
    align-items: center;
}
.hoe-nav-link {
    color: var(--hoe-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: color 0.15s;
}
.hoe-nav-link:hover { color: var(--hoe-accent-dark); }
.hoe-nav-link--dropdown i {
    font-size: 11px;
    margin-left: 4px;
    opacity: 0.7;
}
.hoe-burger {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--hoe-primary);
    cursor: pointer;
}

/* ─────────── HERO ─────────── */
.hoe-hero {
    position: relative;
    /* overflow: visible so the search-overlay dropdowns (location autocomplete,
       calendar, guest picker) can extend below the hero band. Banner clipping
       for rounded corners is handled by .hoe-hero-slider's own overflow. */
    overflow: visible;
    padding: 24px 0 0;
}
.hoe-hero-slider {
    position: relative;
    width: calc(100% - 48px);
    max-width: 1500px;
    margin: 0 auto;
    aspect-ratio: 16 / 6.5;
    border-radius: 14px;
    overflow: hidden;
    background: #e9eef7;
}
.hoe-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.hoe-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.hoe-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hoe-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e3e7f0;
    color: var(--hoe-primary);
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(15, 30, 60, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, box-shadow 0.15s;
}
.hoe-hero-arrow:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 6px 18px rgba(15, 30, 60, 0.15);
}
.hoe-hero-arrow--prev { left: 6px; }
.hoe-hero-arrow--next { right: 6px; }

/* Search overlay positioned over the bottom of the hero */
.hoe-search-overlay {
    position: relative;
    margin-top: -64px;
    margin-bottom: 28px;
    z-index: 5;
}
.hoe-search-card {
    background: white;
    border-radius: 60px;
    box-shadow: 0 14px 40px rgba(15, 30, 60, 0.12);
    padding: 14px 18px;
    max-width: 1180px;
    margin: 0 auto;
}
/* Override v2-search inside the Hoescape pill */
.hoe-search-card .v2-search {
    border-radius: 60px;
    box-shadow: none;
    background: transparent;
    padding: 0;
}
.hoe-search-card .v2-search-btn {
    background: linear-gradient(135deg, var(--hoe-accent) 0%, var(--hoe-accent-dark) 100%);
    color: var(--hoe-primary-dark);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.hoe-search-card .v2-search-btn span { display: none; }
.hoe-search-card .v2-search-btn i { color: var(--hoe-primary-dark); }
.hoe-search-card .v2-search-field label {
    font-weight: 700;
    font-size: 12px;
    color: var(--hoe-primary);
    text-transform: none;
    letter-spacing: 0;
}

/* ─────────── LOCATION AUTOCOMPLETE (Dove Vuoi Andare?) ─────────── */
.hoe-loc-field { position: relative; }
.hoe-loc-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    margin-top: 2px;
    color: var(--hoe-text-dark);
    font-size: 16px;
    font-weight: 600;
    outline: none;
}
.hoe-loc-input::placeholder { color: var(--hoe-text-muted); font-weight: 500; }

.hoe-loc-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: -10px;
    right: -10px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15, 30, 60, 0.18);
    border: 1px solid #eef1f7;
    z-index: 50;
    max-height: 360px;
    overflow-y: auto;
    padding: 10px;
}
.hoe-loc-section-label {
    padding: 8px 14px 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--hoe-text-dark);
    text-transform: none;
    letter-spacing: 0;
}
.hoe-loc-results { display: flex; flex-direction: column; }
.hoe-loc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s;
}
.hoe-loc-item:hover, .hoe-loc-item:focus {
    background: var(--hoe-bg-soft);
    outline: none;
}
.hoe-loc-item-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--hoe-bg-soft);
    color: var(--hoe-accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.hoe-loc-item-body {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}
.hoe-loc-item-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--hoe-text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hoe-loc-item-sub {
    font-size: 12px;
    color: var(--hoe-text-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hoe-loc-empty {
    padding: 16px;
    color: var(--hoe-text-muted);
    text-align: center;
    font-size: 13px;
}
.hoe-loc-field.is-open .v2-search-field-body { box-shadow: none; }

/* ─────────── STATBAR ─────────── */
.hoe-statbar {
    padding: 38px 0 28px;
    background: white;
}
.hoe-statbar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid #ecf0f6;
    border-bottom: 1px solid #ecf0f6;
    padding: 32px 0;
}
.hoe-stat {
    text-align: center;
    border-right: 1px solid #ecf0f6;
}
.hoe-stat:last-child { border-right: none; }
.hoe-stat-value {
    font-size: 44px;
    font-weight: 800;
    color: var(--hoe-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}
.hoe-stat-value small {
    font-size: 24px;
    color: var(--hoe-primary);
    font-weight: 700;
    margin-left: 2px;
}
.hoe-stat-label {
    margin-top: 10px;
    color: var(--hoe-text-muted);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ─────────── OFFERTE TOP ─────────── */
.hoe-offerte-top {
    padding: 36px 0 70px;
}
.hoe-section-title {
    font-size: 38px;
    font-weight: 900;
    color: var(--hoe-text-dark);
    margin: 0 0 28px;
    letter-spacing: -0.01em;
}
.hoe-tabs {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 6px 4px 24px;
    scrollbar-width: thin;
}
.hoe-tab {
    flex-shrink: 0;
    min-width: 220px;
    padding: 16px 26px;
    border-radius: 38px;
    background: white;
    border: 2px solid #d8e0ee;
    color: var(--hoe-primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.2;
    text-align: center;
}
.hoe-tab:hover {
    border-color: var(--hoe-primary);
    transform: translateY(-1px);
}
.hoe-tab.is-active {
    background: var(--hoe-primary);
    color: white;
    border-color: var(--hoe-primary);
}

.hoe-offerte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 28px;
}
.hoe-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 30, 60, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hoe-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 30, 60, 0.12);
}
.hoe-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.hoe-card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9eef7;
}
.hoe-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.hoe-card:hover .hoe-card-img img { transform: scale(1.05); }
.hoe-card-body { padding: 18px 20px 20px; }
.hoe-card-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
    color: var(--hoe-text-dark);
    line-height: 1.25;
}
.hoe-card-sub {
    margin: 0 0 12px;
    color: var(--hoe-text-muted);
    font-size: 13.5px;
    line-height: 1.4;
}
.hoe-card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f3f9;
}
.hoe-price-from {
    color: var(--hoe-text-muted);
    font-size: 12px;
}
.hoe-card-price strong {
    color: var(--hoe-primary);
    font-size: 22px;
    font-weight: 800;
}
.hoe-price-suffix {
    color: var(--hoe-text-muted);
    font-size: 12px;
}

.hoe-offerte-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--hoe-text-muted);
    font-size: 15px;
    background: var(--hoe-bg-soft);
    border-radius: 18px;
    margin-top: 28px;
}

.hoe-cta-row {
    margin-top: 36px;
    text-align: center;
}
.hoe-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 32px;
    background: var(--hoe-primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: background 0.2s, transform 0.15s;
}
.hoe-btn-primary:hover {
    background: var(--hoe-primary-dark);
    color: white;
    transform: translateY(-1px);
}

/* ─────────── MOBILE NAV ─────────── */
.hoe-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hoe-mobile-nav a {
    padding: 14px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--hoe-primary);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
}
.hoe-mobile-nav a:hover { background: var(--hoe-bg-soft); }
.hoe-mobile-cta {
    margin-top: 12px;
    background: var(--hoe-primary);
    color: white !important;
}
.hoe-mobile-cta:hover { background: var(--hoe-primary-dark) !important; }

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 991px) {
    .hoe-topbar-left { gap: 12px; font-size: 12px; }
    .hoe-topbar-left a[aria-label] { font-size: 13px; }
    .hoe-topbar-pill { font-size: 12px; padding: 0 12px; gap: 6px; }
    .hoe-topbar-pill span { display: none; }
    .hoe-topbar-pill i { font-size: 16px; }
    .hoe-nav { display: none; }

    .hoe-hero-slider { aspect-ratio: 4 / 5; width: calc(100% - 24px); border-radius: 10px; }
    .hoe-hero-arrow { width: 38px; height: 38px; font-size: 18px; }
    .hoe-search-overlay { margin-top: -48px; }
    .hoe-search-card { border-radius: 22px; padding: 10px; }

    .hoe-statbar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 0;
    }
    .hoe-stat:nth-child(2) { border-right: none; }
    .hoe-stat:nth-child(1), .hoe-stat:nth-child(2) {
        border-bottom: 1px solid #ecf0f6;
        padding-bottom: 24px;
    }
    .hoe-stat-value { font-size: 32px; }

    .hoe-section-title { font-size: 28px; }
    .hoe-tab { min-width: 180px; padding: 14px 20px; font-size: 12px; }
}

@media (max-width: 575px) {
    .hoe-topbar-left .hoe-topbar-link { display: none; }
    .hoe-topbar-inner { padding-left: 12px; padding-right: 12px; }
    .hoe-logo img { height: 36px; }
    .hoe-statbar-grid { grid-template-columns: 1fr; }
    .hoe-stat { border-right: none; border-bottom: 1px solid #ecf0f6; padding-bottom: 20px; }
    .hoe-stat:last-child { border-bottom: none; padding-bottom: 0; }
}
