/* =========================================================
   HUROOS App Store
   File: huroos_appstore/static/src/css/huroos_appstore.css
   Prefisso classi: .hs-
   ========================================================= */

.hs-page {
    --hs-brand: #21a085;
    --hs-brand-dark: #1a8068;
    --hs-brand-soft: #e9f6f3;
    --hs-text: #1d2020;
    --hs-muted: #5a6672;
    --hs-meta: #717182;
    --hs-border: #e9ebec;
    --hs-line: #f1f1f1;
    --hs-bg: #f9f9fa;
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--hs-text);
    background: #fff;
    overflow-x: hidden;
}
.hs-page *, .hs-modal * { box-sizing: border-box; }
.hs-page a { color: var(--hs-brand); text-decoration: none; }
.hs-page a:hover { color: var(--hs-brand-dark); }

@keyframes hsRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hsFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hs-page *, .hs-modal * { animation: none !important; } }

/* stessa larghezza del container Bootstrap usato dall'header del tema */
.hs-page .hs-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-left: 12px; padding-right: 12px; }
.hs-sec-top { padding: 48px 0 30px; }
.hs-sec { padding: 0 0 110px; }

/* ---------- ecosystem + ricerca ---------- */
.hs-page .hs-top { position: relative; display: block !important; grid-template-columns: none !important; text-align: center; }
.hs-page .hs-top .hs-brandline { display: block; text-align: center; }
.hs-page .hs-top .hs-search { max-width: 720px; margin: 0 auto; text-align: left; }

/* pallini animati decorativi */
.hs-orb { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.hs-orb--1 { top: 6px;   left: 4%;   width: 14px; height: 14px; background: var(--hs-brand); opacity: .9;  animation: hsOrb 7s ease-in-out infinite; }
.hs-orb--2 { top: 58px;  left: 14%;  width: 8px;  height: 8px;  background: #B665BC; opacity: .8; animation: hsOrb 5.6s ease-in-out infinite .6s; }
.hs-orb--3 { top: 2px;   right: 8%;  width: 20px; height: 20px; background: #F0C134; opacity: .85; animation: hsOrb 8.4s ease-in-out infinite .3s; }
.hs-orb--4 { bottom: 8px; right: 17%; width: 10px; height: 10px; background: #2A84BB; opacity: .75; animation: hsOrb 6.4s ease-in-out infinite 1.1s; }
.hs-orb--5 { bottom: 22px; left: 26%; width: 6px;  height: 6px;  background: var(--hs-brand-dark); opacity: .7; animation: hsOrb 5.2s ease-in-out infinite .9s; }
@keyframes hsOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    35%      { transform: translate(6px, -12px) scale(1.14); }
    70%      { transform: translate(-5px, -5px) scale(.92); }
}
.hs-brandline {
    position: relative; z-index: 1; margin-bottom: 26px;
    font-size: clamp(30px, 3.6vw, 54px); line-height: 1; font-weight: 800; letter-spacing: -.035em;
    background: linear-gradient(100deg, #1d2020 0%, #21a085 62%, #7fd8c4 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hs-search {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 10px; background: #fff;
    border: 1.5px solid var(--hs-border); border-radius: 40px; padding: 8px 8px 8px 24px;
    box-shadow: 0 22px 54px -30px rgba(29,32,32,.26);
}
.hs-search__ico { color: var(--hs-brand); font-size: 17px; }
.hs-page .hs-search__input {
    flex: 1; min-width: 0; height: 48px; border: 0; outline: none; background: transparent;
    font-family: inherit; font-size: 15.5px; font-weight: 500; color: var(--hs-text); box-shadow: none; padding: 0;
}
.hs-search__btn {
    display: inline-flex; align-items: center; height: 52px; padding: 0 28px; border-radius: 40px;
    background: var(--hs-brand); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap;
}

/* ---------- shell ---------- */
.hs-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 34px; align-items: start; }
.hs-main { min-width: 0; }

/* ---------- sidebar ---------- */
.hs-side { position: sticky; top: 24px; background: var(--hs-bg); border: 1px solid var(--hs-border); border-radius: 24px; padding: 26px; }
.hs-side__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.hs-side__title { font-size: 15px; font-weight: 800; }
.hs-side__reset { border: 0; background: transparent; padding: 0; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--hs-brand); cursor: pointer; }
.hs-side__group { margin-bottom: 26px; }
.hs-side__label { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--hs-meta); margin-bottom: 13px; }
.hs-rows { display: grid; gap: 8px; }
.hs-page .hs-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
    padding: 9px 12px; border: 1.5px solid var(--hs-border); border-radius: 14px; background: #fff;
    font-family: inherit; font-size: 13px; font-weight: 600; color: var(--hs-text); text-align: left; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.hs-page .hs-row:hover { border-color: #d7dee8; }
.hs-page .hs-row.is-active { background: var(--hs-brand-soft); border-color: var(--hs-brand); }
.hs-row__left { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.hs-row__ico { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; }
.hs-row__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-row__count { font-size: 11px; font-weight: 700; color: var(--hs-meta); }

.hs-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-page .hs-pill {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; white-space: nowrap;
    padding: 8px 14px; border: 1px solid var(--hs-border); border-radius: 40px; background: #fff;
    font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--hs-muted); cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.hs-page .hs-pill.is-active { background: var(--hs-brand); border-color: var(--hs-brand); color: #fff; font-weight: 700; }

.hs-side__cta { border-top: 1px solid var(--hs-border); padding-top: 22px; }
.hs-side__cta-title { font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.hs-side__cta-text { font-size: 12.5px; line-height: 1.55; color: var(--hs-muted); margin: 0 0 16px; }

/* ---------- banner ---------- */
.hs-banners { display: grid; grid-template-columns: 1.42fr 1fr; gap: 14px; margin-bottom: 26px; }
.hs-banners__side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.hs-banner { display: block; width: 100%; height: 100%; min-height: 158px; object-fit: cover; border-radius: 24px; }
.hs-banner--main { min-height: 330px; }

/* ---------- chip filtri attivi ---------- */
.hs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hs-page .hs-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid #cfe9e2;
    border-radius: 40px; background: var(--hs-brand-soft); color: var(--hs-brand-dark);
    font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}

/* ---------- card moduli ---------- */
.hs-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.hs-card {
    display: flex; flex-direction: column; height: 100%; background: #fff;
    border: 1px solid var(--hs-border); border-radius: 22px; overflow: hidden;
    animation: hsRise 340ms ease both; transition: border-color .16s ease, box-shadow .16s ease;
}
.hs-card:hover { border-color: #d7dee8; box-shadow: 0 22px 46px -28px rgba(29,32,32,.22); }
.hs-card__img { display: block; width: 100%; height: 168px; flex: 0 0 auto; object-fit: cover; border-bottom: 1px solid var(--hs-border); }
.hs-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.hs-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.hs-card__ico { width: 46px; height: 46px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; }
.hs-card__linea { padding: 6px 12px; border-radius: 40px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.hs-card__title { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0 0 9px; }
.hs-card__desc { font-size: 14px; line-height: 1.6; color: var(--hs-muted); margin: 0 0 18px; }
.hs-card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.hs-page .hs-tag { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 40px; background: var(--hs-bg); border: 1px solid var(--hs-border); font-size: 10.5px; font-weight: 600; color: var(--hs-muted); line-height: 1.2; white-space: nowrap; }
.hs-card__spacer { flex: 1; }
.hs-page .hs-card__foot {
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
    align-items: center; justify-content: space-between; gap: 12px;
    padding-top: 18px; border-top: 1px solid var(--hs-line);
}
.hs-page .hs-card__foot > .hs-tip { flex: 1 1 auto; min-width: 0; }
.hs-page .hs-card__foot > .hs-btn--buy { flex: 0 0 auto; margin: 0 0 0 auto; width: auto; }

.hs-price { display: flex; flex-direction: column; gap: 3px; cursor: help; }
.hs-price__row { display: flex; align-items: baseline; gap: 5px; }
.hs-price__year { font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.hs-price__per { font-size: 12px; font-weight: 600; color: var(--hs-meta); }
.hs-price__setup { font-size: 11.5px; font-weight: 600; color: var(--hs-meta); }

.hs-tip { position: relative; display: inline-flex; }
.hs-tip__bubble {
    position: absolute; bottom: calc(100% + 12px); left: 0; z-index: 6; width: 240px;
    padding: 14px 16px; border-radius: 14px; background: var(--hs-text); color: #fff;
    font-size: 11.5px; font-weight: 500; line-height: 1.55;
    box-shadow: 0 18px 40px -14px rgba(29,32,32,.4);
    opacity: 0; visibility: hidden; transition: opacity .15s ease;
}
.hs-tip__bubble strong { display: block; font-size: 13px; font-weight: 700; margin: 10px 0 5px; }
.hs-tip__bubble strong:first-child { margin-top: 0; }
.hs-tip:hover .hs-tip__bubble { opacity: 1; visibility: visible; }

/* ---------- stato vuoto ---------- */
.hs-empty { background: var(--hs-bg); border: 1px solid var(--hs-border); border-radius: 24px; padding: 64px 32px; text-align: center; }
.hs-empty > i { font-size: 30px; color: var(--hs-meta); }
.hs-empty__title { font-size: 19px; font-weight: 700; margin: 18px 0 8px; }
.hs-empty__text { font-size: 14.5px; color: var(--hs-muted); margin: 0 0 24px; }

/* ---------- bottoni ---------- */
.hs-page .hs-btn, .hs-modal .hs-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px;
    border: 0; border-radius: 14px; font-family: inherit; font-size: 14px; font-weight: 700;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .16s ease, color .16s ease, transform .12s ease;
}
.hs-page .hs-btn:active, .hs-modal .hs-btn:active { transform: translateY(1px); }
.hs-page a.hs-btn--brand, .hs-page button.hs-btn--brand,
.hs-modal a.hs-btn--brand, .hs-modal button.hs-btn--brand {
    background: #21a085 !important; color: #fff !important; border: 0 !important;
    -webkit-text-fill-color: #fff;
}
.hs-page a.hs-btn--brand:hover, .hs-page button.hs-btn--brand:hover,
.hs-modal a.hs-btn--brand:hover, .hs-modal button.hs-btn--brand:hover {
    background: #21a085 !important; color: #fff !important;
}
.hs-btn--sm { height: 42px; padding: 0 20px; font-size: 12.5px; border-radius: 12px; }
.hs-btn--buy { height: 42px; padding: 0 18px; font-size: 12.5px; border-radius: 12px; white-space: nowrap; }
.hs-page .hs-btn--ghost, .hs-modal .hs-btn--ghost {
    background: #fff; border: 1.5px solid #d7dee8 !important; color: var(--hs-text) !important;
    font-weight: 600; height: 52px; border-radius: 16px;
}
.hs-page .hs-btn--ghost:hover, .hs-modal .hs-btn--ghost:hover { background: var(--hs-bg); border-color: #c3ccd8 !important; }
.hs-btn--block { flex: 1; min-width: 180px; height: 52px; border-radius: 16px; font-size: 14.5px; }
.hs-page a.hs-btn--light { background: #fff; color: var(--hs-brand-dark) !important; height: 56px; padding: 0 32px; border-radius: 16px; }
.hs-page a.hs-btn--light:hover { background: var(--hs-brand-soft); color: var(--hs-brand-dark) !important; }
.hs-page a.hs-btn--outline-light { background: transparent; border: 1.5px solid rgba(255,255,255,.7) !important; color: #fff !important; font-weight: 600; height: 56px; padding: 0 32px; border-radius: 16px; }
.hs-page a.hs-btn--outline-light:hover { background: rgba(255,255,255,.2); color: #fff !important; }

/* ---------- CTA ---------- */
.hs-cta-section { padding: 0 0 110px; }
.hs-cta { position: relative; background: var(--hs-brand); border-radius: 32px; padding: 74px 56px; text-align: center; overflow: hidden; }
.hs-cta__blob { position: absolute; top: -90px; right: -70px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.16); animation: hsFloat 12s ease-in-out infinite; }
.hs-cta__title { position: relative; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -.015em; color: #fff; margin: 0 0 18px; text-wrap: pretty; }
.hs-cta__text { position: relative; font-size: 17px; line-height: 1.65; color: rgba(255,255,255,.9); margin: 0 auto 34px; max-width: 560px; }
.hs-cta__actions { position: relative; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- modali ---------- */
.hs-modal {
    position: fixed; inset: 0; z-index: 1060; background: rgba(29,32,32,.55);
    display: flex; align-items: center; justify-content: center; padding: 24px;
    font-family: 'Poppins', system-ui, sans-serif; color: #1d2020;
}
.hs-modal__box { width: min(560px, 100%); max-height: 88vh; overflow: auto; background: #fff; border-radius: 28px; box-shadow: 0 40px 90px -30px rgba(29,32,32,.5); animation: hsRise 260ms ease both; }
.hs-modal__box--sm { width: min(460px, 100%); padding: 44px 34px; text-align: center; }
.hs-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 28px; border-bottom: 1px solid #e9ebec; }
.hs-modal__head-left { display: flex; align-items: center; gap: 12px; }
.hs-modal__ico { width: 40px; height: 40px; border-radius: 13px; background: #e9f6f3; color: #1a8068; display: inline-flex; align-items: center; justify-content: center; }
.hs-modal__title { font-size: 16px; font-weight: 800; line-height: 1.2; }
.hs-modal__sub { font-size: 12px; color: #717182; margin-top: 2px; }
.hs-modal__close { width: 36px; height: 36px; border: 0; border-radius: 11px; background: #f9f9fa; color: #5a6672; font-size: 14px; cursor: pointer; }
.hs-modal__items { padding: 22px 28px 0; display: grid; gap: 12px; }
.hs-modal__foot { padding: 22px 28px 26px; }
.hs-modal__note { font-size: 11.5px; line-height: 1.55; color: #717182; margin: 16px 0 18px; }
.hs-modal__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hs-modal__error { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fdeaea; color: #c1121f; font-size: 12.5px; font-weight: 600; }

.hs-cart__row { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid #e9ebec; border-radius: 16px; }
.hs-cart__ico { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; }
.hs-cart__info { flex: 1; min-width: 0; }
.hs-cart__name { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.hs-cart__meta { font-size: 11.5px; color: #717182; margin-top: 3px; }
.hs-cart__prices { text-align: right; white-space: nowrap; }
.hs-cart__year { font-size: 14px; font-weight: 800; }
.hs-cart__year span { font-size: 11px; font-weight: 600; color: #717182; }
.hs-cart__setup { font-size: 11px; font-weight: 600; color: #717182; margin-top: 3px; }
.hs-cart__del { width: 32px; height: 32px; flex: 0 0 auto; border: 0; border-radius: 10px; background: #f9f9fa; color: #717182; font-size: 12px; cursor: pointer; }
.hs-cart__empty { padding: 30px 0; text-align: center; color: #717182; }
.hs-cart__empty > i { font-size: 24px; color: #c7ccd3; }
.hs-cart__empty > div { font-size: 15px; font-weight: 700; color: #1d2020; margin: 14px 0 6px; }
.hs-cart__empty > p { font-size: 13.5px; margin: 0; }

.hs-totals { padding: 18px 0; border-top: 1px solid #e9ebec; display: grid; gap: 12px; }
.hs-totals__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13.5px; font-weight: 600; color: #5a6672; }
.hs-totals__row strong { font-size: 19px; font-weight: 800; color: #1d2020; }
.hs-totals__row--year strong { font-size: 24px; color: #1a8068; }

.hs-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.hs-form input, .hs-form textarea {
    width: 100%; border: 1.5px solid #e9ebec; border-radius: 14px; padding: 12px 14px;
    font-family: inherit; font-size: 13.5px; color: #1d2020; background: #fff; outline: none;
}
.hs-form input:focus, .hs-form textarea:focus { border-color: #21a085; }
.hs-form textarea { grid-column: 1 / -1; resize: vertical; }

.hs-done__ico { width: 62px; height: 62px; border-radius: 50%; background: #e9f6f3; color: #1a8068; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; }
.hs-done__title { font-size: 20px; font-weight: 800; margin: 22px 0 10px; }
.hs-done__text { font-size: 14px; line-height: 1.6; color: #5a6672; margin: 0 0 26px; }

/* ---------- responsive ---------- */
@media (max-width: 1299px) { .hs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1199px) { .hs-sec-top { padding: 36px 0 24px; } }
@media (max-width: 1399px) { .hs-page .hs-wrap { max-width: 1140px; } }
@media (max-width: 1199px) { .hs-page .hs-wrap { max-width: 960px; } }
@media (max-width: 991px) {
    .hs-page .hs-wrap { max-width: 720px; }
    .hs-orb { display: none; }
    .hs-shell { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .hs-side { position: static; }
    .hs-banners { grid-template-columns: minmax(0, 1fr); }
    .hs-cta { padding: 56px 28px; }
}
@media (max-width: 767px) { .hs-page .hs-wrap { max-width: 100%; padding-left: 16px; padding-right: 16px; } }
@media (max-width: 700px) {
    .hs-cards { grid-template-columns: minmax(0, 1fr); }
    .hs-form { grid-template-columns: minmax(0, 1fr); }
    .hs-sec-top { padding: 28px 0 20px; }
}
