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


/* ==========================================================================
   1. HERO PRINTING
   ========================================================================== */
.hero-printing-section {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background:
       
        url('../assets/images/hero_printing.jpg') no-repeat center center;
    background-size: cover;
    color: var(--text-light);
    overflow: hidden;
}

.hero-printing-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-printing-content {
    max-width: 600px;
    padding: 40px 0;
}

.hero-printing-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-printing-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Classe 75% riservata a elementi interni su desktop */
@media (min-width: 768px) {
    .printing-row-75 {
        max-width: 75%;
        margin-left: auto;
        margin-right: auto;
    }
}


/* ==========================================================================
   2. COMPONENTE: .titis-printing-intro (<printing-vendita>)
   ========================================================================== */
.titis-printing-intro {
    width: 100%;
    background: var(--bg-white);
}

/* Titolo centrato */
.tp-title-block {
    padding: 64px 48px 48px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    max-width: 960px;
    margin: 0 auto;
}

.tp-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}
.tp-tag::before {
    content: '';
    display: inline-block;
    width: 3px; height: 14px;
    background: var(--accent);
    flex-shrink: 0;
}

.tp-title-block h2 {
    font-family: var(--font-titles);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.22;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
}
.tp-title-block h2 em {
    font-style: normal;
    color: var(--primary);
}

.tp-title-block p {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

/* Split layout: testo | stampante */
.tp-split {
    display: grid;
    grid-template-columns: 1fr 280px;
    max-width: 860px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border-color);
}

/* Colonna sinistra: punti chiave */
.tp-left {
    padding: 40px 48px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.tp-intro-text {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.tp-points {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tp-point {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}
.tp-point:last-child { border-bottom: none; }

.tp-point-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-btn);
    background: var(--primary-alpha);
    border: 1px solid rgba(0, 95, 152, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast);
}
.tp-point-icon svg { width: 18px; height: 18px; }
.tp-point:hover .tp-point-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
}

.tp-point-title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 3px;
    line-height: 1.3;
}

.tp-point-desc {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* CTA row */
.tp-cta-row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: 28px;
    flex-wrap: wrap;
}

/* Bottoni interni al Web Component: dimensionati a 13px, non usano .btn globale */
.tp-btn-primary {
    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);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-fast), transform var(--transition-fast);
    letter-spacing: 0.01em;
}
.tp-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.tp-btn-primary svg { width: 14px; height: 14px; }

.tp-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.tp-btn-ghost:hover     { color: var(--primary-dark); }
.tp-btn-ghost svg       { width: 13px; height: 13px; transition: transform var(--transition-fast); }
.tp-btn-ghost:hover svg { transform: translateX(3px); }

/* Colonna destra: visual stampante */
.tp-right {
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    background: var(--bg-primary);
}

.tp-printer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-alpha);
    border: 1px solid rgba(0, 95, 152, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}
.tp-printer-badge svg { width: 12px; height: 12px; }

.tp-printer-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-printer-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0, 95, 152, 0.10));
    transition: filter var(--transition-base), transform var(--transition-base);
    user-select: none;
}
.tp-printer-wrap:hover .tp-printer-img {
    filter: drop-shadow(0 8px 24px rgba(0, 95, 152, 0.18));
    transform: translateY(-3px);
}

/* Indicatori toner CMYK */
.tp-toner-row {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    justify-content: center;
}

.tp-toner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tp-toner-bar-wrap {
    width: 8px; height: 32px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.tp-toner-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    border-radius: 4px;
    transition: height 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.tp-toner-divider {
    width: 1px; height: 32px;
    background: var(--border-color);
    flex-shrink: 0;
}

.tp-toner-label {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tp-toner-note {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.45;
    margin-top: 8px;
}

/* Partner pills */
.tp-partners {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tp-partner-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-btn);
    font-family: var(--font-titles);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
}
.tp-partner-pill .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Bottom strip statistiche */
.tp-bottom-strip {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--primary-alpha);
    border-top: 1px solid rgba(0, 95, 152, 0.12);
    max-width: 860px;
    margin: 0 auto;
}

.tp-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px;
    flex: 1;
    border-right: 1px solid var(--border-color);
}
.tp-stat:last-child { border-right: none; }

.tp-stat svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
    color: var(--primary);
}

.tp-stat-text strong {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}
.tp-stat-text {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Responsive componente printing */
@media (max-width: 768px) {
    .tp-title-block { padding: 40px 24px 32px; }
    .tp-split       { grid-template-columns: 1fr; }
    .tp-left        { padding: 28px 24px; border-right: none; border-bottom: 1px solid var(--border-color); }
    .tp-right       { padding: 28px 24px; flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .tp-printer-wrap { width: 140px; }
    .tp-bottom-strip { flex-wrap: wrap; }
    .tp-stat {
        flex: 1 1 50%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 16px 20px;
    }
    .tp-stat:nth-child(odd)                       { border-right: 1px solid var(--border-color); }
    .tp-stat:last-child,
    .tp-stat:nth-last-child(2):nth-child(odd)     { border-bottom: none; }
}

@media (max-width: 480px) {
    .tp-cta-row     { flex-direction: column; align-items: flex-start; }
    .tp-btn-primary { width: 100%; justify-content: center; }
    .tp-stat        { flex: 1 1 100%; border-right: none; }
}


/* ==========================================================================
   3. SEZIONE: VANTAGGIO NOLEGGIO
   ========================================================================== */
.v-noleggio {
    padding: var(--space-16) 0;
    background-color: var(--bg-white);
}

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

.vn-content h2 {
    font-family: var(--font-titles);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin: 15px 0 20px;
    color: var(--text-main);
}

.vn-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.vn-list {
    list-style: none;
    padding: 0;
}
.vn-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}
.vn-list li::before {
    content: '✔';
    color: var(--accent);
    margin-right: 12px;
    font-weight: bold;
}

/* Grid card valori */
.vn-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.vn-card {
    background: var(--bg-primary);
    border-left: 4px solid var(--primary);
    padding: 30px;
    border-radius: var(--radius-card);
}

.vn-val {
    display: block;
    font-family: var(--font-titles);
    font-size: 28px;
    color: var(--primary);
    font-weight: 700;
}

.vn-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: var(--space-1);
}

@media (max-width: 900px) {
    .vn-grid { grid-template-columns: 1fr; gap: var(--space-10); }
}


/* ==========================================================================
   4. SEZIONE: MODELLI SELEZIONATI
   ========================================================================== */
.modelli-selezionati {
    padding: var(--space-20) 0;
    background-color: var(--bg-primary);
}

.ms-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.ms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ms-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform var(--transition-base);
}
.ms-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ms-card img   { max-width: 100%; height: auto; margin-bottom: var(--space-5); }
.ms-card h3    { font-family: var(--font-titles); font-size: 18px; margin-bottom: 10px; color: var(--text-main); }
.ms-card p     { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 992px) {
    .ms-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   5B. SEZIONE: SMALTIMENTO TONER
       Banner a tutta larghezza: l'immagine contiene già il titolo in grafica,
       quindi l'h2 sottostante resta visivamente nascosto (solo SEO/a11y).
   ========================================================================== */
.toner-banner {
    padding: var(--space-16) 0;
    background-color: var(--bg-primary);
}

.toner-banner-media {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-8);
}
.toner-banner-media img {
    width: 100%;
    aspect-ratio: 1856 / 576;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

/* Il reveal dell'immagine parte leggermente ingrandita e si assesta, invece del solo fade */
.toner-banner-media.scroll-reveal {
    transform: scale(1.06);
    transition:
        opacity var(--transition-smooth),
        transform 0.7s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}
.toner-banner-media.scroll-reveal.active {
    transform: scale(1);
}

/* Piccolo zoom al passaggio del mouse, indipendente dal reveal */
.toner-banner-media:hover img {
    transform: scale(1.03);
}

/* I badge compaiono in sequenza dopo il testo (indici 2, 3, 4 sullo stagger già gestito da global.css) */
.toner-banner-badges .st-badge.scroll-reveal {
    transform: translateY(10px);
}
.toner-banner-badges .st-badge.scroll-reveal.active {
    transform: translateY(0);
}

.toner-banner-body {
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
}
.toner-banner-body .tp-tag {
    justify-content: center;
}
.toner-banner-body h2 {
    /* Il titolo è già presente nell'immagine sopra: qui resta solo per SEO e screen reader */
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.toner-banner-body p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.toner-banner-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.toner-banner-badges .st-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-titles);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-alpha);
    color: var(--primary);
}

@media (max-width: 600px) {
    .toner-banner-media {
        margin-bottom: var(--space-6);
    }
}

@media (prefers-reduced-motion: reduce) {
    .toner-banner-media.scroll-reveal,
    .toner-banner-badges .st-badge.scroll-reveal {
        transform: none;
        transition: none;
    }
    .toner-banner-media:hover img {
        transform: none;
    }
}


/* ==========================================================================
   5. FAQ — Layout "card azzurrate" specifico di questa pagina
      Stessa struttura di forniture-ufficio ma con prefisso .pr-faq-*
   ========================================================================== */
.pr-faq-section {
    padding: var(--space-16) 0 var(--space-30) 0;
}

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

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

.pr-faq-header-block {
    position: sticky;
    top: 100px;
}

.pr-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;
}
.pr-faq-overline::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 14px;
    background-color: var(--accent-muted);
}

.pr-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;
}

.pr-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);
}

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

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

.pr-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);
}
.pr-support-phone:hover { color: var(--primary); }

.pr-faq-list-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

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

.pr-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;
}
.pr-faq-trigger::-webkit-details-marker { display: none; }
.pr-faq-trigger::marker { display: none; }

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

.pr-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;
}

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

.pr-faq-content {
    padding: 0 32px 28px calc(32px + 64px);
}
.pr-faq-content p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

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

/* ==========================================================================
   PRINTING - allineamento card e comparsa allo scroll
   ========================================================================== */

/* --- Card valori noleggio: da bordo su un lato solo a card piena --- */
.vn-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 26px;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.vn-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;
}

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

.vn-card:hover {
    box-shadow: var(--shadow-lg);
}

.vn-label {
    line-height: 1.4;
}

/* --- Card modelli: griglia 2x2 e stile coerente --- */
.ms-grid {
    grid-template-columns: repeat(2, 1fr);
}

.ms-card {
    text-align: left;
    padding: 26px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ms-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;
}

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

.ms-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.ms-card img {
    align-self: center;
    max-height: 170px;
    object-fit: contain;
}

.ms-card h3 {
    font-size: 1.15rem;
    line-height: 1.3;
}

/* --- Comparsa a cascata ---
   .ms-card ridichiara 'transition' e azzererebbe il fade di .scroll-reveal:
   per queste due griglie la comparsa passa ad 'animation', cosi' il fade
   torna e l'hover resta immediato. */
.vn-cards .scroll-reveal,
.ms-grid .scroll-reveal {
    opacity: 0;
    transform: none;
}

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

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

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

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

@media (max-width: 992px) {
    .ms-grid { grid-template-columns: 1fr; }
    .ms-card { padding: 22px; }
    .vn-card { padding: 22px; }
}


/* ==========================================================================
   PRINTING - card immagine con banner animato
   ========================================================================== */

.ms-card {
    padding: 0;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

/* La barra d'accento superiore non serve piu': il banner fa quel lavoro */
.ms-card::before {
    display: none;
}

.ms-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

/* --- Immagine: leggermente spenta a riposo, piena all'hover --- */
.ms-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    filter: brightness(0.93) saturate(0.85);
    transition: filter 0.25s ease;
}

.ms-card:hover img {
    filter: brightness(1) saturate(1);
}

/* --- Banner del titolo --- */
.ms-card-banner {
    position: absolute;
    left: 0;
    bottom: 14%;
    z-index: 2;
    margin: 0;
    padding: 10px 24px 10px 20px;
    max-width: 88%;
    background-color: var(--primary);
    color: var(--text-light);
    font-family: var(--font-titles);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    border-radius: 0 6px 6px 0;

    /* Stato a riposo = come esce: dissolvenza, senza scorrimento inverso */
    opacity: 0;
    transform: translateX(-101%);
    transition:
        opacity 0.35s ease,
        transform 0s linear 0.35s;
}

/* Stato hover = come entra: scorrimento rapido da sinistra */
.ms-card:hover .ms-card-banner {
    opacity: 1;
    transform: translateX(0);
    transition:
        transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 0.12s ease;
}

/* --- Dispositivi senza hover: il banner resta sempre visibile --- */
@media (hover: none) {
    .ms-card img {
        filter: none;
    }

    .ms-card-banner {
        opacity: 1;
        transform: translateX(0);
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ms-card,
    .ms-card img,
    .ms-card-banner {
        transition: none;
    }

    .ms-card-banner {
        opacity: 1;
        transform: translateX(0);
    }

    .ms-card:hover {
        transform: none;
    }
}

@media (max-width: 640px) {
    .ms-card-banner {
        font-size: 0.95rem;
        padding: 8px 18px 8px 16px;
    }
}


/* ==========================================================================
   PRINTING - correzione card: nessun riquadro, allineamento sul 7:6
   ========================================================================== */

/* La griglia non deve pareggiare le altezze: le card sono orizzontali */
.ms-grid {
    align-items: start;
}

/* Riquadro contenitore reso invisibile: la cornice e' gia' nel PNG */
.ms-card {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
}

.ms-card:hover {
    background-color: transparent;
    border: none;
    box-shadow: none;
    transform: none;
}

/* Box uniforme sul rapporto reale delle immagini: allinea tutte e quattro
   anche se un PNG venisse esportato con dimensioni leggermente diverse.
   'contain' non ritaglia mai il prodotto. */
.ms-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 6;
    object-fit: contain;
    object-position: center;
    margin: 0;
}

/* Banner: blu all'80% */
.ms-card-banner {
    background-color: rgba(0, 95, 152, 0.8);
    bottom: 18%;
    border-radius: 0;
}


/* ==========================================================================
   PRINTING - card immagine: stato finale (azzera le regole precedenti)
   ========================================================================== */

.ms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    align-items: start;
    justify-items: stretch;
}

.ms-card {
    display: block;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transform: none;
}

.ms-card:hover {
    background-color: transparent;
    border: none;
    box-shadow: none;
    transform: none;
}

/* Box identico per tutte e quattro, indipendentemente dal peso del PNG */
.ms-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 6;
    object-fit: contain;
    object-position: center center;
    align-self: auto;
    max-width: 100%;
    max-height: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

@media (max-width: 992px) {
    .ms-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   PRINTING - card con immagini normalizzate (tela 800x600, senza cornice)
   ========================================================================== */

.ms-card {
    display: block;
    position: relative;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    box-shadow: none;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ms-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: none;
}

/* Tela unica: tutte e quattro le immagini hanno ora lo stesso rapporto */
.ms-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center center;
    margin: 0;
    padding: 0;
    max-height: none;
    align-self: auto;
    filter: brightness(0.95) saturate(0.9);
    transition: filter 0.25s ease;
}

.ms-card:hover img {
    filter: brightness(1) saturate(1);
}

.ms-card-banner {
    bottom: 16%;
}


/* ==========================================================================
   PRINTING - card immagine: zoom all'hover, nessun filtro, misura ridotta
   ========================================================================== */

/* Card ridotte del 20% e centrate nella cella della griglia */
.ms-card {
    max-width: 80%;
    margin: 0 auto;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ms-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: none;
}

/* Niente piu' filtro: i PNG sono trasparenti e non c'e' nulla da schiarire.
   Al passaggio del mouse la stampante si ingrandisce leggermente. */
.ms-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center center;
    margin: 0;
    padding: 0;
    max-height: none;
    align-self: auto;
    filter: none;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ms-card:hover img {
    filter: none;
    transform: scale(1.07);
}

@media (hover: none) {
    .ms-card img,
    .ms-card:hover img {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ms-card img,
    .ms-card:hover img {
        transform: scale(1);
        transition: none;
    }
}

@media (max-width: 992px) {
    .ms-card {
        max-width: 100%;
    }
}
