/* ============================================================================
   desktop.css — /portal/desktop (TickHosting Desktop landing)
   Estende style.css (navbar, footer, token base). Qui vivono solo gli stili
   propri della pagina.
   ========================================================================== */

:root {
    --brand: #ff7a29;
    --brand-soft: rgba(255, 122, 41, 0.14);
    --ok: #10b981;
    --radius-lg: 22px;
    --radius-md: 14px;
}

.dl-main {
    padding-top: 80px;
}

/* --- Breadcrumb ---------------------------------------------------------- */
.dl-breadcrumb {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 5% 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dl-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.dl-breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    opacity: 0.4;
}

.dl-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.dl-breadcrumb a:hover {
    color: var(--text-main);
}

/* --- Hero ---------------------------------------------------------------- */
.dl-hero {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 5% 40px;
    text-align: center;
    overflow: hidden;
}

.dl-hero::before {
    content: "";
    position: absolute;
    inset: -40% 50% auto;
    width: 900px;
    height: 900px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 122, 41, 0.16) 0%, rgba(255, 122, 41, 0) 62%);
    pointer-events: none;
    z-index: -1;
    animation: dl-breathe 9s var(--ease-apple) infinite alternate;
}

@keyframes dl-breathe {
    from { opacity: 0.55; transform: translateX(-50%) scale(0.92); }
    to   { opacity: 1;    transform: translateX(-50%) scale(1.06); }
}

.dl-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.dl-pill strong {
    color: var(--text-main);
    font-weight: 600;
}

.dl-pill .dl-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
    animation: dl-ping 2.4s infinite;
}

@keyframes dl-ping {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.dl-hero h1 {
    margin: 22px 0 0;
    font-size: clamp(2.4rem, 6vw, 4.1rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 700;
}

.dl-hero h1 .dl-grad {
    background: linear-gradient(96deg, #ffb27a 0%, var(--brand) 45%, #ff4d4d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dl-hero-sub {
    margin: 20px auto 0;
    max-width: 640px;
    font-size: 1.06rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* --- Download CTA -------------------------------------------------------- */
.dl-cta {
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 30px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease-apple), box-shadow 0.25s var(--ease-apple), background 0.25s;
}

.dl-btn-primary {
    background: var(--accent);
    color: #08080a;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.12);
}

.dl-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(255, 255, 255, 0.2);
}

.dl-btn-primary svg { width: 20px; height: 20px; }

.dl-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    color: var(--text-main);
    padding: 13px 24px;
    font-size: 0.9rem;
}

.dl-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-2px);
}

.dl-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.dl-cta-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dl-cta-meta a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dl-cta-meta a:hover { color: var(--text-main); }

/* --- Shot in hero -------------------------------------------------------- */
.dl-shot-wrap {
    position: relative;
    max-width: 1080px;
    margin: 54px auto 0;
    padding: 0 5%;
    perspective: 1600px;
}

.dl-shot {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.03);
    transform: rotateX(7deg) scale(0.985);
    transform-origin: top center;
    transition: transform 0.6s var(--ease-apple);
}

.dl-shot:hover { transform: rotateX(0deg) scale(1); }

.dl-shot img { display: block; width: 100%; height: auto; }

.dl-shot-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border);
}

.dl-shot-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.dl-shot-bar span:first-child { background: #ff5f57; }
.dl-shot-bar span:nth-child(2) { background: #febc2e; }
.dl-shot-bar span:nth-child(3) { background: #28c840; }

.dl-shot-bar em {
    margin-left: auto;
    font-style: normal;
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* --- Sezioni generiche --------------------------------------------------- */
.dl-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 90px 5% 0;
    /* la navbar e' fixed a 80px: senza questo l'ancora #downloads finisce sotto */
    scroll-margin-top: 110px;
}

.dl-section-head {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 46px;
}

.dl-eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand);
    font-weight: 600;
}

.dl-section-head h2 {
    margin-top: 12px;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.dl-section-head p {
    margin-top: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* --- Griglia piattaforme ------------------------------------------------- */
.dl-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.dl-platform {
    position: relative;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: border-color 0.3s, transform 0.3s var(--ease-apple), background 0.3s;
}

.dl-platform:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    background: var(--surface-highlight, #1c1c1f);
}

.dl-platform.is-detected {
    border-color: rgba(255, 122, 41, 0.5);
    background: linear-gradient(180deg, var(--brand-soft), rgba(255, 122, 41, 0));
}

.dl-platform-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand);
    border: 1px solid rgba(255, 122, 41, 0.4);
    border-radius: 999px;
    padding: 4px 9px;
}

.dl-platform-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    margin-bottom: 16px;
}

.dl-platform-icon svg { width: 22px; height: 22px; }

.dl-platform h3 {
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.dl-platform p {
    margin-top: 7px;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.55;
    min-height: 42px;
}

.dl-platform-links {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dl-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-size: 0.82rem;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s;
}

.dl-file:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}

.dl-file .dl-size { color: var(--text-muted); font-size: 0.74rem; }

.dl-file.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* --- Feature rows (screenshot alternati) --------------------------------- */
.dl-feature {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 54px;
    align-items: center;
    padding: 64px 0;
    border-top: 1px solid var(--border);
}

.dl-feature:first-of-type { border-top: none; }

.dl-feature.is-reverse .dl-feature-copy { order: 2; }

.dl-feature-copy h3 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-top: 12px;
}

.dl-feature-copy p {
    margin-top: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.dl-feature-list {
    margin-top: 20px;
    list-style: none;
    display: grid;
    gap: 10px;
}

.dl-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.dl-feature-list li::before {
    content: "";
    flex: none;
    margin-top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

.dl-feature-shot {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
    transition: transform 0.5s var(--ease-apple);
}

.dl-feature-shot:hover { transform: translateY(-5px); }

.dl-feature-shot img { display: block; width: 100%; height: auto; }

/* --- Griglia capability -------------------------------------------------- */
.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.dl-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: transform 0.3s var(--ease-apple), border-color 0.3s;
}

.dl-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.16);
}

.dl-card-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 14px;
}

.dl-card-icon svg { width: 18px; height: 18px; }

.dl-card h4 { font-size: 1rem; letter-spacing: -0.01em; }

.dl-card p {
    margin-top: 8px;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* --- Steps --------------------------------------------------------------- */
.dl-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    counter-reset: dl-step;
}

.dl-step {
    position: relative;
    padding: 26px 24px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
}

.dl-step::before {
    counter-increment: dl-step;
    content: counter(dl-step);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #08080a;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.dl-step h4 { font-size: 1rem; }

.dl-step p {
    margin-top: 8px;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Requisiti / note ---------------------------------------------------- */
.dl-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.dl-spec span {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.dl-spec strong {
    display: block;
    margin-top: 6px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* --- FAQ ----------------------------------------------------------------- */
.dl-faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }

.dl-faq details {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    overflow: hidden;
}

.dl-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-size: 0.96rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dl-faq summary::-webkit-details-marker { display: none; }

.dl-faq summary::after {
    content: "+";
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.3s var(--ease-apple);
}

.dl-faq details[open] summary::after { transform: rotate(45deg); }

.dl-faq p {
    padding: 0 22px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- CTA finale ---------------------------------------------------------- */
.dl-final {
    margin: 100px auto 0;
    max-width: 1180px;
    padding: 0 5%;
}

.dl-final-inner {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 64px 28px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        radial-gradient(120% 140% at 50% 0%, rgba(255, 122, 41, 0.18) 0%, rgba(255, 122, 41, 0) 55%),
        var(--surface);
}

.dl-final-inner h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    letter-spacing: -0.03em;
}

.dl-final-inner p {
    margin: 14px auto 28px;
    max-width: 520px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* --- Reveal on scroll ---------------------------------------------------- */
.dl-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease-apple), transform 0.7s var(--ease-apple);
}

.dl-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .dl-reveal { opacity: 1; transform: none; transition: none; }
    .dl-hero::before, .dl-pill .dl-dot { animation: none; }
    .dl-shot { transform: none; }
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
    .dl-feature {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 44px 0;
    }
    .dl-feature.is-reverse .dl-feature-copy { order: 0; }
    .dl-section { padding-top: 64px; }
    .dl-shot { transform: none; }
}

@media (max-width: 600px) {
    .dl-hero { padding-top: 38px; }
    .dl-btn { width: 100%; }
    .dl-cta-row { width: 100%; }
}
