/* ═══════════════════════════════════════════════════════════════
   PAGINA PRODOTTI — Panoramica 8 categorie
   Palette: phILLUMINA GOLD + GRAFITE
   ═══════════════════════════════════════════════════════════════ */

.page-prodotti {
    font-family: var(--v2-sans, 'Plus Jakarta Sans', sans-serif);
    background: var(--v2-cream, #F8F6F1);
    color: var(--v2-graphite, #1A1817);
    max-width: 100vw;
    overflow-x: hidden;
}

/* ── HERO ─────────────────────────────────────────────────── */
.v2-prodotti-hero {
    padding: clamp(120px, 16vh, 200px) 32px clamp(60px, 8vh, 100px);
    background: linear-gradient(180deg, var(--v2-cream, #F8F6F1) 0%, #fff 100%);
}
.v2-prodotti-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
}
.v2-prodotti-hero .v2-section-tag {
    margin-bottom: 20px;
}
.v2-prodotti-h1 {
    font-family: var(--v2-sans, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin: 0 0 24px;
    color: var(--v2-graphite, #1A1817);
}
.v2-prodotti-h1 em {
    font-style: normal;
    color: var(--v2-gold, #FBC302);
}
.v2-prodotti-lead {
    font-size: clamp(1rem, 1.15vw, 1.1875rem);
    line-height: 1.55;
    color: rgba(26,24,23,0.65);
    max-width: 680px;
    margin: 0;
}

/* ── GRID CATEGORIE ───────────────────────────────────────── */
.v2-prodotti-grid-sec {
    padding: 60px 32px;
    background: var(--v2-cream, #F8F6F1);
}
.v2-prodotti-grid-inner {
    max-width: 1400px;
    margin: 0 auto;
}
.v2-prodotti-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.v2-cat-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.v2-cat-card {
    background: #fff;
    border: 1px solid rgba(26,24,23,0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
    height: 100%;
}
.v2-cat-card:hover {
    border-color: rgba(251,195,2,0.5);
    transform: translateY(-4px);
    box-shadow: 0 14px 36px -10px rgba(0,0,0,0.18);
}

.v2-cat-card-img {
    aspect-ratio: 4 / 5;
    background-color: #1A1817;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 14px;
}
.v2-cat-card-count {
    font-family: var(--v2-mono, 'JetBrains Mono', monospace);
    font-size: 0.625rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FBC302;
    font-weight: 700;
    padding: 5px 10px;
    background: rgba(26,24,23,0.7);
    border-radius: 999px;
}

.v2-cat-card-body {
    padding: 18px;
}
.v2-cat-card-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin: 0 0 10px;
    line-height: 1.05;
}
.v2-cat-card-name em {
    font-style: italic;
    font-weight: 300;
    font-size: 0.8rem;
    color: rgba(26,24,23,0.6);
    letter-spacing: 0;
    text-transform: none;
}
.v2-cat-card-name span {
    font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #1A1817;
}
.v2-cat-card-desc {
    font-size: 0.75rem;
    line-height: 1.45;
    color: rgba(26,24,23,0.6);
    margin: 0 0 14px;
    /* limita a 3 righe */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.v2-cat-card-cta {
    font-family: var(--v2-mono, 'JetBrains Mono', monospace);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FBC302;
    font-weight: 700;
}

/* ── CTA ──────────────────────────────────────────────────── */
.v2-prodotti-cta {
    background: var(--v2-graphite, #1A1817);
    color: #F8F6F1;
    padding: 60px 32px;
    text-align: center;
}
.v2-prodotti-cta-inner {
    max-width: 720px;
    margin: 0 auto;
}
.v2-prodotti-cta h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.v2-prodotti-cta p {
    font-size: 1rem;
    color: rgba(248,246,241,0.7);
    margin: 0 0 24px;
}
.v2-prodotti-cta-btn {
    display: inline-block;
    padding: 16px 36px;
    background: #FBC302;
    color: #1A1817;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid #FBC302;
    transition: all 0.35s ease;
}
.v2-prodotti-cta-btn:hover {
    background: transparent;
    color: #FBC302;
    transform: translateY(-2px);
}

/* Section tag */
.v2-section-tag-gold {
    font-family: var(--v2-mono, 'JetBrains Mono', monospace);
    font-size: clamp(0.6875rem, 0.8vw, 0.8125rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--v2-gold, #FBC302);
    font-weight: 600;
    display: inline-block;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .v2-prodotti-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
    .v2-prodotti-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 500px) {
    .v2-prodotti-hero { padding: 100px 20px 50px; }
    .v2-prodotti-grid-sec { padding: 40px 20px; }
    .v2-prodotti-grid { grid-template-columns: 1fr; }
    .v2-prodotti-cta { padding: 50px 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   FIX v5 — CARD CATEGORIA: OVERLAY 20% + TITOLO PIÙ GRANDE
   ═══════════════════════════════════════════════════════════════ */

/* Overlay 20% sopra le foto card (le foto sono già scure, ma 20% aiuta leggibilità testo) */
.v2-cat-card-img {
    position: relative;
}
.v2-cat-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(26, 24, 23, 0.20);
    pointer-events: none;
    z-index: 1;
}
.v2-cat-card-img > * {
    position: relative;
    z-index: 2;
}

/* Titolo card categoria — più grande */
.v2-cat-card-title,
.v2-cat-card .v2-cat-card-title {
    font-size: clamp(22px, 2.5vw, 36px) !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
}
.v2-cat-card-pre {
    font-size: 0.45em !important;
}

/* Mobile: titolo card categoria ancora più grande */
@media (max-width: 900px) {
    .v2-cat-card-title,
    .v2-cat-card .v2-cat-card-title {
        font-size: clamp(28px, 6.5vw, 38px) !important;
    }
    .v2-cat-card-pre {
        font-size: 0.4em !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CARD PRODOTTI — Titolo SULLA FOTO (stile home) + Descrizione sotto
   ═══════════════════════════════════════════════════════════════ */

/* Immagine card: contenitore relativo per position absolute degli elementi figli */
.v2-cat-card .v2-cat-card-img {
    position: relative !important;
    display: block !important;
    padding: 0 !important;
    color: #F8F6F1 !important;
    min-height: 280px;
}

/* "5 prodotti" in ALTO A DESTRA — posizione assoluta */
.v2-cat-card .v2-cat-card-count {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    background: rgba(251, 195, 2, 0.95);
    color: #1A1817 !important;
    font-family: var(--v2-mono, 'JetBrains Mono', monospace);
    font-size: clamp(11px, 0.75vw, 13px);
    font-weight: 700;
    padding: 5px 10px;
    letter-spacing: 0.08em;
    z-index: 3;
}

/* Titolo "Illuminazione STRADALE" in BASSO A SINISTRA — posizione assoluta */
.v2-cat-card .v2-cat-card-name {
    position: absolute !important;
    bottom: 20px !important;
    left: 22px !important;
    right: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #F8F6F1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 2px !important;
    z-index: 3;
    line-height: 1.05 !important;
}
.v2-cat-card .v2-cat-card-name em {
    font-style: italic !important;
    font-weight: 300 !important;
    font-size: 0.58em !important;
    color: rgba(248, 246, 241, 0.75) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
.v2-cat-card .v2-cat-card-name span {
    font-weight: 800 !important;
    font-size: clamp(22px, 2.5vw, 36px) !important;
    color: #F8F6F1 !important;
    letter-spacing: -0.02em !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
}

/* Body sotto la foto: SOLO descrizione, padding compatto */
.v2-cat-card .v2-cat-card-body {
    padding: 16px 18px 20px !important;
    background: #F8F6F1;
}
.v2-cat-card .v2-cat-card-desc {
    font-family: var(--v2-sans, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(13px, 0.95vw, 15px) !important;
    line-height: 1.55 !important;
    color: rgba(26, 24, 23, 0.7) !important;
    margin: 0 !important;
}

/* Hover effect: foto leggermente più chiara */
.v2-cat-card-link:hover .v2-cat-card-img {
    filter: brightness(1.05);
}

/* Mobile: titolo più grande */
@media (max-width: 900px) {
    .v2-cat-card .v2-cat-card-name span {
        font-size: clamp(28px, 6.5vw, 38px) !important;
    }
    .v2-cat-card .v2-cat-card-name em {
        font-size: 0.46em !important;
    }
    .v2-cat-card .v2-cat-card-img {
        padding: 18px !important;
    }
    .v2-cat-card .v2-cat-card-body {
        padding: 14px 16px 18px !important;
    }
}
