/* ============================================================
   HOTELS ELBA — HOME DEDICATA (templates/public/home__elba.html)
   Veste del template «Hotels Elba» consegnato il 16/09/2026, tradotta
   in CSS puro (il sito non ha build: niente Tailwind). Token come
   variabili CSS, mobile-first, breakpoint 576 / 768 / 992 / 1200.

   Il motore di ricerca conserva il markup di _search_motor_hoescape.html
   (lo aggancia hoescape-home.js): qui viene solo rivestito. Gli altri
   portali non caricano questo foglio: vive solo nella home dedicata.
   ============================================================ */

[data-home="elba"] {
    --he-navy: #1e3c72;
    --he-dark: #152a4f;
    --he-light: #2a5298;
    --he-amber: #f5a623;
    --he-amber-dark: #d98e0c;
    --he-green: #8ab52d;
    --he-red: #e74c3c;
    --he-mist: #f3f6fb;
    --he-ink: #1f2937;
    --he-slate-400: #94a3b8;
    --he-slate-500: #64748b;
    --he-slate-600: #475569;
    --he-line: #f1f5f9;
    --he-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --he-shadow-card: 0 6px 24px rgba(21, 42, 79, 0.08);
    --he-shadow-card-hover: 0 16px 44px rgba(21, 42, 79, 0.16);
    --he-shadow-tile: 0 10px 30px rgba(21, 42, 79, 0.15);
}

body.he-home {
    background: #fff;
    color: var(--he-ink);
    font-family: var(--he-font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
.he-home main h1, .he-home main h2, .he-home main h3 {
    font-family: var(--he-font);
    color: var(--he-dark);
    letter-spacing: -0.01em;
    margin: 0;
}
.he-home main p { margin: 0; }
.he-home main :focus-visible { outline: 2px solid var(--he-amber); outline-offset: 2px; border-radius: 6px; }

/* ─── Contenitore e sezioni ─── */
.he-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.he-section { padding: 64px 0; }
@media (min-width: 992px) { .he-section { padding: 96px 0; } }
.he-bg-white { background: #fff; }
.he-bg-mist { background: rgba(243, 246, 251, 0.7); }
.he-center { text-align: center; margin-top: 40px; }
.he-note { margin-top: 20px !important; font-size: 12px; color: var(--he-slate-500); text-align: center; }

/* ─── Icone ─── */
.he-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.he-ic--sm { width: 14px; height: 14px; }
.he-ic--lg { width: 32px; height: 32px; }
.he-amber { color: var(--he-amber); }
.he-green { color: var(--he-green); }

/* ─── Titolo di sezione (SectionTitle) ─── */
.he-title { max-width: 672px; margin: 0 auto 40px; text-align: center; }
.he-eyebrow {
    color: var(--he-green); font-weight: 700; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 8px !important;
}
.he-home main .he-title h2 { font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
@media (min-width: 768px) { .he-home main .he-title h2 { font-size: 36px; } }
.he-title h2 + p { color: var(--he-slate-500); margin-top: 12px !important; font-size: 14px; line-height: 1.65; }
@media (min-width: 768px) { .he-title h2 + p { font-size: 16px; } }

/* ─── Bottoni ─── */
.he-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 700; font-size: 14px; line-height: 1.2; border-radius: 999px;
    padding: 12px 28px; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
    border: 2px solid transparent; white-space: nowrap;
}
.he-btn--lg { padding: 16px 32px; font-size: 15px; }
.he-btn--amber { background: var(--he-amber); color: var(--he-dark); box-shadow: 0 10px 30px rgba(245, 166, 35, 0.35); }
.he-btn--amber:hover { background: var(--he-amber-dark); color: var(--he-dark); }
.he-btn--navy { background: var(--he-navy); color: #fff; border-radius: 12px; padding: 10px 16px; }
.he-btn--navy:hover { background: var(--he-dark); color: #fff; }
.he-btn--outline { border-color: var(--he-navy); color: var(--he-navy); padding: 12px 32px; }
.he-btn--outline:hover { background: var(--he-navy); color: #fff; }
.he-btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.he-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }

.he-card {
    background: #fff; border: 1px solid var(--he-line); border-radius: 16px;
    box-shadow: var(--he-shadow-card);
}

/* ============================================================
   HERO
   ============================================================ */
.he-hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: visible; }
@media (min-width: 992px) { .he-hero { min-height: 640px; } }
.he-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.he-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 42, 79, 0.25) 0%, rgba(21, 42, 79, 0.55) 100%); }
.he-hero-inner { position: relative; padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 992px) { .he-hero-inner { padding-top: 96px; padding-bottom: 96px; } }
.he-hero-copy { max-width: 672px; margin-bottom: 32px; }
.he-hero-pill {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px !important;
    background: rgba(255, 255, 255, 0.15); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: #fff; font-size: 12px; font-weight: 600; padding: 8px 16px; border-radius: 999px;
}
.he-home main .he-hero h1 {
    color: #fff; font-size: 36px; font-weight: 800; line-height: 1.08;
    text-shadow: 0 2px 18px rgba(21, 42, 79, 0.45);
}
@media (min-width: 768px) { .he-home main .he-hero h1 { font-size: 60px; } }
.he-hero-sub {
    color: rgba(255, 255, 255, 0.9); font-size: 16px; line-height: 1.6; margin-top: 20px !important; max-width: 576px;
    text-shadow: 0 2px 18px rgba(21, 42, 79, 0.45);
}
@media (min-width: 768px) { .he-hero-sub { font-size: 20px; } }
.he-hero-checks {
    list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px;
    color: rgba(255, 255, 255, 0.88); font-size: 12px; font-weight: 500;
}
.he-hero-checks li { display: inline-flex; align-items: center; gap: 6px; }
.he-hero-checks .he-ic { color: var(--he-amber); stroke-width: 3; }

/* ─── Motore (BookingBar): stesso markup HoEscape, veste del template.
   Selettori con html[data-skin="hoe"] per pareggiare hoescape.css e
   vincere per ordine. ─── */
.he-search { position: relative; z-index: 20; }
html[data-skin="hoe"] .he-search .search-box { margin: 0; padding: 0; max-width: none; }
html[data-skin="hoe"] .he-search .search-form {
    background: #fff; border: 0; border-radius: 16px; padding: 12px;
    box-shadow: 0 18px 50px rgba(21, 42, 79, 0.25);
}
@media (min-width: 992px) { html[data-skin="hoe"] .he-search .search-form { padding: 8px; } }
html[data-skin="hoe"] .he-search .search-row { gap: 8px; }
@media (min-width: 992px) { html[data-skin="hoe"] .he-search .search-row { gap: 0; } }
html[data-skin="hoe"] .he-search .search-field {
    background: transparent; border: 0; border-radius: 0; padding: 10px 16px; box-shadow: none;
}
@media (min-width: 992px) {
    html[data-skin="hoe"] .he-search .search-field { border-right: 1px solid #e2e8f0; }
    html[data-skin="hoe"] .he-search .search-guests { border-right: 0; }
}
@media (max-width: 991.98px) {
    html[data-skin="hoe"] .he-search .search-field { border-bottom: 1px solid var(--he-line); }
}
html[data-skin="hoe"] .he-search .search-field:hover,
html[data-skin="hoe"] .he-search .search-field:focus-within { background: transparent; }
html[data-skin="hoe"] .he-search .search-label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--he-slate-400); margin-bottom: 4px; gap: 6px;
}
html[data-skin="hoe"] .he-search .search-label svg { width: 14px; height: 14px; stroke: var(--he-navy); }
html[data-skin="hoe"] .he-search .search-input,
html[data-skin="hoe"] .he-search .search-guests-btn,
html[data-skin="hoe"] .he-search .search-select {
    font-family: var(--he-font); font-size: 14px; font-weight: 600; color: var(--he-ink); min-height: 24px; padding-right: 22px;
}
html[data-skin="hoe"] .he-search .search-input::placeholder { font-size: 14px; font-weight: 400; color: var(--he-slate-400); }
html[data-skin="hoe"] .he-search .search-chevron { color: var(--he-slate-400); font-size: 12px; }
/* la skin ridipinge in navy ogni .search-submit con !important («Global
   Hoescape CTA recolor»): nel template la lente del motore e' ambra */
html[data-skin="hoe"] .he-search .search-submit {
    background: var(--he-amber) !important; border-color: var(--he-amber) !important; color: var(--he-dark) !important;
    border-radius: 12px !important; box-shadow: none; min-width: 58px; padding: 0 28px; font-weight: 700; margin: 4px;
}
html[data-skin="hoe"] .he-search .search-submit svg { stroke: var(--he-dark); width: 20px; height: 20px; }
html[data-skin="hoe"] .he-search .search-submit:hover {
    background: var(--he-amber-dark) !important; border-color: var(--he-amber-dark) !important; color: var(--he-dark) !important;
    transform: none; box-shadow: none;
}
html[data-skin="hoe"] .he-search .destination-item:hover,
html[data-skin="hoe"] .he-search .destination-item[aria-selected="true"] { background: var(--he-mist); }
html[data-skin="hoe"] .he-search .rooms-confirm-btn { background: var(--he-navy); color: #fff; box-shadow: none; border-radius: 12px; }
html[data-skin="hoe"] .he-search .rooms-confirm-btn:hover { background: var(--he-dark); box-shadow: none; }
html[data-skin="hoe"] .he-search .guests-minus:hover,
html[data-skin="hoe"] .he-search .guests-plus:hover { border-color: var(--he-navy); color: var(--he-navy); }
html[data-skin="hoe"] .he-search .rooms-pets-check { accent-color: var(--he-navy); }
@media (max-width: 767.98px) {
    html[data-skin="hoe"] .he-search .search-submit { min-height: 52px; margin: 8px 0 0; width: 100%; }
}
/* Flatpickr: giorni scelti navy, intervallo mist */
.he-home .flatpickr-day.selected, .he-home .flatpickr-day.startRange, .he-home .flatpickr-day.endRange { background: #1e3c72; border-color: #1e3c72; }
.he-home .flatpickr-day.inRange { background: #f3f6fb; border-color: #f3f6fb; box-shadow: -5px 0 0 #f3f6fb, 5px 0 0 #f3f6fb; }

/* ============================================================
   PERCHE' NOI (USP) + passi «come arrivare»
   ============================================================ */
.he-usp-grid { display: grid; gap: 20px; }
@media (min-width: 576px) { .he-usp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .he-usp-grid { grid-template-columns: repeat(4, 1fr); } }
.he-usp, .he-step {
    position: relative; border-radius: 16px; border: 1px solid var(--he-line);
    background: rgba(243, 246, 251, 0.6); padding: 24px; transition: background-color .2s, border-color .2s;
}
.he-usp:hover { background: var(--he-mist); border-color: rgba(30, 60, 114, 0.2); }
.he-usp-ic {
    width: 48px; height: 48px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: grid; place-items: center; margin-bottom: 16px; color: var(--he-navy); font-size: 22px;
}
.he-usp-ic .he-ic { width: 24px; height: 24px; }
.he-home main .he-usp h3, .he-home main .he-step h3 { font-size: 16px; font-weight: 700; line-height: 1.35; }
.he-usp p, .he-step p { font-size: 14px; color: var(--he-slate-500); line-height: 1.65; margin-top: 8px !important; }

/* ============================================================
   CHE VACANZA CERCHI? (tessere foto)
   ============================================================ */
.he-aud-grid { display: grid; gap: 20px; }
@media (min-width: 576px) { .he-aud-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .he-aud-grid { grid-template-columns: repeat(4, 1fr); } }
.he-aud {
    position: relative; display: block; height: 320px; border-radius: 16px; overflow: hidden;
    box-shadow: var(--he-shadow-tile); text-decoration: none;
}
.he-aud img, .he-town img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s;
}
.he-aud:hover img, .he-town:hover img { transform: scale(1.05); }
.he-aud-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(21, 42, 79, 0.9), rgba(21, 42, 79, 0.3) 50%, transparent); }
.he-aud-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: block; }
.he-aud-title { display: block; color: #fff; font-weight: 800; font-size: 20px; line-height: 1.25; }
.he-aud-text {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    color: rgba(255, 255, 255, 0.8); font-size: 13px; line-height: 1.6; margin-top: 6px;
}
.he-aud-more, .he-town-more { display: inline-flex; align-items: center; gap: 6px; color: var(--he-amber); font-size: 12px; font-weight: 700; margin-top: 12px; }
.he-aud-more .he-ic, .he-town-more .he-ic { transition: transform .2s; }
.he-aud:hover .he-aud-more .he-ic, .he-town:hover .he-town-more .he-ic { transform: translateX(4px); }

/* ============================================================
   OFFERTE (OfferCard)
   ============================================================ */
.he-offer-grid { display: grid; gap: 24px; }
@media (min-width: 576px) { .he-offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .he-offer-grid { grid-template-columns: repeat(3, 1fr); } }
.he-offer { overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s; }
.he-offer:hover { box-shadow: var(--he-shadow-card-hover); transform: translateY(-4px); }
.he-offer-img { position: relative; height: 208px; overflow: hidden; }
.he-offer-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.he-offer:hover .he-offer-img img { transform: scale(1.05); }
.he-offer-badge {
    position: absolute; top: 12px; left: 12px; background: var(--he-red); color: #fff;
    font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.he-offer-tag {
    position: absolute; bottom: 12px; left: 12px; background: rgba(21, 42, 79, 0.8);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: #fff; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
}
.he-offer-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.he-home main .he-offer h3 { font-size: 18px; font-weight: 700; line-height: 1.35; }
.he-offer h3 a { color: inherit; text-decoration: none; }
.he-offer h3 a:hover { color: var(--he-navy); }
.he-offer-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--he-slate-500); }
.he-offer-meta span { display: inline-flex; align-items: center; gap: 4px; }
.he-offer-meta .he-ic { color: var(--he-light); }
.he-offer-perk { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--he-slate-600); }
.he-offer-perk .he-ic { margin-top: 3px; }
.he-offer-foot {
    margin-top: auto; padding-top: 16px; border-top: 1px solid var(--he-line);
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.he-price { color: var(--he-dark); }
.he-price strong { font-size: 24px; font-weight: 800; }
.he-price small { font-size: 12px; color: var(--he-slate-500); }

/* ============================================================
   LOCALITA'
   ============================================================ */
.he-town-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .he-town-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .he-town-grid { grid-template-columns: repeat(3, 1fr); } }
.he-town {
    position: relative; display: block; min-height: 288px; border-radius: 16px; overflow: hidden;
    box-shadow: var(--he-shadow-tile); text-decoration: none; color: #fff;
}
.he-town--plain { background: linear-gradient(135deg, var(--he-light), var(--he-dark)); }
.he-town--plain::after {
    content: ""; position: absolute; right: -40px; top: -30px; width: 220px; height: 220px; border-radius: 50%;
    border: 36px solid rgba(255, 255, 255, 0.05);
}
.he-town--all { background: #fff; color: var(--he-dark); border: 2px dashed rgba(30, 60, 114, 0.25); box-shadow: none; }
.he-town--all:hover { border-color: var(--he-navy); }
.he-town-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(21, 42, 79, 0.9), rgba(21, 42, 79, 0.25) 55%, transparent); }
.he-town--plain .he-town-shade, .he-town--all .he-town-shade { display: none; }
.he-town-tag {
    position: absolute; top: 16px; left: 16px; z-index: 1; background: var(--he-amber); color: var(--he-dark);
    font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
}
.he-town-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 24px; display: block; }
.he-town-name { display: block; font-weight: 800; font-size: 24px; line-height: 1.2; }
.he-town-text { display: block; color: rgba(255, 255, 255, 0.82); font-size: 14px; line-height: 1.6; margin-top: 6px; }
.he-town--all .he-town-text { color: var(--he-slate-500); }
.he-town-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.he-town-foot .he-town-more { margin-top: 0; }
.he-town--all .he-town-more { color: var(--he-navy); }
.he-town-count { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.72); font-size: 12px; }

/* ============================================================
   COME ARRIVARE
   ============================================================ */
.he-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 768px) { .he-steps { grid-template-columns: repeat(3, 1fr); } }
.he-step-n { position: absolute; top: 16px; right: 24px; font-size: 48px; font-weight: 800; line-height: 1; color: rgba(30, 60, 114, 0.1); }
.he-travel-grid { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 768px) { .he-travel-grid { grid-template-columns: repeat(2, 1fr); } }
.he-travel { border-radius: 16px; padding: 32px; }
.he-travel .he-ic--lg { margin-bottom: 16px; }
.he-home main .he-travel h3 { font-size: 20px; font-weight: 800; }
.he-travel--dark { background: var(--he-dark); color: #fff; }
.he-home main .he-travel--dark h3 { color: #fff; }
.he-travel ul { margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.he-travel li + li { margin-top: 10px; }
.he-travel.he-card { box-shadow: 0 10px 30px rgba(21, 42, 79, 0.08); }
.he-travel p { font-size: 14px; color: var(--he-slate-500); line-height: 1.65; margin-top: 12px !important; }
.he-travel .he-btn { margin-top: 20px; padding: 12px 24px; }

/* ============================================================
   CTA PREVENTIVO
   ============================================================ */
.he-cta { position: relative; padding: 64px 0; overflow: hidden; }
@media (min-width: 992px) { .he-cta { padding: 80px 0; } }
.he-cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.he-cta-shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(21, 42, 79, 0.95), rgba(21, 42, 79, 0.8) 50%, rgba(21, 42, 79, 0.4)); }
.he-cta-inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
@media (min-width: 992px) { .he-cta-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.he-cta-copy { max-width: 576px; }
.he-home main .he-cta h2 { color: #fff; font-size: 24px; font-weight: 800; line-height: 1.2; }
@media (min-width: 768px) { .he-home main .he-cta h2 { font-size: 36px; } }
.he-cta p { color: rgba(255, 255, 255, 0.85); margin-top: 12px !important; line-height: 1.65; }
.he-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
