/* ═══════════════════════════════════════════════════
   GEOMETRYKA — Navigazione prodotti + Correlati
   /ponte-child/geometryka-prodotti.css
   ═══════════════════════════════════════════════════ */

/* ─── Contenitore — allinea al layout Elementor ─── */
.geo-product-nav,
.geo-related {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* ─── Navigazione prev/next ─── */
.geo-product-nav {
    border-top: 1px solid #e0e0e0;
    margin-top: 48px;
    margin-bottom: 40px;
    padding-top: 32px;
}

.geo-product-nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.geo-product-nav__prev a,
.geo-product-nav__next a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none!important;
    color: inherit;
    transition: opacity 0.2s;
}

.geo-product-nav__prev a:hover,
.geo-product-nav__next a:hover {
    opacity: 0.65;
}

.geo-product-nav__next {
    text-align: right;
}

.geo-product-nav__next a {
    align-items: flex-end;
}

.geo-product-nav__label {
    font-size: 11px;
    color: #888;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.geo-product-nav__title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.geo-product-nav__all {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none!important;
    border: 1px solid #1a1a1a;
    padding: 8px 20px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.geo-product-nav__all:hover {
    background: #1a1a1a;
    color: #fff;
}

/* ─── Griglia correlati ─── */
.geo-related {
    border-top: 1px solid #e0e0e0;
    margin-top: 0;
    margin-bottom: 60px;
    padding-top: 40px;
}

.geo-related__title {
    font-size: 13px!important;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 32px;
}

.geo-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.geo-related__card {
    text-decoration: none!important;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity 0.2s;
}

.geo-related__card:hover {
    opacity: 0.75;
}

.geo-related__img {
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 3 / 4;
}

.geo-related__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.geo-related__card:hover .geo-related__img img {
    transform: scale(1.04);
}

.geo-related__name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .geo-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .geo-product-nav__inner {
        grid-template-columns: 1fr 1fr;
    }

    .geo-product-nav__center {
        grid-column: 1 / -1;
        text-align: center;
        order: -1;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .geo-related__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}
