/*
 * Flash B-MUM — styles for the elements converted during the migration (2026-11):
 * WPBakery → Elementor, WPML → Polylang, Slider Revolution → Smart Slider 3.
 * Values (colours, sizes, spacing) match what WPBakery used on the site.
 */

/* Same typeface as the old production site (see inc/migration.php): overrides Kirki's "body{font-family:Montserrat}" */
html body { font-family: 'Montserrat', sans-serif; }

/* ---------- Spacing as in WPBakery 6.0.5 (sections converted by vc2el have the .bmum-wpb class) ---------- */
/* Grid: columns with 15px only on the sides (Elementor pads all 4 sides) and rows with -15px on each side, so the
   content lines up with the theme container. */
body .elementor-column-gap-extended > .elementor-column > .elementor-element-populated { padding-top: 0; padding-bottom: 0; }
body .elementor-section:not(.elementor-section-stretched) > .elementor-container.elementor-column-gap-extended { width: calc(100% + 30px); max-width: none; margin-left: -15px; margin-right: -15px; }
/* gap="20": .vc_column-gap-20>.vc_column_container{padding:10px} (+15px column sides) and the row at -25px */
body .bmum-vcgap-20 > .elementor-container > .elementor-column > .elementor-element-populated { padding: 10px 25px; }
body .bmum-vcgap-20:not(.elementor-section-stretched) > .elementor-container.elementor-column-gap-extended { width: calc(100% + 50px); margin-left: -25px; margin-right: -25px; }
/* .vc_row-has-fill, .vc_col-has-fill and the row right after a row with a background: 35px padding-top on the columns */
/* (.elementor-widget-wrap and not .elementor-element-populated: empty columns, e.g. the green bands, lack that class) */
body .bmum-fill > .elementor-container > .elementor-column > .elementor-widget-wrap,
body .bmum-fill + .bmum-wpb > .elementor-container > .elementor-column > .elementor-widget-wrap,
body .bmum-wpb .elementor-column.bmum-colfill > .elementor-widget-wrap { padding-top: 35px; }
/* .wpb_content_element{margin-bottom:35px} — also on the last element of the column (Elementor adds no space there).
   Specificity (0,2,1): beats Elementor's widget spacing (.elementor-widget:not(:last-child), 0,2,0) and loses to each
   element's own margin (vc_custom → Elementor _margin, 0,3,0), like WPBakery's !important. */
.bmum-wpb div.elementor-widget { margin-block-end: 35px; }
/* Elementor 4 adds the widget spacing to the element's own margin (margin: … calc(var(--kit-widget-spacing) + 35px) …);
   in WPBakery the element's own margin replaces it → the variable is set to 0 here */
.bmum-wpb div.elementor-widget { --kit-widget-spacing: 0px !important; }
.bmum-wpb div.elementor-widget.elementor-widget__width-initial { margin-block-end: 35px; } /* Elementor zeroes it on fixed-width widgets */
/* no such margin in WPBakery: spacer (vc_empty_space), hoverbox, message box (has its own, 21.7px) and the slider */
.bmum-wpb div.elementor-widget-spacer,
.bmum-wpb div.elementor-widget:has(.bmum-hoverbox, .bmum-message, .n2-section-smartslider) { margin-block-end: 0; }
/* bare content in the column (WooCommerce elements, [contact-form-7], …): WPBakery prints it without the 35px wrapper */
.bmum-wpb div.elementor-widget.bmum-bare { margin-block-end: 0; }
/* text that ends with a floated image (alignleft/right): in WPBakery the image overflows the block and covers the 35px
   margin; in Elementor the widget contains it and the margin came after it */
.bmum-wpb div.elementor-widget.bmum-float-end { margin-block-end: 0; }
/* empty element without padding (bmum-collapse): in WPBakery its margin collapses into the previous element's, it does not add up */
.bmum-wpb div.elementor-widget.bmum-collapse:not(:first-child) { margin-block-end: 0 !important; }
/* .vc_btn3-container{margin-bottom:21.739px} */
.bmum-wpb div.elementor-widget-button { margin-block-end: 21.73913043px; }
/* .wpb_text_column :last-child{margin-bottom:0} */
body .bmum-wpb .elementor-widget-text-editor :last-child { margin-bottom: 0; }
/* Elementor resets <hr> margins (.elementor hr{margin:0}): restore the browser/theme ones (0.5em top; hr 15px,
   hr.verde 30px, hr.rosa 10px bottom); left/right stay at 0, as on the old production site */
body .bmum-wpb hr { margin-top: .5em; margin-bottom: 15px; }
body .bmum-wpb hr.verde { margin-bottom: 30px; }
body .bmum-wpb hr.rosa { margin-bottom: 10px; }

/* Image title (vc_single_image title) */
.elementor-widget-heading.wpb_heading .elementor-heading-title { font-size: inherit; }

/* Buttons (vc_btn). "body" in front: Elementor's sizes (.elementor-button.elementor-size-md{padding:15px 30px})
   used to win and long-text buttons wrapped into more lines. line-height normal = what the old site shows. */
body .bmum-btn .elementor-button { border: 1px solid transparent; border-radius: 5px; font-size: 14px; padding: 14px 20px; line-height: normal; text-transform: none; letter-spacing: normal; }
body .bmum-btn.elementor-button--sm .elementor-button, body .bmum-btn .elementor-size-sm { font-size: 12px; padding: 11px 16px; }
body .bmum-btn .elementor-size-lg { font-size: 16px; padding: 18px 25px; }
.bmum-btn--shape-round .elementor-button { border-radius: 2em; }
.bmum-btn--shape-square .elementor-button { border-radius: 0; }
.bmum-btn--style-classic .elementor-button { border-color: rgba(0,0,0,.1); }
.bmum-btn--inverse .elementor-button { color: #fff; background-color: #555; }
.bmum-btn--inverse .elementor-button:hover, .bmum-btn--inverse .elementor-button:focus { color: #f7f7f7; background-color: #464646; }
.bmum-btn--grey .elementor-button { color: #666; background-color: #ebebeb; }
.bmum-btn--grey .elementor-button:hover { color: #5e5e5e; background-color: #dcdcdc; }
.bmum-btn--juicy-pink .elementor-button { color: #75C2BD; background-color: rgba(255,255,255,0); } /* B-MUM rule for vc_btn3-color-juicy-pink */
.bmum-btn--style-3d .elementor-button { box-shadow: 0 5px 0 rgba(0,0,0,.25); }

/* Message box (vc_message, vista_blue colour) */
.bmum-message { border: 1px solid transparent; border-radius: 5px; display: block; overflow: hidden; margin: 0 0 21.73913043px 0; padding: 1em 1em 1em 4em; position: relative; font-size: 1em; box-sizing: border-box; }
.bmum-message > p:first-of-type { margin-top: 0; }
.bmum-message > p:last-child { margin-bottom: 0; }
.bmum-message__icon { position: absolute; top: 0; bottom: 0; left: 0; width: 4em; font-size: 1em; }
.bmum-message__icon > * { font-size: 1.7em; line-height: 1; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.bmum-message--vista_blue { color: #3e8e5e; border-color: #bcebcf; background-color: #e3f7eb; }
.bmum-message--vista_blue .bmum-message__icon { color: #75d69c; }
.bmum-message--info { color: #5e7f96; border-color: #cfebfe; background-color: #dff2fe; }

/* Hoverbox (vc_hoverbox): image on the front, text and button on the back on hover */
/* Height as in WPBakery (which computes it in JS): the taller of front and back (20px padding), at least 250px —
   here without JS: both faces sit in the same grid cell. inline-grid leaves the same gap below (~6px). */
.bmum-hoverbox { perspective: 1000px; position: relative; width: 100%; text-align: center; }
.bmum-hoverbox__inner { position: relative; display: inline-grid; vertical-align: baseline; width: 100%; min-height: 250px; transition: transform .6s; transform-style: preserve-3d; }
.bmum-hoverbox:hover .bmum-hoverbox__inner, .bmum-hoverbox:focus-within .bmum-hoverbox__inner { transform: rotateY(180deg); }
.bmum-hoverbox__front, .bmum-hoverbox__back { grid-area: 1 / 1; position: relative; min-height: 250px; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; justify-content: center; padding: 20px; box-sizing: border-box; }
.bmum-hoverbox__inner :last-child { margin-bottom: 0; }
.bmum-hoverbox__front { background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 1; }
.bmum-hoverbox__back { transform: rotateY(180deg); background-color: #ebebeb; }
.bmum-hoverbox__back-inner > :last-child { margin-bottom: 0; }
.bmum-hoverbox__title { margin: 0 0 15px; font-size: 22px; line-height: 1.2; }
.bmum-hoverbox__btn { display: inline-block; margin-top: 0; padding: 14px 20px; font-size: 14px; line-height: normal; border-radius: 5px; border: 1px solid rgba(0,0,0,.1); text-decoration: none; } /* like the vc_btn3 inside the hoverbox on the old site (46px) */
.bmum-hoverbox__btn.bmum-btn--inverse { color: #fff; background-color: #555; }
.bmum-hoverbox__btn.bmum-btn--inverse:hover { color: #f7f7f7; background-color: #464646; }
.bmum-hoverbox__btn.bmum-btn--grey { color: #666; background-color: #ebebeb; }

/* Galleries (vc_gallery → carousel with fade) */
.bmum-gallery .swiper-pagination-bullets { position: static; margin-top: 8px; }

/* Posts grid (vc_basic_grid → [bmum_recent_posts]) */
.bmum-recent-posts { display: grid; gap: 30px; grid-template-columns: repeat(var(--bmum-cols, 4), minmax(0, 1fr)); }
.bmum-recent-posts__item img { display: block; width: 100%; height: auto; margin-bottom: 15px; }
.bmum-recent-posts__title { font-size: 18px; margin: 0 0 10px; }
.bmum-recent-posts__excerpt { margin-bottom: 15px; }
.bmum-recent-posts__more { display: inline-block; padding: 11px 16px; font-size: 12px; color: #fff; background: #555; border-radius: 5px; text-decoration: none; }
.bmum-recent-posts__more:hover { background: #464646; color: #f7f7f7; }
@media (max-width: 768px) { .bmum-recent-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .bmum-recent-posts { grid-template-columns: 1fr; } }

/* Contact Form 7 6.x: the new formatter wraps every field of the theme forms (.form-row > .column-*) in a <p>
   (30px margin); 5.6 on the old site did not — without this rule each form was ~90px taller */
.wpcf7-form .form-row > div > p:last-child { margin-bottom: 0; }
/* …and 5.6 left an empty <p> at the end of the form (30px margin) */
.wpcf7:has(.form-row) { padding-bottom: 30px; }

/* Language switcher in the menu (WPML had "li.wpml-ls-item {padding: 35px 5px}") */
li.lang-item { padding: 35px 5px !important; }
li.lang-item img { padding: 0 !important; }
li.lang-item a { padding: 0 !important; }
