/* Pro Physics internal unification — scoped, CSS-only frontend cleanup. */
body.pph-unified-internal{--pph-iu-dark:#071a3b;--pph-iu-blue:#2457ff;--pph-iu-violet:#7147f5;--pph-iu-cyan:#17bfc9;--pph-iu-border:#e1e8f3;--pph-iu-bg:#f5f8fd;background:linear-gradient(180deg,#f7f9fd,#f4f7fc)}
body.pph-unified-internal .main-page-wrapper{padding-top:28px;padding-bottom:64px}
body.pph-unified-internal :is(.site-content,.main-page-wrapper,.content-layout-wrapper){box-sizing:border-box}
body.pph-unified-internal :is(h1,h2,h3,h4){text-wrap:balance}
body.pph-unified-internal :is(p,li){text-wrap:pretty}

/* Remove only known Studiare legacy chrome after the branded header/footer are active. */
body.pph-unified-hide-legacy :is(.whb-header,.whb-sticky-header,.main-header,#masthead,header.site-header:not(.pph-site-header),.header-wrapper,.sc_studi_hamburger,.sc_studi_smart_nav_content,#floating-button,.studi_custom_floating_btn){display:none!important;visibility:hidden!important;pointer-events:none!important}
body.pph-unified-has-footer :is(#footer,footer.site-footer:not(.pph-unified-footer),.footer-container,.main-footer,.prefooter,.footer-sidebar,.copyrights-wrapper){display:none!important}
body.pph-unified-hide-legacy .shape-overlays{display:none!important;visibility:hidden!important;pointer-events:none!important}

/* One branded footer across non-course internal pages. */
.pph-unified-footer{position:relative;z-index:5;margin-top:40px;color:rgba(255,255,255,.72);background:radial-gradient(circle at 12% 0,rgba(23,191,201,.18),transparent 29%),linear-gradient(135deg,#06152d,#0c326f 62%,#321d72)}
.pph-unified-footer-grid{display:grid;grid-template-columns:minmax(260px,1.45fr) repeat(2,minmax(170px,1fr));gap:36px;padding-block:52px 42px}
.pph-unified-footer-brand>a{display:inline-flex;color:#fff!important;font-size:25px;font-weight:950;text-decoration:none}.pph-unified-footer-brand p{max-width:440px;margin:12px 0 0;color:rgba(255,255,255,.65);font-size:13px;line-height:2}
.pph-unified-footer h2{margin:0 0 15px;color:#fff!important;font-size:15px}.pph-unified-footer nav{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.pph-unified-footer nav a,.pph-unified-footer-bottom a{color:rgba(255,255,255,.74)!important;font-size:12px;font-weight:750;text-decoration:none}.pph-unified-footer nav a:hover,.pph-unified-footer-bottom a:hover{color:#fff!important}
.pph-unified-footer-bottom{border-top:1px solid rgba(255,255,255,.1);background:rgba(2,13,35,.18)}.pph-unified-footer-bottom>div{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:62px;font-size:11px}

/* Blog cards and article readability. */
body.pph-unified-internal.pph-blog-archive :is(.article-inner,.post){border:1px solid var(--pph-iu-border);border-radius:22px;background:#fff;box-shadow:0 12px 36px rgba(17,45,88,.065);overflow:hidden}
body.pph-unified-internal.pph-blog-archive :is(.entry-title,.post-title){line-height:1.65}
body.pph-unified-internal.pph-blog-archive :is(.entry-content,.post-excerpt){color:#64728a;line-height:1.9}
body.pph-unified-internal.pph-blog-single :is(.entry-content,.article-body){font-size:16px;line-height:2.15;color:#33435e}
body.pph-unified-internal.pph-blog-single :is(.entry-content,.article-body)>p{margin-block:0 1.35em}

/* WooCommerce visual alignment without product queries or PHP catalog filters. */
body.pph-unified-commerce .products{align-items:stretch}
body.pph-unified-commerce .product-grid-item .product-wrapper{height:100%;border:1px solid var(--pph-iu-border)!important;border-radius:22px!important;background:#fff!important;box-shadow:0 12px 34px rgba(18,44,86,.07)!important;overflow:hidden;transition:transform .22s ease,box-shadow .22s ease}
body.pph-unified-commerce .product-grid-item .product-wrapper:hover{transform:translateY(-5px);box-shadow:0 20px 48px rgba(18,44,86,.12)!important}
body.pph-unified-commerce .product-element-top{aspect-ratio:1/1;overflow:hidden;background:linear-gradient(145deg,#f8fbff,#eef3fb)}
body.pph-unified-commerce .product-element-top img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
body.pph-unified-commerce .product-title{min-height:3.2em;line-height:1.6}
body.pph-unified-commerce .price{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--pph-iu-dark)!important;font-weight:950!important}
body.pph-unified-commerce .price del{order:1;color:#98a2b4!important;font-size:.78em;font-weight:600;opacity:1;text-decoration-thickness:1.5px}
body.pph-unified-commerce .price ins{order:2;color:#0ca36d!important;font-size:1.06em;text-decoration:none}
body.pph-unified-commerce :is(.woocommerce-result-count,.woocommerce-ordering){margin-bottom:18px}
body.pph-unified-commerce .woocommerce-ordering select{min-height:46px;border:1px solid #dce5f1;border-radius:13px;background:#fff;padding-inline:12px}
body.pph-unified-commerce .single-product-page{border:1px solid var(--pph-iu-border)!important;border-radius:28px!important;background:#fff!important;box-shadow:0 18px 55px rgba(18,44,86,.08)!important}

/* Contact page. */
.pph-unified-contact-content{display:block}.pph-contact-response-note{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:22px;padding:17px 20px;border:1px solid #dce8f6;border-radius:16px;background:linear-gradient(135deg,#eef7ff,#f7f1ff);color:#52627b}.pph-contact-response-note strong{color:var(--pph-iu-dark)}
body.pph-unified-contact :is(input,select,textarea){font-family:inherit}

/* About page and general content cards. */
body.pph-unified-internal.pph-about-page .pph-about-content{border:1px solid var(--pph-iu-border);border-radius:28px;background:#fff;box-shadow:0 18px 55px rgba(18,44,86,.075);overflow:hidden}
body.pph-unified-internal .woocommerce-breadcrumb,body.pph-unified-internal .breadcrumbs{font-size:12px;color:#7a879b}

@media(max-width:820px){.pph-unified-footer-grid{grid-template-columns:1fr;gap:26px;padding-block:42px 34px}.pph-unified-footer-bottom>div{align-items:flex-start;flex-direction:column;justify-content:center;padding-block:14px}.pph-contact-response-note{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){body.pph-unified-internal *{scroll-behavior:auto!important;transition:none!important}}
.pph-unified-footer .pph-container{width:min(calc(100% - 32px),1240px);margin-inline:auto}
