/* ============================================
   ZONZINI STAIRCLIMBERS - PRODUCT PAGE CSS
   Versione pulita e ottimizzata
   ============================================ */

body {
    background-color: var(--color-secondary);
}

/* ============================================
   STICKY SECTIONS SYSTEM
   Soluzione CSS pura per effetto pin
   ============================================ */

/* Hero resta sticky */
.product-hero {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Wrapper per scroll animazione canvas */
.product-description-wrapper {
    position: relative;
    z-index: 10;
}

.product-description {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-secondary);
    overflow: hidden;
    z-index: 10;
}

/* Z-index per sezioni successive */
.hotspot-section { position: relative; z-index: 20; }
.highlight-text-section { position: relative; z-index: 30; }
.product-feature-cards { position: relative; z-index: 40; }
.video-cards-section { position: relative; z-index: 50; }
.specs-section { position: relative; z-index: 60; }

.superior-tracks-section { position: relative; z-index: 25; }
.masonry-section { position: relative; z-index: 35; }
.gallery-section { position: relative; z-index: 45; }
.pinned-features { position: relative; z-index: 55; }

.highlight-text-section { 
    position: relative; 
    z-index: 30; 
    width: 100%;
    background: var(--color-secondary);
}

/* ============================================
   PRODUCT HERO
   ============================================ */

.product-hero {
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background-color: var(--color-secondary);
}

.product-hero-image {
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-secondary);
}

.product-hero-image img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: right center;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 5%,
        rgba(0, 0, 0, 0.7) 15%,
        black 30%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 5%,
        rgba(0, 0, 0, 0.7) 15%,
        black 30%
    );
}
.product-hero-image picture {
    margin-left: auto;
    height: 100%;
}

.product-hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        var(--color-secondary) 0%,
        var(--color-secondary) 10%,
        rgba(38, 38, 38, 0.8) 20%,
        rgba(38, 38, 38, 0.3) 40%,
        transparent 80%
    );
    z-index: 2;
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.product-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 120px 40px 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-title {
    font-size: clamp(44px, 9vw, 120px);
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 0.85;
    max-width: 70%;
}

.product-tagline {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
    font-weight: 500;
}

.product-hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    max-width: 900px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-hero-actions {
    margin-top: 1.5rem;
}

.product-hero-bottom {
    margin-top: var(--space-l);
    color: #fff;
}

/* Header-left come etichetta nella pagina prodotto */
.page-product .header-left {
    background-color: var(--color-secondary);
    border-radius: var(--radius-lg);
    padding: 10px 16px;
}

/* ============================================
   PRODUCT DESCRIPTION
   ============================================ */

.product-description .boxed {
    width: 100%;
}

.product-description-inner {
    display: grid;
    grid-template-columns: 40% 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-xl) var(--space-2xl);
    align-items: start;
}

.product-desc-lead {
    grid-column: 2;
    grid-row: 1;
}

.product-description-body {
    grid-column: 2;
    grid-row: 2;
}

.product-description-body p {
    color: var(--color-cream);
    margin-bottom: var(--space-md);
}

.product-description-image {
    grid-column: 1;
    grid-row: 1 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 70vh;
    min-height: 400px;
}

.product-description-image img,
.product-description-image canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   SECTION TITLE (comune)
   ============================================ */

.section-title {
    color: white;
    margin-bottom: var(--space-3xl);
    text-align: center;
}

/* ============================================
   PRODUCT FEATURES
   ============================================ */

.product-features {
    background: var(--color-primary);
    padding: var(--space-4xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.feature-number {
    display: block;
    font-family: var(--font-primary);
    font-size: var(--font-size-h3);
    font-weight: 800;
    color: white;
    opacity: 0.3;
    margin-bottom: var(--space-md);
}

.feature-text {
    color: white;
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    margin: 0;
}

/* ============================================
   PRODUCT SPECS
   ============================================ */

.product-specs {
    background: var(--color-secondary);
    padding: var(--space-4xl) 0;
}

.specs-table {
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label,
.spec-value {
    padding: var(--space-lg) var(--space-xl);
    color: white;
}

.spec-label {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
}

.spec-value {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   SPECS SECTION (alternativa)
   ============================================ */

.specs-section {
    padding: var(--space-4xl) 0;
    background-color: var(--color-secondary);
}

.specs-title {
    color: white;
    margin-bottom: var(--space-3xl);
    font-size: var(--font-size-h4);
}

.specs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    padding: var(--space-lg) 0;
    align-items: start;
    position: relative;
}

.specs-row::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 8px 4px;
    background-position: bottom left;
    background-repeat: repeat-x;
}

.specs-row:last-child::after {
    display: none;
}

.specs-label {
    font-family: var(--font-primary);
    font-size: var(--font-size-body);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.specs-values {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.specs-value {
    font-family: var(--font-primary);
    font-size: var(--font-size-body);
    font-weight: 500;
    color: white;
    line-height: 1.6;
}

.specs-value .value-prefix {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.specs-notes {
    margin-top: var(--space-2xl);
}

.specs-note {
    font-family: var(--font-primary);
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: var(--space-md);
}

.specs-note:last-child {
    margin-bottom: 0;
}

/* Variante sfondo chiaro */
.specs-section.specs-light .specs-title { color: var(--color-secondary); }
.specs-section.specs-light .specs-label { color: rgba(38, 38, 38, 0.7); }
.specs-section.specs-light .specs-value { color: var(--color-secondary); }
.specs-section.specs-light .specs-value .value-prefix { color: rgba(38, 38, 38, 0.5); }
.specs-section.specs-light .specs-row::after { background-image: radial-gradient(circle, rgba(38, 38, 38, 0.3) 1px, transparent 1px); }
.specs-section.specs-light .specs-note { color: rgba(38, 38, 38, 0.5); }

/* ============================================
   PRODUCT APPLICATIONS
   ============================================ */

.product-applications {
    background: var(--color-primary);
    padding: var(--space-4xl) 0;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.application-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.application-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.application-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.application-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-primary);
}

.application-text {
    color: white;
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
}

/* ============================================
   PRODUCT CTA
   ============================================ */

.product-cta {
    background: var(--color-secondary);
    padding: var(--space-4xl) 0;
}

.cta-box {
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h3 {
    color: white;
    margin-bottom: var(--space-md);
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .btn {
    display: inline-flex;
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */

.related-products {
    background: var(--color-primary);
    padding: var(--space-4xl) 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.related-item {
    background: var(--color-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-decoration: none;
    transition: all var(--transition-base);
}

.related-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.related-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    height: 200px;
}

.related-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.related-name {
    color: white;
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-h5);
}

.related-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-small);
    line-height: var(--line-height-body);
    margin: 0;
}

/* ============================================
   BACK LINK
   ============================================ */

.product-back {
    background: var(--color-secondary);
    padding: var(--space-2xl) 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--font-size-body);
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: white;
}

.back-link svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* ============================================
   PRODUCT FEATURE CARDS
   ============================================ */

.product-feature-cards {
    display: flex;
    flex-direction: column;
    gap: var(--layout-margin);
    padding: 0 var(--layout-margin) var(--layout-margin);
    background-color: var(--color-secondary);
}

/* Card Rossa */
.feature-card-red {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 500px;
    position: relative;
    z-index: 1;
}

.feature-card-red-content {
    padding: var(--space-3xl);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.feature-card-red-content h2 {
    color: white;
    margin: 0;
}

.feature-card-red-image {
    position: relative;
    overflow: hidden;
}

.feature-card-red-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-card-red-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    background: var(--color-primary);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 1;
}

/* Card Crema */
.feature-card-cream {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0;
    gap: 0;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.feature-card-cream-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    padding: var(--space-3xl);
    justify-content: center;
}

.feature-card-cream-title h3 {
    color: var(--color-secondary);
    margin: 0;
}

.feature-card-cream-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.feature-card-cream-text p {
    color: var(--color-secondary);
    margin: 0;
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
}

.feature-card-cream-canvas {
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.feature-card-cream-canvas canvas {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   SUPERIOR TRACKS SECTION
   ============================================ */

.superior-tracks-section {
    background: var(--color-secondary);
    padding: var(--space-4xl) 0;
    overflow: hidden;
    position: relative;
}

.superior-tracks-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 2fr;
    gap: var(--space-xl);
    align-items: center;
    padding-left: var(--layout-margin);
    position: relative;
}

.superior-tracks-content {
    grid-column: 2 / 6;
    position: relative;
    z-index: 2;
}

.superior-tracks-content h2 {
    color: white;
    margin-bottom: var(--space-lg);
}

.superior-tracks-content .lead {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.superior-tracks-image {
    grid-column: 6 / 7;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(50%);
}

.superior-tracks-image img {
    width: 50vw;
    max-width: none;
    height: auto;
}

/* ============================================
   CURSORE CUSTOM
   ============================================ */

.pinned-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 160px;
    height: 160px;
    margin-left: -80px;
    margin-top: -80px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pinned-cursor.visible {
    opacity: 1;
}

.pinned-cursor-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.pinned-cursor-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 3;
}

.pinned-cursor-segment {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 6;
    stroke-linecap: round;
    opacity: 0;
    transition: opacity 0.3s ease;
    stroke-dasharray: 85 198;
}

.pinned-cursor-segment[data-index="0"] { stroke-dashoffset: 0; }
.pinned-cursor-segment[data-index="1"] { stroke-dashoffset: -94; }
.pinned-cursor-segment[data-index="2"] { stroke-dashoffset: -188; }
.pinned-cursor-segment.active { opacity: 1; }

.pinned-cursor-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   AZIENDA TÜV (override per pagina prodotto)
   ============================================ */

.azienda-tuv {
    padding: 0;
    background: unset;
    margin-bottom: var(--space-5xl);
}

.azienda-tuv .container {
    background: #fff;
    padding: var(--space-4xl);
}

.azienda-tuv__content h2,
.azienda-tuv__content p {
    color: #0b253b;
}

/* ============================================
   VIDEO CARDS SECTION
   ============================================ */

.video-cards-section {
    position: relative;
    background: var(--color-secondary);
}

.video-card {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: var(--layout-margin);
    padding-top: 100px;
    will-change: transform;
}

/* Pattern colori ciclico */
.video-card:nth-child(3n+1) { background: var(--color-secondary); }
.video-card:nth-child(3n+2) { background: var(--color-primary); }
.video-card:nth-child(3n+0) { background: var(--color-cream); }

/* Z-index incrementale */
.video-card:nth-child(1)  { z-index: 1; }
.video-card:nth-child(2)  { z-index: 2; }
.video-card:nth-child(3)  { z-index: 3; }
.video-card:nth-child(4)  { z-index: 4; }
.video-card:nth-child(5)  { z-index: 5; }
.video-card:nth-child(6)  { z-index: 6; }
.video-card:nth-child(7)  { z-index: 7; }
.video-card:nth-child(8)  { z-index: 8; }
.video-card:nth-child(9)  { z-index: 9; }
.video-card:nth-child(10) { z-index: 10; }

.video-card-inner {
    width: 100%;
    max-width: var(--container-max-width, 1400px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    padding: var(--space-3xl);
}

.video-card-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.video-card-number {
    font-family: var(--font-primary);
    font-size: var(--font-size-h1);
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--space-md);
}

.video-card-title {
    margin: 0;
}

.video-card-text {
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    margin: 0;
}

/* Colori testo */
.video-card:nth-child(3n+1) .video-card-number,
.video-card:nth-child(3n+1) .video-card-title,
.video-card:nth-child(3n+1) .video-card-text,
.video-card:nth-child(3n+2) .video-card-number,
.video-card:nth-child(3n+2) .video-card-title,
.video-card:nth-child(3n+2) .video-card-text {
    color: white;
}

.video-card:nth-child(3n+0) .video-card-number,
.video-card:nth-child(3n+0) .video-card-title,
.video-card:nth-child(3n+0) .video-card-text {
    color: var(--color-secondary);
}

.video-card-cta {
    margin-top: var(--space-md);
}

.video-card-video {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-secondary);
}

.video-card-video::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

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

.video-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary);
    cursor: pointer;
    transition: background var(--transition-base);
}

.video-card-placeholder:hover {
    background: #1a1a1a;
}

.video-card-placeholder svg {
    width: 80px;
    height: 80px;
    fill: white;
    transition: transform var(--transition-base);
    position: relative;
    z-index: 2;
}

.video-card-placeholder:hover svg {
    transform: scale(1.1);
}

.video-card-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Variante intro */
.video-card.video-card-intro {
    background: var(--color-secondary);
    padding-top: 0 !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.video-card.video-card-intro .video-card-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    margin: 0 var(--layout-margin);
    width: calc(100% - var(--layout-margin) * 2);
    position: relative;
}

.video-card.video-card-intro .video-card-title {
    font-family: var(--font-secondary);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    line-height: 1.2;
    color: white;
}

.video-card.video-card-intro .video-card-lead {
    font-size: var(--font-size-body);
    font-weight: 600;
    color: white;
    margin: 0;
}

.video-card.video-card-intro .video-card-text {
    max-width: none;
    color: white;
}

.video-card.video-card-intro .video-card-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    min-height: 400px;
}

.video-card.video-card-intro .video-card-image img {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    max-width: 150%;
    height: auto;
    max-height: 200%;
    object-fit: contain;
    z-index: 10;
}

.video-card.video-card-intro .video-card-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: var(--color-success);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ============================================
   PINNED FEATURES SECTION
   ============================================ */

.pinned-features {
    position: relative;
    height: 300vh;
    background: var(--color-secondary);
}

.pinned-features-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.pinned-features-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.pinned-features-image img {
    width: 50vw;
    max-width: 700px;
    max-height: 90vh;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
}

.pinned-feature-box {
    position: absolute;
    max-width: 420px;
    padding: var(--space-2xl) var(--space-xl);
    border: 2px dotted rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.6s ease;
    --float-x: 0px;
    --float-y: 0px;
    will-change: transform;
}

.pinned-feature-box.active {
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.15s ease-out;
}

.pinned-feature-box--right {
    right: 5%;
    top: 75%;
    transform: translateY(calc(-50% + 30px)) translate(var(--float-x), var(--float-y));
}

.pinned-feature-box--right.active {
    transform: translateY(-50%) translate(var(--float-x), var(--float-y));
}

.pinned-feature-box--left {
    left: 5%;
    top: 50%;
    transform: translateY(calc(-50% + 30px)) translate(var(--float-x), var(--float-y));
}

.pinned-feature-box--left.active {
    transform: translateY(-50%) translate(var(--float-x), var(--float-y));
}

.pinned-feature-box--top-right {
    right: 8%;
    top: 15%;
    transform: translateY(30px) translate(var(--float-x), var(--float-y));
}

.pinned-feature-box--top-right.active {
    transform: translateY(0) translate(var(--float-x), var(--float-y));
}

.pinned-feature-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-h5);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-md);
}

.pinned-feature-text {
    font-family: var(--font-primary);
    font-size: var(--font-size-body);
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--line-height-body);
    margin: 0;
}

.pinned-features-progress {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 20;
}

.pinned-progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease, transform 0.3s ease;
}

.pinned-progress-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* ============================================
   MASONRY SECTION
   ============================================ */

.masonry-section {
    background: var(--color-secondary);
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.masonry-header {
    margin-bottom: var(--space-3xl);
}

.masonry-header h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.masonry-header .lead {
    color: rgba(255, 255, 255, 0.7);
}

.masonry-section > .boxed {
    padding-right: calc(var(--layout-margin) * 3);
}

.masonry-section::after {
    content: '';
    position: absolute;
    top: var(--space-2xl);
    bottom: var(--space-2xl);
    right: 10px;
    width: 40px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='100' viewBox='0 0 40 100'%3E%3Cline x1='40' y1='1' x2='10' y2='1' stroke='rgba(246,245,238,0.4)' stroke-width='2'/%3E%3Cline x1='40' y1='50' x2='20' y2='50' stroke='rgba(246,245,238,0.3)' stroke-width='2'/%3E%3Cline x1='40' y1='10' x2='28' y2='10' stroke='rgba(246,245,238,0.2)' stroke-width='2'/%3E%3Cline x1='40' y1='20' x2='28' y2='20' stroke='rgba(246,245,238,0.2)' stroke-width='2'/%3E%3Cline x1='40' y1='30' x2='28' y2='30' stroke='rgba(246,245,238,0.2)' stroke-width='2'/%3E%3Cline x1='40' y1='40' x2='28' y2='40' stroke='rgba(246,245,238,0.2)' stroke-width='2'/%3E%3Cline x1='40' y1='60' x2='28' y2='60' stroke='rgba(246,245,238,0.2)' stroke-width='2'/%3E%3Cline x1='40' y1='70' x2='28' y2='70' stroke='rgba(246,245,238,0.2)' stroke-width='2'/%3E%3Cline x1='40' y1='80' x2='28' y2='80' stroke='rgba(246,245,238,0.2)' stroke-width='2'/%3E%3Cline x1='40' y1='90' x2='28' y2='90' stroke='rgba(246,245,238,0.2)' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: repeat-y;
    background-position: right top;
    background-size: 40px 100px;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
}

.masonry-item {
    padding: 20px 80px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.masonry-item.span-2 {
    grid-column: span 2;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   VIDEO CONTAINER (YouTube)
   ============================================ */

/* ============================================
   VIDEO CONTAINER (YouTube) - 2 colonne
   ============================================ */

.video-container {
    padding-left: var(--layout-margin);
    padding-right: var(--layout-margin);
    padding-bottom: 150px;
    position: relative;
    z-index: 15;
    background: var(--color-secondary);
}

.video-container-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-2xl);
    align-items: center;
}

.video-container-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.video-container-title {
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    color: white;
    margin: 0;
}

.video-container-desc {
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.video-container-media {
    width: 100%;
}

.video-responsive {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
@media (max-width: 768px) {
    .video-container-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .video-container-text {
        order: 1;
    }
    
    .video-container-media {
        order: 2;
    }
    
    .video-responsive {
        border-radius: var(--radius-md);
    }
}

.video-responsive iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-responsive iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ============================================
   RESPONSIVE - Desktop con altezza ridotta
   ============================================ */

@media (max-height: 1000px) and (min-width: 769px) {
    .product-title {
        font-size: clamp(40px, 8vw, 120px);
    }
    .product-desc-lead {
        font-size: clamp(1.25rem, 2.5vw, 2rem);
    }
}

@media (max-height: 850px) and (min-width: 769px) {
    .product-title {
        font-size: clamp(38px, 7vw, 80px);
        max-width: 70%;
    }
    .product-desc-lead {
        font-size: clamp(1.1rem, 2.2vw, 1.75rem);
    }
    .product-hero-content {
        padding: 90px 40px 40px;
    }
    .pinned-feature-box {
        padding: var(--space-xl) var(--space-xl);
    }
}

@media (max-height: 700px) and (min-width: 769px) {
    .product-title {
        font-size: clamp(36px, 6vw, 80px);
    }
    .product-desc-lead {
        font-size: clamp(1rem, 2vw, 1.5rem);
    }
}




/* ============================================
   RESPONSIVE - Tablet (max-width: 992px)
   ============================================ */

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-card-red {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .feature-card-red-content {
        padding: var(--space-2xl);
    }
    
    .feature-card-red-image {
        min-height: 300px;
    }
    
    .feature-card-red-image img {
        width: 130%;
        max-width: none;
        margin-left: -30%;
        object-position: right center;
    }
    
    .feature-card-red-image::before {
        width: 100%;
        height: 30%;
        bottom: auto;
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
    }
    
    .feature-card-cream {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-2xl);
    }
    
    .feature-card-cream-canvas {
        min-height: 300px;
    }
    
    .feature-card-cream-content {
        padding: var(--space-2xl);
    }
    
    .superior-tracks-inner {
        grid-template-columns: 1fr;
        padding-right: 0;
    }
    
    .superior-tracks-content {
        grid-column: 1;
        padding-right: 40%;
    }
    
    .superior-tracks-image img {
        width: 60vw;
    }
    
    .video-card {
        min-height: 100vh;
        padding: var(--space-2xl) var(--layout-margin);
    }
    
    .video-card-inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        padding: var(--space-2xl);
    }
    
    .video-card-content {
        order: 1;
    }
    
    .video-card-video {
        order: 2;
    }
    
    .video-card-number {
        font-size: var(--font-size-h2);
        margin-bottom: var(--space-sm);
    }
    
    .video-card.video-card-intro .video-card-inner {
        grid-template-columns: 1fr;
        padding-top: 180px;
        overflow: visible;
    }
    
    .video-card.video-card-intro .video-card-image {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%, -30%);
        width: 70%;
    }
    
    .video-card.video-card-intro .video-card-image img {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        max-width: 100%;
        max-height: none;
    }
    
    .video-card.video-card-intro .video-card-content {
        text-align: center;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-sm);
    }
    
    .masonry-item {
        padding: 15px 60px 15px 15px;
    }
    
    .masonry-section {
        padding: var(--space-2xl) 0;
    }
}

/* ============================================
   RESPONSIVE - Mobile (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
    /* Hero - NO sticky su mobile */
    .product-hero {
        position: relative;
        padding: 0;
        flex-direction: column;
        min-height: 100vh;
        overflow: hidden;
    }

    .product-title {
            max-width: 100%;
    }
    
    .product-hero-content {
        position: static;
        padding: 70px var(--layout-margin) 20px;
        background: none;
    }
    
    .product-hero-image {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        flex: 1;
        border-radius: 0;
        min-height: 300px;
        height: 100%;
        width: 100%;
        max-width: 100%;
    }
    
    .product-hero-image::after {
        display: none;
    }
    
    .product-hero-image picture {
        position: absolute;
        inset: 0;
        display: block;
    }
    
    .product-hero-image img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
        object-position: center;
        -webkit-mask-image: none;
        mask-image: none;
    }
    
    .product-hero-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 120px;
        background: linear-gradient(to bottom, var(--color-secondary) 0%, transparent 100%);
        z-index: 1;
        pointer-events: none;
    }
    
    .product-hero-bottom {
        position: static;
        padding: 0;
        margin: 0;
    }
    
    /* Description - NO sticky su mobile */
    .product-description-wrapper {
        height: auto;
    }
    
    .product-description {
        position: relative;
        height: auto;
        min-height: 100vh;
        padding: var(--space-2xl) 0;
    }
    
    .product-description-inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .product-desc-lead {
        grid-column: 1;
        grid-row: 1;
    }
    
    .product-description-image {
        grid-column: 1;
        grid-row: 2;
        max-height: 50vh;
        min-height: 300px;
        height: 50vh;
    }
    
    .product-description-body {
        grid-column: 1;
        grid-row: 3;
    }
    
    /* Specs */
    .specs-section {
        padding: var(--space-3xl) 0;
    }
    
    .specs-title {
        margin-bottom: var(--space-2xl);
    }
    
    .specs-row {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
        padding: var(--space-md) 0;
    }
    
    .specs-label {
        font-size: var(--font-size-small);
        color: rgba(255, 255, 255, 0.6);
    }
    
    .spec-row {
        grid-template-columns: 1fr;
    }
    
    .spec-label,
    .spec-value {
        padding: var(--space-md) var(--space-lg);
    }
    
    .spec-label {
        padding-bottom: var(--space-xs);
    }
    
    .spec-value {
        padding-top: 0;
        padding-bottom: var(--space-lg);
    }
    
    /* Video cards */
    .video-card {
        min-height: 100vh;
        padding: 0;
    }
    
    .video-card-inner {
        display: flex;
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    
    .video-card-content {
        display: contents;
    }
    
    .video-card-title {
        order: 1;
        padding: var(--space-xl) var(--layout-margin) var(--space-md);
    }
    
    .video-card-video {
        order: 2;
        border-radius: 0;
    }
    
    .video-card-text {
        order: 3;
        padding: var(--space-md) var(--layout-margin) var(--space-xl);
    }
    
    .video-card-number {
        display: none;
    }
    
    .video-card-placeholder svg {
        width: 60px;
        height: 60px;
    }
    
    .video-card.video-card-intro .video-card-inner {
        padding-top: 150px;
        margin: 0 var(--layout-margin);
        width: calc(100% - var(--layout-margin) * 2);
    }
    
    .video-card.video-card-intro .video-card-image {
        width: 80%;
    }
    
    .video-card.video-card-intro .video-card-content {
        display: flex;
        flex-direction: column;
    }
    
    .video-card.video-card-intro .video-card-title {
        order: 1;
        margin: 150px 0 0;
        padding: 0;
    }
    
    .video-card.video-card-intro .video-card-lead {
        order: 2;
    }
    
    /* Masonry */
    .masonry-section.section-stacked {
        min-height: unset;
        height: auto;
        display: block;
        padding: var(--space-2xl) 0;
    }
    
    .masonry-section.section-stacked > .boxed {
        flex: unset;
        display: block;
        height: auto;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xs);
    }
    
    .masonry-item {
        padding: 10px;
    }
    
    .masonry-section::after {
        width: 20px;
        right: 5px;
        background-size: 20px 50px;
    }
    
    /* Video container */
    .video-container {
        margin-bottom: 80px;
    }
    
    .pinned-features {
        height: 250vh; /* Spazio per scroll */
    }
    
    .pinned-features-sticky {
        position: sticky;
        top: 0;
        height: 100vh;
        min-height: 100vh;
        padding: var(--space-2xl) 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow: hidden;
    }
    
    .pinned-features-image {
        position: relative;
        flex-shrink: 0;
        margin-bottom: var(--space-xl);
        padding-top: var(--space-2xl);
    }
    
    .pinned-features-image img {
        width: 70vw;
        max-width: 300px;
        height: auto;
    }
    
    .pinned-feature-box {
        position: absolute;
        left: var(--layout-margin) !important;
        right: var(--layout-margin) !important;
        bottom: var(--space-3xl) !important;
        top: auto !important;
        max-width: none;
        width: calc(100% - var(--layout-margin) * 2);
        transform: none !important;
        opacity: 0; /* JS controlla l'opacity */
        background: rgba(38, 38, 38, 0.95);
        transition: opacity 0.4s ease;
    }
    
    .pinned-feature-box.active {
        opacity: 1;
    }
    
    .pinned-features-progress {
        position: absolute;
        display: flex;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        bottom: var(--space-md);
        flex-direction: row;
        gap: var(--space-sm);
    }
}

/* ============================================
   RESPONSIVE - Small Mobile (max-width: 576px)
   ============================================ */

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .related-image {
        height: 150px;
    }
    
    .feature-card-red-content {
        padding: var(--space-xl);
    }
    
    .feature-card-cream {
        padding: var(--space-xl);
    }
    
    .feature-card-cream-content {
        padding: var(--space-xl) 0;
    }
    
    .superior-tracks-section {
        padding: var(--space-2xl) 0;
    }
    
    .superior-tracks-content {
        padding-right: 30%;
    }
    
    .superior-tracks-image img {
        width: 50vw;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .masonry-item {
        padding: 8px;
    }
}

.pinned-feature-box h4 {
    color: white;
    margin-bottom: var(--space-md);
}

.pinned-feature-box p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: var(--font-size-small);
}

@media (max-width: 768px) {
    .azienda-tuv .container {
        padding: var(--space-2xl);    }
}

@media (max-height: 850px) and (min-width: 769px) {
    .pinned-feature-box p {
        font-size: var(--font-size-xs);
    }
    .pinned-feature-box h4 {
        font-size: var(--font-size-h5);
    }
}

@media (min-height: 851px) and (max-height: 1080px) and (min-width: 769px) {
    .product-title {
       font-size: clamp(40px, 8vw, 100px);
    }
}


/* ============================================
   NOVELTY BADGE - Product Page
   ============================================ */
.novelty-badge-product {
    display: inline-block;
    position: relative;
    overflow: hidden;
    width: fit-content;
    margin-bottom: 16px;
    background: #D20A11;
    padding: 10px 22px;
    border-radius: 25px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.novelty-badge-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: badgeShine 4s ease-in-out infinite;
}

@keyframes badgeShine {
    0% { left: -100%; }
    20%, 100% { left: 100%; }
}

@media (max-width: 768px) {
    .novelty-badge-product {
        padding: 8px 18px;
        font-size: 11px;
        margin-bottom: 12px;
    }
}

/* ============================================
   VIDEO CONTAINER
   ============================================ */

.video-container {
    padding: var(--space-5xl) var(--layout-margin) 150px;
    position: relative;
    z-index: 15;
    background: var(--color-secondary);
    overflow: hidden;
}

.video-container-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(32px, 5vw, 72px);
    width: 100%;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ── TEXT COLUMN ── */
.video-container-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 2;
    padding: var(--space-3xl) var(--space-2xl);
}

.video-container-text::before {
    content: '';
    position: absolute;
    inset: 0;
    right: -100vw;
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.video-container-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.video-container-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 12px rgba(210, 10, 17, 0.3);
}

.video-container-label {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-secondary);
    opacity: 0.4;
}

.video-container-title {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: clamp(1.875rem, 3.2vw, 3.15rem);
    text-transform: uppercase;
    line-height: 1.05;
    color: var(--color-secondary);
    margin: 0 0 24px;
}

.video-container-border-accent {
    border-left: 3px solid var(--color-primary);
    padding-left: 20px;
    position: relative;
}

.video-container-desc {
    font-family: var(--font-primary);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    color: var(--color-secondary);
    opacity: 0.6;
    margin: 0;
}

.video-container-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(38, 38, 38, 0.1);
}

.video-container-bullet {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.video-container-bullet-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
    margin-top: 9px;
}

.video-container-bullet-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.video-container-bullet-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-body);
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.3;
}

.video-container-bullet-text {
    font-family: var(--font-primary);
    font-size: var(--font-size-body);
    font-weight: 400;
    color: var(--color-secondary);
    opacity: 0.55;
    line-height: 1.5;
}

/* ── VIDEO COLUMN ── */
.video-container-media {
    width: 100%;
    position: relative;
    z-index: 3;
}

.video-container-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.video-responsive {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: #0a0a0a;
}

.video-responsive iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}


/* ============================================
   RESPONSIVE TABLET
   ============================================ */

@media (max-width: 1300px) {
    .video-container {
        padding-top: var(--space-4xl);
        padding-bottom: 80px;
    }

    .video-container-grid {
        gap: var(--space-2xl);
    }

    .video-container {
        padding-top: var(--space-3xl);
        padding-bottom: var(--space-3xl);
    }

    .video-container-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .video-container-text {
        order: 1;
        padding: var(--space-2xl) var(--space-xl);
    }

    .video-container-text::before {
        right: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .video-container-media {
        order: 2;
    }

    .video-container-frame {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    }

    .video-responsive {
        border-radius: 0;
    }

    .video-container-title {
        font-size: clamp(1.725rem, 7vw, 2.3rem);
    }
}