/*
 * SnapBrainy — Home Page CSS
 * Uses v2 design tokens (--color-*, --font-display, --font-body, --text-*, etc.)
 * Requires: design-tokens.css, base.css
 */

/* ── Page background ── */
.home-page {
    background: var(--color-bg);
    overflow-x: hidden;
    color: var(--color-text);
    font-family: var(--font-body);
    /* Start vertical scroll immediately without tap/drag disambiguation delay */
    touch-action: pan-y;
}

/* Prevent browser native drag on images and links — drag-start detection
   blocks the first scroll gesture on both desktop and touch devices.
   touch-action: pan-y must be set on the individual elements (img, a),
   not just the parent wrapper, otherwise the browser still enters the
   300-400ms tap-vs-drag disambiguation window on those elements. */
.home-page img,
.home-page a {
    -webkit-user-drag: none;
    user-drag: none;
    touch-action: pan-y;
    -webkit-touch-callout: none;
}

/* Hover lift on cards has no meaning on pure-touch devices — remove it
   so the browser doesn't enter hover-state detection on touchstart */
@media (hover: none) {
    .home-product-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
        border-color: transparent;
    }
}

[data-theme="dark"] .home-page { background: var(--color-bg); }

/* ── Shared section spacing ── */
.home-section { padding: var(--space-24) 0; }
@media (max-width: 768px) { .home-section { padding: var(--space-16) 0; } }

/* ── Section headers ── */
.home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
    margin-bottom: var(--space-12);
}

@media (max-width: 768px) {
    .home-section-header { margin-bottom: var(--space-8); }
}
.home-section-header--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.home-section-header--inverse { color: var(--color-text-inverse); }

.home-section-label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--color-gold);
    margin: 0 0 var(--space-3);
}
.home-section-label--inverse { color: var(--color-gold); }

.home-section-h2 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--color-text);
    margin: 0 0 var(--space-3);
}
.home-section-h2--inverse { color: var(--color-text-inverse); }

.home-section-sub {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 300;
    color: var(--color-text-muted);
    margin: 0;
    max-width: none;
}
.home-section-sub--inverse { color: rgba(245,243,238,0.60); }

.home-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-blue);           /* Signal Teal */
    text-decoration: none;
    white-space: nowrap;
    transition: gap var(--dur-base) var(--ease-out);
}
.home-link-arrow:hover { gap: 10px; }

/* ══════════════════════════════════════════════
   §1 HERO
══════════════════════════════════════════════ */

.home-hero {
    position: relative;
    background: var(--color-bg);
    display: flex;
    align-items: flex-start;
    overflow: visible;
    padding: clamp(5rem, 10vh, 8rem) 0 clamp(4rem, 8vh, 6rem);
    border-bottom: 1px solid var(--color-divider);
}

@media (max-width: 768px) {
    .home-hero {
        padding-top: var(--space-12);
        padding-bottom: var(--space-16);
        align-items: flex-start;
    }
}

/* Background elements */
.home-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.home-hero-grain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.home-hero-glow {
    position: absolute;
    top: 40%;
    right: 10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(15,107,120,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Inner layout */
.home-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 55% 45%;
    gap: var(--space-12);
    align-items: center;
    width: 100%;
    max-width: var(--sb-container);
    margin-inline: auto;
}

@media (max-width: 1023px) {
    .home-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-10);
    }
    .home-hero-visual {
        order: -1;
        min-height: 260px;
    }
    .home-books       { height: 240px; max-width: 320px; }
    .home-book--center { width: 128px; height: 186px; }
    .home-book--left,
    .home-book--right  { width: 94px; height: 138px; }
}

@media (max-width: 480px) {
    .home-hero-visual { min-height: 200px; }
    .home-books       { height: 195px; max-width: 270px; }
    .home-book--center { width: 106px; height: 154px; }
    .home-book--left,
    .home-book--right  { width: 78px; height: 114px; }
}

/* Eyebrow micro-label — non competitore del titolo */
.home-eyebrow-label {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-brand);
    margin-bottom: 14px;
}

/* H1 */
.home-hero-h1 {
    font-family: var(--font-display);   /* Playfair Display */
    font-size: var(--text-hero);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--color-text);           /* Ink Black */
    margin: 0 0 var(--space-6);
}

.home-hero-em {
    font-style: italic;
    color: var(--color-blue);           /* Signal Teal */
}

/* Sub */
.home-hero-sub {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
    font-weight: 400;
    line-height: 1.65;
    color: var(--color-text);
    max-width: 460px;
    margin: 0 0 var(--space-10);
}

@media (max-width: 1023px) {
    .home-hero-sub { margin-inline: auto; }
}

/* CTA buttons */
.home-hero-ctas {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-12);
}

@media (max-width: 1023px) {
    .home-hero-ctas { justify-content: center; }
}
@media (max-width: 480px) {
    .home-hero-ctas { flex-direction: column; width: 100%; }
}

.home-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-cta);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    padding: 15px 30px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 14px rgba(184,94,31,0.22);
    transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.home-cta-primary svg {
    transition: transform var(--dur-base) var(--ease-out);
}

.home-cta-primary:hover {
    background: var(--color-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(184,94,31,0.28);
}

.home-cta-primary:hover svg { transform: translateX(4px); }

.home-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--color-divider);
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    padding: 14px 20px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 160ms ease, color 160ms ease;
}

.home-cta-ghost svg { display: none; }

.home-cta-ghost:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
    background: transparent;
}

@media (max-width: 480px) {
    .home-cta-primary, .home-cta-ghost { width: 100%; justify-content: center; }
}

/* Social proof pill — sopra h1 */
.home-hero-proof {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-surface);
    border-radius: 999px;
    padding: 5px 14px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

@media (max-width: 1023px) { .home-hero-proof { margin-inline: auto; } }

.home-stars { color: var(--color-gold); letter-spacing: 1px; font-size: 11px; }

.home-proof-sep {
    color: var(--color-divider);
    font-size: 14px;
    line-height: 1;
}

/* Book mockup */
.home-hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 360px;
    overflow: hidden;
    /* Books are decorative (aria-hidden, tabindex=-1). pointer-events:none
       prevents the browser from entering the ~300ms tap-vs-scroll decision
       window when a touch starts over a book <a> element, which was causing
       the page to ignore the first scroll gesture on mobile. */
    pointer-events: none;
}

.home-books {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    perspective: 1000px;
    height: 340px;
    width: 100%;
    max-width: 400px;
}

.home-books--single { justify-content: center; }

.home-book {
    display: block;
    border-radius: 4px 10px 10px 4px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    transition: transform var(--dur-slow) var(--ease-out);
}

.home-book img {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.home-book--center {
    width: 180px;
    height: 260px;
    z-index: 2;
    animation: bookFloat 4s ease-in-out infinite;
}

.home-book--left {
    width: 140px;
    height: 200px;
    transform: rotateY(12deg) translateX(30px);
    opacity: 0.82;
    z-index: 1;
    animation: bookFloat 4s ease-in-out infinite;
    animation-delay: -1.3s;
}

.home-book--right {
    width: 140px;
    height: 200px;
    transform: rotateY(-12deg) translateX(-30px);
    opacity: 0.82;
    z-index: 1;
    animation: bookFloat 4s ease-in-out infinite;
    animation-delay: -2.6s;
}

.home-books-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 360px;
    height: 160px;
    background: radial-gradient(ellipse, rgba(15,107,120,0.10) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(20px);
}

@keyframes bookFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.home-book--left  { animation-name: bookFloatSide; }
.home-book--right { animation-name: bookFloatSideRight; }

@keyframes bookFloatSide {
    0%, 100% { transform: rotateY(12deg) translateX(30px) translateY(0); }
    50%       { transform: rotateY(12deg) translateX(30px) translateY(-10px); }
}

@keyframes bookFloatSideRight {
    0%, 100% { transform: rotateY(-12deg) translateX(-30px) translateY(0); }
    50%       { transform: rotateY(-12deg) translateX(-30px) translateY(-10px); }
}

/* Scroll badge — removed per spec */
.home-scroll-badge { display: none !important; }

/* ══════════════════════════════════════════════
   §2 TRUST BAR — single clean row
══════════════════════════════════════════════ */

.home-trust {
    background: var(--color-dark);
    padding: 10px 0;
}

.home-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.75);
}

.home-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 4px 10px;
}

.home-trust-stars {
    color: var(--color-gold);
    letter-spacing: 0;
    font-size: 11px;
}

.home-trust-sep {
    color: var(--color-brand);
    font-size: 14px;
    line-height: 1;
    padding: 0 2px;
    opacity: 0.8;
}

/* Legacy dots — hide */
.home-trust-dot { display: none; }

@media (max-width: 640px) {
    .home-trust-row { gap: 0; }
    .home-trust-item:nth-child(n+6) { display: none; }
}

/* Legacy — keep pay-badge for footer */
.pay-badge {
    height: 22px !important;
    max-height: 22px !important;
    width: auto !important;
    max-width: 52px !important;
    display: block;
    border-radius: 3px;
}

.home-trust-pay-icons { display: flex; align-items: center; gap: 6px; }

/* ══════════════════════════════════════════════
   §3 BEST SELLERS
══════════════════════════════════════════════ */

.home-sellers { background: var(--color-bg); }
[data-theme="dark"] .home-sellers { background: var(--color-bg); }

.home-sellers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (min-width: 1200px) {
    .home-sellers-grid { grid-template-columns: repeat(6, 1fr); gap: var(--space-5); }
}
@media (max-width: 1023px) {
    .home-sellers-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .home-sellers-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
}

.home-product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-card);
    padding: var(--space-4);
    transition: transform 180ms ease, box-shadow 180ms ease;
    overflow: hidden;
}

.home-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(14,17,19,0.08);
}

/* WooCommerce sale badge — hide */
.home-product-cover .onsale,
.home-product-cover .woocommerce-badge { display: none !important; }

.home-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.home-product-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-surface-2);
    margin-bottom: var(--space-3);
}

.home-product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--dur-slow) var(--ease-out);
}

/* Insight Tab — removed per rebrand spec */
.home-product-cover::after { display: none; }

.home-product-card:hover .home-product-cover img { transform: scale(1.03); }

/* Discount badge — minimal, dark */
.home-product-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(10,15,30,0.80);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 0 0 var(--radius-sm) 0;
    backdrop-filter: blur(4px);
}

.home-product-body { padding-top: var(--space-1); }

.home-product-cat {
    display: block;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-blue);           /* Signal Teal */
    margin-bottom: var(--space-1);
}

.home-product-title {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
    margin: 0 0 var(--space-3);
    min-height: 2.6em;
}

/* Nascondi testo grezzo WooCommerce "Original price was / Current price is" */
.home-product-price .screen-reader-text { display: none !important; }
.home-product-price .woocommerce-Price-amount bdi { display: inline; }

.home-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.home-product-price {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--color-text);
}

.home-product-price del {
    font-weight: 400;
    font-size: var(--text-xs);
    color: var(--color-text-muted);     /* Slate */
    margin-right: 4px;
    text-decoration: line-through;
    text-decoration-color: var(--color-text-muted);
}
.home-product-price ins {
    text-decoration: none;
    color: var(--color-cta);
    font-weight: 700;
}

.home-product-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
}

/* ══════════════════════════════════════════════
   §4 BROWSE BY TOPIC (Bento)
══════════════════════════════════════════════ */

.home-topics {
    background: var(--color-bg);   /* Paper Ivory — sezione light */
    padding: var(--space-24) 0;
    border-top: 1px solid var(--color-divider);
}

@media (max-width: 768px) { .home-topics { padding: var(--space-16) 0; } }

.home-topics-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0;
    margin: 0;
}

@media (max-width: 900px) {
    .home-topics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .home-topics-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.home-topic-card {
    border-radius: var(--radius-card);
    background: white;
    border: 1px solid var(--color-divider);
    overflow: hidden;
    transition: border-color 160ms ease;
}

.home-topic-card:hover {
    border-color: var(--color-brand);
}

.home-topic-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 18px 20px;
    min-height: 110px;
    text-decoration: none;
    color: inherit;
}

.home-topic-icon {
    display: flex;
    align-items: center;
    width: 22px;
    height: 22px;
    background: none;
    border-radius: 0;
    color: var(--color-brand);
    padding: 0;
    flex-shrink: 0;
}

.home-topic-card:hover .home-topic-icon { color: var(--color-brand); }

.home-topic-meta { margin-top: var(--space-3); }

.home-topic-name {
    display: block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 5px;
}

.home-topic-count {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-brand);
}

@media (max-width: 480px) {
    .home-topic-link { padding: 14px 16px; min-height: 90px; }
    .home-topic-name { font-size: 0.875rem; }
}

/* ══════════════════════════════════════════════
   §5 BRAND MANIFESTO
══════════════════════════════════════════════ */

.home-manifesto {
    background: var(--color-dark);
    padding: clamp(5rem, 9vw, 8rem) 0;
    text-align: center;
    position: relative;
}

[data-theme="dark"] .home-manifesto { background: var(--color-dark); }

/* Decorative top/bottom separators */
.home-manifesto::before,
.home-manifesto::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: rgba(255,255,255,0.12);
}
.home-manifesto::before { top: 0; }
.home-manifesto::after  { bottom: 0; }

.home-manifesto-inner {
    max-width: 700px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-10);
}

.home-manifesto-icon { display: none; }  /* rimosso — disturba il momento editoriale */

.home-manifesto-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.6rem, 2.8vw, 2.6rem);
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
    border: none;
    padding: 0;
    max-width: 820px;
    text-align: center;
}

/* Grande virgoletta aperta CSS */
.home-manifesto-quote::before {
    content: '\201C';
    font-size: 3rem;
    color: var(--color-brand);
    line-height: 0;
    vertical-align: -1.4rem;
    margin-right: 3px;
    font-style: normal;
    display: inline;
}

.manifesto-line {
    display: block;
    max-width: none;
    margin: 0;
}

.manifesto-highlight { color: var(--color-blue); font-style: normal; font-weight: 600; }

.home-manifesto-sub {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: rgba(255,255,255,0.60);
    max-width: 480px;
    line-height: 1.7;
    margin: 0;
}

/* CTA secondario outline */
.home-manifesto-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: var(--radius-btn);
    padding: 12px 30px;
    transition: background var(--dur-base) var(--ease-out),
                color var(--dur-base) var(--ease-out),
                border-color var(--dur-base) var(--ease-out);
    position: static;
}

.home-manifesto-cta:hover {
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    border-color: rgba(255,255,255,0.60);
}
.home-manifesto-cta svg { transition: transform var(--dur-base) var(--ease-out); }
.home-manifesto-cta:hover svg { transform: translateX(3px); }

/* ══════════════════════════════════════════════
   §6 HOW IT WORKS
══════════════════════════════════════════════ */

.home-steps { background: var(--color-surface); }
[data-theme="dark"] .home-steps { background: var(--color-surface); }

.home-steps-grid {
    display: grid;
    grid-template-columns: 1fr 80px 1fr 80px 1fr;
    align-items: center;
    gap: 0;
}

@media (max-width: 768px) {
    .home-steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    .home-step-connector { display: none; }
}

.home-step {
    text-align: center;
    padding: var(--space-8) var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;  /* per ghost number */
}

.home-step-num { display: none; }

/* Ghost number di sfondo — watermark editoriale */
.home-step[data-step]::before {
    content: attr(data-step);
    position: absolute;
    top: var(--space-3);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--color-divider);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.home-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: none;
    border: none;
    padding: 0;
    margin: 0 auto var(--space-5);
    color: var(--color-brand);
}

.home-step h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--space-3);
}

.home-step p {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 1.65;
    max-width: 240px;
    margin-inline: auto;
}

.home-step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2px;
    padding: 0 var(--space-2);
}

.home-step-connector svg {
    width: 100%;
    height: 2px;
    overflow: visible;
}

/* ══════════════════════════════════════════════
   §7 WHY SNAPBRAINY — stats grid
══════════════════════════════════════════════ */

/* ── By the numbers — tipografico, sezione separata ── */
.home-why {
    background: var(--color-surface-2);
    border-top: 1px solid var(--color-divider);
    border-bottom: 1px solid var(--color-divider);
}

.home-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Niente gap — separatori border */
}

@media (max-width: 768px) {
    .home-why-grid { grid-template-columns: repeat(2, 1fr); }
}

.home-why-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem) var(--space-6);
    border-right: 1px solid var(--color-divider);
    gap: var(--space-3);
}

.home-why-item:last-child { border-right: none; }

@media (max-width: 768px) {
    .home-why-item:nth-child(2) { border-right: none; }
    .home-why-item:nth-child(3) { border-top: 1px solid var(--color-divider); }
    .home-why-item:nth-child(4) { border-top: 1px solid var(--color-divider); border-right: none; }
}

/* Numero grande — Playfair Display, Signal Teal */
.home-why-num {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--color-brand);
    letter-spacing: -0.04em;
}

/* Unità/superscript — Brain Blue */
.home-why-unit {
    color: var(--color-blue);
    font-size: 0.5em;
    vertical-align: super;
    font-weight: 600;
}

/* Label descrittiva — Slate */
.home-why-label {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    max-width: 140px;
}

/* ══════════════════════════════════════════════
   §8 TESTIMONIALS
══════════════════════════════════════════════ */

.home-reviews { background: var(--color-bg); }
[data-theme="dark"] .home-reviews { background: var(--color-bg); }

.home-reviews-avg {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-3);
}

.home-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1023px) {
    .home-reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .home-reviews-grid { grid-template-columns: 1fr; }
}

.home-review-card {
    background: var(--color-surface);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    transition: box-shadow var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-out);
}

.home-review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.home-review-stars {
    color: var(--color-gold);
    font-size: 16px;
    letter-spacing: 2px;
}

.home-review-text {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--color-text);
    font-style: italic;
    line-height: 1.7;
    flex: 1;
    margin: 0;
    max-width: none;
    quotes: '\201C' '\201D';
}
.home-review-text::before {
    content: open-quote;
    font-family: var(--font-display);  /* Playfair Display */
    font-style: normal;
    font-size: 1.35em;
    line-height: 0;
    vertical-align: -0.28em;
    color: var(--color-gold);          /* Brass */
    margin-right: 1px;
}

.home-review-footer {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    border-top: var(--border-subtle);
    padding-top: var(--space-5);
    margin-top: auto;
}

.home-review-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-brand);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.home-review-name {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
}

.home-review-info {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 300;
    color: var(--color-text-muted);
}

.home-review-badge {
    margin-left: auto;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-gold);
    background: var(--color-gold-subtle);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* ══════════════════════════════════════════════
   §9 CLOSING CTA
══════════════════════════════════════════════ */

.home-closing {
    background: var(--color-surface-deep);
    padding: var(--space-24) 0;
}

@media (max-width: 768px) {
    .home-closing { padding: var(--space-16) 0; }
}

.home-closing-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-8);
}

.home-closing-eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-gold);
    margin: 0;
}

.home-closing-h2 {
    font-family: var(--font-display);  /* Playfair Display */
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--color-text-inverse);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0;
}

.home-closing-em {
    font-style: italic;
    color: var(--color-blue);          /* Signal Teal */
    display: block;
}

.home-closing-sub {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: rgba(246,241,232,0.55);
    max-width: 42ch;
    line-height: 1.6;
    margin: 0;
}

.home-closing-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: 15px 32px;
    background: var(--color-cta);
    color: #ffffff;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 700;
    text-decoration: none;
    transition: background var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out);
    box-shadow: 0 2px 20px rgba(184,94,31,0.35);
}

.home-closing-cta:hover {
    background: var(--color-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 28px rgba(184,94,31,0.45);
}

/* ══════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   JS adds .is-visible when element enters viewport
══════════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {
    .reveal-section {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity var(--dur-slow) var(--ease-out),
                    transform var(--dur-slow) var(--ease-out);
    }

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

    .reveal-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 500ms var(--ease-out),
                    transform 500ms var(--ease-out);
    }

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

    .manifesto-line {
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 500ms var(--ease-out),
                    transform 500ms var(--ease-out);
    }

    .manifesto-line.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}
