/* =========================================================
   PAPILIA — WordPress layer
   main.css (the approved mockup design system) loads before this file, unchanged.
   ========================================================= */

/* ---------- Elementor wrappers ----------
   Every section is a full-bleed widget. On the live site Elementor's wrapper boxes are
   "display:contents", so the sections behave exactly like the mockup (sticky scenes, 3D stages, layering). */
body:not(.pp-editor):not(.elementor-editor-active) .elementor-section.pp-wrap,
body:not(.pp-editor):not(.elementor-editor-active) .elementor-section.pp-wrap > .elementor-container,
body:not(.pp-editor):not(.elementor-editor-active) .elementor-section.pp-wrap .elementor-column,
body:not(.pp-editor):not(.elementor-editor-active) .elementor-section.pp-wrap .elementor-widget-wrap,
body:not(.pp-editor):not(.elementor-editor-active) .elementor-section.pp-wrap .elementor-widget,
body:not(.pp-editor):not(.elementor-editor-active) .elementor-section.pp-wrap .elementor-widget-container,
body:not(.pp-editor):not(.elementor-editor-active) .e-con.pp-wrap,
body:not(.pp-editor):not(.elementor-editor-active) .e-con.pp-wrap .e-con-inner,
body:not(.pp-editor):not(.elementor-editor-active) .pp-hwrap,
body:not(.pp-editor):not(.elementor-editor-active) .pp-hwrap > .elementor,
body:not(.pp-editor):not(.elementor-editor-active) .pp-hwrap .elementor-section,
body:not(.pp-editor):not(.elementor-editor-active) .pp-hwrap .elementor-container,
body:not(.pp-editor):not(.elementor-editor-active) .pp-hwrap .elementor-column,
body:not(.pp-editor):not(.elementor-editor-active) .pp-hwrap .elementor-widget-wrap,
body:not(.pp-editor):not(.elementor-editor-active) .pp-hwrap .elementor-widget,
body:not(.pp-editor):not(.elementor-editor-active) .pp-hwrap .elementor-widget-container,
body:not(.pp-editor):not(.elementor-editor-active) .pp-hwrap .e-con,
body:not(.pp-editor):not(.elementor-editor-active) .pp-hwrap .e-con-inner,
body:not(.pp-editor):not(.elementor-editor-active) .pp-fwrap,
body:not(.pp-editor):not(.elementor-editor-active) .pp-fwrap > .elementor,
body:not(.pp-editor):not(.elementor-editor-active) .pp-fwrap .elementor-section,
body:not(.pp-editor):not(.elementor-editor-active) .pp-fwrap .elementor-container,
body:not(.pp-editor):not(.elementor-editor-active) .pp-fwrap .elementor-column,
body:not(.pp-editor):not(.elementor-editor-active) .pp-fwrap .elementor-widget-wrap,
body:not(.pp-editor):not(.elementor-editor-active) .pp-fwrap .elementor-widget,
body:not(.pp-editor):not(.elementor-editor-active) .pp-fwrap .elementor-widget-container,
body:not(.pp-editor):not(.elementor-editor-active) .pp-fwrap .e-con,
body:not(.pp-editor):not(.elementor-editor-active) .pp-fwrap .e-con-inner,
body:not(.pp-editor):not(.elementor-editor-active) #main > .elementor,
body:not(.pp-editor):not(.elementor-editor-active) #main > .pp-product,
body:not(.pp-editor):not(.elementor-editor-active) .pp-product > .elementor,
body:not(.pp-editor):not(.elementor-editor-active) #main > .woocommerce-notices-wrapper:empty { display: contents; }

.elementor-section.pp-wrap > .elementor-container { max-width: none; }
.elementor-section.pp-wrap .elementor-widget-wrap { padding: 0 !important; }
.pp-wrap .elementor-widget, .pp-wrap .elementor-element { --kit-widget-spacing: 0; margin-block-end: 0; }
.pp-wrap .elementor-widget:not(:last-child) { margin-bottom: 0; }
.elementor-widget-container { color: inherit; }
#main { display: block; }
.elementor img { height: auto; }
.elementor .ph-img img, .elementor .rstep-img img, .elementor .vision-imgs img, .elementor .ben.img img, .elementor .f-img img,
.elementor .fb-img img, .elementor .p-photo img, .elementor .italy-img img, .elementor .bot-mini img, .elementor .ritual-hero img { height: 100%; }
.elementor .f-img img { height: 116%; }
.elementor .fb-img img, .elementor .ritual-hero img { height: 120%; }

/* ---------- never stuck if a script fails ---------- */
.pp-failsafe .curtain { opacity: 0 !important; pointer-events: none !important; }
.pp-failsafe .intro { display: none !important; }

/* ---------- admin bar ---------- */
.admin-bar .hd { top: 32px; }
@media (max-width: 782px) { .admin-bar .hd { top: 46px; } }
@media (max-width: 600px) { #wpadminbar { position: fixed; } }

/* ---------- header logo uploaded in the widget ---------- */
.hd-logo img { width: 100%; height: auto; }
.hd .hd-logo .logo .lg-paper { fill: var(--logo-paper); }

/* ---------- product page ---------- */
.p-buy .buy-row { margin-top: 6px; }
.p-buy form.buy-row { margin-bottom: 0; }
.no-webgl .jar-fallback { display: block; position: absolute; inset: 6% 10%; width: 80%; height: 88%; object-fit: contain; }
.texture-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.price .woocommerce-Price-amount, .price bdi { font: inherit; color: inherit; }
.price del { opacity: .5; margin-right: 8px; font-size: .8em; }
.price ins { text-decoration: none; }

/* ---------- footer extras ---------- */
.ft-social { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.ft-social a { color: rgba(247, 243, 235, .75); }
.ft-social a:hover { color: var(--ivory); }
.ft-pay { margin: 0; }
.ft-logo img { width: 100%; height: auto; }
.philo-logo img { width: 100%; height: auto; }
.curtain-mark img { width: 100%; height: auto; }

/* ---------- legal / simple pages ---------- */
.legal { padding: 20px 0 140px; }
.legal .entry-content h2 { font: 400 1.67rem/1.2 var(--serif); color: var(--navy); margin: 40px 0 14px; }
.legal .entry-content p, .legal .entry-content li { max-width: 76ch; }
.legal .entry-content a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.pp-hidden, .form-row.pp-hidden { display: none !important; }

/* ---------- Elementor editor: everything visible, motion off, 3D live ---------- */
.pp-editor .js [data-reveal], .pp-editor [data-reveal], .pp-editor [data-split] .wi, .pp-editor .step .wi { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.pp-editor .scene { height: auto !important; }
.pp-editor .pin { position: relative; height: auto; min-height: 92vh; overflow: visible; }
.pp-editor .pin > .wrap { min-height: 92vh; }
.pp-editor .steps { min-height: 0; }
.pp-editor .step { position: relative; opacity: 1; visibility: visible; margin-bottom: 40px; }
.pp-editor .ingr-head { position: relative; top: auto; left: auto; right: auto; padding-top: 60px; }
.pp-editor .hd { position: relative; }
.pp-editor .mnav, .pp-editor .mbar, .pp-editor .intro, .pp-editor .curtain, .pp-editor .cookie, .pp-editor .cursor { display: none !important; }
.pp-editor-note { padding: 14px 18px; margin: 0; background: var(--navy); color: var(--ivory); font: 13px/1.5 var(--sans); }
.elementor-editor-active .pp-wrap { min-height: 40px; }
.pp-editor #gl { position: fixed; }

/* ElementsKit header/footer canvas in the editor */
.pp-ekit-edit { min-height: 200px; }
.pp-ekit-edit--header { padding-bottom: 140px; background: linear-gradient(180deg, var(--ivory), var(--champagne)); }
.pp-ekit-edit--header .hd { position: relative; }
