/* sites/shoppi.app/page/css/pos.css */
:root {
    --pos-bg: #030712;
    --pos-surface: #0f172a;
    --pos-card: #1e293b;
    --pos-text: #f8fafc;
    --pos-text-muted: #94a3b8;
    --pos-border: rgba(255, 255, 255, 0.08);
    --pos-accent: #f43f5e;
    --pos-accent-hover: #e11d48;
    --pos-radius: 20px;
    --pos-glass: rgba(15, 23, 42, 0.8);
}

body.pos-brand {
    background-color: var(--pos-bg);
    color: var(--pos-text);
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    line-height: 1.6;
}

.pos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Nav ─── */
.pos-header-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--pos-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pos-border);
}

.pos-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* ─── Hero ─── */
.pos-hero {
    padding: 120px 0 100px;
    text-align: center;
}

.pos-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pos-hero p {
    font-size: 1.4rem;
    color: var(--pos-text-muted);
    max-width: 700px;
    margin: 0 auto 48px;
}

/* ─── Image Showcasing ─── */
.pos-product-visual {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 100px;
    background: radial-gradient(circle at 50% 50%, rgba(244, 63, 94, 0.15) 0%, transparent 60%);
    padding: 40px;
    border-radius: 40px;
}

.pos-product-visual img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
}

/* ─── Cards & Grid ─── */
.pos-card {
    background: var(--pos-card);
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius);
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pos-card img {
    width: 100%;
    height: 200px;
    /* Imposta un'altezza fissa o massima per uniformità */
    object-fit: contain;
    /* L'immagine viene contenuta senza essere tagliata */
    /* Oppure usa 'cover' se vuoi che riempia l'area (potrebbe tagliare i bordi) */
    margin-bottom: 20px;
    border-radius: calc(var(--pos-radius) / 2);
    display: block;
}

.pos-card:hover {
    border-color: rgba(244, 63, 94, 0.4);
    transform: trargba(11, 7, 8, 0.4)
}

.pos-card i {
    font-size: 2rem;
    color: var(--pos-accent);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--pos-text-muted);
    font-size: 0.95rem;
}

.hardware-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hardware-img {
    /* Fondamentali per il controllo dimensionale */
    width: 100%;
    /* Occupa tutta la larghezza disponibile della card... */
    max-width: 100%;
    /* ...ma non un pixel di più */
    height: 220px;
    /* Altezza fissa per mantenere la griglia allineata */

    /* Gestione del contenuto */
    object-fit: contain;
    /* L'immagine si ridimensiona senza tagliarsi o deformarsi */
    object-position: center;
    /* Centra l'hardware nel caso sia più stretto della card */

    /* Layout */
    display: block;
    margin: 0 auto 1.5rem;
    /* Centra orizzontalmente e dà respiro al testo sotto */

    /* Animazione (la tua originale, che è ottima) */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hardware-card:hover .hardware-img {
    transform: translateY(-10px) scale(1.05);
}

.sector-pill {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    color: #fff;
    display: inline-block;
}

.sector-pill:hover,
.sector-pill.active {
    background: rgba(244, 63, 94, 0.1);
    color: var(--pos-accent);
    border-color: rgba(244, 63, 94, 0.3);
}

.btn-modern {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-modern {
    background: var(--pos-accent);
    color: #fff !important;
    border: none;
}

.btn-primary-modern:hover {
    background: var(--pos-accent-hover);
    box-shadow: 0 10px 20px rgba(244, 63, 94, 0.2);
}

/* ─── Stats ─── */
.stats-grid {
    margin-top: 80px;
}

.stat-item h4 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--pos-text-muted);
}

@media (max-width: 768px) {
    .pos-hero h1 {
        font-size: 2.5rem;
    }

    .pos-hero p {
        font-size: 1.1rem;
    }
}

.fw-black {
    font-weight: 900;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    transform: scale(1.05);
}