/* ============================================
   WordPress-specific overrides + Home page styles
   (matching mobee.it production)
   ============================================ */

/* Accessibility: hide visually but keep in DOM for screen readers */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Skip to content: visible on focus (keyboard navigation) */
.skip-link:focus {
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    color: var(--color-primary, #0DCC71);
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 8px;
    line-height: normal;
    padding: 12px 20px;
    text-decoration: none;
    top: 8px;
    width: auto;
    z-index: 100000;
}

/* WP nav active item */
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
    color: var(--color-primary);
}

/* ============================================
   GLOBAL — Titoli h2 a 45px desktop
   ============================================ */
h2, .home-section-title, .description-block h2 {
    font-size: 45px;
    font-weight: 700;
    line-height: 1.15;
}

/* ============================================
   HOME PAGE — exact production replica
   ============================================ */

/* --- Hero section --- */
.hero {
    background: var(--color-primary);
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 60px 0 40px;
}

.hero-content {
    color: #fff;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.hero-highlight {
    position: relative;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* --- Generic home section --- */
.home-section {
    padding: 70px 0;
}

.home-section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-text);
}

/* --- Innovation cards --- */
.innovation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.innovation-card {
    text-align: center;
    padding: 20px;
}

.innovation-icon {
    width: 64px;
    height: 64px;
    background: rgba(13, 204, 113, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-primary);
}

.innovation-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.innovation-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- App gallery (step slider) ---
   Container same width as .container, laterali tagliate, loop forward */
.app-gallery-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

.app-gallery-track {
    display: flex;
    gap: 0;
    transition: transform 0.6s ease;
}

.app-gallery-track.no-transition {
    transition: none;
}

.app-gallery-track img {
    flex-shrink: 0;
    width: 275px;
    height: 560px;
    object-fit: cover;
}

/* --- Zero costi di commissioni ---
   Titolo NERO grande, sottotitolo bianco uppercase, molto padding */
.zero-commissioni {
    background: var(--color-primary);
    padding: 150px 20px;
    text-align: center;
}

.zero-commissioni h2 {
    color: #000;
    font-size: 45px;
    font-weight: 800;
    font-style: italic;
    margin: 0 0 20px;
    line-height: 1.1;
}

.zero-commissioni p {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
    line-height: 1.6;
}

.zero-commissioni strong {
    color: #fff;
    font-weight: 800;
}

/* --- Video + Description section ---
   Titolo full-width sopra, video a sinistra + testo a destra sotto */
.video-section {
    padding: 70px 0;
}

.video-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.video-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-text p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* --- Novità POS ---
   Sfondo con immagine Back_header_section.jpg */
.home-novita {
    background: var(--color-primary) url('../img/Back_header_section.jpg') left center / cover no-repeat !important;
    color: #fff;
}

.home-novita .novita-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.home-novita .novita-content h3 {
    color: #fff;
}

.home-novita .novita-content p {
    color: rgba(255, 255, 255, 0.9);
}

.home-novita .btn-primary {
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.home-novita .btn-primary:hover {
    background: #f0f0f0;
}

.novita-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.novita-badge {
    display: inline-block;
    background: #FEF3C7;
    color: #D97706;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.novita-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.35;
}

.novita-image img {
    width: 65%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* --- Gestisci (3 cards with circle icons) --- */
.gestisci-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.gestisci-card {
    text-align: center;
    padding: 20px;
}

.gestisci-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.gestisci-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.gestisci-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE — Home
   ============================================ */
@media (max-width: 768px) {
    h2, .home-section-title, .description-block h2 {
        font-size: 1.6rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 0 30px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        max-width: none;
    }

    .hero-cta {
        justify-content: center;
    }

    .innovation-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .app-gallery-track img {
        width: 168px;
        height: 340px;
        object-fit: cover;
    }

    .zero-commissioni {
        padding: 50px 0 60px;
    }

    .zero-commissioni h2 {
        font-size: 1.75rem;
    }

    .zero-commissioni p {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }

    .video-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .novita-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .gestisci-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-section-title {
        margin-bottom: 30px;
    }
}
