/* ==========================================================================
   PAPER PACKAGING PAGE — AVANT-GARDE REDESIGN
   ========================================================================== */

.pp-page { background: #f5f7f9; overflow: visible; }

/* --- SHARED COMPONENTS --- */
.pp-pill {
    display: inline-block; padding: 8px 20px; border-radius: 100px;
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.1em; background: rgba(57,89,138,0.06);
    color: var(--primary-blue); border: 1px solid rgba(57,89,138,0.1);
}
.pp-pill--eco { background: rgba(0,194,255,0.1); color: #008bb8; border-color: rgba(0,194,255,0.2); }
.pp-pill--dark { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.1); }

.pp-accent { color: #00c2ff; }
.pp-section-header { text-align: center; margin-bottom: 70px; }
.pp-section-title {
    font-family: 'Outfit', sans-serif; font-size: clamp(2.8rem, 5vw, 4rem);
    color: var(--primary-blue); letter-spacing: -0.04em; font-weight: 800;
    line-height: 1; margin-top: 20px;
}

.pp-btn {
    display: inline-block; padding: 20px 42px; border-radius: 16px;
    font-weight: 800; font-size: 1rem; text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1); border: none; cursor: pointer;
}
.pp-btn--primary { background: var(--primary-blue); color: white; box-shadow: 0 15px 40px rgba(57,89,138,0.25); }
.pp-btn--primary:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(57,89,138,0.35); }
.pp-btn--outline { background: transparent; color: var(--primary-blue); border: 1px solid rgba(57,89,138,0.15); }
.pp-btn--outline:hover { background: rgba(57,89,138,0.05); transform: translateY(-3px); }
.pp-btn--white { background: white; color: var(--primary-blue); }
.pp-btn--white:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(255,255,255,0.2); }
.pp-btn--dark { background: var(--primary-blue); color: white; padding: 22px 60px; font-size: 1.1rem; }
.pp-btn--dark:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(57,89,138,0.3); }

/* ═══ SECTION 01: HERO ═══ */
.pp-hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: 120px 0; overflow: visible;
    background: linear-gradient(165deg, #f0f7fa 0%, #f5f7f9 40%, #eef3f8 100%);
}
.pp-hero__mesh {
    position: absolute; inset: 0; opacity: 0.35; pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0,194,255,0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(57,89,138,0.08) 0%, transparent 50%),
        radial-gradient(rgba(57,89,138,0.04) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 25px 25px;
}

.pp-hero__inner {
    position: relative; z-index: 2; display: grid;
    grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.pp-hero__title {
    font-family: 'Outfit', sans-serif; font-size: clamp(3.5rem, 7vw, 5.5rem);
    color: var(--primary-blue); font-weight: 800; letter-spacing: -0.05em;
    line-height: 0.92; margin: 25px 0;
}
.pp-hero__title--accent { color: #00c2ff; }
.pp-hero__subtitle { font-size: 1.2rem; color: var(--text-muted); line-height: 1.6; max-width: 500px; margin-bottom: 40px; }
.pp-hero__actions { display: flex; gap: 15px; flex-wrap: wrap; }

.pp-hero__card-stack { position: relative; }
.pp-hero__product-img {
    width: 100%; height: auto; border-radius: 40px;
    filter: drop-shadow(0 50px 90px rgba(0,0,0,0.12));
    animation: pp-float 6s ease-in-out infinite;
}
@keyframes pp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.pp-hero__float-badge {
    position: absolute; padding: 20px 30px; border-radius: 28px;
    background: rgba(255,255,255,0.25); backdrop-filter: blur(35px); -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255,255,255,0.45); box-shadow: 0 25px 60px rgba(0,0,0,0.1);
    z-index: 20; animation: pp-float 5s ease-in-out infinite;
}
.pp-hero__float-badge--top { top: 60px; right: 30px; animation-delay: -1.5s; }
.pp-hero__float-badge--bottom { bottom: 150px; left: 30px; animation-delay: -3s; }
.pp-hero__badge-value { font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--primary-blue); display: block; line-height: 1.1; }
.pp-hero__badge-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }

/* Floating Products in Hero */
.pp-hero__floating-prod {
    position: absolute; z-index: 5; pointer-events: none;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
    animation: pp-float 7s ease-in-out infinite;
}
.pp-hero__floating-prod img { width: 100%; height: auto; object-fit: contain; }

.pp-hero__floating-prod--1 { width: 140px; top: -50px; left: -20px; animation-delay: -1s; }
.pp-hero__floating-prod--2 { width: 160px; top: 120px; right: -100px; animation-delay: -4s; filter: blur(1px); opacity: 0.8; }
.pp-hero__floating-prod--3 { width: 130px; bottom: -40px; right: 20px; animation-delay: -2.5s; }
.pp-hero__floating-prod--4 { width: 150px; bottom: 80px; left: -140px; animation-delay: -5s; filter: blur(2px); opacity: 0.6; }

/* ═══ SECTION 02: BENEFITS ═══ */
.pp-benefits {
    padding: 100px 0; position: relative;
    background: linear-gradient(180deg, #fbfbfd 0%, #f5f7f9 100%);
}
.pp-benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.pp-benefit {
    padding: 50px 40px; border-radius: 35px; position: relative;
    background: rgba(255,255,255,0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8); box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
}
.pp-benefit:hover { transform: translateY(-8px); box-shadow: 0 25px 60px rgba(57,89,138,0.1); background: rgba(255,255,255,0.85); }

.pp-benefit__icon {
    width: 65px; height: 65px; border-radius: 20px; display: flex; align-items: center;
    justify-content: center; background: rgba(0,194,255,0.1); color: #00c2ff;
    margin-bottom: 25px; transition: transform 0.4s ease;
}
.pp-benefit:hover .pp-benefit__icon { transform: scale(1.1) rotate(-5deg); }
.pp-benefit__icon--blue { background: rgba(57,89,138,0.08); color: var(--primary-blue); }
.pp-benefit__icon--gold { background: rgba(243,176,98,0.12); color: var(--highlight); }

.pp-benefit__title { font-family: 'Outfit', sans-serif; font-size: 1.6rem; color: var(--primary-blue); font-weight: 800; margin-bottom: 12px; }
.pp-benefit__text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }
.pp-benefit__line {
    position: absolute; bottom: 0; left: 40px; right: 40px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, #00c2ff, transparent); opacity: 0;
    transition: opacity 0.4s ease;
}
.pp-benefit:hover .pp-benefit__line { opacity: 1; }

/* ═══ SECTION 03: PORTFOLIO ═══ */
.pp-portfolio { padding: 120px 0; }

.pp-portfolio__grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
}

.pp-product {
    border-radius: 40px; overflow: visible; background: white;
    border: 1px solid rgba(0,0,0,0.04); box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
    margin-top: 50px; /* Space for 3D pop-out */
}
.pp-product:hover { transform: translateY(-5px); box-shadow: 0 35px 80px rgba(0,0,0,0.1); }

.pp-product--hero { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.pp-product--hero .pp-product__image { height: auto; }
.pp-product--hero .pp-product__info { padding: 60px; display: flex; flex-direction: column; justify-content: center; }

.pp-product__image { 
    position: relative; height: 320px; 
    margin-top: -60px; /* Pop out effect */
    z-index: 10;
}
.pp-product__image img { 
    width: 100%; height: 100%; object-fit: contain; 
    filter: drop-shadow(0 40px 60px rgba(0,0,0,0.15));
    transition: transform 0.7s cubic-bezier(0.16,1,0.3,1); 
}
.pp-product:hover .pp-product__image img { transform: scale(1.1) translateY(-15px); }

.pp-product__badge {
    position: absolute; top: 18px; left: 18px; padding: 6px 16px; border-radius: 100px;
    background: rgba(0,194,255,0.9); color: white; font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.06em; z-index: 3;
}
.pp-product__badge--blue { background: rgba(57,89,138,0.9); }

.pp-product__info { padding: 35px; }
.pp-product__name { font-family: 'Outfit', sans-serif; font-size: 1.6rem; color: var(--primary-blue); font-weight: 800; margin-bottom: 10px; }
.pp-product--hero .pp-product__name { font-size: 2.2rem; }
.pp-product__desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }
.pp-product__link { color: #00c2ff; font-weight: 800; text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.pp-product__link:hover { color: var(--primary-blue); }

.pp-product__specs { display: flex; gap: 30px; }
.pp-product__spec { display: flex; flex-direction: column; }
.pp-product__spec-val { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--primary-blue); }
.pp-product__spec-lbl { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* Split product card */
.pp-product--split {
    grid-column: span 2; display: grid;
    grid-template-columns: 1fr 1fr 1.2fr; overflow: visible;
}
.pp-product__split-img { 
    height: 350px; margin-top: -60px; position: relative; z-index: 5;
}
.pp-product__split-img img { 
    width: 100%; height: 100%; object-fit: contain; 
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.12));
    transition: transform 0.7s cubic-bezier(0.16,1,0.3,1); 
}
.pp-product--split:hover .pp-product__split-img img { transform: scale(1.15) translateY(-10px); }
.pp-product__split-info { padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.pp-product__split-info .pp-product__name { font-size: 2rem; }

.pp-product__tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 5px; }
.pp-product__tags span {
    padding: 8px 16px; border-radius: 12px; background: rgba(0,194,255,0.08);
    color: #008bb8; font-size: 0.75rem; font-weight: 700;
}

/* ═══ SECTION 04: TECH BRIDGE ═══ */
.pp-tech-bridge {
    padding: 160px 0; background: #0a1628; position: relative; overflow: hidden;
    color: white;
}
.pp-tech-bridge__card {
    background: transparent; border: none; padding: 0; 
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; position: relative;
    box-shadow: none;
}
.pp-tech-bridge__content { position: relative; z-index: 10; max-width: 600px; }
.pp-tech-bridge__content .pp-pill { margin-bottom: 25px; }
.pp-tech-bridge__title { color: white !important; font-size: clamp(3rem, 6vw, 5rem) !important; }
.pp-tech-bridge__text { color: rgba(255,255,255,0.7); font-size: 1.2rem; margin-bottom: 40px; }

.pp-tech-bridge__visual {
    position: absolute; right: -15%; top: 50%; transform: translateY(-50%);
    width: 75%; z-index: 1; pointer-events: none;
}
.pp-tech-bridge__visual img {
    width: 100%; height: auto;
    filter: drop-shadow(0 60px 120px rgba(0,0,0,0.5));
    transition: transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.pp-tech-bridge:hover .pp-tech-bridge__visual img { transform: scale(1.03) translateX(-20px); }

/* ═══ SECTION 05: FAQ ═══ */
.pp-faq { padding: 120px 0; background: #fbfbfd; }
.pp-faq__list { max-width: 850px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.pp-faq__item {
    border-radius: 24px; overflow: hidden;
    background: rgba(255,255,255,0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8); box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    transition: all 0.4s ease;
}
.pp-faq__item:hover { box-shadow: 0 15px 40px rgba(57,89,138,0.08); }
.pp-faq__item--open { background: white; border-color: rgba(0,194,255,0.2); }

.pp-faq__trigger {
    width: 100%; display: flex; align-items: center; gap: 20px;
    padding: 28px 35px; background: none; border: none; cursor: pointer; text-align: left;
}
.pp-faq__number { font-family: 'Outfit', sans-serif; font-size: 0.8rem; font-weight: 800; color: #00c2ff; min-width: 30px; }
.pp-faq__question { flex: 1; font-family: 'Outfit', sans-serif; font-size: 1.15rem; color: var(--primary-blue); font-weight: 800; }
.pp-faq__icon {
    width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(57,89,138,0.06); color: var(--primary-blue); font-size: 1.2rem; font-weight: 700;
    transition: transform 0.3s ease; flex-shrink: 0;
}
.pp-faq__item--open .pp-faq__icon { transform: rotate(45deg); background: rgba(0,194,255,0.1); color: #00c2ff; }

.pp-faq__answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), padding 0.4s ease;
    padding: 0 35px 0 85px;
}
.pp-faq__item--open .pp-faq__answer { max-height: 200px; padding: 0 35px 28px 85px; }
.pp-faq__answer p { color: var(--text-muted); font-size: 1rem; line-height: 1.65; }

/* ═══ SECTION 06: CTA ═══ */
.pp-cta { padding: 0 0 120px; }
.pp-cta__card {
    background: #00c2ff; border-radius: 60px; padding: 120px 80px;
    text-align: center; position: relative; overflow: hidden;
}
.pp-cta__glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 65%);
    pointer-events: none;
}
.pp-cta__content { position: relative; z-index: 2; }
.pp-cta__title {
    font-family: 'Outfit', sans-serif; font-size: clamp(2.8rem, 6vw, 4.5rem);
    color: white; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 25px;
}
.pp-cta__desc { color: rgba(255,255,255,0.9); font-size: 1.2rem; margin-bottom: 45px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
    .pp-hero__inner { 
        display: flex !important;
        flex-direction: column-reverse !important;
        text-align: center; 
        gap: 0 !important;
    }
    .pp-hero__card-stack { 
        max-width: 380px !important; 
        margin: 0 auto 50px !important; 
    }
    .pp-hero__floating-prod { display: block !important; }
    .pp-hero__floating-prod--1 { width: 70px !important; top: -30px !important; left: 10px !important; }
    .pp-hero__floating-prod--2 { width: 80px !important; top: 40px !important; right: 0 !important; }
    .pp-hero__floating-prod--3 { width: 60px !important; bottom: -20px !important; right: 20px !important; }
    .pp-hero__floating-prod--4 { width: 70px !important; bottom: 50px !important; left: -10px !important; }
    
    .pp-hero__subtitle, .pp-hero__actions { justify-content: center; margin-left: auto; margin-right: auto; }
    .pp-hero__actions { margin-bottom: 90px !important; }
    .pp-product--hero { grid-template-columns: 1fr; }
    .pp-product--split { grid-template-columns: 1fr 1fr; }
    .pp-product__split-info { grid-column: span 2; padding: 40px; }
    .pp-tech-bridge__card { 
        display: flex !important;
        flex-direction: column-reverse !important;
        padding: 40px 20px !important; 
        text-align: center !important;
    }
    .pp-tech-bridge__visual {
        position: relative !important;
        width: 100% !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin-bottom: 30px !important;
        pointer-events: auto !important;
    }
    .pp-tech-bridge__visual img {
        width: 90% !important;
        margin: 0 auto !important;
    }
    .pp-tech-bridge__content {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .pp-benefits__grid { grid-template-columns: 1fr; }
    .pp-portfolio__grid { grid-template-columns: 1fr; }
    .pp-product--hero, .pp-product--split { grid-column: span 1; grid-template-columns: 1fr; }
    .pp-product__split-info { grid-column: span 1; }
    .pp-product__split-img { height: 220px; }
    .pp-cta__card { padding: 80px 30px; border-radius: 40px; }
    .pp-hero__float-badge { display: none; }
}

@media (max-width: 640px) {
    .pp-hero__title { font-size: 3rem !important; }
    .pp-hero__subtitle { font-size: 1rem; }
    .pp-hero__actions { flex-direction: column; }
    .pp-hero__actions .pp-btn { width: 100%; text-align: center; }
    
    .pp-section-title { font-size: 2.4rem !important; }
    
    .pp-benefit { padding: 35px 25px !important; }
    
    .pp-product__info { padding: 25px !important; }
    .pp-product__name { font-size: 1.4rem !important; }
    .pp-product__specs { gap: 15px !important; }
    .pp-product__spec-val { font-size: 1.1rem !important; }
    
    .pp-tech-bridge { padding-bottom: 80px; }
    .pp-tech-bridge__card { border-radius: 30px; padding: 40px 20px; }
    .pp-tech-bridge__title { font-size: 2rem !important; }
    
    .pp-cta__title { font-size: 2.2rem !important; }
}

/* ═══ SECTION 06: CTA FINALE ═══ */
.pp-cta-finale {
    padding: 220px 0; background: #ffffff; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.pp-cta-finale__card {
    background: transparent; border: none; box-shadow: none; display: block; 
    width: 100%; max-width: 1200px; position: relative; z-index: 10;
}
.pp-cta-finale__content {
    padding: 0; max-width: 800px; margin: 0 auto;
}
.pp-cta-finale__title {
    font-size: clamp(4rem, 10vw, 8rem); margin-bottom: 30px;
}
.pp-cta-finale__text {
    margin: 0 auto 50px; font-size: 1.5rem; max-width: 650px;
}
.pp-cta-finale__btn { margin: 0 auto; }

/* Floating Assets System */
.pp-floating-asset {
    position: absolute; pointer-events: none; z-index: 1;
    transition: transform 1s cubic-bezier(0.16,1,0.3,1);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}
.pp-floating-asset img { width: 100%; height: auto; object-fit: contain; }

.pp-asset--1 { top: -8%; left: 22%; width: 220px; animation: pp-float 7s infinite; }
.pp-asset--2 { top: 25%; left: 15%; width: 180px; animation: pp-float 9s infinite 1s; filter: blur(2px) opacity(0.6); }
.pp-asset--3 { bottom: -5%; left: 20%; width: 200px; animation: pp-float 8s infinite 0.5s; }
.pp-asset--4 { top: -12%; right: 22%; width: 240px; animation: pp-float 10s infinite 2s; }
.pp-asset--5 { top: 30%; right: 15%; width: 190px; animation: pp-float 6s infinite 1.5s; filter: blur(1px) opacity(0.8); }
.pp-asset--6 { bottom: 0%; right: 20%; width: 210px; animation: pp-float 11s infinite 0.2s; }

@media (max-width: 1000px) {
    .pp-cta-finale { padding: 100px 20px; }
    .pp-floating-asset { display: block !important; opacity: 0.5; }
    .pp-asset--1 { top: 5%; left: 5%; width: 60px; }
    .pp-asset--2 { top: 35%; left: -5%; width: 50px; }
    .pp-asset--3 { bottom: 10%; left: 5%; width: 70px; }
    .pp-asset--4 { top: 5%; right: 5%; width: 60px; }
    .pp-asset--5 { top: 35%; right: -5%; width: 50px; }
    .pp-asset--6 { bottom: 10%; right: 5%; width: 70px; }
}
