/*
Theme Name: Ruggiflex
Description: Tema WordPress di Ruggiflex, tratto dal sito statico approvato.
Version: 1.2.32
Author: alexlettieri.it
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: ruggiflex
*/
.rf-editorial-copy > :first-child { margin-top: 0; }
.rf-editorial-copy > :last-child { margin-bottom: 0; }
.rf-editorial-copy :is(ul,ol) { padding-inline-start: 1.35em; }
.rf-editorial-copy ul { list-style: disc; }
.rf-editorial-copy ol { list-style: decimal; }
.rf-editorial-copy a { text-decoration: underline; text-underline-offset: .2em; }

.rf-native-blog :is(.b87-lead,.eyebrow,.rf-blog-intro121)>:first-child,.rf-document-description>:first-child{margin-top:0}.rf-native-blog :is(.b87-lead,.eyebrow,.rf-blog-intro121)>:last-child,.rf-document-description>:last-child{margin-bottom:0}

.rf-footer-subito{margin-block-start:22px}
.footer57-top p.rf-footer-subito-caption{margin:0 0 8px;color:var(--paper,#fff);font:700 15px/1.45 var(--sans,Arial,sans-serif)}
.footer57 .rf-footer-subito-link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding-inline:16px;border:0;border-radius:999px;background:#fff;color:#092e48;text-decoration:none}
.rf-footer-subito-link img{display:block;width:110px;height:26px;object-fit:cover;object-position:left}

/* Footer credits: one shared template across pages and native articles. */
.footer57 .rf-credits123{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;column-gap:40px;row-gap:24px;margin-top:42px;padding-top:24px;border-top:1px solid rgba(219,234,240,.25);font:400 13px/1.6 var(--sans,Arial,sans-serif)}
.rf-credits123-legal{color:#dbeaf0}
.rf-credit123{display:flex;align-items:center;flex-wrap:nowrap;column-gap:8px;min-width:0}
.footer57 .rf-credit123-role{margin:0;color:var(--gold,#efbf66);font:400 15px/1.6 var(--sans,Arial,sans-serif);white-space:nowrap}
.rf-credit123>a{display:inline-flex;align-items:center;gap:3px;min-height:44px;max-width:100%;color:var(--paper,#f9f9f6);text-decoration:none}
.rf-credit123-domain{font:700 14px/1.5 var(--sans,Arial,sans-serif);white-space:nowrap}
.footer57 .rf-credit123-logo{display:block;object-fit:contain;flex:none;width:auto;height:15px;max-width:100%;margin:0}


.rf-credits123 a:focus-visible{outline:2px solid var(--gold,#efbf66);outline-offset:6px}
@media(hover:hover) and (pointer:fine){.rf-credit123>a:hover .rf-credit123-domain{text-decoration:underline;text-underline-offset:4px}}
@media(max-width:1000px){.footer57 .rf-credits123{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}.rf-credits123-legal{grid-column:1/-1}}
@media(max-width:640px){.footer57 .rf-credits123{grid-template-columns:minmax(0,1fr);gap:12px;margin-top:30px;padding-top:22px}.rf-credits123-legal{grid-column:auto;order:3;padding-top:8px;font-size:12px}.rf-credit123>a{gap:3px}}

.signoff.footer57{padding-inline:clamp(24px,3vw,56px)}
.footer57 .footer57-top{padding-bottom:0}
.footer57 :is(.footer57-top,.signoff-bottom){padding-inline:0}
@media(max-width:1199px){.signoff.footer57{padding-inline:20px}}
@media(max-width:360px){.signoff.footer57{padding-inline:12px}}

.short-dialog:has(.rf-product-video126){max-height:90svh;overflow:auto}.rf-product-video126{display:grid!important;place-items:center;padding:0!important;background:#092e48;min-height:0!important}.rf-product-video126 :is(video,iframe){display:block;width:100%;max-width:420px;height:min(65svh,700px);border:0;object-fit:contain}.rf-product-video126 iframe{aspect-ratio:9/16}

.m97-actions button:disabled{opacity:.55;cursor:not-allowed}

/* Fit the complete portrait player and its external link inside the viewport. */
#product-short-dialog:has(.rf-product-video126){box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-height:calc(100svh - 24px);padding:24px;overflow:auto}
#product-short-dialog:has(.rf-product-video126) h2{margin:0 48px 16px 0;font-size:28px;line-height:1.2}
#product-short-dialog .rf-product-video126{aspect-ratio:auto;max-height:none;gap:16px;background:transparent;overflow:visible}
#product-short-dialog .rf-product-video126 :is(iframe,video){box-sizing:border-box;width:min(100%,calc((100svh - 190px) * 9 / 16));height:auto;max-width:420px;max-height:none;aspect-ratio:9/16;min-height:0;border-radius:8px;object-fit:contain;background:#092e48}
#product-short-dialog .rf-video-youtube129{display:inline-flex;align-items:center;justify-content:center;gap:10px;color:#092e48;font:700 15px/1.4 var(--sans,Arial,sans-serif);min-height:44px;text-decoration:none}
#product-short-dialog .rf-video-youtube129 svg{width:18px;height:18px;color:currentColor;flex:none}
#product-short-dialog .rf-video-youtube129:hover{text-decoration:underline}
#product-short-dialog .rf-video-youtube129:focus-visible{outline:2px solid #092e48;outline-offset:4px}

/* Editorial content in the generic home promotion. */
.home-page .home-hero-grid64 .home-promo-generic {
  position: relative !important;
  justify-content: center;
}

/* The card link covers the promo while links in the editorial copy stay above it. */
.home-page .home-hero-grid64 .home-promo-generic > .home-promo-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  color: inherit;
  border-radius: inherit;
}

.home-promo-card-link svg {
  position: absolute;
  inset-inline-end: 8px;
  inset-block-end: 8px;
  width: 18px;
  height: 18px;
}

.home-promo-card-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

.home-promo-copy {
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  font: 400 clamp(14px, 1.5vw, 16px)/1.45 var(--sans, sans-serif);
}

.home-promo-copy > * {
  margin: 0;
}

.home-promo-copy > * + * {
  margin: .55em;
}

.home-promo-copy :is(h2, h3) {
  color: inherit;
  font: 400 clamp(24px, 3.5vw, 42px)/1.12 var(--serif, serif);
}

.home-promo-copy h3 {
  font-size: clamp(20px, 2.5vw, 30px);
}

.home-promo-copy :is(ul, ol) {
  padding-inline-start: 1.15em;
  text-align: start;
}

.home-promo-copy ul { list-style: disc; }
.home-promo-copy ol { list-style: decimal; }

.home-promo-copy a {
  position: relative;
  z-index: 2;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* Promotion landing page. */
.promo59-page .promo57-page {
  background: linear-gradient(-90deg, #f8b538, #ff8324 95%);
  color: var(--midnight, #092e48);
}

.promo59-page .promo57-page h1 em {
  color: inherit;
}

.promo59-page .promo57-classic {
  align-items: center;
  text-align: center;
}

.promo57-classic-copy {
  width: min(100%, 850px);
}

.promo59-page .promo57-classic-copy > h1 {
  margin: 0 auto 20px;
  font: 700 clamp(15px, 2vw, 21px)/1.35 var(--sans, sans-serif);
  letter-spacing: 0;
  text-wrap: balance;
}

.promo57-classic-message {
  font-size: clamp(16px, 2vw, 21px);
}

.promo57-classic-message > :first-child {
  margin-top: 0;
}

.promo57-classic-message > :last-child {
  margin-bottom: 0;
}

.promo57-classic-message > p {
  max-width: 56ch;
  margin-inline: auto;
}

.promo57-classic-message > h2,
.promo57-classic-message:not(:has(> h2, > h3)) > p:first-child {
  max-width: none;
  font: 400 clamp(34px, 5.3vw, 76px)/1.08 var(--serif, serif);
  letter-spacing: -.02em;
  text-wrap: balance;
  margin-bottom: 22px;
}

.promo57-classic-message > h3 {
  font: 400 clamp(24px, 3vw, 42px)/1.18 var(--serif, serif);
  text-wrap: balance;
}

.promo59-page .promo57-page .promo-page-down {
  align-self: flex-start;
  margin-top: 28px;
  color: var(--midnight, #092e48);
  background: #fff;
}

.promo59-page .promo57-classic .promo-page-down {
  align-self: center;
}

.promo59-page .promo-page-down:hover {
  background: #f3f6f7;
}

#dettagli-promozione {
  scroll-margin-top: var(--header-height, 90px);
}

.promo59-page .promo57-page-grid {
  container-type: inline-size;
}

.promo59-page .promo57-big-wide {
  font-size: min(280px, 16vw, calc((100cqw - 48px) / 5.8));
}

@media (max-width: 760px) {
  .promo59-page .promo57-big {
    font-size: min(140px, 34vw);
  }

  .promo59-page .promo57-big-wide {
    font-size: min(140px, 29vw);
  }
}

.back-top[hidden] {
  display: none !important;
}

/* Classic offer and showroom actions. */
.promo57-classic-note,
.promo57-classic-address {
  max-width: 64ch;
  margin: 16px auto 0;
  font-size: 14px;
  line-height: 1.55;
}

.promo57-classic-note p {
  margin: 0;
}

.promo57-classic-actions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.promo59-page .promo57-classic-actions .button {
  justify-content: center;
}

.promo59-page .promo57-classic-whatsapp {
  background: #25d366;
  color: var(--midnight, #092e48);
}

.promo59-page .promo57-classic-directions {
  background: #fff;
  color: var(--midnight, #092e48);
}

.promo57-classic-details-grid {
  display: grid;
  max-width: 1290px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 72px);
  align-items: start;
}

.promo57-classic-details-grid h2 {
  margin: 0 0 20px;
  font: 400 clamp(32px, 4vw, 56px)/1.08 var(--serif, serif);
}

.promo57-classic-offer-image {
  margin: 0 0 clamp(20px, 4vw, 40px);
}

.promo57-classic-offer-image img {
  display: block;
  width: 100%;
  height: auto;
}

.promo57-classic-description {
  max-width: 64ch;
}

.promo57-classic-benefits h3 {
  margin: 32px 0 16px;
  font: 400 clamp(25px, 3vw, 42px)/1.12 var(--serif, serif);
}

.promo57-classic-join {
  padding: clamp(20px, 3vw, 40px);
  background: #e9f0f1;
}

.promo59-page .promo57-classic-join > h2 {
  font-size: clamp(28px, 3vw, 42px) !important;
}

.promo57-classic-actions .button :is(svg, img) {
  width: 24px;
  height: 24px;
  flex: none;
  object-fit: contain;
}

@media (min-width: 901px) and (min-height: 551px) {
  .promo57-classic-join:not(.is-scroll-pinned) {
    position: sticky;
    top: calc(var(--header-height, 90px) + 24px);
  }
}

.promo57-benefits-copy > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 32px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.promo57-benefits-copy > ul > li {
  background: var(--midnight, #092e48);
  color: #fff;
  padding: clamp(20px, 3vw, 36px);
  font-size: 16px;
  line-height: 1.55;
}

.promo57-benefits-copy > ul > li > strong:first-child {
  display: block;
  margin-bottom: 10px;
  color: var(--gold, #efbf66);
  font-size: clamp(18px, 2vw, 23px);
}

@media (max-width: 900px) {
  .promo57-classic-details-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .promo57-benefits-copy > ul { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the same reading order and align each content row across mattress brands. */
#altri-marchi.brands-grid69 > .brand57 {
  min-height: 0;
  justify-content: flex-start;
  gap: 20px;
}

#altri-marchi .brand57-content {
  flex: 0 1 auto;
  justify-content: flex-start;
}

#altri-marchi .brand57-summary {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 700px) {
  @supports (grid-template-rows: subgrid) {
    #altri-marchi.brands-grid69 > .brand57 {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
      grid-template-columns: minmax(0, 1fr);
      row-gap: 16px;
      align-items: start;
    }

    #altri-marchi .brand57-content,
    #altri-marchi .brand57-copy {
      display: contents;
    }

    #altri-marchi .brand57-identity { grid-row: 1; }
    #altri-marchi .brand57-summary { grid-row: 2; }
    #altri-marchi .brand57-more { grid-row: 3; justify-self: start; }
    #altri-marchi .pdf57-list { grid-row: 4; }
  }
}

/* Native WordPress menus keep the same order on desktop and touch screens. */
.classic-header .rf-wordpress-menu > .classic-contacts {
  color: inherit;
  font: 700 14px/1.4 var(--sans);
  min-height: 48px;
  display: flex;
  align-items: center;
}
.classic-header .rf-wordpress-menu > .mobile-promo { display: none; }
@media (max-width: 1199px) {
  .classic-header .rf-wordpress-menu.rf-wordpress-menu > :is(details, a) { order: 0; }
  .classic-header .rf-wordpress-menu > .classic-contacts {
    font: 400 28px/1.25 var(--serif);
    min-height: 68px;
  }
  .classic-header .rf-wordpress-menu > .mobile-promo { display: flex; }
}

/* Keep catalogue actions clear of the following brand, image or section. */
.rf-catalogues121 {
  gap: 24px;
  margin-block: 24px clamp(32px, 4vw, 56px);
}
@media (max-width: 600px) {
  .chair-brand-room .rf-catalogues121 {
    padding-inline: 22px;
    min-width: 0;
  }
}

/* Show complete chair photographs below the header, including portrait catalogue sheets. */
.chair-album {
  --chair-photo-height: min(76svh, calc(100svh - var(--header-height, 88px) - 96px));
  align-self: start;
}
.chair-album .chair-model > a {
  height: var(--chair-photo-height);
  aspect-ratio: auto;
}
.chair-album.chair-layered .chair-stage {
  height: var(--chair-photo-height);
  aspect-ratio: auto;
}
.chair-album .chair-model img {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Blend the white paper of catalogue photographs into the existing section. */
.chair-album.chair-printed .chair-stage,
#Aerre .chair-thumb img {
  mix-blend-mode: multiply;
}

@media (max-width: 1099px), (pointer: coarse) {
  .chair-album .chair-model > a {
    height: auto;
    aspect-ratio: 1;
    max-height: var(--chair-photo-height);
  }
  .chair-album.chair-printed .chair-model > a {
    aspect-ratio: .8;
  }
}

/* Pointer feedback for links and controls outside the shared button effects. */
@media (hover: hover) and (pointer: fine) {
  .m90-card:hover .m90-card-title { color: #086384; }

  .m90-card-title svg { transition: translate .18s ease-out; }
  .m90-card:hover .m90-card-title svg { translate: 4px 0; }

  :is(.skip, .skip-link, .rf-back121, .b87-index-links > a, .b87-meta > a):hover,
  :is(.breadcrumbs, .d82-crumb, .beds76-crumb, .m84-crumb, .r78-crumb) a:hover,
  :is(.contact-conversation, .meet, .reading-chapter, .brand-marquee57) a:not([data-rf82-button], [data-lightbox]):hover,
  :is(.accessory120-anchor, .d79-return, .beds76-return, .r78-return, .m97-back):hover,
  main a[href]:not([class], [data-lightbox], [data-rf82-button], [aria-disabled="true"]):not(:has(img)):hover {
    color: #086384;
  }

  .classic-header .classic-nav :is(a, summary):not([data-rf82-button], [aria-disabled="true"]):hover,
  .footer57 :is(.footer57-map, a:not([class], [aria-label])):hover,
  .location-room .location-row a:not([data-rf82-button]):hover {
    color: #ffe0a1;
  }

  .classic-header .classic-nav .classic-panel :is(a, summary):not([data-rf82-button], [aria-disabled="true"]):hover {
    color: #086384;
  }

  .paper-source:hover { color: #094a91; }

  :is(.b87-filters, .p121-nav) a:not([aria-current]):hover { background-color: #e3edf0; }
  :is(.b87-filters, .p121-nav) a[aria-current]:hover,
  .m97-primary:hover { background-color: #174b69; color: #fff; }

  main details > summary:hover { background-color: color-mix(in srgb, currentColor 8%, transparent); }
  .faq .faq-list > details[open] > summary:hover { background-color: #164b63; }

  :is(.brand.nav-brand, .rf-credit123 > a):hover img,
  .collection-picture:hover > span { opacity: .8; }

  :is(.collection-picture, .chair-model > a, .photo-room a):hover img { filter: brightness(1.075); }

  :is(.classic-nav a, .footer57 a, summary, .collection-picture, .chair-model > a):not([aria-disabled="true"]):hover {
    cursor: pointer;
  }
}

@media (prefers-reduced-motion: reduce) {
  .m90-card-title svg { transition: none; }
  .m90-card:hover .m90-card-title svg { translate: none; }
}


/* Home collection: the photographic plane moves independently of the scroll reveal. */
.home-page .edit-tile-photo {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

/* The scroll effect still controls the image itself through its inline transform. */
.home-page .edit-tile:hover img { transform: none; }

@media (hover: hover) and (pointer: fine) {
  .home-page .edit-tile { --edit-photo-x: -2.2%; --edit-photo-y: 1%; }
  .home-page .edit-tile:nth-child(2) { --edit-photo-x: 2%; --edit-photo-y: -1.5%; }
  .home-page .edit-tile:nth-child(3) { --edit-photo-x: -1.6%; --edit-photo-y: 1.4%; }
  .home-page .edit-tile:nth-child(4) { --edit-photo-x: -2.4%; --edit-photo-y: -1.2%; }

  .home-page .edit-tile-photo {
    transition: transform 1.25s cubic-bezier(.22, 1, .36, 1);
  }

  .home-page .edit-tile:hover .edit-tile-photo {
    transform: translate(var(--edit-photo-x), var(--edit-photo-y)) scale(1.125);
    transition-duration: 1.7s;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .home-page .edit-tile:hover .edit-tile-photo {
    transform: none;
    transition: none;
    filter: brightness(1.09);
  }
}


/* Keep the showroom action compact inside the vertically stacked copy. */
.home-page .fiber-copy > .cta-button {
  align-self: flex-start;
  inline-size: fit-content;
  padding-block: 8px;
}

.home-page .fiber-copy > .cta-button svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* Category crops keep the furniture in view in the existing four-tile layout. */
.home-page .edit-tile--materassi img { object-position: 50% 57%; }
.home-page .edit-tile--poltrone img { object-position: 50% 73%; }
.home-page .edit-tile--letti img { object-position: 58% 58%; }
.home-page .edit-tile--divani img { object-position: 54% 62%; }

.home-page .heritage-top > .eyeline {
  justify-content: center;
}
.home-page .heritage-top > .eyeline::before {
  content: none;
}

.home-page .rf-home-blog .reading-head {
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 44px);
}
.home-page .rf-home-blog .reading-head p {
  margin-top: 12px;
  font-size: clamp(16px, 1.4vw, 20px);
}
.rf-home-blog-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex: none;
  font-weight: 700;
}
.rf-home-blog-link svg, .rf-home-blog .reading-arrow svg { width: 18px; height: 18px; }
.rf-home-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 26px);
}
.home-page .rf-home-blog .reading-entry {
  display: grid;
  grid-template: auto 1fr auto / minmax(0, 1fr);
  align-items: start;
  gap: 0;
  height: 100%;
  padding: 0;
  background: #edf1ee;
  color: #092e48;
}
.rf-home-blog-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.rf-home-blog-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.home-page .rf-home-blog .reading-copy { padding: clamp(14px, 1.6vw, 25px); }
.home-page .rf-home-blog .reading-copy time {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: #476674;
}
.home-page .rf-home-blog .reading-copy h3 {
  font: 400 clamp(21px, 1.8vw, 31px)/1.14 var(--serif);
  margin: 10px 0 0;
  padding: 0;
  overflow-wrap: anywhere;
}
.home-page .rf-home-blog .reading-arrow {
  display: grid;
  grid-row: 3;
  justify-self: end;
  margin: 0 clamp(14px, 1.6vw, 25px) 16px;
  transform: none;
}
.home-page .rf-home-blog .reading-entry:not(.has-cover) .reading-copy { grid-row: 2; }

@media (hover: hover) and (pointer: fine) {
  .home-page .rf-home-blog .reading-entry:hover { background: #e2eae5; }
  .rf-home-blog .reading-entry:hover .rf-home-blog-photo img { transform: scale(1.05); }
  .rf-home-blog-link:hover { color: #086384; }
}
@media (max-width: 999px) {
  .rf-home-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .rf-home-blog-grid { grid-template-columns: minmax(0, 1fr); }
  .rf-home-blog-link { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .rf-home-blog-photo img { transition: none; }
  .rf-home-blog .reading-entry:hover .rf-home-blog-photo img { transform: none; }
}

/* Sedi */
.location-room .rf-location-grid,
.footer57 .rf-footer-locations {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(.85rem, 2vw, 1.6rem);
}
.location-room .rf-location-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.location-room .rf-location-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    background: #092e48;
    color: #fff;
    border-radius: .65rem;
    overflow: hidden;
}
.location-room .rf-location-card:nth-last-child(-n+2) { grid-column: span 3; }
.rf-location-photo { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.location-room .rf-location-copy { padding: clamp(1.25rem, 3vw, 2.1rem); display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.location-room .rf-location-copy h3 { font: inherit; font-family: var(--serif, Georgia, serif); font-size: clamp(1.6rem, 2.5vw, 2.5rem); line-height: 1.1; }
.rf-location-copy :is(h3,p) { margin: 0; }
.rf-location-copy address { font-style: normal; }
.location-room .rf-location-copy address { color: #dbe8ee; }
.location-room .rf-location-copy .text-link { align-self: flex-start; margin-top: auto; padding-top: .6rem; color: #ffbf56; }
.location-room .rf-location-copy .text-link:hover { color: #fff; }
.location-room#sedi { scroll-margin-top: 7rem; }
.footer57 .rf-footer-locations { margin-bottom: .65rem; }
.footer57 .rf-footer-locations h3 { font: inherit; font-weight: 700; margin-bottom: .45rem; }
.footer57 .rf-footer-locations address { margin: 0 0 .5rem; }
.footer57 .rf-footer-locations a { display: inline-flex; gap: .5em; }
@media (max-width: 960px) {
    .location-room .rf-location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .location-room .rf-location-grid .rf-location-card { grid-column: auto; }
    .location-room .rf-location-grid .rf-location-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .location-room .rf-location-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Collezione materassi e catalogo */
.rf-mattress-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 7rem);
    margin-bottom: clamp(3rem, 7vw, 7rem);
}
.rf-mattress-catalogue {
    display: grid;
    grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    justify-self: center;
}
.rf-mattress-catalogue img { display: block; width: 100%; height: auto; }
.rf-mattress-catalogue .pdf118 { row-gap: .5rem; flex-wrap: wrap; }
.rf-mattress-line + .rf-mattress-line { margin-top: clamp(2.5rem, 6vw, 6rem); }
.rf-mattress-line > h3 { margin: 0 0 clamp(1.15rem, 3vw, 2.6rem); font: 400 clamp(1.65rem, 3.2vw, 3rem)/1.12 var(--serif); }
.rf-mattress-line .model57 h4 { margin: 0; font: 400 clamp(1.25rem, 2.3vw, 2.35rem)/1.15 var(--serif); }
@media (max-width: 900px) {
    .rf-mattress-heading { grid-template-columns: minmax(0, 1fr); }
    .rf-mattress-catalogue { justify-self: start; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); }
}
@media (max-width: 430px) {
    .rf-mattress-catalogue { grid-template-columns: minmax(0, 1fr); }
    .rf-mattress-catalogue img { max-width: 8rem; }
}

.rf-orbit button.rf-orbit-item { appearance: none; background: transparent; border: 0; padding: 0; }

.m90-related .m90-card { border-bottom: 0; padding-bottom: 0; }
.m90-related .m90-card-title { padding-bottom: .8rem; border-bottom: 1px solid #bacbd0; }
.m90-related .rf-related-line { display: block; padding-top: .65rem; font-size: .875rem; }

/* Collection jump links have an inset on both sides of the label. */
.rf-hero .rf-scroll {
    box-sizing: border-box;
    max-inline-size: calc(100% - 2rem);
    padding-inline: clamp(.85rem, 2vw, 1.25rem);
}

/* Document lists share a surface and a consistent action column. */
.rf-catalogue-group {
    margin-block: clamp(1.4rem, 3vw, 2.2rem) .5rem;
    padding: clamp(1rem, 2.4vw, 1.65rem);
    background: var(--paper, #f9f9f6);
    color: var(--ink, #092e48);
    border-radius: .6rem;
}
.rf-catalogue-group .rf-catalogue-group-title {
    margin: 0 0 .85rem;
    font-weight: 700;
    font-size: .875rem;
}
.rf-catalogue-group .rf-catalogue-list { list-style: none; margin: 0; padding: 0; }
.rf-catalogue-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: .75rem 1.5rem;
    padding-block: 1rem;
    border-top: 1px solid #bacbd0;
}
.rf-catalogue-item:last-child { padding-bottom: 0; }
.rf-catalogue-copy { display: grid; gap: .4rem; overflow-wrap: anywhere; }
.rf-catalogue-item .rf-catalogue-title { margin: 0; font-weight: 700; }
.rf-catalogue-item .rf-catalogue-description,
.rf-catalogue-item .rf-catalogue-status { font-size: .875rem; line-height: 1.5; }
.rf-catalogue-item :is(.rf-catalogue-status,.pdf118-meta) { margin: 0; }
.rf-catalogue-description > :first-child { margin-top: 0; }
.rf-catalogue-description > :last-child { margin-bottom: 0; }
.rf-catalogue-item .rf-catalogue-action {
    display: grid;
    justify-items: start;
    gap: .35rem;
    margin: 0;
}
.rf-catalogue-action button.pdf118-link:disabled {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 20px;
    border: 2px solid #dd4747;
    border-radius: var(--rf-button-radius, 999px);
    background: #fff;
    color: #092e48;
    font: 700 14px/1.35 var(--sans, sans-serif);
    opacity: 1;
    cursor: default;
}
.rf-catalogue-action .pdf118-link { white-space: nowrap; }
@media (max-width: 600px) {
    .rf-catalogue-item { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}


/* The widget injects its own launcher styles after the theme stylesheet. */
body .rf-root > button.rf-bubble:not([hidden], [aria-hidden="true"]) {
    --rf-ai-font-size: 14px;
    --rf-ai-padding-end: 20px;
    --rf-ai-ink: var(--ink, #092e48);
    --rf82-hover-ink: var(--rf-ai-ink) !important;
    --rf82-fill: rgb(255 255 255 / 55%) !important;
    box-sizing: border-box !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    inline-size: max-content !important;
    min-inline-size: 0 !important;
    max-inline-size: calc(100vw - 32px) !important;
    block-size: 44px !important;
    min-block-size: 44px !important;
    max-block-size: 44px !important;
    margin-inline-start: 12px !important;
    padding: 0 !important;
    padding-inline: 10px var(--rf-ai-padding-end) !important;
    border: 1px solid rgb(228 237 240 / 26%) !important;
    border-radius: var(--rf-button-radius, 999px) !important;
    background: rgb(255 255 255 / 10%) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    backdrop-filter: blur(5px) !important;
    color: var(--rf-ai-ink) !important;
    box-shadow: 0 4px 14px #092e4826 !important;
    font: 700 var(--rf-ai-font-size)/1.25 var(--sans, Manrope, sans-serif) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}
body .rf-root > button.rf-bubble:not([hidden], [aria-hidden="true"]):not([data-rf83-hover="fill"])::before,
body .rf-root > button.rf-bubble:not([hidden], [aria-hidden="true"])::after,
body .rf-root > button.rf-bubble:not([hidden], [aria-hidden="true"]) > :is(.rf-bubble-icon, .rf-bubble-label)::before,
body .rf-root > button.rf-bubble:not([hidden], [aria-hidden="true"]) > :is(.rf-bubble-icon, .rf-bubble-label)::after {
    content: none !important;
    display: none !important;
}
body .rf-root > button.rf-bubble:not([hidden], [aria-hidden="true"]) > :is(.rf-bubble-icon, .rf-bubble-label) {
    all: unset !important;
    box-sizing: border-box !important;
}
body .rf-root > button.rf-bubble:not([hidden], [aria-hidden="true"]) > .rf-bubble-icon {
    display: grid !important;
    place-items: center !important;
    inline-size: 26px !important;
    block-size: 26px !important;
    flex: 0 0 26px !important;
}
body .rf-root > button.rf-bubble:not([hidden], [aria-hidden="true"]) > .rf-bubble-icon > img {
    all: unset !important;
    display: block !important;
    inline-size: 100% !important;
    block-size: 100% !important;
    object-fit: contain !important;
}
body .rf-root > button.rf-bubble:not([hidden], [aria-hidden="true"]) > .rf-bubble-label {
    display: block !important;
    min-inline-size: 0 !important;
    overflow: hidden !important;
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    font: inherit !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}
body .rf-root > button.rf-bubble[data-rf-ai-surface="dark"]:not([hidden], [aria-hidden="true"]) {
    --rf-ai-ink: #fff;
    --rf82-fill: rgb(9 46 72 / 65%) !important;
}
@media (prefers-reduced-motion: no-preference) {
    body .rf-root > button.rf-bubble:not([hidden], [aria-hidden="true"]) {
        transition: background-color .18s ease, transform .16s ease-out !important;
    }
}
body .rf-root > button.rf-bubble:focus-visible {
    outline: 2px solid #106891;
    outline-offset: 2px;
}
@media (hover: hover) {
    body .rf-root > button.rf-bubble:not([hidden], [aria-hidden="true"]):not([data-rf83-hover="fill"]):hover {
        background-color: var(--rf82-fill) !important;
    }
}
@media (max-width: 900px), (pointer: coarse) {
    body .rf-root > button.rf-bubble:not([hidden], [aria-hidden="true"]) {
        --rf-ai-font-size: 13px;
        --rf-ai-padding-end: 16px;
        gap: 6px !important;
    }
}


/* The injected chat uses the theme's locally hosted sans-serif. */
body .rf-root,
body .rf-root :is(.rf-bubble, .rf-teaser, .rf-panel),
body .rf-root :is(.rf-bubble, .rf-teaser, .rf-panel) :not(svg, svg *) {
    font-family: var(--sans, Manrope, sans-serif) !important;
}

body .rf-root .rf-teaser {
    bottom: 78px !important;
}
body .rf-root .rf-contact a {
    padding: 15px 6px !important;
}
@media (min-width: 901px) {
    body .rf-root .rf-panel.rf-wide {
        width: min(420px, calc(100vw - 48px)) !important;
    }
}


/* Mobile floating actions share the same touch target and baseline. */
@media (max-width: 900px), (pointer: coarse) {
    :root {
        --rf-mobile-action-size: 44px;
        --rf-mobile-action-bottom: calc(21px + env(safe-area-inset-bottom, 0px));
    }
    body .rf-root > button.rf-bubble:not([hidden], [aria-hidden="true"]) {
        inline-size: var(--rf-mobile-action-size) !important;
        padding-inline: 0 !important;
        gap: 0 !important;
    }
    body .rf-root > button.rf-bubble:not([hidden], [aria-hidden="true"]) > .rf-bubble-label {
        display: none !important;
    }
    body:has(> .rf-product-contact:not([hidden], [data-before-hero])) #back-top {
        inline-size: var(--rf-mobile-action-size);
        block-size: var(--rf-mobile-action-size);
        bottom: var(--rf-mobile-action-bottom);
    }
}


/* The selected product's link sits above the orbit's interactive stage. */
.rf-hero .rf-hero-copy-with-details { z-index: 4; }
.rf-hero .rf-orbit-details { pointer-events: auto; }
.rf-hero .rf-orbit-details svg { flex: 0 0 18px; }
