/* ==========================================================================
   Index Premium 2026 — scroll progress and subtle reveal animations.
   Cohesive, clean medical palette: primary blue, neutral greys, minimal green.
   ========================================================================== */

/* ---------- Scroll progress bar ------------------------------------------ */
.idx-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
    z-index: 10000;
    transition: width 0.1s linear;
}

/* ---------- Reveal enhancements ------------------------------------------ */
html.js-reveal .reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

html.js-reveal .reveal.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

html.js-reveal .reveal.in-view.reveal-d1 { transition-delay: 0.08s; }
html.js-reveal .reveal.in-view.reveal-d2 { transition-delay: 0.16s; }
html.js-reveal .reveal.in-view.reveal-d3 { transition-delay: 0.24s; }
html.js-reveal .reveal.in-view.reveal-d4 { transition-delay: 0.32s; }
html.js-reveal .reveal.in-view.reveal-d5 { transition-delay: 0.40s; }

/* ---------- Animated counters -------------------------------------------- */
.idx-counter {
    font-variant-numeric: tabular-nums;
}

/* ---------- Static professional text accent ----------------------------- */
.text-gradient {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: var(--primary) !important;
    color: var(--primary) !important;
    animation: none !important;
}

/* Remove badge sheen */
.section-badge::after {
    display: none !important;
}

/* ---------- Cohesive cleanup overrides ------------------------------------ */

/* Quick Start: remove multicolour blobs / glows */
.quick-start {
    background: #f8fafc !important;
}
.quick-start::before,
.quick-start-media-glow {
    display: none !important;
}
.quick-start-title span {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* Section badges: single blue tint, no green tint */
.section-badge {
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
    color: var(--primary) !important;
}

/* App feature icons: single blue instead of rainbow gradients */
.anf-icon {
    background: var(--primary) !important;
}

/* Video heading gradient text → solid blue */
#video h2 span {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* Social icon: remove Instagram rainbow, use primary blue */
a[href*="instagram.com"] > div:first-child {
    background: var(--primary) !important;
}

/* Video star stat: blue instead of green */
#video p.idx-counter[data-prefix="★ "] {
    color: var(--primary) !important;
}

/* Dove Siamo modal header icon: blue instead of green */
#doveSiamoModal > div > div:first-child > div:first-child > div:first-child {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

/* Dove Siamo modal CTA: remove purple, use blue + outline blue */
#doveSiamoModal a[href="/tipo-paziente"] {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}
#doveSiamoModal a[href="/tipo-paziente"]:hover {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45) !important;
    transform: translateY(-2px) !important;
}
#doveSiamoModal a[href="../prenota.php"] {
    background: #fff !important;
    color: #2563eb !important;
    border: 1px solid #2563eb !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15) !important;
}
#doveSiamoModal a[href="../prenota.php"]:hover {
    background: #eff6ff !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25) !important;
    transform: translateY(-2px) !important;
}

/* Support modal unified to primary blue */
.support-modal-header,
.support-form-submit {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}
.support-contact-type label:hover,
.support-contact-type input:checked + label,
.support-contact-type input:focus-visible + label {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}
.support-contact-type input:checked + label {
    background: rgba(37, 99, 235, 0.08) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12) !important;
}
.support-form-input:focus,
.support-form-textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}
.support-privacy a {
    color: var(--primary) !important;
}
.support-privacy input {
    accent-color: var(--primary);
}

/* Remove leftover sheen/animation hooks */
.hero-blob,
.cta-box::before,
.section-badge::after {
    animation: none !important;
    display: none !important;
}
.experience-badge {
    animation: none !important;
}

.home-store {
    padding: clamp(64px, 8vw, 108px) 0;
    background: #f8fafc;
}
.home-store-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    align-items: center;
    gap: clamp(36px, 6vw, 76px);
    overflow: hidden;
    padding: clamp(38px, 5vw, 68px);
    border: 1px solid rgba(15, 118, 110, .14);
    border-radius: 32px;
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 52%, #ecfeff 100%);
    box-shadow: 0 30px 80px -58px rgba(15, 23, 42, .45);
}
.home-store-copy { position: relative; z-index: 2; }
.home-store-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(5, 150, 105, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .76);
    color: #047857;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.home-store-copy h2 {
    max-width: 620px;
    margin: 0 0 18px;
    color: #0f2f28;
    font-size: clamp(2.15rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.045em;
}
.home-store-copy > p {
    max-width: 610px;
    margin: 0 0 24px;
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.75;
}
.home-store-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.home-store-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 10px;
    background: rgba(255, 255, 255, .7);
    color: #334155;
    font-size: .78rem;
    font-weight: 700;
}
.home-store-trust i { color: #059669; }
.home-store-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.home-store-primary,
.home-store-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 20px;
    border-radius: 13px;
    font-size: .92rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.home-store-primary {
    background: linear-gradient(135deg, #047857, #059669);
    color: #fff;
    box-shadow: 0 14px 28px -16px rgba(5, 150, 105, .65);
}
.home-store-secondary { border: 1px solid rgba(5, 150, 105, .3); background: rgba(255,255,255,.72); color: #047857; }
.home-store-primary:hover,
.home-store-secondary:hover { transform: translateY(-2px); }
.home-store-primary:hover { box-shadow: 0 18px 32px -16px rgba(5, 150, 105, .8); }
.home-store-secondary:hover { background: #fff; }
.home-store-products {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 44px 10px 8px;
}
.home-store-product {
    position: relative;
    z-index: 2;
    display: flex;
    width: 30%;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 12px 10px 11px;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 20px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 38px -28px rgba(15, 23, 42, .6);
    color: #334155;
    font-size: .68rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}
.home-store-product img {
    display: block;
    width: 100%;
    height: 174px;
    margin-bottom: 9px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.home-store-product--main { width: 36%; transform: translateY(-18px); }
.home-store-product--main img { height: 205px; }
.home-store-product:hover { transform: translateY(-7px); box-shadow: 0 25px 45px -28px rgba(15, 23, 42, .72); }
.home-store-product--main:hover { transform: translateY(-25px); }
.home-store-product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: .56rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.home-store-orbit {
    position: absolute;
    z-index: 0;
    border: 1px solid rgba(5, 150, 105, .12);
    border-radius: 50%;
    pointer-events: none;
}
.home-store-orbit--one { width: 390px; height: 390px; }
.home-store-orbit--two { width: 280px; height: 280px; border-color: rgba(37, 99, 235, .1); }
@media (max-width: 1024px) {
    .home-store-card { grid-template-columns: 1fr; }
    .home-store-copy { text-align: center; }
    .home-store-copy h2,
    .home-store-copy > p { margin-right: auto; margin-left: auto; }
    .home-store-trust,
    .home-store-actions { justify-content: center; }
    .home-store-products { width: min(100%, 620px); margin: 0 auto; }
}
@media (max-width: 640px) {
    .home-store { padding: 54px 0; }
    .home-store-card { padding: 30px 18px; border-radius: 24px; }
    .home-store-copy h2 { font-size: 2rem; }
    .home-store-copy > p { font-size: .92rem; }
    .home-store-trust { display: grid; grid-template-columns: 1fr; }
    .home-store-trust span { justify-content: center; }
    .home-store-actions { display: grid; grid-template-columns: 1fr; }
    .home-store-products { gap: 7px; padding-right: 0; padding-left: 0; }
    .home-store-product { width: 31%; padding: 8px 5px; border-radius: 14px; font-size: .58rem; }
    .home-store-product--main { width: 36%; transform: translateY(-10px); }
    .home-store-product img { height: 108px; }
    .home-store-product--main img { height: 128px; }
    .home-store-product-badge { display: none; }
}

/* ---------- Reduced motion ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .text-gradient,
    .reveal {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
