/* Altezza della social-bar fissa sul mobile (16px top + 56px altezza).
   Usata dal drop del bottone Supporto e dal padding del contenuto. */
:root{ --barra-fissa-h:72px }

/* ═══════════════════════════════════════════════════════════════
   MotoSpeed Landing Page — Style (chiaro editoriale MotoPath)
   Palette condivisa con motopath.it e espositon.it
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg:           #faf8f5;
    --bg-card:      #ffffff;
    --bg-card-hover:#fbfaf7;
    --bg-alt:       #f2ede4;
    --accent:       #CC0000;
    --accent-soft:  rgba(204, 0, 0, 0.08);
    --text:         #1a1a22;
    --text-secondary:#5c5c70;
    --border:       rgba(0, 0, 0, 0.08);
    --border-strong:rgba(0, 0, 0, 0.15);
    --radius:       16px;
    --radius-sm:    10px;
    --max-width:    1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 60px;
    overflow: hidden;
}

.hero-content {
    max-width: var(--max-width);
    width: 100%;
    display: flex;
    align-items: center;
    gap: 60px;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-soft);
    border: 1px solid rgba(204, 0, 0, 0.18);
    border-radius: 40px;
    padding: 6px 18px 6px 6px;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent);
}

.app-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent);
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-appstore {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
}
.btn-appstore:hover {
    transform: scale(1.05);
    opacity: 0.9;
}
.hero-cta {
    flex-wrap: wrap;
}
.download-cta .btn-appstore-large + .btn-appstore-large { margin-left: 12px; }

.appstore-badge { width: 150px; height: 46px; }
.appstore-badge-lg { width: 185px; height: 58px; }

.hero-mockup {
    flex: 0 0 300px;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #0a0a0f;
    border-radius: 36px;
    border: 3px solid #111;
    overflow: hidden;
    box-shadow:
        0 0 80px rgba(204, 0, 0, 0.12),
        0 30px 60px rgba(0, 0, 0, 0.18);
    position: relative;
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Sezione "Come funziona" — video tutorial (embed YouTube) ── */
.tutorial {
    padding: 90px 0;
}
.video-embed {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 44px auto 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(204, 0, 0, 0.12), 0 24px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.video-embed::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}
.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Placeholder se immagine non caricata */
.phone-frame img[src=""]::after,
.phone-frame img:not([src])::after {
    content: 'Screenshot';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.hero-bg-glow {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(204, 0, 0, 0.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL HINT
   ═══════════════════════════════════════════════════════════════ */

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 13px 28px;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(204, 0, 0, 0.38);
    animation: bounce-hint 1.8s ease-in-out infinite;
    z-index: 2;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.scroll-hint:hover {
    background: #b00000;
    box-shadow: 0 12px 32px rgba(204, 0, 0, 0.5);
}

.scroll-hint svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

@keyframes bounce-hint {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-hint { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   TELEMETRIA — Sezione showcase (DISPONIBILE da 1.0.7, 29/04/2026)
   Sostituisce la vecchia sezione .coming-soon (telemetria in arrivo).
   Pattern: header centrato + grid 2x2 immagini + lista feature.
   ═══════════════════════════════════════════════════════════════ */

.telemetry-showcase {
    padding: 56px 0 40px;
}

.telemetry-card {
    position: relative;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--accent-soft) 100%);
    border: 1px solid rgba(204, 0, 0, 0.22);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 40px 44px 36px;
    box-shadow: 0 8px 24px rgba(204, 0, 0, 0.06);
    overflow: hidden;
}

.telemetry-card::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 220px; height: 220px;
    background: radial-gradient(circle at top right, rgba(204, 0, 0, 0.08), transparent 70%);
    pointer-events: none;
}

.telemetry-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.telemetry-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 16px;
}

.telemetry-badge-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.telemetry-header h2 {
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.2;
    color: var(--text);
}

.telemetry-header p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0 auto;
    max-width: 560px;
}

.telemetry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.telemetry-shot {
    text-align: center;
}

.telemetry-shot img {
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    background: #1a1a22;
    display: block;
    margin: 0 auto 12px;
}

.telemetry-shot figcaption {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.telemetry-shot .shot-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.telemetry-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 28px;
    position: relative;
    z-index: 1;
}

.telemetry-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
}

.telemetry-features li::before {
    content: "▸";
    flex-shrink: 0;
    color: var(--accent);
    font-weight: 700;
    margin-top: 1px;
}

.telemetry-features li strong {
    font-weight: 700;
    color: var(--text);
}

@media (max-width: 768px) {
    .telemetry-showcase {
        padding: 36px 0 24px;
    }
    .telemetry-card {
        padding: 28px 20px 24px;
    }
    .telemetry-header h2 {
        font-size: 1.5rem;
    }
    .telemetry-header p {
        font-size: 0.94rem;
    }
    .telemetry-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 28px;
    }
    .telemetry-shot img {
        max-width: 240px;
    }
    .telemetry-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════════ */

.features {
    padding: 76px 0;
}

/* Righe alternate: screenshot grande + testo a fianco */
.feat-rows {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 44px;
}

.feat-row {
    display: flex;
    align-items: stretch;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.feat-row:hover {
    border-color: rgba(204, 0, 0, 0.22);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
}

.feat-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feat-shot {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(160deg, var(--bg-alt) 0%, #ece5d8 100%);
}

.feat-shot img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 460px;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.feat-text {
    flex: 1;
    align-self: center;
    padding: 36px 44px;
}

.feat-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    padding: 0;
    color: var(--text);
}

.feat-text > p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 14px;
    padding: 0;
}

.feat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feat-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.feat-list li::before {
    content: "";
    flex: 0 0 16px;
    height: 16px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23CC0000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

@media (max-width: 820px) {
    .feat-row,
    .feat-row:nth-child(even) {
        flex-direction: column;
    }
    .feat-shot {
        flex: 0 0 auto;
        width: 100%;
        padding: 26px 26px 0;
    }
    .feat-shot img {
        max-height: 380px;
    }
    .feat-text {
        padding: 24px 26px 28px;
    }
    .feat-text h3 {
        font-size: 1.3rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DESCRIZIONE DETTAGLIATA
   ═══════════════════════════════════════════════════════════════ */

.description {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.desc-blocks {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 780px;
    margin: 0 auto;
}

.desc-block {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.desc-number {
    flex: 0 0 48px;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.45;
    line-height: 1.4;
    text-align: right;
    padding-top: 2px;
}

.desc-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.desc-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.desc-content p:last-child {
    margin-bottom: 0;
}

.desc-tip {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 18px;
    margin-top: 8px;
}

.desc-tip strong {
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 700px) {
    .desc-block {
        flex-direction: column;
        gap: 8px;
    }
    .desc-number {
        text-align: left;
        font-size: 1.3rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SCREENSHOTS
   ═══════════════════════════════════════════════════════════════ */

.screenshots {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
    max-width: 780px;
    margin: 0 auto;
}

.screenshot-item {
    text-align: center;
}

.screenshot-item img {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 1 / 2;
    object-fit: cover;
    border-radius: 24px;
    border: 2px solid var(--border);
    background: #0a0a0f;
    margin-bottom: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.screenshot-item:hover img {
    transform: scale(1.03);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.screenshot-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.screenshot-watch img {
    aspect-ratio: auto;
    max-width: 180px;
    height: auto;
    max-height: 280px;
    border-radius: 40px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 16px;
    }
}

/* Accessibilità: outline visibile su tutti gli elementi interattivi al focus da tastiera */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   RECENSIONI / REVIEWS
   ═══════════════════════════════════════════════════════════════ */

.reviews {
    padding: 80px 0;
}

.reviews h2 {
    text-align: center;
    margin-bottom: 32px;
}

.review-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.review-card blockquote {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--text);
}

.review-card figcaption {
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════════ */

.pricing {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.pricing-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-card .trial {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
}

.pricing-card ul {
    list-style: none;
}

.pricing-card ul li {
    padding: 6px 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 22px;
}

.pricing-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.22);
}

.pricing-card.pro {
    border-color: rgba(204, 0, 0, 0.35);
    background: linear-gradient(160deg, var(--bg-card) 0%, rgba(204, 0, 0, 0.04) 100%);
    position: relative;
    box-shadow: 0 10px 28px rgba(204, 0, 0, 0.08);
}

.pricing-card.pro .price {
    color: var(--accent);
}

.pricing-card.pro ul li::before {
    background: var(--accent);
}

.pro-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════
   DOWNLOAD CTA
   ═══════════════════════════════════════════════════════════════ */

.download-cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.download-cta p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.btn-guide {
    display: inline-block;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--accent);
    border-radius: 30px;
    padding: 10px 28px;
    transition: background 0.2s, color 0.2s;
}

.btn-guide:hover {
    background: var(--accent);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-disclaimer {
    max-width: var(--max-width);
    margin: 14px auto 0;
    padding: 0 24px;
    font-size: 0.76rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS (scroll reveal + reduced motion)
   ═══════════════════════════════════════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 700px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-mockup {
        flex: 0 0 auto;
    }

    .phone-frame {
        width: 240px;
        height: 480px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        gap: 6px;
    }
}

/* ─── Badge hero: icona MotoSpeed animata (video) al posto dell'icona statica ─── */
.app-badge.app-badge-video {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    gap: 14px;
    font-size: 1.25rem;
}
.app-icon-shell {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    overflow: hidden;
    display: block;
    flex: 0 0 auto;
}
/* Lo zoom (scale + object-position 51%) inquadra solo l'icona dell'app
   dentro la clip, scartando header e didascalia sopra/sotto. */
.app-icon-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 51%;
    transform: scale(2.3);
    transform-origin: center 51%;
    display: block;
}

/* ── Bottone Supporto (era duplicato inline in 15 pagine, consolidato 18/08/2026) ── */
.support-btn {
    position: fixed; top: 16px; right: 20px; z-index: 1000;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 20px;
    background: rgba(26,26,34,0.82); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.03em;
    text-decoration: none; transition: background .15s;
}
.support-btn:hover { background: rgba(26,26,34,0.95); }
.support-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 20px; }

/* Il bottone scende sotto la social-bar solo quando si scontrerebbe davvero.
   La soglia dipende dalla larghezza della barra, non dalla cartella:
   - barra stretta (senza il link home): collide sotto 372px  -> soglia 371px
   - barra larga (con .sb-home, +72px):  collide sotto 461px  -> soglia 479px
   Misurato il 18/08/2026. Se si cambia il contenuto della barra, rimisurare. */
@media (max-width: 371px) { .support-btn { top: calc(var(--barra-fissa-h) + 8px); } }
/* Barra larga: il drop a 56px NON basta, la barra finisce a 72px e il bottone
   ci finiva sopra. Va portato SOTTO la barra. Misurato il 18/08/2026. */
@media (max-width: 479px) { body:has(.sb-home) .support-btn { top: calc(var(--barra-fissa-h) + 8px); } }

/* Sul mobile la social-bar (72px) e il bottone Supporto sotto di essa (fino a 117px)
   sono fissi sopra l'hero: il contenuto deve partire piu' in basso, altrimenti
   il bottone finisce sopra il badge dell'app. Misurato il 18/08/2026. */
@media (max-width: 479px) {
    .hero { padding-top: calc(var(--barra-fissa-h) + 61px); }
}
