/* =========================================================
   TACHIREAD — HOME PUBBLICA V1
   File separato: non modifica la logica dell'app online.
   ========================================================= */

:root {
    --home-blue: #0753d6;
    --home-blue-soft: #eaf4ff;
    --home-pink: #f50057;
    --home-pink-soft: #fff0f6;
    --home-yellow: #ffbf00;
    --home-yellow-soft: #fff9df;
    --home-navy: #071b4d;
    --home-text: #40506d;
    --home-border: #dbe7fb;
    --home-shadow: 0 22px 55px rgba(7, 27, 77, 0.09);
}

/* Header: stessa identità, navigazione più rifinita */
body:not(.app-online-open) .topbar nav a {
    position: relative;
    padding: 10px 0;
    transition: color 0.18s ease;
}

body:not(.app-online-open) .topbar nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--home-blue), var(--home-pink));
    transform: translateX(-50%);
    transition: width 0.18s ease;
}

body:not(.app-online-open) .topbar nav a:hover {
    color: var(--home-blue);
}

body:not(.app-online-open) .topbar nav a:hover::after {
    width: 100%;
}

/* Hero: mantiene il ventaglio già scelto */
body:not(.app-online-open) .hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 106px) !important;
    padding-top: 72px !important;
    padding-bottom: 86px !important;
}

body:not(.app-online-open) .hero::before,
body:not(.app-online-open) .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(4px);
}

body:not(.app-online-open) .hero::before {
    width: 390px;
    height: 390px;
    left: -180px;
    top: 40px;
    background: rgba(37, 132, 255, 0.08);
}

body:not(.app-online-open) .hero::after {
    width: 430px;
    height: 430px;
    right: -210px;
    top: 20px;
    background: rgba(245, 0, 87, 0.08);
}

.hero-text,
.hero-showcase {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 18px;
    padding: 7px 14px;
    border: 1px solid #cfe1ff;
    border-radius: 999px;
    background: rgba(255,255,255,0.78);
    color: var(--home-blue);
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(7, 83, 214, 0.07);
}

.home-download-btn[aria-disabled="true"],
.home-cta-secondary[aria-disabled="true"] {
    cursor: default;
}

/* Struttura comune sezioni */
.home-section {
    width: min(1320px, calc(100% - 44px));
    margin: 0 auto;
    padding: 92px 0;
}

.home-section-heading {
    max-width: 820px;
    margin: 0 auto 44px;
    text-align: center;
}

.home-section-heading-left {
    margin: 0;
    text-align: left;
}

.home-section-heading h2,
.preview-copy h2,
.home-cta-section h2,
.contact-section-new h2 {
    margin: 12px 0 16px;
    color: var(--home-navy);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -1.3px;
}

.home-section-heading p,
.preview-copy p,
.contact-section-new p {
    margin: 0;
    color: var(--home-text);
    font-size: 18px;
    line-height: 1.65;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.9px;
}

.home-eyebrow-blue {
    color: var(--home-blue);
    background: var(--home-blue-soft);
}

.home-eyebrow-pink {
    color: var(--home-pink);
    background: var(--home-pink-soft);
}

.home-eyebrow-yellow {
    color: #b57c00;
    background: var(--home-yellow-soft);
}

.home-eyebrow-light {
    color: white;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.24);
}

/* Cos'è TachiRead */
.home-intro-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
    gap: 72px;
    align-items: center;
}

.home-check-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.home-check-list span {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--home-border);
    border-radius: 16px;
    background: white;
    color: var(--home-blue);
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(7, 27, 77, 0.05);
}

.home-feature-stack {
    position: relative;
    min-height: 420px;
}

.home-stack-card {
    position: absolute;
    left: 50%;
    width: min(480px, 92%);
    min-height: 120px;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    align-items: center;
    padding: 22px 26px;
    border: 1px solid;
    border-radius: 26px;
    background: rgba(255,255,255,0.96);
    box-shadow: var(--home-shadow);
}

.home-stack-card:nth-child(1) {
    top: 6px;
    transform: translateX(-54%) rotate(-4deg);
}

.home-stack-card:nth-child(2) {
    top: 145px;
    z-index: 2;
    transform: translateX(-46%) rotate(3deg);
}

.home-stack-card:nth-child(3) {
    top: 280px;
    transform: translateX(-53%) rotate(-2deg);
}

.home-stack-card h3 {
    margin: 0 0 6px;
    font-size: 23px;
}

.home-stack-card p {
    margin: 0;
    color: var(--home-text);
    line-height: 1.45;
}

.home-card-icon,
.audience-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 27px;
    font-weight: 950;
    box-shadow: 0 13px 26px rgba(7, 27, 77, 0.16);
}

.home-stack-blue { border-color: #9dccff; }
.home-stack-blue h3 { color: var(--home-blue); }
.home-stack-blue .home-card-icon { background: linear-gradient(145deg, #3394ff, #0753d6); }

.home-stack-yellow { border-color: #f4cc43; }
.home-stack-yellow h3 { color: #c68a00; }
.home-stack-yellow .home-card-icon { background: linear-gradient(145deg, #ffda42, #efaa00); }

.home-stack-pink { border-color: #ff9abd; }
.home-stack-pink h3 { color: var(--home-pink); }
.home-stack-pink .home-card-icon { background: linear-gradient(145deg, #ff3a81, #ed0054); }

/* A chi serve */
.audience-section {
    width: 100%;
    max-width: none;
    padding-left: max(22px, calc((100% - 1320px) / 2));
    padding-right: max(22px, calc((100% - 1320px) / 2));
    background:
        radial-gradient(circle at 10% 50%, rgba(37,132,255,0.08), transparent 26%),
        radial-gradient(circle at 90% 50%, rgba(245,0,87,0.07), transparent 26%),
        #fbfdff;
    border-top: 1px solid #edf3ff;
    border-bottom: 1px solid #edf3ff;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.audience-card {
    min-height: 280px;
    padding: 30px;
    border: 1px solid;
    border-radius: 28px;
    background: rgba(255,255,255,0.96);
    box-shadow: var(--home-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.audience-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 65px rgba(7, 27, 77, 0.13);
}

.audience-card h3 {
    margin: 22px 0 10px;
    font-size: 25px;
}

.audience-card p {
    margin: 0;
    color: var(--home-text);
    font-size: 16px;
    line-height: 1.58;
}

.audience-blue { border-color: #b8d8ff; background: linear-gradient(180deg, white, #f0f7ff); }
.audience-blue h3 { color: var(--home-blue); }
.audience-blue .audience-icon { background: linear-gradient(145deg, #3394ff, #0753d6); }

.audience-yellow { border-color: #f5d35b; background: linear-gradient(180deg, white, #fff9df); }
.audience-yellow h3 { color: #c68a00; }
.audience-yellow .audience-icon { background: linear-gradient(145deg, #ffda42, #efaa00); }

.audience-pink { border-color: #ffafd0; background: linear-gradient(180deg, white, #fff1f7); }
.audience-pink h3 { color: var(--home-pink); }
.audience-pink .audience-icon { background: linear-gradient(145deg, #ff3a81, #ed0054); }

/* Funzioni */
.functions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.function-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--home-border);
    border-radius: 24px;
    background: white;
    box-shadow: 0 16px 40px rgba(7, 27, 77, 0.07);
}

.function-card::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -48px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(7,83,214,0.06), rgba(245,0,87,0.06));
}

.function-number {
    color: var(--home-pink);
    font-size: 14px;
    font-weight: 950;
    letter-spacing: 1px;
}

.function-card h3 {
    position: relative;
    z-index: 1;
    margin: 18px 0 10px;
    color: var(--home-navy);
    font-size: 22px;
}

.function-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--home-text);
    line-height: 1.55;
}

/* Anteprima app */
.preview-section {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(350px, 0.65fr);
    gap: 58px;
    align-items: center;
}

.app-preview-frame {
    overflow: hidden;
    border: 1px solid #cadcf7;
    border-radius: 30px;
    background: white;
    box-shadow: 0 30px 75px rgba(7, 27, 77, 0.16);
}

.app-preview-browserbar {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border-bottom: 1px solid #e4ebf7;
    background: #f7f9fc;
}

.app-preview-browserbar > span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.app-preview-browserbar > span:nth-child(1) { background: #ff5f57; }
.app-preview-browserbar > span:nth-child(2) { background: #ffbd2e; }
.app-preview-browserbar > span:nth-child(3) { background: #28c840; }

.app-preview-browserbar div {
    flex: 1;
    max-width: 420px;
    margin: 0 auto;
    padding: 7px 14px;
    border: 1px solid #dfe7f3;
    border-radius: 999px;
    background: white;
    color: #76839a;
    font-size: 12px;
    text-align: center;
}

.app-preview-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.preview-copy ul {
    display: grid;
    gap: 12px;
    margin: 26px 0 32px;
    padding: 0;
    list-style: none;
}

.preview-copy li {
    position: relative;
    padding-left: 30px;
    color: var(--home-navy);
    font-weight: 750;
}

.preview-copy li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -2px;
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #e9f4ff;
    color: var(--home-blue);
    font-size: 13px;
    font-weight: 950;
}

.preview-cta {
    display: inline-flex;
    align-items: center;
}

/* CTA */
.home-cta-section {
    width: min(1320px, calc(100% - 44px));
    margin: 20px auto 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px 54px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 10% 0%, rgba(255,255,255,0.18), transparent 32%),
        linear-gradient(120deg, #0753d6 0%, #083d9e 55%, #f50057 125%);
    color: white;
    box-shadow: 0 28px 65px rgba(7, 55, 155, 0.25);
}

.home-cta-section h2 {
    max-width: 720px;
    margin: 12px 0 10px;
    color: white;
}

.home-cta-section p {
    margin: 0;
    color: rgba(255,255,255,0.82);
    font-size: 17px;
}

.home-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 250px;
}

.home-cta-primary,
.home-cta-secondary {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 17px;
    font-weight: 950;
    text-decoration: none;
}

.home-cta-primary {
    border: 0;
    background: linear-gradient(180deg, #ff397d, #f50057);
    color: white;
    box-shadow: 0 13px 28px rgba(245,0,87,0.35);
}

.home-cta-secondary {
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.10);
    color: white;
}

/* Contatti */
.contact-section-new {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 64px;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 90px;
}

.contact-section-new h2 {
    font-size: clamp(34px, 4vw, 48px);
}

.contact-status-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    align-items: center;
    padding: 24px;
    border: 1px solid #ffb4cf;
    border-radius: 24px;
    background: linear-gradient(180deg, white, #fff3f8);
    box-shadow: var(--home-shadow);
}

.contact-status-card > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff3a81, #ed0054);
    color: white;
    font-size: 28px;
}

.contact-status-card strong,
.contact-status-card small {
    display: block;
}

.contact-status-card strong {
    margin-bottom: 5px;
    color: var(--home-navy);
    font-size: 19px;
}

.contact-status-card small {
    color: var(--home-text);
    line-height: 1.4;
}

/* Footer */
.site-footer {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 30px;
    align-items: center;
    min-height: 120px;
    padding: 26px max(22px, calc((100% - 1320px) / 2));
    border-top: 1px solid #e5edf9;
    background: #f8fbff;
}

.site-footer img {
    width: 190px;
    height: auto;
}

.site-footer p,
.site-footer span {
    margin: 0;
    color: #64718a;
    font-size: 14px;
}

.site-footer span {
    text-align: right;
}

/* =========================================================
   HOME RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
    body:not(.app-online-open) .topbar nav {
        gap: 20px;
    }

    body:not(.app-online-open) .hero {
        gap: 34px !important;
    }

    body:not(.app-online-open) .hero h1 {
        font-size: 50px !important;
    }

    .home-intro-section,
    .preview-section {
        gap: 38px;
    }

    .functions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body:not(.app-online-open) .hero {
        min-height: auto !important;
        padding-top: 52px !important;
        padding-bottom: 64px !important;
    }

    .home-section {
        width: min(100% - 34px, 760px);
        padding: 70px 0;
    }

    .home-intro-section,
    .preview-section,
    .contact-section-new {
        grid-template-columns: 1fr;
    }

    .home-intro-section {
        gap: 30px;
    }

    .home-feature-stack {
        width: min(620px, 100%);
        margin: 0 auto;
    }

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

    .audience-card {
        min-height: 0;
    }

    .preview-copy {
        order: -1;
    }

    .home-cta-section {
        width: calc(100% - 34px);
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 70px;
        padding: 38px;
    }

    .home-cta-buttons {
        width: min(360px, 100%);
        min-width: 0;
    }

    .contact-section-new {
        gap: 28px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .site-footer span {
        text-align: center;
    }
}

@media (max-width: 600px) {
    body:not(.app-online-open) .hero {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    body:not(.app-online-open) .hero h1 {
        font-size: clamp(38px, 11vw, 48px) !important;
    }

    .hero-kicker {
        font-size: 12px;
    }

    .home-section-heading h2,
    .preview-copy h2,
    .home-cta-section h2,
    .contact-section-new h2 {
        font-size: 34px;
        letter-spacing: -0.8px;
    }

    .home-section-heading p,
    .preview-copy p,
    .contact-section-new p {
        font-size: 16px;
    }

    .home-feature-stack {
        min-height: 510px;
    }

    .home-stack-card {
        position: relative;
        top: auto !important;
        left: auto;
        width: 100%;
        margin-bottom: 16px;
        grid-template-columns: 54px 1fr;
        padding: 18px;
        transform: none !important;
    }

    .home-card-icon {
        width: 52px;
        height: 52px;
        font-size: 23px;
    }

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

    .function-card {
        min-height: 0;
    }

    .app-preview-browserbar div {
        display: none;
    }

    .home-cta-section {
        padding: 30px 22px;
        border-radius: 26px;
    }

    .home-cta-buttons,
    .home-cta-primary,
    .home-cta-secondary {
        width: 100%;
    }

    .contact-status-card {
        grid-template-columns: 48px 1fr;
        padding: 18px;
    }

    .contact-status-card > span {
        width: 48px;
        height: 48px;
    }
}


/* =========================================================
   TACHIREAD — HEADER + HERO V2
   Rifinitura della base esistente, senza toccare l'app.
   ========================================================= */

/* ---------- HEADER DESKTOP ---------- */
body:not(.app-online-open) .topbar {
    height: 110px !important;
    min-height: 110px !important;
    padding: 0 max(30px, calc((100vw - 1440px) / 2)) !important;
    gap: 34px !important;

    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid rgba(186, 205, 235, 0.72) !important;
    box-shadow:
        0 10px 32px rgba(7, 27, 77, 0.055),
        inset 0 -1px 0 rgba(255, 255, 255, 0.92) !important;

    backdrop-filter: blur(18px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
}

body:not(.app-online-open) .topbar .brand {
    width: 360px !important;
    min-width: 360px !important;
    height: 104px !important;
    min-height: 104px !important;

    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
}

body:not(.app-online-open) .topbar img.topbar-logo {
    width: 350px !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;

    transform: none !important;
    transform-origin: left center !important;
    filter: none !important;
}

body:not(.app-online-open) .topbar nav {
    margin-left: auto !important;
    gap: 30px !important;
}

body:not(.app-online-open) .topbar nav a {
    font-size: 15px !important;
    letter-spacing: -0.12px !important;
}

body:not(.app-online-open) .topbar .top-btn {
    min-height: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 13px 25px !important;
    border-radius: 17px !important;

    box-shadow:
        0 10px 20px rgba(245, 0, 87, 0.19),
        0 18px 34px rgba(245, 0, 87, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease !important;
}

body:not(.app-online-open) .topbar .top-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow:
        0 13px 24px rgba(245, 0, 87, 0.22),
        0 22px 38px rgba(245, 0, 87, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}


/* ---------- HERO DESKTOP ---------- */
body:not(.app-online-open) .hero {
    min-height: 720px !important;

    grid-template-columns:
        minmax(470px, 0.92fr)
        minmax(590px, 1.08fr) !important;

    gap: clamp(54px, 5vw, 92px) !important;
    align-items: center !important;

    padding:
        70px
        max(30px, calc((100vw - 1440px) / 2))
        86px !important;

    background:
        radial-gradient(circle at 12% 30%, rgba(37, 132, 255, 0.105), transparent 29%),
        radial-gradient(circle at 88% 24%, rgba(245, 0, 87, 0.10), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #fcfdff 72%, #f8fbff 100%) !important;
}

body:not(.app-online-open) .hero::before {
    width: 470px !important;
    height: 470px !important;
    left: -235px !important;
    top: 50px !important;
    background: rgba(37, 132, 255, 0.085) !important;
    filter: blur(10px) !important;
}

body:not(.app-online-open) .hero::after {
    width: 500px !important;
    height: 500px !important;
    right: -250px !important;
    top: 20px !important;
    background: rgba(245, 0, 87, 0.085) !important;
    filter: blur(10px) !important;
}

body:not(.app-online-open) .hero-text {
    max-width: 680px !important;
}

body:not(.app-online-open) .hero-kicker {
    min-height: 38px !important;
    margin-bottom: 20px !important;
    padding: 8px 15px !important;

    border-color: #bfd8ff !important;
    background: rgba(255, 255, 255, 0.86) !important;

    font-size: 14px !important;
    letter-spacing: 0.15px !important;
}

body:not(.app-online-open) .hero-kicker::before {
    content: "⚡";
    margin-right: 8px;
    font-size: 16px;
}

body:not(.app-online-open) .hero h1 {
    margin: 0 0 24px !important;

    font-size: clamp(56px, 4.7vw, 70px) !important;
    line-height: 0.99 !important;
    letter-spacing: -2.2px !important;

    text-wrap: balance;
}

body:not(.app-online-open) .hero h1 span {
    display: inline-block;

    background: linear-gradient(90deg, #0753d6 0%, #176fe8 46%, #f50057 118%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

body:not(.app-online-open) .hero p {
    max-width: 650px !important;
    margin: 0 !important;

    color: #3d4d69 !important;
    font-size: 20px !important;
    line-height: 1.58 !important;
}

body:not(.app-online-open) .hero-buttons {
    gap: 14px !important;
    margin-top: 31px !important;
}

body:not(.app-online-open) .hero-buttons .btn-primary,
body:not(.app-online-open) .hero-buttons .btn-secondary {
    min-height: 54px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 14px 24px !important;
    border-radius: 17px !important;

    font-size: 15px !important;
    text-decoration: none !important;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease !important;
}

body:not(.app-online-open) .hero-buttons .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow:
        0 13px 24px rgba(245, 0, 87, 0.22),
        0 23px 38px rgba(245, 0, 87, 0.13) !important;
}

body:not(.app-online-open) .hero-buttons .btn-secondary {
    border: 1.5px solid #1766df !important;
    background: rgba(255, 255, 255, 0.87) !important;

    box-shadow:
        0 9px 22px rgba(7, 83, 214, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

body:not(.app-online-open) .hero-mini-points {
    gap: 10px !important;
    margin-top: 21px !important;
}

body:not(.app-online-open) .hero-mini-points span {
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;

    padding: 8px 13px !important;
    border-color: #d3e3fa !important;
    background: rgba(255, 255, 255, 0.84) !important;

    font-size: 13px !important;
    box-shadow:
        0 7px 18px rgba(7, 27, 77, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}


/* ---------- VENTAGLIO HERO ---------- */
body:not(.app-online-open) .hero-showcase {
    min-height: 510px !important;
    isolation: isolate;
}

body:not(.app-online-open) .hero-showcase::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 22px;

    width: min(660px, 94%);
    height: 120px;

    border-radius: 50%;
    background: rgba(16, 54, 125, 0.18);
    filter: blur(38px);
    transform: translateX(-50%);
    z-index: -1;
}

body:not(.app-online-open) .hero-showcase .mock-screen {
    width: 350px !important;
    height: 320px !important;
    padding: 25px !important;

    border-radius: 31px !important;
    background: rgba(255, 255, 255, 0.94) !important;

    box-shadow:
        0 27px 62px rgba(7, 27, 77, 0.15),
        0 9px 24px rgba(7, 27, 77, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease !important;
}

body:not(.app-online-open) .hero-showcase .screen-one {
    transform: translateX(-158px) rotate(-8deg) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f1f7ff 100%) !important;
}

body:not(.app-online-open) .hero-showcase .screen-two {
    transform: translateY(-22px) scale(1.085) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fffdf1 100%) !important;
}

body:not(.app-online-open) .hero-showcase .screen-three {
    transform: translateX(158px) rotate(8deg) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fff2f7 100%) !important;
}

body:not(.app-online-open) .hero-showcase .screen-one:hover {
    transform: translateX(-166px) translateY(-8px) rotate(-9deg) !important;
}

body:not(.app-online-open) .hero-showcase .screen-two:hover {
    transform: translateY(-32px) scale(1.10) !important;
}

body:not(.app-online-open) .hero-showcase .screen-three:hover {
    transform: translateX(166px) translateY(-8px) rotate(9deg) !important;
}

body:not(.app-online-open) .hero-showcase .mock-screen:hover {
    box-shadow:
        0 34px 74px rgba(7, 27, 77, 0.18),
        0 12px 30px rgba(7, 27, 77, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
}

body:not(.app-online-open) .hero-showcase .mock-screen h3 {
    margin-top: 14px !important;
    font-size: 23px !important;
    letter-spacing: -0.35px !important;
}

body:not(.app-online-open) .hero-showcase .screen-one h3 {
    color: #0753d6 !important;
}

body:not(.app-online-open) .hero-showcase .screen-two h3 {
    color: #c58b00 !important;
}

body:not(.app-online-open) .hero-showcase .screen-three h3 {
    color: #ef0057 !important;
}

body:not(.app-online-open) .hero-showcase .screen-one .mock-top {
    background: linear-gradient(90deg, #0753d6, #72b2ff) !important;
    opacity: 0.55 !important;
}

body:not(.app-online-open) .hero-showcase .screen-two .mock-top {
    background: linear-gradient(90deg, #ffbf00, #ffe284) !important;
    opacity: 0.7 !important;
}

body:not(.app-online-open) .hero-showcase .screen-three .mock-top {
    background: linear-gradient(90deg, #f50057, #ff91b9) !important;
    opacity: 0.58 !important;
}

body:not(.app-online-open) .hero-showcase .mock-book {
    filter:
        drop-shadow(0 8px 8px rgba(7, 83, 214, 0.13))
        drop-shadow(0 19px 22px rgba(7, 83, 214, 0.09)) !important;
}

body:not(.app-online-open) .hero-showcase .mock-button {
    box-shadow:
        0 10px 18px rgba(7, 83, 214, 0.24),
        0 20px 30px rgba(7, 83, 214, 0.15),
        inset 0 2px 2px rgba(255, 255, 255, 0.32) !important;
}


/* ---------- RESPONSIVE HEADER + HERO V2 ---------- */
@media (max-width: 1180px) {
    body:not(.app-online-open) .topbar {
        height: 96px !important;
        min-height: 96px !important;
        padding: 0 24px !important;
        gap: 20px !important;
    }

    body:not(.app-online-open) .topbar .brand {
        width: 286px !important;
        min-width: 286px !important;
        height: 92px !important;
        min-height: 92px !important;
    }

    body:not(.app-online-open) .topbar img.topbar-logo {
        width: 280px !important;
    }

    body:not(.app-online-open) .topbar nav {
        gap: 18px !important;
    }

    body:not(.app-online-open) .hero {
        min-height: 650px !important;
        grid-template-columns: minmax(410px, 0.95fr) minmax(480px, 1.05fr) !important;
        gap: 34px !important;
        padding: 54px 38px 70px !important;
    }

    body:not(.app-online-open) .hero h1 {
        font-size: clamp(49px, 5vw, 59px) !important;
        letter-spacing: -1.8px !important;
    }

    body:not(.app-online-open) .hero-showcase {
        min-height: 450px !important;
    }

    body:not(.app-online-open) .hero-showcase .mock-screen {
        width: 300px !important;
        height: 275px !important;
        padding: 21px !important;
    }

    body:not(.app-online-open) .hero-showcase .screen-one {
        transform: translateX(-126px) rotate(-8deg) !important;
    }

    body:not(.app-online-open) .hero-showcase .screen-two {
        transform: translateY(-20px) scale(1.07) !important;
    }

    body:not(.app-online-open) .hero-showcase .screen-three {
        transform: translateX(126px) rotate(8deg) !important;
    }
}

@media (max-width: 900px) {
    body:not(.app-online-open) .topbar {
        height: 88px !important;
        min-height: 88px !important;
        padding: 0 16px !important;
    }

    body:not(.app-online-open) .topbar .brand {
        width: 245px !important;
        min-width: 245px !important;
        height: 84px !important;
        min-height: 84px !important;
    }

    body:not(.app-online-open) .topbar img.topbar-logo {
        width: 238px !important;
    }

    body:not(.app-online-open) .topbar nav {
        display: none !important;
    }

    body:not(.app-online-open) .hero {
        min-height: auto !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 48px 24px 62px !important;
        text-align: center !important;
    }

    body:not(.app-online-open) .hero-text {
        max-width: 730px !important;
        margin: 0 auto !important;
    }

    body:not(.app-online-open) .hero p {
        margin: 0 auto !important;
    }

    body:not(.app-online-open) .hero-buttons,
    body:not(.app-online-open) .hero-mini-points {
        justify-content: center !important;
    }

    body:not(.app-online-open) .hero-showcase {
        min-height: 405px !important;
        max-width: 740px !important;
        margin: 0 auto !important;
    }

    body:not(.app-online-open) .hero-showcase .mock-screen {
        top: 58px !important;
        width: 286px !important;
        height: 258px !important;
    }

    body:not(.app-online-open) .hero-showcase .screen-one {
        transform: translateX(-86%) rotate(-7deg) !important;
    }

    body:not(.app-online-open) .hero-showcase .screen-two {
        transform: translateX(-50%) translateY(-25px) scale(1.04) !important;
    }

    body:not(.app-online-open) .hero-showcase .screen-three {
        transform: translateX(-14%) rotate(7deg) !important;
    }
}

@media (max-width: 600px) {
    body:not(.app-online-open) .topbar {
        height: 78px !important;
        min-height: 78px !important;
        padding: 0 12px !important;
        gap: 8px !important;
    }

    body:not(.app-online-open) .topbar .brand {
        width: 190px !important;
        min-width: 190px !important;
        height: 74px !important;
        min-height: 74px !important;
    }

    body:not(.app-online-open) .topbar img.topbar-logo {
        width: 185px !important;
    }

    body:not(.app-online-open) .topbar .top-btn {
        min-height: 43px !important;
        padding: 10px 13px !important;
        border-radius: 14px !important;
        font-size: 12px !important;
    }

    body:not(.app-online-open) .hero {
        padding: 36px 17px 48px !important;
    }

    body:not(.app-online-open) .hero-kicker {
        margin-bottom: 16px !important;
    }

    body:not(.app-online-open) .hero h1 {
        font-size: clamp(35px, 10.4vw, 45px) !important;
        line-height: 1.04 !important;
        letter-spacing: -1.1px !important;
    }

    body:not(.app-online-open) .hero p {
        font-size: 16.5px !important;
        line-height: 1.5 !important;
    }

    body:not(.app-online-open) .hero-buttons {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 11px !important;
    }

    body:not(.app-online-open) .hero-buttons .btn-primary,
    body:not(.app-online-open) .hero-buttons .btn-secondary {
        width: 100% !important;
    }

    body:not(.app-online-open) .hero-mini-points span {
        width: 100% !important;
        justify-content: center !important;
    }

    body:not(.app-online-open) .hero-showcase {
        min-height: 345px !important;
    }

    body:not(.app-online-open) .hero-showcase .mock-screen {
        top: 54px !important;
        width: min(252px, 72vw) !important;
        height: 226px !important;
        padding: 17px !important;
        border-radius: 24px !important;
    }

    body:not(.app-online-open) .hero-showcase .mock-screen h3 {
        font-size: 18px !important;
    }

    body:not(.app-online-open) .hero-showcase .screen-one {
        transform: translateX(-76%) rotate(-7deg) scale(0.92) !important;
    }

    body:not(.app-online-open) .hero-showcase .screen-two {
        transform: translateX(-50%) translateY(-22px) scale(0.98) !important;
    }

    body:not(.app-online-open) .hero-showcase .screen-three {
        transform: translateX(-24%) rotate(7deg) scale(0.92) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:not(.app-online-open) .topbar .top-btn,
    body:not(.app-online-open) .hero-buttons .btn-primary,
    body:not(.app-online-open) .hero-showcase .mock-screen {
        transition: none !important;
    }
}


/* =========================================================
   VENTAGLIO INTERATTIVO — CLICK / TOUCH
   La card selezionata passa davanti; le altre ruotano dietro.
   ========================================================= */

body:not(.app-online-open) .hero-showcase .mock-screen {
    will-change: transform;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body:not(.app-online-open) .hero-showcase .mock-screen.fan-left,
body:not(.app-online-open) .hero-showcase .mock-screen.fan-right {
    cursor: pointer;
}

body:not(.app-online-open) .hero-showcase .mock-screen.fan-front {
    cursor: default;
}

/* Ordine visivo */
body:not(.app-online-open) .hero-showcase .mock-screen.fan-left {
    z-index: 1 !important;
    transform: translateX(-158px) rotate(-8deg) scale(0.98) !important;
}

body:not(.app-online-open) .hero-showcase .mock-screen.fan-front {
    z-index: 3 !important;
    transform: translateY(-22px) scale(1.085) !important;
}

body:not(.app-online-open) .hero-showcase .mock-screen.fan-right {
    z-index: 2 !important;
    transform: translateX(158px) rotate(8deg) scale(0.98) !important;
}

/* Hover: resta il piccolo "pop-up" che ti piace */
body:not(.app-online-open) .hero-showcase .mock-screen.fan-left:hover {
    transform: translateX(-166px) translateY(-8px) rotate(-9deg) scale(0.99) !important;
}

body:not(.app-online-open) .hero-showcase .mock-screen.fan-front:hover {
    transform: translateY(-30px) scale(1.10) !important;
}

body:not(.app-online-open) .hero-showcase .mock-screen.fan-right:hover {
    transform: translateX(166px) translateY(-8px) rotate(9deg) scale(0.99) !important;
}

/* Evidenziazione da tastiera */
body:not(.app-online-open) .hero-showcase .mock-screen:focus-visible {
    outline: 4px solid rgba(7, 83, 214, 0.24) !important;
    outline-offset: 6px !important;
}

/* Transizione fluida tra fronte e retro */
body:not(.app-online-open) .hero-showcase .mock-screen.fan-moving {
    pointer-events: none;
}


/* Laptop / tablet orizzontale */
@media (max-width: 1180px) {
    body:not(.app-online-open) .hero-showcase .mock-screen.fan-left {
        transform: translateX(-126px) rotate(-8deg) scale(0.98) !important;
    }

    body:not(.app-online-open) .hero-showcase .mock-screen.fan-front {
        transform: translateY(-20px) scale(1.07) !important;
    }

    body:not(.app-online-open) .hero-showcase .mock-screen.fan-right {
        transform: translateX(126px) rotate(8deg) scale(0.98) !important;
    }

    body:not(.app-online-open) .hero-showcase .mock-screen.fan-left:hover {
        transform: translateX(-134px) translateY(-7px) rotate(-9deg) scale(0.99) !important;
    }

    body:not(.app-online-open) .hero-showcase .mock-screen.fan-front:hover {
        transform: translateY(-28px) scale(1.085) !important;
    }

    body:not(.app-online-open) .hero-showcase .mock-screen.fan-right:hover {
        transform: translateX(134px) translateY(-7px) rotate(9deg) scale(0.99) !important;
    }
}


/* Tablet verticale */
@media (max-width: 900px) {
    body:not(.app-online-open) .hero-showcase .mock-screen.fan-left {
        transform: translateX(-86%) rotate(-7deg) scale(0.98) !important;
    }

    body:not(.app-online-open) .hero-showcase .mock-screen.fan-front {
        transform: translateX(-50%) translateY(-25px) scale(1.04) !important;
    }

    body:not(.app-online-open) .hero-showcase .mock-screen.fan-right {
        transform: translateX(-14%) rotate(7deg) scale(0.98) !important;
    }

    body:not(.app-online-open) .hero-showcase .mock-screen.fan-left:hover {
        transform: translateX(-88%) translateY(-7px) rotate(-8deg) scale(0.99) !important;
    }

    body:not(.app-online-open) .hero-showcase .mock-screen.fan-front:hover {
        transform: translateX(-50%) translateY(-32px) scale(1.055) !important;
    }

    body:not(.app-online-open) .hero-showcase .mock-screen.fan-right:hover {
        transform: translateX(-12%) translateY(-7px) rotate(8deg) scale(0.99) !important;
    }
}


/* Telefono */
@media (max-width: 600px) {
    body:not(.app-online-open) .hero-showcase .mock-screen.fan-left {
        transform: translateX(-76%) rotate(-7deg) scale(0.92) !important;
    }

    body:not(.app-online-open) .hero-showcase .mock-screen.fan-front {
        transform: translateX(-50%) translateY(-22px) scale(0.98) !important;
    }

    body:not(.app-online-open) .hero-showcase .mock-screen.fan-right {
        transform: translateX(-24%) rotate(7deg) scale(0.92) !important;
    }

    /* Nei touch non esiste hover: il tocco serve solo a ruotare. */
    body:not(.app-online-open) .hero-showcase .mock-screen.fan-left:hover {
        transform: translateX(-76%) rotate(-7deg) scale(0.92) !important;
    }

    body:not(.app-online-open) .hero-showcase .mock-screen.fan-front:hover {
        transform: translateX(-50%) translateY(-22px) scale(0.98) !important;
    }

    body:not(.app-online-open) .hero-showcase .mock-screen.fan-right:hover {
        transform: translateX(-24%) rotate(7deg) scale(0.92) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:not(.app-online-open) .hero-showcase .mock-screen {
        transition: none !important;
    }
}

/* =========================================================
   HOME V4 — CONTENUTI DEL VENTAGLIO
   Tre mini-interfacce che raccontano davvero il prodotto.
   ========================================================= */

body:not(.app-online-open) .hero-showcase .mock-screen {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

body:not(.app-online-open) .hero-showcase .mock-screen .mock-top {
    flex: 0 0 auto !important;
}

body:not(.app-online-open) .fan-card-heading {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    gap: 11px !important;
    align-items: center !important;
    margin: 15px 0 14px !important;
    text-align: left !important;
}

body:not(.app-online-open) .fan-card-heading h3 {
    margin: 2px 0 0 !important;
    font-size: 22px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
}

body:not(.app-online-open) .fan-card-kicker {
    display: block !important;
    font-size: 9px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: 1.45px !important;
    color: #667085 !important;
}

body:not(.app-online-open) .fan-card-icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: 950 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
}

body:not(.app-online-open) .fan-card-icon-blue {
    color: #0753d6 !important;
    background: linear-gradient(145deg, #dcecff, #b9d9ff) !important;
}

body:not(.app-online-open) .fan-card-icon-yellow {
    color: #a96e00 !important;
    background: linear-gradient(145deg, #fff5c2, #ffe276) !important;
}

body:not(.app-online-open) .fan-card-icon-pink {
    color: #e90055 !important;
    background: linear-gradient(145deg, #ffe0eb, #ffb7d0) !important;
}

/* ---------- Card parole ---------- */
body:not(.app-online-open) .fan-word-stage {
    position: relative !important;
    min-height: 112px !important;
    border: 1px solid #b9d8ff !important;
    border-radius: 21px !important;
    background:
        radial-gradient(circle at 50% 38%, rgba(89, 164, 255, .18), transparent 44%),
        linear-gradient(180deg, #fafdff, #eaf4ff) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.94),
        0 11px 22px rgba(7,83,214,.08) !important;
}

body:not(.app-online-open) .fan-word-stage strong {
    font-size: 29px !important;
    line-height: 1 !important;
    letter-spacing: 1.8px !important;
    color: #0a245f !important;
}

body:not(.app-online-open) .fan-focus-dot {
    position: absolute !important;
    top: 13px !important;
    left: 50% !important;
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #f50057 !important;
    transform: translateX(-50%) !important;
    box-shadow: 0 0 0 5px rgba(245,0,87,.08) !important;
}

body:not(.app-online-open) .fan-progress {
    position: absolute !important;
    right: 12px !important;
    bottom: 10px !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: .4px !important;
    color: #4f6d9b !important;
}

/* ---------- Card brano ---------- */
body:not(.app-online-open) .fan-reading-stage {
    min-height: 113px !important;
    padding: 14px 15px 12px !important;
    border: 1px solid #f1d171 !important;
    border-radius: 21px !important;
    background:
        linear-gradient(90deg, rgba(255,205,55,.07) 1px, transparent 1px),
        linear-gradient(180deg, #fffef8, #fff8d9) !important;
    background-size: 19px 100%, auto !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.95),
        0 11px 22px rgba(197,139,0,.09) !important;
    text-align: left !important;
}

body:not(.app-online-open) .fan-reading-stage p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.48 !important;
    font-weight: 750 !important;
    color: #3d3216 !important;
}

body:not(.app-online-open) .fan-reading-stage mark {
    padding: 1px 4px !important;
    border-radius: 6px !important;
    background: #ffe17b !important;
    color: #8f6100 !important;
}

body:not(.app-online-open) .fan-reading-meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

body:not(.app-online-open) .fan-reading-meta > span:not(.fan-mini-next) {
    padding: 5px 8px !important;
    border-radius: 9px !important;
    background: rgba(255,255,255,.72) !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    color: #7e6218 !important;
}

body:not(.app-online-open) .fan-mini-next {
    width: 28px !important;
    height: 28px !important;
    margin-left: auto !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(145deg, #328cff, #0753d6) !important;
    color: #fff !important;
    font-size: 16px !important;
    box-shadow: 0 7px 12px rgba(7,83,214,.20) !important;
}

/* ---------- Card generazione ---------- */
body:not(.app-online-open) .fan-filter-stage {
    min-height: 144px !important;
    padding: 13px !important;
    border: 1px solid #ffbad1 !important;
    border-radius: 21px !important;
    background: linear-gradient(180deg, #fffafd, #ffeaf2) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.95),
        0 11px 22px rgba(245,0,87,.08) !important;
}

body:not(.app-online-open) .fan-filter-query {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 42px !important;
    padding: 0 11px !important;
    border: 1px solid #ffc2d6 !important;
    border-radius: 13px !important;
    background: #fff !important;
}

body:not(.app-online-open) .fan-filter-query strong {
    font-size: 17px !important;
    letter-spacing: .8px !important;
    color: #ef0057 !important;
}

body:not(.app-online-open) .fan-filter-query span {
    padding: 5px 8px !important;
    border-radius: 8px !important;
    background: #ffe3ed !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    color: #bf0047 !important;
}

body:not(.app-online-open) .fan-filter-tags,
body:not(.app-online-open) .fan-generated-words,
body:not(.app-online-open) .fan-chip-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

body:not(.app-online-open) .fan-filter-tags {
    margin-top: 9px !important;
}

body:not(.app-online-open) .fan-filter-tags span {
    padding: 5px 8px !important;
    border-radius: 999px !important;
    background: #ffd5e4 !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    color: #b40043 !important;
}

body:not(.app-online-open) .fan-generated-words {
    margin-top: 10px !important;
}

body:not(.app-online-open) .fan-generated-words span {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 7px 4px !important;
    border-radius: 10px !important;
    background: #fff !important;
    border: 1px solid #ffc7d9 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-align: center !important;
    color: #7a2242 !important;
}

/* ---------- Chip inferiori comuni ---------- */
body:not(.app-online-open) .fan-chip-row {
    margin-top: auto !important;
    padding-top: 11px !important;
}

body:not(.app-online-open) .fan-chip-row span {
    padding: 6px 9px !important;
    border-radius: 999px !important;
    font-size: 9px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

body:not(.app-online-open) .fan-chip-row-blue span {
    background: #dcecff !important;
    color: #0753d6 !important;
}

body:not(.app-online-open) .fan-chip-row-yellow span {
    background: #fff0ae !important;
    color: #9d6a00 !important;
}

/* Laptop / tablet orizzontale */
@media (max-width: 1180px) {
    body:not(.app-online-open) .fan-card-heading {
        grid-template-columns: 40px minmax(0, 1fr) !important;
        gap: 9px !important;
        margin: 10px 0 10px !important;
    }

    body:not(.app-online-open) .fan-card-icon {
        width: 40px !important;
        height: 40px !important;
        border-radius: 13px !important;
        font-size: 16px !important;
    }

    body:not(.app-online-open) .fan-card-heading h3 {
        font-size: 18px !important;
    }

    body:not(.app-online-open) .fan-word-stage,
    body:not(.app-online-open) .fan-reading-stage {
        min-height: 94px !important;
    }

    body:not(.app-online-open) .fan-word-stage strong {
        font-size: 24px !important;
    }

    body:not(.app-online-open) .fan-reading-stage {
        padding: 10px 12px !important;
    }

    body:not(.app-online-open) .fan-reading-stage p {
        font-size: 12px !important;
    }

    body:not(.app-online-open) .fan-reading-meta {
        margin-top: 8px !important;
    }

    body:not(.app-online-open) .fan-filter-stage {
        min-height: 116px !important;
        padding: 10px !important;
    }

    body:not(.app-online-open) .fan-chip-row {
        padding-top: 8px !important;
    }
}

/* Tablet verticale e telefono: contenuti più compatti */
@media (max-width: 900px) {
    body:not(.app-online-open) .fan-card-kicker {
        font-size: 8px !important;
    }

    body:not(.app-online-open) .fan-card-heading h3 {
        font-size: 17px !important;
    }

    body:not(.app-online-open) .fan-chip-row span,
    body:not(.app-online-open) .fan-filter-tags span {
        font-size: 8px !important;
        padding: 5px 7px !important;
    }
}

@media (max-width: 600px) {
    body:not(.app-online-open) .fan-card-heading {
        grid-template-columns: 34px minmax(0, 1fr) !important;
        gap: 7px !important;
        margin: 6px 0 7px !important;
    }

    body:not(.app-online-open) .fan-card-icon {
        width: 34px !important;
        height: 34px !important;
        border-radius: 11px !important;
        font-size: 14px !important;
    }

    body:not(.app-online-open) .fan-card-heading h3 {
        font-size: 15px !important;
    }

    body:not(.app-online-open) .fan-card-kicker {
        font-size: 7px !important;
        letter-spacing: 1px !important;
    }

    body:not(.app-online-open) .fan-word-stage,
    body:not(.app-online-open) .fan-reading-stage {
        min-height: 78px !important;
        border-radius: 15px !important;
    }

    body:not(.app-online-open) .fan-word-stage strong {
        font-size: 19px !important;
    }

    body:not(.app-online-open) .fan-reading-stage {
        padding: 8px 9px !important;
    }

    body:not(.app-online-open) .fan-reading-stage p {
        font-size: 10px !important;
        line-height: 1.35 !important;
    }

    body:not(.app-online-open) .fan-reading-meta {
        gap: 4px !important;
        margin-top: 6px !important;
    }

    body:not(.app-online-open) .fan-reading-meta > span:not(.fan-mini-next) {
        padding: 4px 5px !important;
        font-size: 7px !important;
    }

    body:not(.app-online-open) .fan-mini-next {
        width: 23px !important;
        height: 23px !important;
        font-size: 13px !important;
    }

    body:not(.app-online-open) .fan-filter-stage {
        min-height: 94px !important;
        padding: 7px !important;
        border-radius: 15px !important;
    }

    body:not(.app-online-open) .fan-filter-query {
        min-height: 31px !important;
        padding: 0 8px !important;
        border-radius: 10px !important;
    }

    body:not(.app-online-open) .fan-filter-query strong {
        font-size: 13px !important;
    }

    body:not(.app-online-open) .fan-filter-query span,
    body:not(.app-online-open) .fan-filter-tags span,
    body:not(.app-online-open) .fan-generated-words span,
    body:not(.app-online-open) .fan-chip-row span {
        font-size: 7px !important;
    }

    body:not(.app-online-open) .fan-filter-tags,
    body:not(.app-online-open) .fan-generated-words {
        margin-top: 5px !important;
        gap: 4px !important;
    }

    body:not(.app-online-open) .fan-generated-words span {
        padding: 5px 2px !important;
    }

    body:not(.app-online-open) .fan-chip-row {
        padding-top: 5px !important;
        gap: 4px !important;
    }
}

/* =========================================================
   HOME V5 - COS'È TACHIREAD, FUNZIONI E FUTURO
   ========================================================= */

.home-about-pro {
    display: block;
    width: min(100% - 48px, 1320px);
    padding-top: 94px;
    padding-bottom: 104px;
}

.about-pro-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
    gap: 64px;
    align-items: center;
}

.about-pro-copy h2 {
    max-width: 780px;
    margin: 18px 0 22px;
    color: var(--home-navy);
    font-size: clamp(38px, 4.4vw, 61px);
    line-height: 1.03;
    letter-spacing: -2px;
}

.about-pro-lead {
    max-width: 780px;
    margin: 0;
    color: var(--home-text);
    font-size: 19px;
    line-height: 1.72;
}

.about-pro-status {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.about-status {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .55px;
}

.about-status-now {
    color: #08723f;
    border: 1px solid #a8e3c5;
    background: #eafaf2;
}

.about-status-future {
    color: #6e46b6;
    border: 1px solid #d8c5ff;
    background: #f5f0ff;
}

.about-pro-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.about-pro-pillars span {
    padding: 8px 11px;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    background: white;
    color: #42506a;
    font-size: 12px;
    font-weight: 850;
    box-shadow: 0 8px 18px rgba(7, 27, 77, .045);
}

.about-smart-panel {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid #a9cdfb;
    border-radius: 30px;
    background:
        radial-gradient(circle at 92% 4%, rgba(255, 38, 121, .12), transparent 28%),
        radial-gradient(circle at 4% 100%, rgba(255, 205, 39, .18), transparent 32%),
        linear-gradient(160deg, #fafdff 0%, #edf6ff 100%);
    box-shadow: 0 24px 54px rgba(16, 81, 181, .15);
}

.about-smart-panel::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -78px;
    width: 180px;
    height: 180px;
    border: 24px solid rgba(7, 83, 214, .055);
    border-radius: 50%;
}

.about-smart-topline {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.about-smart-kicker {
    color: var(--home-blue);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 1.3px;
}

.about-smart-topline h3 {
    margin: 5px 0 0;
    color: var(--home-navy);
    font-size: 29px;
    line-height: 1.08;
}

.about-smart-live {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(145deg, #2391ff, #0753d6);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 1px;
    box-shadow: 0 10px 22px rgba(7, 83, 214, .22);
}

.about-smart-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin: 25px 0 20px;
}

.about-smart-row {
    display: grid;
    grid-template-columns: minmax(125px, 1fr) 74px minmax(92px, .78fr) 88px;
    gap: 10px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid rgba(132, 183, 243, .58);
    border-radius: 15px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 9px 18px rgba(19, 76, 159, .055);
}

.about-smart-row strong {
    min-width: 0;
    overflow: hidden;
    color: var(--home-navy);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.about-smart-row > span {
    color: #657089;
    font-size: 11px;
    font-weight: 800;
}

.about-smart-row em {
    color: var(--home-blue);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

.about-smart-bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbeaff;
}

.about-smart-bar i {
    display: block;
    width: var(--fill);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f94ff, #ff2f7d);
}

.about-smart-panel > p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #536078;
    font-size: 13px;
    line-height: 1.55;
}

.about-pro-section-head {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 17px;
    align-items: flex-start;
    margin: 78px 0 27px;
}

.about-section-index {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 17px;
    color: white;
    background: linear-gradient(145deg, #2f94ff, #0753d6);
    font-size: 14px;
    font-weight: 950;
    box-shadow: 0 12px 25px rgba(7, 83, 214, .21);
}

.about-section-label {
    color: var(--home-blue);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 1.25px;
}

.about-pro-section-head h3 {
    margin: 6px 0 0;
    color: var(--home-navy);
    font-size: clamp(27px, 3vw, 39px);
    line-height: 1.08;
}

.about-pro-section-head p {
    max-width: 850px;
    margin: 10px 0 0;
    color: var(--home-text);
    font-size: 16px;
    line-height: 1.6;
}

.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.about-feature-card {
    position: relative;
    min-height: 255px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid;
    border-radius: 24px;
    background: white;
    box-shadow: 0 15px 34px rgba(7, 27, 77, .075);
    transition: transform .2s ease, box-shadow .2s ease;
}

.about-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 45px rgba(7, 27, 77, .12);
}

.about-feature-card::after {
    content: "";
    position: absolute;
    top: -36px;
    right: -32px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    opacity: .11;
}

.about-feature-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 17px;
    color: white;
    font-size: 21px;
    font-weight: 950;
    box-shadow: 0 11px 23px rgba(7, 27, 77, .16);
}

.about-feature-state {
    display: inline-block;
    margin-bottom: 10px;
    color: #68748b;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 1px;
}

.about-feature-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 9px;
    color: var(--home-navy);
    font-size: 20px;
    line-height: 1.14;
}

.about-feature-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--home-text);
    font-size: 14px;
    line-height: 1.55;
}

.about-feature-blue {
    border-color: #b6d8ff;
    background: linear-gradient(180deg, #fff, #f2f8ff);
}
.about-feature-blue::after { background: #1282ff; }
.about-feature-blue .about-feature-icon { background: linear-gradient(145deg, #3394ff, #0753d6); }

.about-feature-pink {
    border-color: #ffb4d0;
    background: linear-gradient(180deg, #fff, #fff2f7);
}
.about-feature-pink::after { background: #ff2575; }
.about-feature-pink .about-feature-icon { background: linear-gradient(145deg, #ff4a89, #ed0054); }

.about-feature-yellow {
    border-color: #f3d36b;
    background: linear-gradient(180deg, #fff, #fff9df);
}
.about-feature-yellow::after { background: #ffc400; }
.about-feature-yellow .about-feature-icon { background: linear-gradient(145deg, #ffda42, #efaa00); }

.about-future-shell {
    margin-top: 78px;
    padding: 34px;
    border: 1px solid #d9c7ff;
    border-radius: 32px;
    background:
        radial-gradient(circle at 96% 2%, rgba(255, 41, 122, .12), transparent 27%),
        radial-gradient(circle at 4% 100%, rgba(35, 126, 255, .11), transparent 28%),
        linear-gradient(145deg, #fcfaff, #f7f3ff);
    box-shadow: 0 22px 48px rgba(80, 47, 141, .09);
}

.about-pro-section-head-future {
    margin: 0 0 26px;
}

.about-pro-section-head-future .about-section-index {
    background: linear-gradient(145deg, #a46cf2, #7041bb);
    box-shadow: 0 12px 25px rgba(112, 65, 187, .23);
}

.about-pro-section-head-future .about-section-label {
    color: #7443bc;
}

.about-future-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.about-future-card {
    position: relative;
    min-height: 225px;
    padding: 22px;
    border: 1px dashed #cbb1f1;
    border-radius: 22px;
    background: rgba(255, 255, 255, .78);
}

.about-future-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #7041bb;
    background: #efe5ff;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: .8px;
}

.about-future-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 17px;
    border-radius: 15px;
    background: linear-gradient(145deg, #efe5ff, #fff);
    font-size: 22px;
    box-shadow: 0 9px 19px rgba(112, 65, 187, .12);
}

.about-future-card h3 {
    max-width: 220px;
    margin: 0 0 9px;
    color: #382550;
    font-size: 18px;
    line-height: 1.16;
}

.about-future-card p {
    margin: 0;
    color: #665b78;
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 1080px) {
    .about-pro-hero {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .about-smart-panel {
        width: min(760px, 100%);
    }

    .about-feature-grid,
    .about-future-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .home-about-pro {
        width: min(100% - 30px, 620px);
        padding-top: 68px;
        padding-bottom: 76px;
    }

    .about-pro-copy h2 {
        margin-top: 14px;
        font-size: clamp(34px, 10.3vw, 47px);
        letter-spacing: -1.35px;
    }

    .about-pro-lead {
        font-size: 16px;
        line-height: 1.62;
    }

    .about-smart-panel {
        padding: 20px;
        border-radius: 24px;
    }

    .about-smart-topline h3 {
        font-size: 24px;
    }

    .about-smart-row {
        grid-template-columns: minmax(92px, 1fr) 60px;
        gap: 6px 8px;
    }

    .about-smart-row .about-smart-bar {
        grid-column: 1;
    }

    .about-smart-row em {
        grid-column: 2;
        text-align: right;
    }

    .about-pro-section-head {
        grid-template-columns: 45px 1fr;
        gap: 12px;
        margin-top: 58px;
    }

    .about-section-index {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .about-feature-grid,
    .about-future-grid {
        grid-template-columns: 1fr;
    }

    .about-feature-card {
        min-height: 0;
    }

    .about-future-shell {
        margin-top: 58px;
        padding: 22px 16px;
        border-radius: 25px;
    }

    .about-future-card {
        min-height: 0;
    }
}


/* =========================================================
   HOME V6 — A CHI SERVE + COME FUNZIONA
   ========================================================= */

/* ---------- A chi serve V2 ---------- */
.audience-section-v2 {
    position: relative;
    overflow: hidden;
    padding-top: 96px;
    padding-bottom: 96px;
    background:
        radial-gradient(circle at 4% 18%, rgba(37,132,255,0.13), transparent 24%),
        radial-gradient(circle at 96% 22%, rgba(245,0,87,0.11), transparent 25%),
        radial-gradient(circle at 52% 100%, rgba(255,196,0,0.10), transparent 30%),
        linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
}

.audience-heading-v2 {
    max-width: 880px;
    margin-bottom: 46px;
}

.audience-grid-v2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

.audience-card-v2 {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 550px;
    overflow: hidden;
    padding: 30px;
    isolation: isolate;
}

.audience-card-v2::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -74px;
    top: -74px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    opacity: 0.55;
}

.audience-card-v2.audience-blue::before {
    background: radial-gradient(circle, rgba(37,132,255,0.24), transparent 70%);
}

.audience-card-v2.audience-pink::before {
    background: radial-gradient(circle, rgba(245,0,87,0.21), transparent 70%);
}

.audience-card-v2.audience-yellow::before {
    background: radial-gradient(circle, rgba(255,190,0,0.24), transparent 70%);
}

.audience-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.audience-card-v2 .audience-icon {
    flex: 0 0 auto;
}

.audience-role {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.85px;
    white-space: nowrap;
}

.audience-blue .audience-role { color: #0753d6; }
.audience-pink .audience-role { color: #ed0054; }
.audience-yellow .audience-role { color: #b77d00; }

.audience-card-v2 h3 {
    margin: 25px 0 10px;
    font-size: 28px;
    letter-spacing: -0.45px;
}

.audience-lead {
    min-height: 78px;
    font-size: 16px !important;
    line-height: 1.58 !important;
}

.audience-benefits {
    display: grid;
    gap: 12px;
    margin: 23px 0 26px;
    padding: 0;
    list-style: none;
}

.audience-benefits li {
    position: relative;
    padding-left: 28px;
    color: #34415b;
    font-size: 14px;
    line-height: 1.48;
}

.audience-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    color: white;
    font-size: 11px;
    font-weight: 950;
}

.audience-blue .audience-benefits li::before { background: #1677ee; }
.audience-pink .audience-benefits li::before { background: #f50062; }
.audience-yellow .audience-benefits li::before { background: #e0a000; }

.audience-demo,
.audience-task-preview,
.audience-home-flow {
    margin-top: auto;
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.audience-demo {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 15px;
    background: rgba(222,239,255,0.76);
    border: 1px solid #bcdcff;
}

.audience-demo div {
    min-width: 0;
    padding: 8px 4px;
    text-align: center;
}

.audience-demo strong,
.audience-demo span {
    display: block;
}

.audience-demo strong {
    color: #0753d6;
    font-size: 22px;
}

.audience-demo span {
    margin-top: 3px;
    color: #5a6780;
    font-size: 10px;
    line-height: 1.2;
}

.audience-task-preview {
    position: relative;
    display: grid;
    gap: 7px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #ffb2cf;
    background: rgba(255,239,246,0.82);
}

.audience-task-preview::after {
    content: "➜";
    position: absolute;
    right: 15px;
    bottom: 15px;
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f50062;
    color: white;
    font-size: 19px;
    box-shadow: 0 8px 16px rgba(245,0,98,0.24);
}

.audience-task-status {
    width: max-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f50062;
    color: white;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.75px;
}

.audience-task-preview strong {
    padding-right: 48px;
    color: #17233e;
    font-size: 17px;
}

.audience-task-preview small {
    color: #69758d;
}

.audience-task-preview i {
    width: calc(100% - 48px);
    height: 7px;
    margin-top: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(245,0,98,0.13);
}

.audience-task-preview i::after {
    content: "";
    display: block;
    width: 64%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff4b8b, #f50062);
}

.audience-home-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 88px;
    padding: 16px;
    border: 1px solid #f2d36b;
    background: rgba(255,248,217,0.86);
}

.audience-home-flow span {
    display: grid;
    place-items: center;
    min-height: 38px;
    padding: 0 9px;
    border-radius: 12px;
    background: white;
    color: #7b5b00;
    font-size: 11px;
    font-weight: 850;
    text-align: center;
    box-shadow: 0 7px 18px rgba(123,91,0,0.08);
}

.audience-home-flow b {
    color: #dda000;
    font-size: 18px;
}

.audience-connection {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
    gap: 46px;
    align-items: center;
    margin-top: 36px;
    padding: 34px 38px;
    border: 1px solid #d9e7fb;
    border-radius: 30px;
    background: rgba(255,255,255,0.88);
    box-shadow: 0 23px 55px rgba(7,27,77,0.09);
}

.audience-connection-copy > span,
.workflow-summary-copy > span {
    color: #0753d6;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 1.1px;
}

.audience-connection-copy h3,
.workflow-summary-copy h3 {
    margin: 8px 0 9px;
    color: #17233e;
    font-size: 23px;
    line-height: 1.18;
    letter-spacing: -0.35px;
}

.audience-connection-copy p,
.workflow-summary-copy p {
    margin: 0;
    color: #5b6780;
    line-height: 1.55;
}

.audience-connection-path {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.audience-connection-path > div {
    display: grid;
    justify-items: center;
    gap: 7px;
    min-width: 92px;
}

.audience-connection-path i {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid #d6e5fb;
    border-radius: 18px;
    background: #f7fbff;
    font-style: normal;
    font-size: 23px;
    box-shadow: 0 10px 22px rgba(7,83,214,0.09);
}

.audience-connection-path span {
    color: #46536c;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.audience-connection-path b {
    color: #9bb3d7;
    font-size: 21px;
}

.audience-connection-path .audience-connection-core i {
    border-color: transparent;
    background: linear-gradient(145deg, #2386ff, #0753d6 52%, #f50062 150%);
    color: white;
    box-shadow: 0 13px 25px rgba(7,83,214,0.25);
}

/* ---------- Come funziona ---------- */
.workflow-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none;
    padding: 100px max(22px, calc((100% - 1320px) / 2));
    background:
        radial-gradient(circle at 12% 12%, rgba(255,196,0,0.09), transparent 23%),
        radial-gradient(circle at 88% 20%, rgba(37,132,255,0.08), transparent 24%),
        #ffffff;
}

.workflow-heading {
    max-width: 900px;
    margin-bottom: 48px;
}

.workflow-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 17px;
}

.workflow-track::before {
    content: "";
    position: absolute;
    top: 43px;
    left: 7%;
    right: 7%;
    z-index: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2b8cff, #ff3d80, #ffc41c, #2b8cff, #ff3d80);
    opacity: 0.28;
}

.workflow-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    padding: 23px;
    overflow: hidden;
    border: 1px solid #dfe8f6;
    border-radius: 26px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 18px 42px rgba(7,27,77,0.075);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.workflow-step:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 58px rgba(7,27,77,0.13);
}

.workflow-step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.workflow-number {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: white;
    font-size: 16px;
    font-weight: 950;
    box-shadow: 0 11px 22px rgba(7,27,77,0.17);
}

.workflow-step-top i {
    font-style: normal;
    font-size: 25px;
}

.workflow-step-blue .workflow-number { background: linear-gradient(145deg, #3394ff, #0753d6); }
.workflow-step-pink .workflow-number { background: linear-gradient(145deg, #ff4a89, #ed0054); }
.workflow-step-yellow .workflow-number { background: linear-gradient(145deg, #ffda42, #efaa00); }

.workflow-label {
    min-height: 28px;
    color: #78839a;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.85px;
    line-height: 1.25;
}

.workflow-step h3 {
    margin: 8px 0 10px;
    color: #17233e;
    font-size: 20px;
    line-height: 1.18;
    letter-spacing: -0.25px;
}

.workflow-step p {
    margin: 0 0 22px;
    color: #59667f;
    font-size: 13px;
    line-height: 1.58;
}

.workflow-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.workflow-chips span {
    padding: 6px 9px;
    border: 1px solid #dfe8f6;
    border-radius: 999px;
    background: #f8fbff;
    color: #51607a;
    font-size: 10px;
    font-weight: 800;
}

.workflow-step-blue { border-top: 4px solid #2386ff; }
.workflow-step-pink { border-top: 4px solid #f50062; }
.workflow-step-yellow { border-top: 4px solid #f5bd14; }

.workflow-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 36px;
    align-items: center;
    margin-top: 34px;
    padding: 32px 36px;
    border: 1px solid #dce7f7;
    border-radius: 30px;
    background:
        linear-gradient(110deg, rgba(233,244,255,0.92), rgba(255,255,255,0.96) 45%, rgba(255,239,246,0.84));
    box-shadow: 0 22px 50px rgba(7,27,77,0.09);
}

.workflow-loop {
    display: flex;
    align-items: center;
    gap: 10px;
}

.workflow-loop > div {
    display: grid;
    justify-items: center;
    gap: 5px;
}

.workflow-loop strong {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: white;
    color: #0753d6;
    box-shadow: 0 8px 18px rgba(7,83,214,0.12);
}

.workflow-loop span {
    color: #536078;
    font-size: 10px;
    font-weight: 850;
}

.workflow-loop b {
    color: #9bb3d7;
    font-size: 20px;
}

.workflow-cta {
    min-width: 214px;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .audience-grid-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audience-card-v2:last-child {
        grid-column: 1 / -1;
        min-height: 430px;
    }

    .audience-connection {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .audience-connection-path {
        justify-content: center;
    }

    .workflow-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-track::before {
        display: none;
    }

    .workflow-step {
        min-height: 350px;
    }

    .workflow-step:last-child {
        grid-column: 1 / -1;
        min-height: 315px;
    }

    .workflow-summary {
        grid-template-columns: 1fr auto;
    }

    .workflow-summary-copy {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .audience-section-v2,
    .workflow-section {
        padding-top: 74px;
        padding-bottom: 74px;
    }

    .audience-grid-v2 {
        grid-template-columns: 1fr;
    }

    .audience-card-v2,
    .audience-card-v2:last-child {
        grid-column: auto;
        min-height: 0;
    }

    .audience-lead {
        min-height: 0;
    }

    .audience-connection {
        padding: 28px;
    }

    .audience-connection-path {
        flex-wrap: wrap;
    }

    .workflow-summary {
        grid-template-columns: 1fr;
    }

    .workflow-loop {
        justify-content: center;
    }

    .workflow-cta {
        width: 100%;
    }
}

@media (max-width: 650px) {
    .audience-section-v2,
    .workflow-section {
        padding-left: 17px;
        padding-right: 17px;
    }

    .audience-card-v2 {
        padding: 23px;
        border-radius: 24px;
    }

    .audience-card-head {
        align-items: flex-start;
    }

    .audience-role {
        white-space: normal;
        text-align: center;
    }

    .audience-card-v2 h3 {
        font-size: 25px;
    }

    .audience-demo {
        grid-template-columns: 1fr;
    }

    .audience-demo div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .audience-home-flow {
        flex-direction: column;
    }

    .audience-home-flow b {
        transform: rotate(90deg);
    }

    .audience-connection {
        padding: 23px;
        border-radius: 24px;
    }

    .audience-connection-path {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .audience-connection-path b {
        transform: rotate(90deg);
    }

    .workflow-track {
        grid-template-columns: 1fr;
    }

    .workflow-step,
    .workflow-step:last-child {
        grid-column: auto;
        min-height: 0;
        padding: 22px;
    }

    .workflow-summary {
        padding: 25px 22px;
    }

    .workflow-loop {
        flex-wrap: wrap;
    }
}
/* =========================================================
   LOGO TACHIREAD NEL FLUSSO LOGOPEDISTA–ASSISTITO
   ========================================================= */

.audience-connection-path > .audience-connection-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 118px !important;
    min-width: 118px !important;
    height: 74px !important;

    padding: 8px 10px !important;
    box-sizing: border-box !important;

    border: 1px solid #cfe1fa !important;
    border-radius: 19px !important;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(244, 249, 255, 0.98)
        ) !important;

    box-shadow:
        0 10px 22px rgba(7, 83, 214, 0.11),
        0 18px 32px rgba(245, 0, 98, 0.05) !important;
}

.audience-connection-brand-logo {
    display: block !important;

    width: 104px !important;
    max-width: 104px !important;
    height: auto !important;
    max-height: 58px !important;

    object-fit: contain !important;

    filter:
        drop-shadow(0 3px 5px rgba(7, 83, 214, 0.10)) !important;
}
/* Logo TachiRead della stessa dimensione degli altri riquadri */
.audience-connection-path > .audience-connection-brand {
    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;

    padding: 3px !important;
    box-sizing: border-box !important;

    border-radius: 15px !important;
}

/* Logo contenuto nel quadrato */
.audience-connection-brand-logo {
    display: block !important;

    width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    max-height: 48px !important;

    object-fit: contain !important;
}
/* =========================================================
   TACHIREAD IDENTICO AGLI ALTRI ELEMENTI DEL FLUSSO
   ========================================================= */

/* Colonna completa: identica a Logopedista, Assistito e Risultati */
html body .audience-connection-path > .audience-connection-brand {
    display: grid !important;
    justify-items: center !important;

    width: auto !important;
    min-width: 92px !important;
    height: auto !important;
    min-height: 0 !important;

    gap: 7px !important;
    padding: 0 !important;

    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Il quadrato visivo misura esattamente 54 × 54 come gli altri */
html body .audience-connection-brand-logo {
    display: block !important;

    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;

    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;

    padding: 2px !important;
    box-sizing: border-box !important;

    border: 1px solid #d6e5fb !important;
    border-radius: 18px !important;
    background: #f7fbff !important;

    object-fit: contain !important;

    box-shadow:
        0 10px 22px rgba(7, 83, 214, 0.09) !important;

    filter: none !important;
}
/* =========================================================
   TACHIREAD IDENTICO AGLI ALTRI NODI DEL FLUSSO
   ========================================================= */

/* Quadrato esterno: identico agli altri <i> */
html body .audience-connection-path
.audience-connection-core
.audience-tachiread-icon {
    display: grid !important;
    place-items: center !important;

    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;

    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;

    padding: 3px !important;
    box-sizing: border-box !important;

    border: 1px solid #d6e5fb !important;
    border-radius: 18px !important;
    background: #f7fbff !important;

    font-size: initial !important;
    overflow: hidden !important;

    box-shadow: 0 10px 22px rgba(7, 83, 214, 0.09) !important;
}

/* Annulla il vecchio stile blu del fulmine centrale */
html body .audience-connection-path
.audience-connection-core
.audience-tachiread-icon {
    color: initial !important;
}

/* Logo dentro il quadrato */
html body .audience-tachiread-logo {
    display: block !important;

    width: 46px !important;
    max-width: 46px !important;

    height: 46px !important;
    max-height: 46px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;

    object-fit: contain !important;
    box-shadow: none !important;
    filter: none !important;
}

/* =========================================================
   TACHIREAD — CAROSELLO ANTEPRIME RIPRISTINATO
   ========================================================= */

.app-gallery-section {
    width: min(1320px, calc(100% - 44px));
    margin: 0 auto;
    padding: 100px 0 92px;
}

.app-gallery-heading {
    max-width: 790px;
    margin: 0 auto 40px;
    text-align: center;
}

.app-gallery-heading h2 {
    margin: 12px 0 14px;
    color: var(--home-navy, #071b4d);
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.06;
    letter-spacing: -1.2px;
}

.app-gallery-heading p {
    margin: 0;
    color: var(--home-text, #40506d);
    font-size: 18px;
    line-height: 1.65;
}

.app-gallery {
    position: relative;
    width: min(1180px, 100%);
    margin: 0 auto 18px;
    padding: 0 76px;
    box-sizing: border-box;
}

.app-gallery-stage {
    position: relative;
    height: 430px;
    overflow: visible;
    isolation: isolate;
}

.app-gallery-card {
    position: absolute;
    top: 0;
    left: 50%;

    width: min(610px, 72vw);
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;

    opacity: 1;
    transform-origin: center center;
    transition:
        transform 0.46s cubic-bezier(.2,.8,.2,1),
        opacity 0.34s ease,
        filter 0.34s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.app-gallery-frame {
    display: block;
    width: 100%;
    height: 350px;
    overflow: hidden;

    border: 1px solid #d6e4f9;
    border-radius: 28px;
    background: #ffffff;

    box-shadow:
        0 22px 48px rgba(7, 27, 77, 0.13),
        0 36px 72px rgba(7, 83, 214, 0.08);
}

.app-gallery-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    pointer-events: none;
}

.app-gallery-card.is-active {
    z-index: 4;
    transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
    opacity: 1;
    filter: none;
    cursor: default;
}

.app-gallery-card.is-left {
    z-index: 3;
    transform: translateX(calc(-50% - 330px)) translateY(40px) scale(0.76) rotate(-8deg);
    opacity: 0.92;
    filter: saturate(0.95);
}

.app-gallery-card.is-right {
    z-index: 3;
    transform: translateX(calc(-50% + 330px)) translateY(40px) scale(0.76) rotate(8deg);
    opacity: 0.92;
    filter: saturate(0.95);
}

.app-gallery-card.is-back {
    z-index: 1;
    transform: translateX(-50%) translateY(72px) scale(0.64);
    opacity: 0.14;
    filter: saturate(0.8);
    pointer-events: none;
}

.app-gallery-card.is-left:hover {
    transform: translateX(calc(-50% - 330px)) translateY(29px) scale(0.79) rotate(-9deg);
    opacity: 1;
}

.app-gallery-card.is-right:hover {
    transform: translateX(calc(-50% + 330px)) translateY(29px) scale(0.79) rotate(9deg);
    opacity: 1;
}

.app-gallery-card:focus-visible {
    outline: 4px solid rgba(7, 83, 214, 0.24);
    outline-offset: 7px;
    border-radius: 30px;
}

.app-gallery-arrow {
    position: absolute;
    top: 148px;
    z-index: 10;

    display: grid;
    place-items: center;

    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 50%;

    color: #ffffff;
    background: linear-gradient(145deg, #2d86ff 0%, #0753d6 54%, #f50057 150%);
    font-size: 38px;
    line-height: 1;
    cursor: pointer;

    box-shadow:
        0 14px 28px rgba(7, 83, 214, 0.24),
        0 22px 38px rgba(245, 0, 87, 0.10);

    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app-gallery-arrow:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow:
        0 17px 32px rgba(7, 83, 214, 0.27),
        0 25px 42px rgba(245, 0, 87, 0.13);
}

.app-gallery-prev {
    left: 4px;
}

.app-gallery-next {
    right: 4px;
}

.app-gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 24px;
    margin: 4px 0 22px;
}

.app-gallery-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d4e0f3;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.app-gallery-dot.is-active {
    background: linear-gradient(145deg, #0753d6, #f50057);
    transform: scale(1.22);
}

.app-gallery-detail {
    max-width: 780px;
    margin: 0 auto;
    padding: 27px 30px;

    border: 1px solid #dbe7fb;
    border-radius: 27px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    text-align: center;

    box-shadow: 0 16px 38px rgba(7, 27, 77, 0.075);
}

.app-gallery-detail-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 13px;
    margin-bottom: 11px;
    border-radius: 999px;

    color: #0753d6;
    background: #eaf4ff;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.85px;
    text-transform: uppercase;
}

.app-gallery-detail h3 {
    margin: 0 0 9px;
    color: #071b4d;
    font-size: 29px;
    line-height: 1.12;
}

.app-gallery-detail p {
    margin: 0;
    color: #52617b;
    font-size: 17px;
    line-height: 1.62;
}

.app-gallery-actions {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.app-gallery-actions .btn-primary {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 23px;
    border-radius: 17px;
    text-decoration: none;
}

.dashboard-preview-placeholder {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    height: 100%;
    padding: 28px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 12% 12%, rgba(37,132,255,.12), transparent 28%),
        radial-gradient(circle at 88% 14%, rgba(245,0,87,.10), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.dashboard-placeholder-top {
    display: flex;
    gap: 8px;
}

.dashboard-placeholder-top i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #cbd8eb;
}

.dashboard-placeholder-title {
    color: #0753d6;
    font-size: 24px;
    font-weight: 950;
}

.dashboard-placeholder-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 76px 1fr;
    gap: 12px;
}

.dashboard-placeholder-grid i,
.dashboard-placeholder-grid b {
    display: block;
    border: 1px solid #dce7f7;
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 20px rgba(7,27,77,.055);
}

.dashboard-placeholder-grid i:nth-child(1) { background: #eef6ff; }
.dashboard-placeholder-grid i:nth-child(2) { background: #fff9df; }
.dashboard-placeholder-grid i:nth-child(3) { background: #fff0f6; }

.dashboard-preview-placeholder small {
    color: #74829a;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 1180px) {
    .app-gallery-stage {
        height: 390px;
    }

    .app-gallery-card {
        width: min(540px, 70vw);
    }

    .app-gallery-frame {
        height: 315px;
    }

    .app-gallery-card.is-left {
        transform: translateX(calc(-50% - 255px)) translateY(34px) scale(0.74) rotate(-7deg);
    }

    .app-gallery-card.is-right {
        transform: translateX(calc(-50% + 255px)) translateY(34px) scale(0.74) rotate(7deg);
    }

    .app-gallery-card.is-left:hover {
        transform: translateX(calc(-50% - 255px)) translateY(25px) scale(0.77) rotate(-8deg);
    }

    .app-gallery-card.is-right:hover {
        transform: translateX(calc(-50% + 255px)) translateY(25px) scale(0.77) rotate(8deg);
    }

    .app-gallery-arrow {
        top: 128px;
    }
}

@media (max-width: 820px) {
    .app-gallery-section {
        width: min(100% - 34px, 760px);
        padding: 80px 0 72px;
    }

    .app-gallery {
        padding: 0 24px;
    }

    .app-gallery-stage {
        height: 340px;
    }

    .app-gallery-card {
        width: min(520px, 84vw);
    }

    .app-gallery-frame {
        height: 275px;
    }

    .app-gallery-card.is-left {
        transform: translateX(calc(-50% - 105px)) translateY(28px) scale(0.83) rotate(-6deg);
        opacity: 0.46;
    }

    .app-gallery-card.is-right {
        transform: translateX(calc(-50% + 105px)) translateY(28px) scale(0.83) rotate(6deg);
        opacity: 0.46;
    }

    .app-gallery-card.is-back {
        opacity: 0;
    }

    .app-gallery-arrow {
        top: 108px;
        width: 49px;
        height: 49px;
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .app-gallery-section {
        width: calc(100% - 28px);
        padding: 68px 0 62px;
    }

    .app-gallery-heading h2 {
        font-size: 34px;
    }

    .app-gallery-heading p {
        font-size: 16px;
    }

    .app-gallery {
        padding: 0;
    }

    .app-gallery-stage {
        height: 270px;
    }

    .app-gallery-card {
        width: 100%;
        max-width: 100%;
    }

    .app-gallery-frame {
        height: 220px;
        border-radius: 21px;
    }

    .app-gallery-card.is-left,
    .app-gallery-card.is-right,
    .app-gallery-card.is-back {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(.92);
        pointer-events: none;
    }

    .app-gallery-arrow {
        top: auto;
        bottom: 4px;
        width: 44px;
        height: 44px;
        font-size: 29px;
    }

    .app-gallery-prev {
        left: 10px;
    }

    .app-gallery-next {
        right: 10px;
    }

    .app-gallery-detail {
        padding: 23px 17px;
    }

    .app-gallery-detail h3 {
        font-size: 23px;
    }

    .app-gallery-detail p {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-gallery-card,
    .app-gallery-arrow,
    .app-gallery-dot {
        transition: none !important;
    }
}

/* =========================================================
   CAROSELLO ANTEPRIME - DISPOSIZIONE CIRCOLARE
   ========================================================= */

.app-gallery-stage {
    height: 500px !important;
    perspective: 1400px !important;
    transform-style: preserve-3d !important;
}

/* Schermata principale: davanti e leggermente più in basso */
.app-gallery-card.is-active {
    z-index: 5 !important;

    transform:
        translateX(-50%)
        translateY(85px)
        translateZ(90px)
        scale(1) !important;

    opacity: 1 !important;
    filter: none !important;
}

/* Schermata a sinistra lungo l'orbita */
.app-gallery-card.is-left {
    z-index: 3 !important;

    transform:
        translateX(calc(-50% - 315px))
        translateY(30px)
        translateZ(-80px)
        rotateY(25deg)
        scale(0.72) !important;

    opacity: 0.82 !important;
    filter: saturate(0.9) brightness(0.97) !important;
}

/* Schermata a destra lungo l'orbita */
.app-gallery-card.is-right {
    z-index: 3 !important;

    transform:
        translateX(calc(-50% + 315px))
        translateY(30px)
        translateZ(-80px)
        rotateY(-25deg)
        scale(0.72) !important;

    opacity: 0.82 !important;
    filter: saturate(0.9) brightness(0.97) !important;
}

/* Quarta schermata: dietro e più in alto */
.app-gallery-card.is-back {
    z-index: 1 !important;

    transform:
        translateX(-50%)
        translateY(-42px)
        translateZ(-230px)
        scale(0.58) !important;

    opacity: 0.24 !important;
    filter: saturate(0.75) brightness(0.94) !important;
    pointer-events: none !important;
}

/* Piccolo sollevamento delle schermate laterali */
.app-gallery-card.is-left:hover {
    transform:
        translateX(calc(-50% - 315px))
        translateY(18px)
        translateZ(-55px)
        rotateY(22deg)
        scale(0.75) !important;

    opacity: 1 !important;
}

.app-gallery-card.is-right:hover {
    transform:
        translateX(calc(-50% + 315px))
        translateY(18px)
        translateZ(-55px)
        rotateY(-22deg)
        scale(0.75) !important;

    opacity: 1 !important;
}

/* Frecce centrate rispetto alla nuova orbita */
.app-gallery-arrow {
    top: 215px !important;
}


/* TABLET */
@media (max-width: 1180px) {
    .app-gallery-stage {
        height: 450px !important;
    }

    .app-gallery-card.is-active {
        transform:
            translateX(-50%)
            translateY(75px)
            translateZ(70px)
            scale(1) !important;
    }

    .app-gallery-card.is-left {
        transform:
            translateX(calc(-50% - 245px))
            translateY(28px)
            translateZ(-70px)
            rotateY(23deg)
            scale(0.70) !important;
    }

    .app-gallery-card.is-right {
        transform:
            translateX(calc(-50% + 245px))
            translateY(28px)
            translateZ(-70px)
            rotateY(-23deg)
            scale(0.70) !important;
    }

    .app-gallery-card.is-back {
        transform:
            translateX(-50%)
            translateY(-30px)
            translateZ(-200px)
            scale(0.56) !important;
    }

    .app-gallery-arrow {
        top: 190px !important;
    }
}


/* TABLET VERTICALE */
@media (max-width: 820px) {
    .app-gallery-stage {
        height: 385px !important;
    }

    .app-gallery-card.is-active {
        transform:
            translateX(-50%)
            translateY(62px)
            scale(1) !important;
    }

    .app-gallery-card.is-left {
        transform:
            translateX(calc(-50% - 105px))
            translateY(22px)
            scale(0.80)
            rotateY(15deg) !important;

        opacity: 0.42 !important;
    }

    .app-gallery-card.is-right {
        transform:
            translateX(calc(-50% + 105px))
            translateY(22px)
            scale(0.80)
            rotateY(-15deg) !important;

        opacity: 0.42 !important;
    }

    .app-gallery-card.is-back {
        transform:
            translateX(-50%)
            translateY(-20px)
            scale(0.62) !important;

        opacity: 0.12 !important;
    }

    .app-gallery-arrow {
        top: 165px !important;
    }
}


/* TELEFONO: una sola schermata visibile */
@media (max-width: 600px) {
    .app-gallery-stage {
        height: 285px !important;
    }

    .app-gallery-card.is-active {
        transform:
            translateX(-50%)
            translateY(20px)
            scale(1) !important;
    }

    .app-gallery-card.is-left,
    .app-gallery-card.is-right,
    .app-gallery-card.is-back {
        opacity: 0 !important;
        transform:
            translateX(-50%)
            translateY(0)
            scale(0.90) !important;

        pointer-events: none !important;
    }

    .app-gallery-arrow {
        top: auto !important;
        bottom: 2px !important;
    }
}

/* =========================================================
   HOME V8 — CONTATTI DEFINITIVI
   ========================================================= */

.contact-section-final {
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.72fr) !important;
    gap: 72px !important;
    align-items: center !important;
    padding-top: 90px !important;
    padding-bottom: 105px !important;
}

.contact-section-final::before {
    content: "";
    position: absolute;
    inset: 24px -28px;
    z-index: -1;
    border-radius: 38px;
    background:
        radial-gradient(circle at 5% 20%, rgba(37, 132, 255, 0.08), transparent 30%),
        radial-gradient(circle at 96% 78%, rgba(245, 0, 87, 0.075), transparent 31%),
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(249,252,255,.98));
    border: 1px solid #e6eefb;
}

.contact-final-copy {
    max-width: 700px;
}

.contact-section-final h2 {
    margin: 12px 0 17px;
    font-size: clamp(38px, 4.4vw, 56px) !important;
    line-height: 1.04;
    letter-spacing: -1.35px;
}

.contact-section-final .contact-final-copy > p {
    max-width: 660px;
    margin: 0;
    color: var(--home-text);
    font-size: 18px;
    line-height: 1.68;
}

.contact-reasons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 29px;
}

.contact-reason {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    min-height: 104px;
    padding: 17px 18px;
    border: 1px solid;
    border-radius: 21px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 28px rgba(7,27,77,.06);
}

.contact-reason > span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 21px;
}

.contact-reason strong,
.contact-reason small {
    display: block;
}

.contact-reason strong {
    margin-bottom: 4px;
    color: var(--home-navy);
    font-size: 15px;
    line-height: 1.2;
}

.contact-reason small {
    color: #68758d;
    font-size: 12.5px;
    line-height: 1.42;
}

.contact-reason-blue {
    border-color: #c9dfff;
    background: linear-gradient(180deg, #ffffff, #f2f8ff);
}

.contact-reason-blue > span {
    background: #e9f4ff;
}

.contact-reason-yellow {
    border-color: #f3db86;
    background: linear-gradient(180deg, #ffffff, #fffbea);
}

.contact-reason-yellow > span {
    background: #fff5cb;
}

.contact-email-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 360px;
    padding: 38px 32px 32px;
    box-sizing: border-box;
    border: 1px solid #ffafcc;
    border-radius: 31px;
    background:
        radial-gradient(circle at 50% 4%, rgba(255,255,255,.88), transparent 34%),
        linear-gradient(160deg, #ffffff 0%, #fff2f7 100%);
    text-align: center;
    box-shadow:
        0 22px 52px rgba(245,0,87,.12),
        0 10px 28px rgba(7,27,77,.07);
}

.contact-email-card::after {
    content: "";
    position: absolute;
    right: -66px;
    bottom: -76px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(245,0,87,.07);
    pointer-events: none;
}

.contact-email-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
    border-radius: 22px;
    color: white;
    background: linear-gradient(145deg, #ff3a81, #ed0054);
    font-size: 31px;
    box-shadow:
        0 14px 28px rgba(245,0,87,.25),
        inset 0 1px 0 rgba(255,255,255,.28);
}

.contact-email-label {
    position: relative;
    z-index: 1;
    margin-bottom: 9px;
    color: #d80050;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 1.15px;
}

.contact-email-address {
    position: relative;
    z-index: 1;
    color: var(--home-navy);
    font-size: clamp(22px, 2.35vw, 31px);
    font-weight: 950;
    line-height: 1.15;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-email-address:hover {
    color: var(--home-pink);
}

.contact-email-card p {
    position: relative;
    z-index: 1;
    max-width: 340px;
    margin: 17px 0 23px;
    color: #66738a;
    font-size: 14px;
    line-height: 1.55;
}

.contact-email-button {
    position: relative;
    z-index: 1;
    min-height: 51px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 17px;
    color: white;
    background: linear-gradient(180deg, #ff347b, #f50057);
    font-weight: 950;
    text-decoration: none;
    box-shadow:
        0 12px 25px rgba(245,0,87,.24),
        inset 0 1px 0 rgba(255,255,255,.25);
    transition: transform .18s ease, box-shadow .18s ease;
}

.contact-email-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 30px rgba(245,0,87,.28),
        inset 0 1px 0 rgba(255,255,255,.27);
}

@media (max-width: 1000px) {
    .contact-section-final {
        grid-template-columns: 1fr !important;
        gap: 34px !important;
        width: min(100% - 34px, 760px) !important;
    }

    .contact-final-copy {
        max-width: none;
    }

    .contact-email-card {
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .contact-section-final {
        width: calc(100% - 28px) !important;
        padding-top: 68px !important;
        padding-bottom: 76px !important;
    }

    .contact-section-final::before {
        inset: 16px -7px;
        border-radius: 28px;
    }

    .contact-section-final h2 {
        font-size: 36px !important;
    }

    .contact-section-final .contact-final-copy > p {
        font-size: 16px;
    }

    .contact-reasons {
        grid-template-columns: 1fr;
    }

    .contact-reason {
        min-height: 0;
    }

    .contact-email-card {
        padding: 30px 20px 25px;
        border-radius: 26px;
    }

    .contact-email-address {
        font-size: 22px;
    }

    .contact-email-button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================================
   HOME V9 — MODULO CONTATTI IN FINESTRA
   ========================================================= */

.contact-email-button {
    border: 0;
    font: inherit;
    cursor: pointer;
}

body.contact-modal-open {
    overflow: hidden;
}

.contact-modal[hidden] {
    display: none !important;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
}

.contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 17, 48, 0.68);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.contact-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(880px, calc(100vh - 48px));
    overflow-y: auto;
    padding: 34px;
    box-sizing: border-box;
    border: 1px solid rgba(194, 214, 245, 0.95);
    border-radius: 31px;
    background:
        radial-gradient(circle at 92% 5%, rgba(245, 0, 87, 0.08), transparent 28%),
        radial-gradient(circle at 8% 3%, rgba(37, 132, 255, 0.10), transparent 29%),
        #ffffff;
    box-shadow:
        0 34px 90px rgba(2, 17, 52, 0.30),
        0 12px 34px rgba(7, 83, 214, 0.12);
    opacity: 0;
    transform: translateY(24px) scale(0.965);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.contact-modal.is-open .contact-modal-backdrop,
.contact-modal.is-open .contact-modal-dialog {
    opacity: 1;
}

.contact-modal.is-open .contact-modal-dialog {
    transform: translateY(0) scale(1);
}

.contact-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid #dce7f7;
    border-radius: 14px;
    color: #52617b;
    background: rgba(255,255,255,.92);
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(7,27,77,.07);
    transition: transform .18s ease, color .18s ease, border-color .18s ease;
}

.contact-modal-close:hover {
    color: #f50057;
    border-color: #ffb2ce;
    transform: rotate(4deg) scale(1.04);
}

.contact-modal-heading {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding-right: 52px;
}

.contact-modal-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(145deg, #ff3a81, #ed0054);
    font-size: 28px;
    box-shadow:
        0 13px 27px rgba(245,0,87,.23),
        inset 0 1px 0 rgba(255,255,255,.28);
}

.contact-modal-heading small {
    display: block;
    margin-bottom: 5px;
    color: #0753d6;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 1.25px;
}

.contact-modal-heading h2 {
    margin: 0;
    color: #071b4d;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.05;
    letter-spacing: -0.8px;
}

.contact-modal-intro {
    margin: 22px 0 25px;
    color: #52617b;
    font-size: 15.5px;
    line-height: 1.6;
}

.contact-modal-intro strong {
    color: #071b4d;
}

.contact-form {
    display: grid;
    gap: 17px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.contact-field {
    display: grid;
    gap: 8px;
}

.contact-field > span {
    color: #1a2f5f;
    font-size: 13px;
    font-weight: 900;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #ceddf3;
    border-radius: 16px;
    outline: none;
    background: rgba(250,252,255,.96);
    color: #071b4d;
    font: inherit;
    font-size: 15px;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.contact-field input {
    min-height: 51px;
    padding: 12px 15px;
}

.contact-field textarea {
    min-height: 145px;
    padding: 14px 15px;
    resize: vertical;
    line-height: 1.5;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #95a1b5;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: #4b91ef;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(7,83,214,.10);
}

.contact-field input:invalid:not(:placeholder-shown),
.contact-field textarea:invalid:not(:placeholder-shown) {
    border-color: #f2a2be;
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 2px;
}

.contact-form-footer > p {
    max-width: 390px;
    margin: 0;
    color: #758198;
    font-size: 11.5px;
    line-height: 1.45;
}

.contact-submit-button {
    flex: 0 0 auto;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 21px;
    border: 0;
    border-radius: 17px;
    color: #ffffff;
    background: linear-gradient(180deg, #ff347b, #f50057);
    font: inherit;
    font-weight: 950;
    cursor: pointer;
    box-shadow:
        0 12px 25px rgba(245,0,87,.24),
        inset 0 1px 0 rgba(255,255,255,.25);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.contact-submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 16px 30px rgba(245,0,87,.28),
        inset 0 1px 0 rgba(255,255,255,.27);
}

.contact-submit-button:disabled {
    cursor: wait;
    opacity: .72;
}

.contact-submit-button.is-success {
    background: linear-gradient(180deg, #22bd73, #079653);
    box-shadow: 0 12px 25px rgba(7,150,83,.22);
}

.contact-form-status {
    display: none;
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.contact-form-status.is-visible {
    display: block;
}

.contact-form-status.is-success {
    border: 1px solid #a9e3c8;
    background: #ecfbf4;
    color: #087344;
}

.contact-form-status.is-error {
    border: 1px solid #ffc0d5;
    background: #fff1f6;
    color: #b30042;
}

@media (max-width: 650px) {
    .contact-modal {
        padding: 12px;
        align-items: end;
    }

    .contact-modal-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 27px 18px 22px;
        border-radius: 27px;
    }

    .contact-modal-close {
        top: 13px;
        right: 13px;
    }

    .contact-modal-heading {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
        padding-right: 43px;
    }

    .contact-modal-icon {
        width: 52px;
        height: 52px;
        border-radius: 17px;
        font-size: 23px;
    }

    .contact-modal-heading h2 {
        font-size: 29px;
    }

    .contact-modal-intro {
        margin: 18px 0 21px;
        font-size: 14px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-submit-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-modal-backdrop,
    .contact-modal-dialog {
        transition: none !important;
    }
}


/* =========================================================
   HOME — ACCESSO E REGISTRAZIONE
   ========================================================= */
body.home-page .topbar-account-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 4px;
}

body.home-page .topbar-login-link,
body.home-page .topbar-logout-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid #cdddf4;
    border-radius: 15px;
    color: #0753d6;
    background: rgba(255,255,255,.88);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(7,83,214,.06);
}

body.home-page .topbar-login-link:hover,
body.home-page .topbar-logout-button:hover {
    border-color: #8dbaff;
    background: #eef6ff;
}

body.home-page .topbar-dashboard-link {
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.home-page .topbar-logout-button {
    font-family: inherit;
}

body.home-page .topbar-register-button {
    margin: 0 !important;
}

@media (max-width: 1180px) {
    body.home-page .topbar-account-actions {
        gap: 8px;
    }

    body.home-page .topbar-login-link,
    body.home-page .topbar-logout-button {
        min-height: 43px;
        padding: 9px 12px;
        font-size: 13px;
    }

    body.home-page .topbar-dashboard-link {
        max-width: 125px;
    }
}

@media (max-width: 600px) {
    body.home-page .topbar-account-actions {
        gap: 6px;
    }

    body.home-page .topbar-login-link,
    body.home-page .topbar-logout-button {
        min-height: 40px;
        padding: 8px 10px;
        font-size: 12px;
    }

    body.home-page .topbar-register-button {
        min-height: 40px !important;
        padding: 8px 11px !important;
        font-size: 12px !important;
    }

    body.home-page .topbar-dashboard-link {
        max-width: 92px;
    }
}

/* Fase 4 — collegamenti legali nel footer */
.site-footer-legal {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 4px 0;
}
.site-footer-legal a {
    color: #0753d6;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}
.site-footer-legal a:hover { text-decoration: underline; }
/* FOOTER-DIRITTI-UNA-RIGA-V1 */
.site-footer .site-footer-rights {
    white-space: nowrap !important;
    min-width: max-content;
    text-align: right;
}
@media (max-width: 1180px) {
    .site-footer .site-footer-rights {
        text-align: center;
    }
}
@media (max-width: 380px) {
    .site-footer .site-footer-rights {
        font-size: 12px;
    }
}

/* =========================================================
   TACHIREAD-PIANI-MOBILE-CSS-V1
   Il menu desktop resta invariato. Su tablet e smartphone
   compare un collegamento Piani su una seconda riga.
   ========================================================= */
.topbar-mobile-plans-link {
    display: none;
}

@media (max-width: 900px) {
    body.home-page:not(.app-online-open) .topbar {
        height: auto !important;
        min-height: 120px !important;
        flex-wrap: wrap !important;
        align-content: center !important;
        padding-top: 6px !important;
        padding-bottom: 8px !important;
        row-gap: 4px !important;
    }

    body.home-page .topbar .brand {
        order: 1;
    }

    body.home-page .topbar-account-actions {
        order: 2;
        margin-left: auto !important;
    }

    body.home-page .topbar-mobile-plans-link {
        order: 3;
        flex: 0 0 100%;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #cdddf4;
        border-radius: 12px;
        background: #eef6ff;
        color: #0753d6;
        font-size: 13px;
        font-weight: 900;
        line-height: 1;
        text-decoration: none;
        box-shadow: 0 5px 12px rgba(7, 83, 214, .06);
    }

    body.home-page .topbar-mobile-plans-link:active {
        background: #dfeeff;
    }
}

@media (max-width: 600px) {
    body.home-page:not(.app-online-open) .topbar {
        min-height: 112px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-top: 4px !important;
        padding-bottom: 7px !important;
    }

    body.home-page .topbar-mobile-plans-link {
        min-height: 30px;
        border-radius: 11px;
        font-size: 12px;
    }
}

@media (max-width: 430px) {
    body.home-page:not(.app-online-open) .topbar .brand {
        width: 158px !important;
        min-width: 158px !important;
    }

    body.home-page:not(.app-online-open) .topbar img.topbar-logo {
        width: 155px !important;
    }
}

/* =========================================================
   TACHIREAD-PIANI-MOBILE-CSS-V2
   Correzione: nascosto su desktop, pulsante curato solo mobile.
   ========================================================= */
body.home-page .topbar > .topbar-mobile-plans-link {
    display: none !important;
}

@media (max-width: 900px) {
    body.home-page .topbar > .topbar-mobile-plans-link {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        min-height: 38px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin: 2px 0 0;
        padding: 0 18px;
        border: 0;
        border-radius: 999px;
        background: linear-gradient(135deg, #0753d6 0%, #2f6fe8 55%, #ff0f68 140%);
        color: #ffffff !important;
        font-size: 14px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: .01em;
        text-decoration: none !important;
        box-shadow: 0 8px 20px rgba(7, 83, 214, .20);
        -webkit-tap-highlight-color: transparent;
        transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    }

    body.home-page .topbar > .topbar-mobile-plans-link:active {
        transform: scale(.985);
        box-shadow: 0 5px 14px rgba(7, 83, 214, .18);
        filter: brightness(.97);
    }
}

@media (max-width: 600px) {
    body.home-page .topbar > .topbar-mobile-plans-link {
        min-height: 36px;
        font-size: 13px;
        margin-top: 1px;
    }
}

/* =========================================================
   TACHIREAD-MENU-PIANI-MOBILE-DEFINITIVO-V3
   Su mobile si usa il link originale "Scopri i piani".
   Nessun collegamento duplicato.
   ========================================================= */
@media (max-width: 900px) {
    .topbar nav[aria-label="Navigazione principale"] {
        order: 3 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 4px 0 0 !important;
        padding: 0 !important;
    }

    .topbar nav[aria-label="Navigazione principale"] > a {
        display: none !important;
    }

    .topbar nav[aria-label="Navigazione principale"] > a[href="/piani"] {
        width: 100% !important;
        min-height: 38px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 18px !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: linear-gradient(135deg, #0753d6 0%, #3274ec 58%, #ff0f68 145%) !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        letter-spacing: .01em !important;
        text-decoration: none !important;
        box-shadow: 0 8px 18px rgba(7, 83, 214, .20) !important;
        -webkit-tap-highlight-color: transparent;
    }

    .topbar nav[aria-label="Navigazione principale"] > a[href="/piani"]:active {
        transform: scale(.985);
        filter: brightness(.97);
    }
}

@media (max-width: 600px) {
    .topbar nav[aria-label="Navigazione principale"] > a[href="/piani"] {
        min-height: 36px !important;
        border-radius: 13px !important;
        font-size: 13px !important;
    }
}

/* =========================================================
   TACHIREAD-MENU-PIANI-MOBILE-V4
   Override definitivo della vecchia regola mobile che
   nascondeva l'intera navigazione con display:none!important.
   ========================================================= */
@media (max-width: 900px) {
    body.home-page:not(.app-online-open) header.topbar {
        height: auto !important;
        min-height: 124px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        align-content: center !important;
        column-gap: 8px !important;
        row-gap: 7px !important;
        padding: 6px 12px 9px !important;
    }

    body.home-page:not(.app-online-open) header.topbar .brand {
        order: 1 !important;
    }

    body.home-page:not(.app-online-open) header.topbar .topbar-account-actions {
        order: 2 !important;
        margin-left: auto !important;
    }

    body.home-page:not(.app-online-open) header.topbar nav[aria-label="Navigazione principale"] {
        order: 3 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 38px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        overflow: visible !important;
    }

    body.home-page:not(.app-online-open) header.topbar
    nav[aria-label="Navigazione principale"] > a {
        display: none !important;
    }

    body.home-page:not(.app-online-open) header.topbar
    nav[aria-label="Navigazione principale"] > a[href="/piani"] {
        width: 100% !important;
        min-height: 38px !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 18px !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: linear-gradient(135deg, #0753d6 0%, #3678ee 58%, #f50057 145%) !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        letter-spacing: .01em !important;
        text-align: center !important;
        text-decoration: none !important;
        box-shadow: 0 8px 18px rgba(7, 83, 214, .22) !important;
        transform: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    body.home-page:not(.app-online-open) header.topbar
    nav[aria-label="Navigazione principale"] > a[href="/piani"]::after {
        display: none !important;
        content: none !important;
    }

    body.home-page:not(.app-online-open) header.topbar
    nav[aria-label="Navigazione principale"] > a[href="/piani"]:active {
        transform: scale(.985) !important;
        filter: brightness(.97);
    }
}

@media (max-width: 600px) {
    body.home-page:not(.app-online-open) header.topbar {
        min-height: 116px !important;
    }

    body.home-page:not(.app-online-open) header.topbar
    nav[aria-label="Navigazione principale"] > a[href="/piani"] {
        min-height: 36px !important;
        border-radius: 13px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 430px) {
    body.home-page:not(.app-online-open) header.topbar .brand {
        width: 158px !important;
        min-width: 158px !important;
    }

    body.home-page:not(.app-online-open) header.topbar img.topbar-logo {
        width: 155px !important;
    }
}

