/**
 * ==========================================================================
 * TiTiS.it — Forniture per Ufficio
 * Versione: 2.0 — Refactoring Giugno 2026
 * Dipendenze: global.css (caricato prima)
 * ==========================================================================
 */


/* ==========================================================================
   1. WRAPPER STRUTTURALE
   ========================================================================== */
.page-row {
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.bg-gray-row  { background-color: var(--bg-primary); }
.bg-white-row { background-color: var(--bg-white); }

/* Contenitore rigido per figli diretti delle righe */
.page-row > hero-forniture,
.page-row > titis-journey,
.page-row > oltre-shop,
.page-row > section {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
    display: block;
}

@media (max-width: 1248px) {
    .page-row > hero-forniture,
    .page-row > titis-journey,
    .page-row > oltre-shop,
    .page-row > section {
        padding-left: 24px;
        padding-right: 24px;
    }
}


/* ==========================================================================
   2. HERO 
   ========================================================================== */
.hero-section {
    padding: 80px 0 120px 0;
    overflow: hidden; 
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: var(--space-12);
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content .overline {
    color: var(--primary);
    margin-bottom: var(--space-4);
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: var(--space-6);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: var(--space-10);
    color: var(--text-main);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative; 
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    max-width: 120%; 
    object-fit: contain;
    transform: scale(1.05); 
    transform-origin: center right;
}

@media (max-width: 1023px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
    .hero-content { order: 2; }
    .hero-image-wrapper { order: 1; }
    .hero-section { padding: 40px 0 80px 0; }
    
    .hero-image-wrapper img {
        max-width: 100%;
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        width: 100%;
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
}


/* ==========================================================================
   3. SEZIONE INTRO SHOP
   ========================================================================== */
.shop-intro-section {
    padding: var(--space-30) 0;
}

.shop-intro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.shop-intro-container h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    line-height: 1.3;
    color: var(--text-main);
    max-width: 900px;
    margin-bottom: var(--space-10);
}

.shop-intro-text {
    max-width: 850px;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.shop-intro-text p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}


/* ==========================================================================
   3-BIS. OLTRE LO SHOP — Sezione narrativa "pinned" a scorrimento
   .os-track riserva lo spazio di scroll; .os-pin resta agganciata
   (fixed/absolute calcolati via JS — niente position:sticky, per
   compatibilità con l'overflow-x:hidden globale) mentre i beat si
   alternano in dissolvenza sopra la stessa area (stack a griglia
   sovrapposta, ora dentro .os-beats-stack). Quando lo scroll supera
   l'altezza di .os-track, il pin si sgancia da solo. Logica in
   oltre-shop.js.
   ========================================================================== */

/* --- Header: fuori dall'area pinned, stile allineato a categories-header --- */
.os-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-8);
    padding: 0 24px;
}

.os-header-overline {
    display: inline-block;
    font-family: var(--font-titles);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-muted);
    position: relative;
    padding-left: 16px;
    margin-bottom: 14px;
}

.os-header-overline::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 14px;
    background-color: var(--accent-muted);
}

.os-header h2 {
    font-family: var(--font-titles);
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    color: var(--text-main);
    margin: 0 0 var(--space-6) 0;
}

.os-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.os-section {
    padding: 0 0 var(--space-16) 0;
}

.os-track {
    position: relative;
}

.os-pin {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: var(--space-16);
    align-items: center;
    padding: var(--space-6) 0;
    box-sizing: border-box;
    z-index: 10;
}

/* --- Colonna immagine --- */
.os-visual {
    position: relative;
}

.os-visual-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-xl);
    background-color: var(--bg-primary);
}

.os-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.os-img.is-active {
    opacity: 1;
}

/* --- Colonna narrativa --- */
.os-narrative-stack {
    display: flex;
    flex-direction: column;
}

/* Stepper orizzontale a 4 pallini: unico indicatore di avanzamento
   (sostituisce il vecchio bordo colorato per-beat). */
.os-stepper {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-6);
}

.os-stepper-track {
    position: relative;
    flex: 1;
    height: 3px;
    background-color: var(--border-color);
    border-radius: 2px;
    margin: 0 6px;
}

.os-stepper-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0%;
    background-color: var(--accent);
    border-radius: 2px;
    transition: width 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.os-stepper-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--border-color);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.os-stepper-dot.is-done {
    background-color: var(--accent);
}

.os-stepper-dot.is-current {
    background-color: var(--accent);
    transform: scale(1.5);
    box-shadow: 0 0 0 4px rgba(252, 212, 0, 0.25);
}

/* Stack sovrapposto dei beat */
.os-beats-stack {
    position: relative;
    display: grid;
}

.os-beat {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.os-beat.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- Riga icona + titolo --- */
.os-beat-head {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.os-beat-head h3 {
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--text-main);
    margin: 0;
}

.os-beat-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background-color: var(--primary-alpha);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-base), color var(--transition-base);
}

.os-beat-icon svg {
    width: 22px;
    height: 22px;
}

.os-beat.is-active .os-beat-icon {
    background-color: var(--accent);
    color: var(--bg-dark);
}

.os-beat p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
    max-width: 560px;
}

.os-beat-closing h3 {
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--text-main);
    margin: 0 0 var(--space-4) 0;
}

.os-beat-closing .btn {
    margin-top: var(--space-6);
}

/* --- Scorri: sotto il testo, non più sopra la foto. Visibile su tutte
   le slide tranne l'ultima (gestito via classe .is-visible in JS). --- */
.os-scroll-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--space-8);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.os-scroll-hint.is-visible {
    opacity: 1;
}

.os-scroll-hint-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--primary-alpha);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.os-scroll-hint-icon svg {
    animation: os-hint-bounce 1.6s ease-in-out infinite;
}

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

.os-scroll-hint span {
    font-family: var(--font-titles);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* --- Responsive: sotto i 1024px si abbandona il pin, tutto in flusso normale --- */
@media (max-width: 1023px) {
    .os-track {
        height: auto !important;
    }

    .os-pin {
        position: static;
        display: block;
        padding: 0;
    }

    .os-visual-inner {
        aspect-ratio: 16 / 9;
        margin-bottom: var(--space-10);
    }

    .os-beats-stack {
        display: block;
    }

    .os-beat {
        position: static;
        display: block;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto;
        margin-bottom: var(--space-10);
    }

    .os-beat:last-child {
        margin-bottom: 0;
    }

    /* Ha senso solo durante lo scroll agganciato: qui le slide sono già tutte visibili in sequenza */
    .os-stepper,
    .os-scroll-hint {
        display: none;
    }
}

@media (max-width: 640px) {
    .os-section { padding: var(--space-10) 0; }
    .os-beat-icon { width: 40px; height: 40px; }
    .os-beat-icon svg { width: 20px; height: 20px; }
    .os-beat-head h3,
    .os-beat-closing h3 { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
    .os-img,
    .os-beat,
    .os-stepper-fill,
    .os-scroll-hint-icon svg {
        transition: none;
        animation: none;
    }
}


/* ==========================================================================
   4. SEZIONE STATISTICHE
   ========================================================================== */
.stats-section {
    padding: var(--space-30) 0;
}

.stats-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-title {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    color: var(--text-main);
    text-align: center;
    margin-bottom: var(--space-16);
}

.stats-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.stats-section .stat-card {
    background-color: var(--bg-white);
    border: 2px solid var(--primary);
    border-radius: var(--radius-card);
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 240px;
    box-shadow: none;
}

.stats-section .stat-card::before {
    display: none;
}

.stats-section .stat-number {
    font-family: var(--font-titles);
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-3);
    letter-spacing: -1px;
}

.stats-section .stat-label {
    font-family: var(--font-titles);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}

@media (max-width: 1023px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        max-width: 500px;
        margin: 0 auto;
    }
    .stats-section .stat-card {
        padding: 40px 24px;
        min-height: auto;
    }
}


/* ==========================================================================
   5. TITIS JOURNEY (Web Component interattivo)
      Stili del componente interno — non interferiscono con il global.
   ========================================================================== */
titis-journey {
    padding-top: var(--space-30);
    padding-bottom: var(--space-30);
}

.titis-journey {
    width: 100%;
    background: var(--bg-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Desktop: restringe al 75% */
@media (min-width: 1024px) {
    .titis-journey {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

.tj-header {
    background: var(--primary);
    padding: 40px 48px 36px;
    position: relative;
    overflow: hidden;
}

.tj-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent);
}

.tj-header-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.tj-header h2 {
    font-family: var(--font-titles);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.25;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.tj-header p {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    color: var(--text-muted-dark);
    line-height: 1.65;
    max-width: 520px;
}

.tj-track-wrap {
    padding: 36px 48px 0;
    position: relative;
}

.tj-track-line {
    position: absolute;
    top: 56px;
    left: calc(48px + 28px);
    right: calc(48px + 28px);
    height: 2px;
    background: var(--border-color);
    border-radius: 1px;
    overflow: hidden;
}

.tj-track-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 1px;
    transition: width var(--transition-smooth);
}

.tj-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.tj-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.tj-step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.tj-step.is-done .tj-step-circle {
    background: var(--primary);
    border-color: var(--primary);
    font-size: 0;
}
.tj-step.is-done .tj-step-circle::after {
    content: '✓';
    font-size: 20px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 700;
}
.tj-step.is-active .tj-step-circle {
    border-color: var(--primary);
    background: var(--primary-alpha);
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(0, 95, 152, 0.1);
}

.tj-step-badge {
    position: absolute;
    top: -4px; right: -4px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-white);
    opacity: 0;
    transform: scale(0);
    transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tj-step.is-done .tj-step-badge { opacity: 1; transform: scale(1); }

.tj-step-label {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
    white-space: pre-line;
}
.tj-step.is-active .tj-step-label {
    color: var(--primary);
    font-weight: 500;
}

.tj-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 20px 0 0;
}
.tj-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    cursor: pointer;
}
.tj-dot.is-done    { background: var(--accent); }
.tj-dot.is-active  { width: 20px; background: var(--primary); }

.tj-detail {
    margin: 24px 32px 0;
    border: 1.5px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: 0 10px 10px 0;
    padding: 24px 28px;
    background: var(--bg-white);
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: var(--space-5);
    align-items: start;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition-base), transform var(--transition-base);
    min-height: 120px;
}
.tj-detail.is-visible { opacity: 1; transform: translateY(0); }

.tj-detail-emoji {
    width: 64px; height: 64px;
    background: var(--primary-alpha);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 95, 152, 0.12);
}

.tj-detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
}
.tj-detail-tag::before {
    content: '';
    display: inline-block;
    width: 3px; height: 12px;
    background: var(--accent);
}

.tj-detail-title {
    font-family: var(--font-titles);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.3;
}

.tj-detail-body {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 12px;
}

.tj-detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-alpha);
    border: 1px solid rgba(0, 95, 152, 0.18);
    padding: 4px 12px;
    border-radius: 20px;
}
.tj-detail-pill svg { width: 13px; height: 13px; stroke: var(--primary); stroke-width: 2; fill: none; }

.tj-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 24px 32px;
}

.tj-btn-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    background: var(--bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: var(--transition-base);
    font-size: 15px;
}
.tj-btn-icon:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-alpha);
}
.tj-btn-icon:disabled { opacity: 0.3; cursor: not-allowed; }

.tj-btn-play {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    border-radius: 20px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-white);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-base);
}
.tj-btn-play:hover        { border-color: var(--primary); color: var(--primary); background: var(--primary-alpha); }
.tj-btn-play.is-playing   { background: var(--primary-alpha); border-color: var(--primary); color: var(--primary); }
.tj-btn-play svg          { width: 14px; height: 14px; fill: currentColor; }
.tj-play-icon-pause       { display: none; }
.tj-btn-play.is-playing .tj-play-icon-play  { display: none; }
.tj-btn-play.is-playing .tj-play-icon-pause { display: block; }

.tj-footer {
    border-top: 1px solid var(--border-color);
    padding: 24px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    background: var(--bg-primary);
    flex-wrap: wrap;
}
.tj-footer p          { font-family: var(--font-body); font-size: 14px; color: var(--text-muted); }
.tj-footer p strong   { color: var(--text-main); }
.tj-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: var(--primary);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: background var(--transition-base);
}
.tj-footer-cta:hover { background: var(--primary-dark); }
.tj-footer-cta svg   { width: 14px; height: 14px; stroke: var(--text-light); stroke-width: 2.5; fill: none; }

/* Journey responsive */
@media (max-width: 640px) {
    .tj-header         { padding: 28px 24px 24px; }
    .tj-header h2      { font-size: 20px; }
    .tj-track-wrap     { padding: 28px 24px 0; }
    .tj-track-line     { left: calc(24px + 20px); right: calc(24px + 20px); top: 48px; }
    .tj-step-circle    { width: 40px; height: 40px; font-size: 16px; }
    .tj-step.is-active .tj-step-circle { transform: scale(1.15); }
    .tj-step-label     { font-size: 9px; }
    .tj-detail         { margin: 20px 16px 0; grid-template-columns: 1fr; gap: 12px; padding: 18px 20px; }
    .tj-detail-emoji   { width: 48px; height: 48px; font-size: 24px; }
    .tj-controls       { padding: 18px 16px; gap: 8px; }
    .tj-footer         { padding: 20px 24px; flex-direction: column; align-items: flex-start; }
}


/* ==========================================================================
   6. SEZIONE CATEGORIE PRODOTTI
   ========================================================================== */
.categories-section {
    padding: var(--space-30) 0;
}

/* Desktop: restringe al 75% allineato al Journey */
@media (min-width: 1024px) {
    .categories-container {
        width: 75%;
        margin-left: auto;
        margin-right: auto;
    }
}

.categories-header {
    margin-bottom: var(--space-16);
}

/* Overline oro con barra verticale sinistra — stile proprio di questa pagina */
.categories-overline {
    display: inline-block;
    font-family: var(--font-titles);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-muted);
    position: relative;
    padding-left: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}
.categories-overline::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 14px;
    background-color: var(--accent-muted);
}

.categories-header h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    color: var(--text-main);
    margin: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.category-card {
    background-color: var(--bg-white);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition:
        transform var(--transition-smooth),
        box-shadow var(--transition-base),
        border-color var(--transition-base);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 95, 152, 0.06);
    border-color: var(--primary);
}

.category-icon-wrapper {
    width: 56px; height: 56px;
    border-radius: 50%;
    background-color: var(--primary-alpha);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
}
.category-icon-wrapper svg { width: 24px; height: 24px; }

.category-card h3 {
    font-size: 1.35rem;
    color: var(--text-main);
    margin-bottom: var(--space-4);
}

.category-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 var(--space-8) 0;
    max-width: 360px;
    flex-grow: 1;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-titles);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: gap var(--transition-fast);
}
.category-link svg           { width: 14px; height: 14px; transition: transform var(--transition-fast); }
.category-link:hover         { gap: 12px; }
.category-link:hover svg     { transform: translateX(2px); }

@media (max-width: 1023px) {
    .categories-section { padding-top: 80px; padding-bottom: 80px; }
    .categories-grid    { grid-template-columns: 1fr; gap: var(--space-6); }
    .category-card      { padding: 32px 24px; }
}


/* ==========================================================================
   7. CTA SHOP (Box blu con pulsante oro)
   ========================================================================== */
.shop-cta-section {
    padding: var(--space-16) 0 var(--space-30) 0;
}

/* Desktop: restringe al 75% allineato al Journey */
@media (min-width: 1024px) {
    .shop-cta-box {
        width: 75%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
}

.shop-cta-box {
    background-color: var(--primary);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="rgba(255,255,255,0.07)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 40px center;
    background-size: 320px;
    border-radius: var(--radius-card);
    padding: 80px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.shop-cta-box h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--text-light);
    margin-bottom: var(--space-5);
    letter-spacing: -0.5px;
}

.shop-cta-box p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 680px;
    line-height: 1.6;
    margin-bottom: var(--space-10);
}

/* Bottone CTA oro — variante locale non nel sistema globale */
.btn-cta-yellow {
    background-color: var(--accent);
    color: var(--text-main);
    border: none;
    padding: 16px 48px;
    font-size: 0.95rem;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.btn-cta-yellow:hover {
    background-color: #FFC72C;
    transform: translateY(-2px);
}

@media (max-width: 1023px) {
    .shop-cta-section { padding: 40px 0 80px 0; }
    .shop-cta-box {
        padding: 60px 24px;
        background-size: 240px;
        background-position: right 10px bottom 10px;
    }
}
@media (max-width: 768px) {
    .shop-cta-box { background-image: none; }
}

@media (max-width: 1023px) {
    .shop-intro-section,
    .stats-section,
    .categories-section,
    titis-journey {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}


/* ==========================================================================
   8. FAQ — Layout "card azzurrate" specifico di questa pagina
   ========================================================================== */
.fu-faq-section {
    padding: var(--space-16) 0 var(--space-30) 0;
}

.fu-faq-container {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: var(--space-16);
    align-items: start;
}

/* Desktop: restringe al 75% */
@media (min-width: 1024px) {
    .fu-faq-container {
        width: 75%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Sidebar sinistra — sticky */
.fu-faq-header-block {
    position: sticky;
    top: 100px;
}

/* Overline oro con barra verticale sinistra */
.fu-faq-overline {
    display: inline-block;
    font-family: var(--font-titles);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-muted);
    position: relative;
    padding-left: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}
.fu-faq-overline::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 14px;
    background-color: var(--accent-muted);
}

.fu-faq-header-block h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--text-main);
    line-height: 1.15;
    margin: 0 0 var(--space-6) 0;
}

.fu-faq-intro-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: var(--space-8);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--space-8);
}

.fu-faq-support-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fu-support-label {
    font-family: var(--font-titles);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
}

.fu-support-phone {
    font-family: var(--font-titles);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.fu-support-phone:hover { color: var(--primary); }

/* Accordion a card azzurrate — colonna destra */
.fu-faq-list-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.fu-faq-item {
    background-color: var(--primary-alpha);
    border-radius: var(--radius-btn);
    overflow: hidden;
    transition: background-color var(--transition-base);
}
.fu-faq-item[open] {
    background-color: rgba(0, 95, 152, 0.1);
}

.fu-faq-trigger {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-4);
    align-items: center;
    padding: 24px 32px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.fu-faq-trigger::-webkit-details-marker { display: none; }
.fu-faq-trigger::marker { display: none; }

.fu-faq-number {
    font-family: var(--font-titles);
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

.fu-faq-trigger h3 {
    font-family: var(--font-titles);
    font-size: 1.125rem;
    color: var(--text-main);
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.fu-faq-icon {
    position: relative;
    width: 14px; height: 14px;
    display: block;
}
.fu-faq-icon::before,
.fu-faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-main);
    transition: transform 0.25s ease;
}
.fu-faq-icon::before { top: 6px; left: 0; right: 0; height: 2px; }
.fu-faq-icon::after  { left: 6px; top: 0; bottom: 0; width: 2px; }

.fu-faq-item[open] .fu-faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.fu-faq-content {
    padding: 0 32px 28px calc(32px + 64px);
}

.fu-faq-content p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* Mobile FAQ */
@media (max-width: 1023px) {
    .fu-faq-section          { padding: 40px 0 80px 0; }
    .fu-faq-container        { grid-template-columns: 1fr; gap: var(--space-12); }
    .fu-faq-header-block     { position: static; }
    .fu-faq-trigger          { padding: 20px 24px; gap: 12px; }
    .fu-faq-content          { padding: 0 24px 20px 24px; }
}

/* ==========================================================================
   SHOP EXPERIENCE - "Ordina come vuoi. Ricevi dove preferisci."
   Layout master-detail: opzioni a sinistra, dettaglio a destra.
   ========================================================================== */

.se-section {
    padding: var(--space-24) 0;
}

.se-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* --- Intestazione --- */
.se-header {
    max-width: 640px;
    margin: 0 auto var(--space-12) auto;
    text-align: center;
}

.se-overline {
    display: inline-block;
    font-family: var(--font-titles);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: var(--space-4);
}

.se-header h2 {
    margin: 0 0 var(--space-5) 0;
}

.se-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* --- Pannello: master-detail --- */
.se-panel {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    padding: var(--space-5);
    display: grid;
    grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
    gap: var(--space-5);
}

/* --- Colonna sinistra: le tre opzioni --- */
.se-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.se-opt {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    width: 100%;
    padding: var(--space-4);
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-btn);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    transition:
        background-color var(--transition-base),
        border-color var(--transition-base);
}

.se-opt:hover {
    background-color: var(--bg-primary);
}

.se-opt:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Stato attivo: blocco blu pieno, non piu' bianco su bianco */
.se-opt.is-active {
    background-color: var(--primary);
    border-color: var(--primary);
}

.se-opt-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-alpha);
    color: var(--primary);
    transition: background-color var(--transition-base), color var(--transition-base);
}

.se-opt-icon svg {
    width: 21px;
    height: 21px;
}

.se-opt.is-active .se-opt-icon {
    background-color: rgba(255, 255, 255, 0.18);
    color: var(--text-light);
}

.se-opt-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.se-opt-title {
    font-family: var(--font-titles);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}

.se-opt-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.se-opt.is-active .se-opt-title { color: var(--text-light); }
.se-opt.is-active .se-opt-sub   { color: rgba(255, 255, 255, 0.72); }

/* --- Colonna destra: dettaglio --- */
.se-detail {
    background-color: var(--bg-primary);
    border-radius: var(--radius-btn);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
}

.se-detail.is-swapping .se-badges,
.se-detail.is-swapping .se-detail-text,
.se-detail.is-swapping .se-route {
    opacity: 0;
}

.se-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    transition: opacity var(--transition-base);
}

.se-badge {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    background-color: var(--bg-white);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.se-badge-primary {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
    font-weight: 700;
}

.se-detail-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    transition: opacity var(--transition-base);
}

/* --- Percorso dell'ordine: occupa lo spazio in fondo con informazione utile --- */
.se-route {
    display: flex;
    margin-top: auto;
    padding-top: var(--space-8);
    transition: opacity var(--transition-base);
}

.se-route-step {
    flex: 1;
    position: relative;
    padding-top: 24px;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.3;
    color: var(--text-muted);
}

.se-route-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    z-index: 1;
}

.se-route-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 5px;
    left: calc(50% + 10px);
    right: calc(-50% + 10px);
    height: 2px;
    background-color: var(--border-color);
}

.se-route-step:last-child {
    color: var(--primary);
    font-weight: 700;
}

.se-route-step:last-child::before {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* --- Divisore verso le funzioni --- */
.se-divider {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin: var(--space-16) 0 var(--space-8) 0;
}

.se-divider::before,
.se-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.se-divider span {
    font-family: var(--font-titles);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

/* --- Griglia funzioni shop --- */
.se-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8) var(--space-6);
}

.se-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

/* FIX: in global.css --accent, --accent-muted e --accent-dark sono identici,
   quindi l'icona risultava gialla su fondo giallo e non si vedeva. */
.se-feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: var(--bg-dark);
}

.se-feature-icon svg {
    width: 20px;
    height: 20px;
}

.se-feature-body h3 {
    font-family: var(--font-titles);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 var(--space-2) 0;
    line-height: 1.3;
}

.se-feature-body p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 1023px) {
    .se-panel    { grid-template-columns: 1fr; }
    .se-options  { flex-direction: row; flex-wrap: wrap; }
    .se-opt      { flex: 1 1 200px; }
    .se-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .se-section  { padding: var(--space-16) 0; }
    .se-panel    { padding: var(--space-4); }
    .se-options  { flex-direction: column; }
    .se-detail   { padding: var(--space-5); }
    .se-features { grid-template-columns: 1fr; }
    .se-divider  { margin: var(--space-12) 0 var(--space-6) 0; }
    .se-route-step { font-size: 0.72rem; }
}


/* ==========================================================================
   CARD CATEGORIA - rifinitura (coerente con le card di Comunicazione Visiva)
   ========================================================================== */

.category-card {
    padding: 30px 26px;
    align-items: stretch;
    text-align: left;
    border-width: 1px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    box-shadow: var(--shadow-xl);
}

/* Barra d'accento superiore: si apre da sinistra al passaggio del mouse */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

/* Riga icona + titolo */
.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.category-icon-wrapper {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background-color: var(--primary);
    color: var(--text-light);
    margin-bottom: 0;
    transition: background-color var(--transition-base), color var(--transition-base);
}

.category-card:hover .category-icon-wrapper {
    background-color: var(--accent);
    color: var(--bg-dark);
}

.category-card h3 {
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 0;
}

/* La descrizione non spinge piu' il link in fondo con un vuoto enorme */
.category-card p {
    font-size: 0.95rem;
    margin: 0 0 var(--space-5) 0;
    max-width: none;
    flex-grow: 0;
}

/* Divisore prima del link, allineato in fondo su tutte le card */
.category-link {
    margin-top: auto;
    padding-top: var(--space-5);
    border-top: 1px solid var(--border-color);
    align-self: stretch;
    justify-content: flex-start;
}

/* --- Comparsa a cascata --- */
.categories-grid .scroll-reveal {
    opacity: 0;
    transform: none;
}

.categories-grid .scroll-reveal.active {
    opacity: 1;
    animation: categoryReveal 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000) backwards;
    animation-delay: calc(var(--card-index, 0) * 0.10s);
}

@media (min-width: 992px) {
    .categories-grid .scroll-reveal.active {
        transition-delay: 0s;
    }
}

@keyframes categoryReveal {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .categories-grid .scroll-reveal {
        opacity: 1;
    }
    .categories-grid .scroll-reveal.active {
        animation: none;
    }
}

@media (max-width: 1023px) {
    .category-card { padding: 26px 22px; }
}
