/* ============================================================
   Home dedicata di alesteviaggi.it (templates/public/home__aleste_viaggi.html)
   Rifatta il 12/10/2026 (owner) sul modello di alpitour.it: un solo
   carattere, Figtree, per titoli e testi; titoli in blu profondo e peso
   medio; carosello in testata, striscia di tre porte, strutture a schede
   con «prezzo da», vantaggi a colonne, destinazioni in grandi card,
   riquadri «In evidenza» col filo colorato. Restano SOLO i colori del logo
   (owner 09/10/2026) — turchese #11a6bb, blu #0968b0, grafite #2d2d2f —
   niente giallo. Il motore di ricerca conserva il markup di
   _search_motor_hoescape.html (lo aggancia hoescape-home.js). Gli altri
   portali non caricano questo foglio.
   ============================================================ */

[data-home="aleste"] {
    --av-ink: #2d2d2f;              /* grafite del logo: testo */
    --av-ink-soft: #55606b;
    --av-title: #0a4f87;            /* titoli */
    --av-night: #0c3c63;            /* fondi scuri */
    --av-blue: #0968b0;             /* blu del logo: azioni, link, prezzi */
    --av-blue-deep: #0a4f87;
    --av-teal: #11a6bb;             /* turchese del logo: accenti */
    --av-teal-deep: #0a7d8e;        /* turchese leggibile per testo piccolo */
    --av-teal-soft: #e4f5f8;
    --av-paper: #f3f8fa;
    --av-line: #dde7ec;
    --av-radius: 14px;
    --av-radius-sm: 8px;
    --av-shadow: 0 6px 22px rgba(12, 60, 99, 0.10);
    --av-shadow-lg: 0 18px 46px rgba(12, 60, 99, 0.18);
    --av-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.av-home { background: #fff; color: var(--av-ink); font-family: var(--av-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.av-home main h1, .av-home main h2, .av-home main h3 { font-family: var(--av-body); color: var(--av-title); letter-spacing: 0; margin: 0; }
.av-home main p, .av-home main ol { margin: 0; }
.av-home main ol { padding: 0; list-style: none; }
.av-home main :focus-visible { outline: 3px solid var(--av-teal); outline-offset: 2px; border-radius: 6px; }

.av-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.av-section { padding: 64px 0; }
.av-section--tight { padding: 16px 0 64px; }
@media (max-width: 767.98px) { .av-section { padding: 48px 0; } .av-section--tight { padding: 8px 0 48px; } }
.av-home main .av-title-center { text-align: center; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.2; margin-bottom: 32px; }

/* ─── Bottoni: rettangoli poco arrotondati, come alpitour.it ─── */
.av-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.av-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 6px; padding: 0 22px; font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .2s, color .2s; }
.av-btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.85rem; }
.av-btn--primary { background: var(--av-blue); color: #fff; }
.av-btn--primary:hover { background: var(--av-blue-deep); color: #fff; }
.av-btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.av-btn--ghost:hover { background: #fff; color: var(--av-blue-deep); }
.av-btn--light { background: #fff; color: var(--av-blue-deep); }
.av-hero .av-btn--primary, .av-promo .av-btn--primary { background: #fff; color: var(--av-blue-deep); }
.av-hero .av-btn--primary:hover, .av-promo .av-btn--primary:hover { background: var(--av-teal-soft); color: var(--av-blue-deep); }
.av-eyebrow { display: inline-block; color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }

/* ============================================================
   TESTATA a carosello
   ============================================================ */
.av-hero { position: relative; color: #fff; background: var(--av-night); }
.av-slides { position: relative; height: clamp(420px, 42vw, 560px); overflow: hidden; }
.av-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.av-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.av-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.av-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 40, 70, 0.62) 0%, rgba(8, 40, 70, 0.25) 45%, rgba(8, 40, 70, 0) 75%); }
.av-hero-body { position: relative; padding-bottom: 40px; }
.av-hero-kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #e4f5f8; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.av-home main .av-hero h1, .av-hero-title { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; font-weight: 700; max-width: 760px; margin-top: 8px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.av-hero-text { color: #fff; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 500; max-width: 600px; margin-top: 12px !important; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4); }
.av-hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--av-blue-deep); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.av-hero-arrow:hover { background: #fff; }
.av-hero-arrow--prev { left: 16px; } .av-hero-arrow--next { right: 16px; }
.av-hero-dots { position: absolute; left: 0; right: 0; bottom: 58px; z-index: 3; display: flex; justify-content: center; gap: 4px; }
.av-dot { width: 32px; height: 32px; border: 0; background: transparent; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.av-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.av-dot.is-active::before { background: #fff; }
@media (max-width: 767.98px) {
    .av-slides { height: 440px; }
    .av-slide { align-items: flex-end; }
    .av-hero-shade { background: linear-gradient(180deg, rgba(8, 40, 70, 0.05) 0%, rgba(8, 40, 70, 0.7) 100%); }
    .av-hero-body { padding-bottom: 72px; }
    .av-hero-arrow { display: none; }
    .av-hero-dots { bottom: 34px; }
}
@media (prefers-reduced-motion: reduce) { .av-slide, .av-slide.is-active { transition: none; } }

/* ============================================================
   MOTORE — barra orizzontale sotto la testata (owner 22/09/2026), che
   sormonta il bordo basso della foto
   ============================================================ */
.av-motor { position: relative; z-index: 20; padding: 28px 0 8px; }
.av-hero + .av-motor { margin-top: -44px; padding-top: 0; }
@media (max-width: 767.98px) { .av-hero + .av-motor { margin-top: -28px; } }
.av-search { background: #fff; border-radius: var(--av-radius); padding: 10px; box-shadow: var(--av-shadow-lg); }
html[data-skin="hoe"] .av-search .search-box { margin: 0; padding: 0; max-width: none; }
html[data-skin="hoe"] .av-search .search-form { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
html[data-skin="hoe"] .av-search .search-row { gap: 10px; }
html[data-skin="hoe"] .av-search .search-field {
    background: var(--av-paper); border: 1px solid var(--av-line); border-radius: var(--av-radius-sm);
    padding: 10px 16px; box-shadow: none;
}
html[data-skin="hoe"] .av-search .search-field:hover,
html[data-skin="hoe"] .av-search .search-field:focus-within { background: #fff; border-color: var(--av-blue); }
html[data-skin="hoe"] .av-search .search-label {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--av-ink); margin-bottom: 2px; gap: 6px;
}
html[data-skin="hoe"] .av-search .search-label svg { width: 14px; height: 14px; stroke: var(--av-blue); }
html[data-skin="hoe"] .av-search .search-input,
html[data-skin="hoe"] .av-search .search-guests-btn,
html[data-skin="hoe"] .av-search .search-select {
    font-family: var(--av-body); font-size: 0.95rem; font-weight: 600; color: var(--av-ink); min-height: 26px; padding-right: 22px;
}
html[data-skin="hoe"] .av-search .search-input::placeholder { font-weight: 400; color: #7b8fa6; }
html[data-skin="hoe"] .av-search .search-chevron { color: #7b8fa6; font-size: 12px; }
/* la skin ridipinge ogni .search-submit con !important («Global Hoescape CTA
   recolor»): qui torna il blu del logo con gli angoli del motore */
html[data-skin="hoe"] .av-search .search-submit {
    background: var(--av-blue) !important; border-color: var(--av-blue) !important; color: #fff !important;
    border-radius: var(--av-radius-sm) !important; box-shadow: none; min-width: 64px; padding: 0 28px; font-weight: 700;
}
html[data-skin="hoe"] .av-search .search-submit svg { stroke: #fff; width: 20px; height: 20px; }
html[data-skin="hoe"] .av-search .search-submit:hover {
    background: var(--av-blue-deep) !important; border-color: var(--av-blue-deep) !important; color: #fff !important; transform: none;
}
html[data-skin="hoe"] .av-search .destination-item:hover,
html[data-skin="hoe"] .av-search .destination-item[aria-selected="true"] { background: var(--av-teal-soft); }
html[data-skin="hoe"] .av-search .rooms-confirm-btn { background: var(--av-blue); color: #fff; box-shadow: none; border-radius: 12px; }
html[data-skin="hoe"] .av-search .rooms-confirm-btn:hover { background: var(--av-blue-deep); box-shadow: none; }
html[data-skin="hoe"] .av-search .guests-minus:hover,
html[data-skin="hoe"] .av-search .guests-plus:hover { border-color: var(--av-blue); color: var(--av-blue); }
html[data-skin="hoe"] .av-search .rooms-pets-check { accent-color: var(--av-blue); }
@media (max-width: 767.98px) {
    html[data-skin="hoe"] .av-search .search-submit { min-height: 52px; margin: 8px 0 0; width: 100%; }
}
/* Flatpickr: giorni scelti blu, intervallo turchese chiaro */
.av-home .flatpickr-day.selected, .av-home .flatpickr-day.startRange, .av-home .flatpickr-day.endRange { background: #0968b0; border-color: #0968b0; }
.av-home .flatpickr-day.inRange { background: #e3f4f7; border-color: #e3f4f7; box-shadow: -5px 0 0 #e3f4f7, 5px 0 0 #e3f4f7; }

/* ============================================================
   STRISCIA DI TRE PORTE
   ============================================================ */
.av-strip { background: var(--av-paper); padding: 22px 0; margin-top: 24px; }
.av-strip-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px; }
.av-strip-item { display: flex; align-items: center; gap: 14px; padding: 8px 6px; color: var(--av-ink); text-decoration: none; }
.av-strip-item > i { font-size: 2rem; color: var(--av-blue); }
.av-strip-item strong { display: block; font-size: 1.1rem; font-weight: 700; color: var(--av-title); }
.av-strip-link { color: var(--av-blue); text-decoration: underline; text-underline-offset: 3px; font-size: 1rem; }
.av-strip-item:hover .av-strip-link { color: var(--av-blue-deep); }

/* ============================================================
   STRUTTURE a schede
   ============================================================ */
.av-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; border-bottom: 1px solid var(--av-line); margin-bottom: 28px; }
.av-tab { min-height: 48px; padding: 0 18px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--av-ink); font-family: var(--av-body); font-size: 1.02rem; font-weight: 500; cursor: pointer; margin-bottom: -1px; }
.av-tab[aria-selected="true"] { color: var(--av-title); font-weight: 700; border-bottom-color: var(--av-blue); }
.av-tab:hover { color: var(--av-blue-deep); }
.av-rail-wrap { position: relative; }
.av-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 3 * 20px) / 4)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: thin; }
@media (max-width: 991.98px) { .av-rail { grid-auto-columns: minmax(250px, 46%); } }
@media (max-width: 575.98px) { .av-rail { grid-auto-columns: 82%; } }
.av-rail-arrow { position: absolute; top: 38%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--av-line); background: #fff; color: var(--av-blue-deep); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--av-shadow); }
.av-rail-arrow--prev { left: -18px; } .av-rail-arrow--next { right: -18px; }
@media (max-width: 767.98px) { .av-rail-arrow { display: none; } }
.av-offer { scroll-snap-align: start; background: #fff; border-radius: var(--av-radius-sm); box-shadow: var(--av-shadow); display: flex; flex-direction: column; overflow: hidden; }
.av-offer-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--av-teal-soft); }
.av-offer-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av-offer-tag { position: absolute; top: 10px; left: 10px; background: #fff; color: var(--av-teal-deep); font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 4px; padding: 3px 8px; }
.av-offer-body { padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.av-home main .av-offer h3 { font-size: 1.02rem; font-weight: 600; line-height: 1.3; }
.av-offer h3 a { color: var(--av-blue); text-decoration: none; }
.av-offer h3 a:hover { text-decoration: underline; }
.av-offer-stars { color: #0a7d8e; font-size: 0.82rem; letter-spacing: .1em; }
.av-offer-place { color: var(--av-ink-soft); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; }
.av-offer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid var(--av-line); margin-top: 10px; }
.av-offer-price { font-size: 1.3rem; font-weight: 600; color: var(--av-ink); line-height: 1.1; }
.av-offer-price small { font-size: 0.75rem; font-weight: 500; color: var(--av-ink-soft); }
.av-offer-price--ask { font-size: 0.9rem; font-weight: 600; color: var(--av-ink-soft); }
.av-offer-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 4px; background: var(--av-night); color: #fff; font-size: 0.82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.av-offer-btn:hover { background: var(--av-blue); color: #fff; }
.av-more { text-align: center; margin-top: 18px !important; }
.av-more a { color: var(--av-blue); font-weight: 600; text-decoration: none; }
.av-more a:hover { text-decoration: underline; }

/* ============================================================
   PERCHE' ALESTE — colonne centrate
   ============================================================ */
.av-why { background: #fff; }
.av-why-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 1000px; margin: 0 auto; text-align: center; }
.av-why-item > i { font-size: 2rem; color: var(--av-teal-deep); }
.av-home main .av-why-item h3 { font-size: 1.1rem; font-weight: 600; margin: 8px 0 6px; }
.av-why-item p { color: var(--av-ink-soft); font-size: 0.95rem; }

/* ============================================================
   DESTINAZIONI — grandi card fotografiche
   ============================================================ */
#destinazioni { background: var(--av-paper); }
.av-dests { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.av-dest { position: relative; display: block; min-height: 420px; border-radius: var(--av-radius); overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--av-shadow); }
.av-dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.av-dest:hover img { transform: scale(1.04); }
.av-dest-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 40, 70, 0) 40%, rgba(8, 40, 70, 0.78) 100%); }
.av-dest-body { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.av-home main .av-dest h3 { color: #fff; font-size: 1.6rem; font-weight: 600; }
.av-dest-claim { font-size: 0.98rem; color: #fff; margin-bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .av-dest img { transition: none; } }

/* ============================================================
   EARLY BOOKING
   ============================================================ */
.av-promo { position: relative; border-radius: var(--av-radius); overflow: hidden; min-height: 320px; display: flex; align-items: center; color: #fff; background: var(--av-night); }
.av-promo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av-promo-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 40, 70, 0.78) 0%, rgba(8, 40, 70, 0.35) 60%, rgba(8, 40, 70, 0) 100%); }
.av-promo-body { position: relative; padding: 40px 28px; max-width: 620px; }
@media (min-width: 768px) { .av-promo-body { padding: 52px 56px; } }
.av-home main .av-promo h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
.av-promo-body > p { color: rgba(255, 255, 255, .92); margin-top: 10px !important; }

/* ============================================================
   COME FUNZIONA
   ============================================================ */
.av-steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.av-step { border-top: 3px solid var(--av-teal); padding-top: 18px; }
.av-step-num { display: inline-block; font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--av-blue); margin-bottom: 8px; }
.av-home main .av-step h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.av-step p { color: var(--av-ink-soft); }

/* ============================================================
   IN EVIDENZA — riquadri col filo colorato
   ============================================================ */
.av-boxes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.av-box { background: #fff; border-radius: 6px; padding: 26px 26px 22px; box-shadow: var(--av-shadow); border-top: 3px solid var(--av-blue); display: flex; flex-direction: column; gap: 10px; }
.av-box--teal { border-top-color: var(--av-teal); }
.av-box--ink { border-top-color: var(--av-ink); }
.av-home main .av-box h3 { font-size: 1.15rem; font-weight: 600; }
.av-box p { color: var(--av-ink-soft); font-size: 0.95rem; flex: 1; }
.av-box a { color: var(--av-blue); font-weight: 600; text-decoration: none; align-self: flex-end; }
.av-box a:hover { text-decoration: underline; }
.av-box-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }

/* ============================================================
   AREA AGENZIE — cosa fa un'agenzia partner col suo accesso
   ============================================================ */
.av-agency { background: var(--av-night); color: #fff; }
.av-agency-row { display: flex; flex-wrap: wrap; gap: 36px 56px; align-items: flex-start; }
.av-agency-intro { flex: 1 1 340px; min-width: 0; }
.av-home main .av-agency h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 600; line-height: 1.2; }
.av-agency-intro > p:not(.av-eyebrow) { color: rgba(255, 255, 255, .88); margin-top: 14px !important; }
.av-agency-grid { flex: 2 1 560px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.av-agency-grid li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: 18px 18px 16px; }
.av-agency-grid i { font-size: 1.5rem; color: #6fd3e2; }
.av-home main .av-agency-grid h3 { color: #fff; font-size: 1.02rem; font-weight: 600; margin: 8px 0 4px; }
.av-agency-grid p { color: rgba(255, 255, 255, .8); font-size: .92rem; line-height: 1.5; }
.av-agency .av-btn--primary { background: #fff; color: var(--av-blue-deep); }
.av-agency .av-btn--primary:hover { background: var(--av-teal-soft); color: var(--av-blue-deep); }
