:root {
  --dedalo-gray: #777777;
  --dedalo-dark: #515151;
  --dedalo-line: #dddddd;
  --dedalo-blue: #428bca;
  --dedalo-sand: #f3f0eb;
  --dedalo-ink: #353535;
}

body {
  color: #555454;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video { max-width: 100%; }

/* Plain links only: Bootstrap link-buttons keep their own accessible text colors. */
a:not(.btn) { color: var(--dedalo-dark); }
a:not(.btn):hover { color: var(--dedalo-blue); }

.container,
.container-md { max-width: 1320px; }

#header {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.14);
}

.header-top {
  min-height: 38px;
  padding: 0;
  color: #fff;
  background: var(--dedalo-dark);
  border: 0;
}

.header-top a,
.header-top button,
.header-top select { color: #fff !important; }

.header-top__right {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

/* Visible language choices: compact, accessible and usable on every viewport. */
.dedalo-language-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dedalo-language-link {
  display: inline-grid;
  place-items: center;
  align-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff !important;
  opacity: .74;
  transition: opacity .2s ease, transform .2s ease;
}

.dedalo-language-link:hover,
.dedalo-language-link:focus-visible,
.dedalo-language-link.is-active {
  opacity: 1;
}

.dedalo-language-link:hover { transform: translateY(-1px); }

.dedalo-language-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.dedalo-language-flag {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.65);
  line-height: 1;
}

.dedalo-language-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.dedalo-language-link.is-active .dedalo-language-flag {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(255,255,255,.35);
}

.dedalo-language-code {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #555;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.header-brand {
  position: relative;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid #ededed;
}
.header-brand__container {
  min-height: 128px;
  display: grid;
  place-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.header-brand__logo,
.header-brand__h1 { display: grid; place-items: center; margin: 0; }
.header-bottom { position: relative; z-index: 4; background: #fff; }
.header-bottom__container { padding-top: 10px; padding-bottom: 0; }
.header-bottom__row { min-width: 0; }
.header-bottom__row > * { min-width: 0; }
.navbar-brand .logo {
  width: 112px !important;
  height: 112px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
}

.ps-mainmenu--desktop {
  align-self: end;
  flex-basis: 100%;
  order: 10;
  border-top: 1px solid var(--dedalo-line);
  border-bottom: 3px solid var(--dedalo-dark);
}

#_desktop_ps_searchbar {
  min-height: 52px;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* Desktop navigation: search and menu share one compact horizontal band. */
@media (min-width: 1200px) {
  .header-bottom {
    border-bottom: 3px solid var(--dedalo-dark);
  }

  .header-bottom__container {
    padding-top: 0;
  }

  .header-bottom__row {
    min-height: 62px;
    flex-wrap: nowrap;
    gap: clamp(10px, 1.4vw, 22px);
  }

  .ps-mainmenu--desktop {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    align-self: stretch;
    border-top: 0;
    border-bottom: 0;
  }

  .ps-mainmenu__desktop,
  .ps-mainmenu__tree,
  .ps-mainmenu__tree-item,
  .ps-mainmenu__tree-item-wrapper {
    height: 100%;
  }

  .ps-mainmenu__tree {
    justify-content: flex-start;
  }

  .ps-mainmenu__tree-item-wrapper {
    min-height: 58px;
  }

  .ps-mainmenu__tree-link {
    display: inline-flex;
    align-items: center;
    padding: 0 clamp(10px, 1vw, 16px) !important;
    white-space: nowrap;
  }

  #_desktop_ps_searchbar {
    order: 2;
    flex: 0 1 310px;
    width: min(310px, 25vw);
    min-height: 0;
    margin: 0 !important;
    padding: 0;
  }

  #_desktop_ps_searchbar .ps-searchbar {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  #_desktop_ps_searchbar .ps-searchbar__input {
    height: 42px;
    border-color: #d2d2d2;
    border-radius: 2px;
    background: #fff;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .header-bottom__container { padding-top: 0; }
  .header-bottom__row { min-height: 58px; flex-wrap: nowrap; }
  .ps-mainmenu--desktop {
    order: 1;
    flex: 0 0 auto;
    align-self: center;
    border: 0;
  }
  #_desktop_ps_searchbar {
    order: 2;
    flex: 0 1 360px;
    width: min(360px, calc(100vw - 110px));
    min-height: 0;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
  #_desktop_ps_searchbar .ps-searchbar { width: 100%; min-width: 0; }
}

.ps-mainmenu__tree {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0;
}

.ps-mainmenu__tree-item-wrapper { min-height: 48px; }
.ps-mainmenu__tree-link {
  padding: 16px 18px !important;
  color: var(--dedalo-dark) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.ps-mainmenu__tree-item:hover > .ps-mainmenu__tree-item-wrapper,
.ps-mainmenu__tree-item.current > .ps-mainmenu__tree-item-wrapper { background: var(--dedalo-dark); }
.ps-mainmenu__tree-item:hover .ps-mainmenu__tree-link,
.ps-mainmenu__tree-item.current .ps-mainmenu__tree-link,
.ps-mainmenu__tree-item:hover .ps-mainmenu__tree-dropdown-toggle,
.ps-mainmenu__tree-item.current .ps-mainmenu__tree-dropdown-toggle { color: #fff !important; }

@media (min-width: 1200px) {
  .ps-mainmenu--desktop .ps-mainmenu__tree { justify-content: flex-start; }
  .ps-mainmenu--desktop .ps-mainmenu__tree-item-wrapper { min-height: 58px; }
  .ps-mainmenu--desktop .ps-mainmenu__tree-link {
    padding: 0 clamp(10px, 1vw, 16px) !important;
  }
}

.searchbar { max-width: 560px; }
.searchbar input,
.form-control { border-radius: 0; border-color: #d6d4d4; }
.btn { border-radius: 0; }
.btn-primary {
  color: #fff !important;
  background: var(--dedalo-dark);
  border-color: var(--dedalo-dark);
}
.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  color: #fff !important;
  background: var(--dedalo-blue);
  border-color: var(--dedalo-blue);
}

/* Keep every filled or selected control legible across catalog, account and checkout. */
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-secondary:active,
.btn-secondary.active,
.btn-success,
.btn-success:hover,
.btn-success:focus-visible,
.btn-success:active,
.btn-danger,
.btn-danger:hover,
.btn-danger:focus-visible,
.btn-danger:active,
.btn-dark,
.btn-dark:hover,
.btn-dark:focus-visible,
.btn-dark:active,
.btn-outline-primary:hover,
.btn-outline-primary:focus-visible,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible,
.btn-outline-secondary:active,
.btn-outline-secondary.active,
.btn-outline-dark:hover,
.btn-outline-dark:focus-visible,
.btn-outline-dark:active,
.btn-outline-dark.active,
.dropdown-item.active,
.dropdown-item:active,
.list-group-item.active,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.submenu__left-item[aria-selected="true"],
.menu--mobile .current > .menu__link {
  color: #fff !important;
}

.ps-mainmenu--mobile .menu--mobile li.current {
  background: var(--dedalo-dark);
}

.ps-mainmenu--mobile .menu--mobile li.current > .menu__link,
.ps-mainmenu--mobile .menu--mobile li.current > .menu__toggle-child {
  color: #fff !important;
}

.btn:focus-visible,
.ps-mainmenu__tree-link:focus-visible,
.ps-mainmenu__tree-dropdown-toggle:focus-visible,
.submenu__left-item:focus-visible,
.menu__link:focus-visible {
  outline: 3px solid var(--dedalo-blue);
  outline-offset: 2px;
}

.carousel,
.carousel-inner,
.carousel-item,
.carousel-item figure { max-height: 510px; overflow: hidden; }
.carousel-item img {
  width: 100%;
  height: 510px;
  object-fit: cover;
}
.carousel-caption {
  background: rgba(255,255,255,.78);
  color: var(--dedalo-dark);
  padding: 22px 28px;
}

#custom-text,
.custom-text { display: none !important; }

.page-content--home {
  display: flex;
  flex-direction: column;
}
.page-content--home .ps-imageslider { order: 1; }
.page-content--home .ps-banner { display: none !important; }
.page-content--home .dedalo-home-story { order: 2; }
.page-content--home .dedalo-home-categories { order: 3; }
.page-content--home .ps-newproducts { order: 4; }
.page-content--home .ps-bestsellers { order: 5; }
.page-content--home .dedalo-benefits { order: 6; }
.page-content--home .dedalo-brands { order: 7; }

.featured-products,
.new-products,
.best-sellers { padding: 28px 0 18px; }

.featured-products h2,
.new-products h2,
.best-sellers h2,
.products-section-title {
  margin: 0 0 24px;
  padding: 12px 0;
  color: var(--dedalo-dark);
  border-bottom: 1px solid var(--dedalo-line);
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
}

.product-miniature__inner {
  height: 100%;
  padding: 8px;
  border: 1px solid #e7e7e7;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-miniature__inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0,0,0,.14);
}
.product-miniature__image-link { border: 0 !important; border-radius: 0 !important; }
.product-miniature__image { object-fit: contain; background: #fff; }
.product-miniature__bottom { padding: 13px 8px 9px; text-align: center; }
.product-miniature__title {
  min-height: 40px;
  color: var(--dedalo-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-transform: uppercase;
}
.product-miniature__price { color: var(--dedalo-dark); font-size: 16px; font-weight: 700; }
.product-miniature__quickview-button,
.product-miniature__quickview-touch { display: none !important; }
.product-miniature__actions { display: flex; justify-content: center; padding: 0 8px 12px; }
.product-miniature__actions .btn,
.product-miniature__add-to-cart { padding: 9px 14px; border: 1px solid #565656; color: #fff; background: #565656; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.product-flags .badge { border-radius: 0; }

/* Catalogo e categorie */
#category .page-title-section,
#manufacturer .page-title-section,
#search .page-title-section { margin-bottom: 24px; padding: 34px 20px; background: #f3f3f3; border-bottom: 1px solid #ddd; text-align: center; }
#category .page-title-section h1,
#manufacturer .page-title-section h1,
#search .page-title-section h1 { margin: 0; color: #515151; font-size: 30px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
#products { padding-bottom: 42px; }
#js-product-list-top { margin-bottom: 22px; padding: 12px 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.products-sort-order .select-title,
.sort-by-row .form-select { border-radius: 0; border-color: #d7d7d7; background-color: #fff; }
#js-product-list .products { row-gap: 24px; }
.pagination { margin-top: 28px; padding-top: 22px; border-top: 1px solid #ddd; }
.pagination .page-link { color: #515151; border-radius: 0 !important; }
.pagination .active .page-link { color: #fff; background: #565656; border-color: #565656; }

/* Filtri catalogo: Marchio, Effetto, Spessore e Superficie. */
#search_filters_wrapper {
  width: 100%;
  margin: 0 0 26px;
  border: 1px solid #dedede;
  background: #fff;
}
#search-filters .left-block__title {
  margin: 0;
  padding: 19px 20px;
  color: #333;
  border-bottom: 3px solid #5b5b5b;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
#search-filters .search-filters__clear { padding: 12px 16px 0; }
#search-filters .js-search-filters-clear-all {
  width: 100%;
  padding: 8px 12px;
  border-color: #bdbdbd;
  border-radius: 0;
  color: #555;
  font-size: 12px;
  text-transform: uppercase;
}
#search-filters .accordion { --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0; }
#search-filters .accordion-item { border: 0; border-bottom: 1px solid #dedede; }
#search-filters .accordion-item:last-child { border-bottom: 0; }
#search-filters .accordion-button {
  min-height: 54px;
  padding: 16px 18px;
  color: #4f4f4f;
  background: #fafafa;
  box-shadow: none;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}
#search-filters .accordion-button:not(.collapsed) { color: #222; background: #f4f4f4; }
#search-filters .accordion-button::after { width: 16px; height: 16px; background-size: 16px; }
#search-filters .accordion-body {
  max-height: 310px;
  margin: 0;
  padding: 10px 16px 14px;
  overflow-x: hidden;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
}
#search-filters .search-filters__item { padding: 7px 0; }
#search-filters .search-filters__form-check { min-height: 20px; margin: 0; }
#search-filters .form-check-input { margin-top: .16rem; border-radius: 0; }
#search-filters .form-check-input:checked { border-color: #555; background-color: #555; }
#search-filters .search-filters__link {
  color: #565656;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}
#search-filters .search-filters__link:hover { color: #111; }
#search-filters .search-filters__magnitude { color: #949494; font-size: 11px; }

/* Scheda prodotto */
#product .breadcrumb { margin-bottom: 22px; }
.breadcrumb {
  max-width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.breadcrumb::-webkit-scrollbar { display: none; }
.product__container { gap: 42px; padding: 28px; border: 1px solid #e0e0e0; background: #fff; }
.product__left { min-width: 0; }
.product__right { padding: 8px 10px 8px 0; }
.product__name { margin: 0 0 8px; color: #515151; font-size: 30px; font-weight: 400; line-height: 1.25; text-transform: uppercase; }
.product__manufacturer a { color: #888; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.product__prices { margin: 24px 0 18px; padding: 18px 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.product__current-price { color: #515151; font-size: 28px; font-weight: 700; }
.dedalo-square-metre-price .product__price { color: #515151; font-size: 28px; font-weight: 700; }
.dedalo-unit-tax-note { margin-top: 6px; color: #444; font-size: 14px; }
.dedalo-box-price-note { margin-top: 5px; color: #666; font-size: 14px; }
.dedalo-miniature-tax-note { color: #666; font-size: 11px; font-weight: 500; text-transform: uppercase; }
.dedalo-miniature-net-price { margin-top: 2px; color: #555; font-size: 13px; font-weight: 600; }
.dedalo-miniature-box-note { margin-top: 2px; color: #666; font-size: 12px; font-weight: 400; }
.product__description-short { color: #666; font-size: 14px; line-height: 1.7; }
.product__actions { margin-top: 22px; padding-top: 20px; border-top: 1px solid #ddd; }
.product__add-to-cart-container { gap: 12px; }
.product__add-to-cart-button { min-height: 48px; padding: 12px 25px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.product__quantity input { min-height: 48px; border-radius: 0; }
.dedalo-box-calculator { margin-top: 16px; padding: 16px 18px; border: 1px solid #cfcfcf; background: #f7f7f7; }
.dedalo-box-calculator__labels { display: flex; justify-content: space-between; margin-bottom: 7px; color: #777; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.dedalo-box-calculator__result { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #515151; font-size: 18px; }
.dedalo-box-calculator__result strong:last-child { color: #287a42; font-size: 22px; }
.dedalo-box-calculator__equals { color: #999; }
.dedalo-box-calculator small { display: block; margin-top: 8px; color: #777; }
.dedalo-cart-coverage { margin-top: 8px; display: flex; flex-direction: column; color: #515151; font-size: 13px; }
.dedalo-cart-coverage span { color: #287a42; font-size: 16px; font-weight: 700; }
.dedalo-cart-coverage small { color: #888; }
.product__bottom { margin-top: 36px; gap: 30px; }
.product__accordion { border: 1px solid #ddd; }
.product__accordion .accordion-item { border-radius: 0; }
.product__accordion .accordion-button { color: #515151; background: #f7f7f7; font-weight: 700; text-transform: uppercase; }
.product__accordion .accordion-button:not(.collapsed) { color: #fff; background: #565656; }
.product__accordion .accordion-body { color: #666; line-height: 1.7; }
.product-cover img { background: #fff; object-fit: contain; }
.product-images img { border-radius: 0 !important; }

.dedalo-seo-related { margin: 38px 0 18px; padding-top: 28px; border-top: 1px solid #ddd; }
.dedalo-seo-related h2 { margin: 0 0 18px; color: #515151; font-size: 24px; font-weight: 600; }
.dedalo-seo-related__list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; list-style: none; }
.dedalo-seo-related__list a { display: block; padding: 12px 14px; color: #515151; border: 1px solid #ddd; background: #fff; line-height: 1.45; }
.dedalo-seo-related__list a:hover { color: #111; border-color: #777; }

.dedalo-home-story {
  width: min(1296px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0 104px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(54px, 9vw, 130px);
  align-items: start;
  background: url('../img/dedalo-story.webp') left bottom / 37% auto no-repeat;
}
.dedalo-home-story > * { min-width: 0; }
.dedalo-home-eyebrow {
  display: block;
  margin-bottom: 22px;
  color: #6f665e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.dedalo-home-story__statement { padding-bottom: 175px; }
.dedalo-home-story h1 {
  max-width: 610px;
  margin: 0;
  color: var(--dedalo-ink);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.04;
}
.dedalo-home-story__copy {
  padding-top: 45px;
  color: #69645f;
  font-size: 18px;
  line-height: 1.8;
}
.dedalo-home-story__copy p { margin: 0 0 24px; }
.dedalo-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 5px;
  color: var(--dedalo-ink) !important;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dedalo-home-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 72px;
  padding: 78px max(24px, calc((100% - 1296px)/2));
  background: var(--dedalo-sand);
}
.dedalo-home-categories__heading {
  grid-column: 1 / -1;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
}
.dedalo-home-categories__heading .dedalo-home-eyebrow { grid-column: 1 / -1; margin-bottom: 12px; }
.dedalo-home-categories__heading h2 {
  margin: 0;
  color: var(--dedalo-ink);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 500;
  letter-spacing: -.03em;
}
.dedalo-home-category {
  min-height: 410px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff !important;
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.dedalo-home-category:hover { transform: translateY(-6px); box-shadow: 0 18px 45px rgba(55,49,43,.18); }
.dedalo-home-category::before { content: ""; position: absolute; inset: 0; background: linear-gradient(20deg, rgba(0,0,0,.76), rgba(0,0,0,.03) 68%); }
.dedalo-home-category > * { position: relative; z-index: 1; }
.dedalo-home-category--wood { background-image: url('../img/dedalo-effect-wood.webp'); }
.dedalo-home-category--stone { background-image: url('../img/dedalo-effect-stone.webp'); }
.dedalo-home-category--cement { background-image: url('../img/dedalo-effect-cement.webp'); }
.dedalo-home-category--marble { background-image: url('../img/dedalo-effect-marble.webp'); }
.dedalo-home-category--large-slabs { background-image: url('../img/dedalo-large-slabs.webp'); }
.dedalo-home-category strong { margin: 0 0 8px; font-size: 30px; font-weight: 500; letter-spacing: -.02em; }
.dedalo-home-category > span { max-width: 230px; color: rgba(255,255,255,.86); font-size: 14px; line-height: 1.5; }

.page-content--home .ps-newproducts {
  width: min(1296px, calc(100% - 48px));
  margin: 0 auto 68px;
}
.page-content--home .ps-newproducts .products-section-title {
  text-align: left;
  font-size: clamp(34px, 3.5vw, 50px);
  font-weight: 500;
  letter-spacing: -.03em;
  text-transform: none;
}

.dedalo-skirting {
  max-width: 1296px;
  margin: 0 auto 44px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  background: #565656;
}
.dedalo-skirting h2 { max-width: 780px; margin: 6px 0 0; color: #fff; font-size: 27px; font-weight: 400; text-transform: uppercase; }
.dedalo-skirting__eyebrow { color: #ddd; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.dedalo-button { flex: 0 0 auto; padding: 14px 20px; color: #515151 !important; background: #fff; font-weight: 700; text-transform: uppercase; }

.dedalo-benefits { max-width: 1296px; margin: 0 auto 54px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #ddd; }
.dedalo-benefits article { min-height: 150px; padding: 26px 18px; text-align: center; border-right: 1px solid #ddd; }
.dedalo-benefits article:last-child { border-right: 0; }
.dedalo-benefits__icon { display: block; height: 38px; color: #777; font-size: 29px; }
.dedalo-benefits h3 { margin: 8px 0 5px; color: #515151; font-size: 16px; text-transform: uppercase; }
.dedalo-benefits p { margin: 0; color: #666; font-size: 13px; }

.dedalo-brands { margin: 0 0 52px; padding: 42px max(20px, calc((100% - 1296px)/2)); background: #f4f4f4; text-align: center; }
.dedalo-section-heading span { color: #666; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.dedalo-section-heading h2 { margin: 4px 0 28px; color: #515151; font-size: 28px; font-weight: 400; text-transform: uppercase; }
.dedalo-brands__track { display: flex; gap: 16px; overflow-x: auto; padding: 2px 0 18px; scroll-snap-type: x proximity; }
.dedalo-brands__track a { flex: 0 0 150px; height: 92px; display: grid; place-items: center; padding: 12px; background: #fff; border: 1px solid #e2e2e2; scroll-snap-align: start; }
.dedalo-brands__track img { max-width: 100%; max-height: 65px; object-fit: contain; }
.dedalo-brands__all { display: inline-block; margin-top: 15px; padding-bottom: 3px; border-bottom: 1px solid #777; font-size: 13px; font-weight: 700; text-transform: uppercase; }

.footer__before { background: #f2f2f2; border-top: 1px solid #ddd; }
.footer__main {
  padding-top: 34px;
  color: #ddd;
  background: var(--dedalo-dark);
  border-top: 4px solid var(--dedalo-gray);
}
.footer__main a { color: #ddd; }
.footer__main a:hover { color: #fff; }
.footer-block__title { color: #fff; font-size: 16px; text-transform: uppercase; }
.footer__copyright { color: #ccc; background: #444; }
.dedalo-footer-company { margin-top: 24px; padding: 22px 0 8px; display: flex; flex-direction: column; gap: 5px; color: #ccc; border-top: 1px solid rgba(255,255,255,.18); font-size: 12px; text-align: center; }
.dedalo-footer-company strong { color: #fff; font-size: 14px; }

.dedalo-whatsapp {
  position: fixed;
  right: 14px;
  bottom: 38px;
  z-index: 1030;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,.25);
}
.dedalo-whatsapp img { display: block; width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 1199.98px) {
  .header-brand__container { min-height: 92px; }
  .navbar-brand .logo { width: 76px !important; height: 76px !important; }
  .header-bottom__container { padding-top: 0; padding-bottom: 0; }
  .header-bottom__row { min-height: 58px; flex-wrap: nowrap; }
  .ps-mainmenu--desktop { flex: 0 0 auto; order: 0; border-top: 0; border-bottom-width: 3px; }
  #_desktop_ps_searchbar { flex: 1 1 auto; max-width: 520px; margin-left: auto !important; margin-right: 0 !important; }
  .carousel-item img { height: 360px; }
  .dedalo-home-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #left-column {
    display: block !important;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin-bottom: 18px;
  }
  #left-column > :not(.ps-facetedsearch) { display: none !important; }
  #left-column #search_filters_wrapper { margin-bottom: 0; }
  #left-column #search-filters .accordion {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #left-column #search-filters .accordion-item {
    min-width: 0;
    border-right: 1px solid #dedede;
    border-bottom: 0;
  }
  #left-column #search-filters .accordion-item:last-child { border-right: 0; }
  #center-column {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
  #wrapper > .container,
  #wrapper > .container-md { max-width: 100%; }

  /* Keep long Eshop branches usable on phones and tablets. */
  .ps-mainmenu--mobile {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
  }
  .ps-mainmenu--mobile .offcanvas-header,
  .ps-mainmenu--mobile .ps-mainmenu__additionnals {
    flex: 0 0 auto;
  }
  .ps-mainmenu--mobile .ps-mainmenu__mobile {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }
  .ps-mainmenu--mobile .menu--mobile {
    min-height: min-content;
    padding-bottom: 24px;
  }
}

@media (max-width: 991.98px) {
  /* I filtri occupano una riga compatta sopra il catalogo su tablet. */
  #left-column {
    display: block !important;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
  #center-column {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
  #wrapper > .container,
  #wrapper > .container-md { max-width: 100%; }
  #category .page-title-section,
  #manufacturer .page-title-section,
  #search .page-title-section { padding: 26px 18px; }
  .product__container { gap: 26px; padding: 20px; }
  .product__name { font-size: clamp(24px, 3.5vw, 30px); }
  .header-top__right { gap: 10px; }
}

@media (min-width: 1200px) {
  #search_filters_wrapper {
    position: sticky;
    top: 18px;
  }
  /* The mega-menu remains compact, but every long collection list can scroll. */
  .ps-mainmenu--desktop .submenu {
    max-height: min(72vh, 680px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .ps-mainmenu--desktop .submenu__left,
  .ps-mainmenu--desktop .submenu__right {
    max-height: min(68vh, 640px);
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
}

@media (max-width: 767.98px) {
  #left-column { min-height: 0; margin-bottom: 0; padding: 0; }
  #left-column #search_filters_wrapper { display: none !important; }
  #offcanvas-faceted { width: min(92vw, 390px); }
  #offcanvas-faceted .offcanvas-header { border-bottom: 1px solid #ddd; }
  #offcanvas-faceted .offcanvas-title {
    color: #333;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  #offcanvas-faceted .offcanvas-body { padding: 0; }
  #offcanvas-faceted #search-filters .left-block__title { display: none !important; }
}

@media (max-width: 767.98px) {
  .dedalo-language-link { width: 32px; height: 32px; }
  .dedalo-language-flag { width: 28px; height: 28px; }
  .header-brand__container { min-height: 84px; }
  .navbar-brand .logo { width: 68px !important; height: 68px !important; }
  .header-bottom__row { min-height: 56px; }
  .ps-mainmenu--desktop { margin-right: auto; }
  .ps-mainmenu__mobile-toggle .menu-toggle,
  .header-block__action-btn { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
  .ps-searchbar--mobile { margin-left: auto; }
  .carousel-item img { height: 270px; }
  .featured-products h2,
  .new-products h2,
  .best-sellers h2,
  .products-section-title { font-size: 21px; }
  .product-miniature__title { font-size: 12px; }
  .footer__main { padding-bottom: 100px; }
  .dedalo-home-story {
    width: calc(100% - 36px);
    padding: 56px 0 52px;
    display: flex;
    flex-direction: column;
    background-image: none;
  }
  .dedalo-home-story::before {
    content: "";
    order: 2;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 32px 0 28px;
    display: block;
    background: url('../img/dedalo-story.webp') center / cover no-repeat;
  }
  .dedalo-home-story__statement {
    order: 1;
    padding-bottom: 0;
  }
  .dedalo-home-story h1 { font-size: clamp(34px, 10vw, 42px); }
  .dedalo-home-story__copy {
    order: 3;
    padding-top: 0;
    overflow-wrap: anywhere;
    font-size: 16px;
  }
  .dedalo-home-categories { grid-template-columns: 1fr; gap: 18px; margin-bottom: 38px; padding: 54px 18px; }
  .dedalo-home-categories__heading { display: block; margin-bottom: 10px; }
  .dedalo-home-categories__heading h2 { margin-bottom: 22px; font-size: clamp(32px, 9vw, 38px); }
  .dedalo-home-category { min-height: 330px; padding: 30px 25px; border-radius: 14px; }
  .dedalo-home-category strong { font-size: 29px; }
  .page-content--home .ps-newproducts { width: calc(100% - 24px); margin-bottom: 38px; }
  .dedalo-skirting { margin: 0 12px 28px; padding: 28px 24px; align-items: flex-start; flex-direction: column; }
  .dedalo-skirting h2 { font-size: 21px; }
  .dedalo-benefits { margin: 0 12px 34px; grid-template-columns: repeat(2, 1fr); }
  .dedalo-benefits article { border-bottom: 1px solid #ddd; }
  .dedalo-brands { padding-left: 18px; padding-right: 18px; }
  .product__container { padding: 14px; gap: 20px; }
  .product__right { padding: 0; }
  .product__name { font-size: 23px; }
  .product__bottom { margin-top: 24px; }
  .dedalo-seo-related__list { grid-template-columns: 1fr; }
  .product__add-to-cart-container { flex-wrap: wrap; }
  .product__add-to-cart-button { flex: 1 1 190px; }
  .dedalo-box-calculator__labels,
  .dedalo-box-calculator__result { gap: 8px; }
  .product__accordion .accordion-body { overflow-x: auto; }
  .product__accordion table { min-width: 460px; }
  .footer__main .row > * { min-width: 0; }
}

@media (max-width: 575.98px) {
  #js-product-list .products,
  .page-content--home .products {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .product-miniature__inner { padding: 10px; }
  .product-miniature__title { min-height: 0; font-size: 14px; line-height: 1.45; }
  .product-miniature__actions { flex-wrap: wrap; }
  .product-miniature__actions .input-group { max-width: 132px; }
  .dedalo-benefits { grid-template-columns: 1fr; }
  .dedalo-benefits article { border-right: 0; }
  .dedalo-home-category { min-height: 300px; }
  .dedalo-skirting { padding: 24px 20px; }
  .dedalo-whatsapp {
    right: 12px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 359.98px) {
  .header-brand__container { min-height: 76px; }
  .navbar-brand .logo { width: 62px !important; height: 62px !important; }
  .header-bottom__row { --bs-gutter-x: .25rem; }
  .header-block__action-btn,
  .ps-mainmenu__mobile-toggle .menu-toggle { min-width: 40px; }
  .dedalo-home-story { width: calc(100% - 24px); }
  .dedalo-home-categories { padding-right: 12px; padding-left: 12px; }
}

/* Structured product specifications: native PrestaShop data, grouped for customers. */
.dedalo-product-specs .accordion-button {
  color: #4f4f4f;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 700;
}
.dedalo-specs {
  display: grid;
  gap: 38px;
  padding: 28px 0 8px;
}
.dedalo-specs__section { min-width: 0; }
.dedalo-specs__heading {
  margin: 0 0 20px;
  padding: 0 0 14px;
  color: #555;
  border-bottom: 3px solid #777;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
}
.dedalo-specs__table-wrap {
  width: 100%;
  overflow-x: auto;
}
.product__accordion .dedalo-specs__table {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
}
.dedalo-specs__table th,
.dedalo-specs__table td {
  padding: 14px 18px;
  border-bottom: 1px solid #d4d4d4;
  color: #595959;
  font-size: 17px;
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.dedalo-specs__table th {
  width: 46%;
  background: #f3f3f3;
  font-weight: 700;
}
.dedalo-specs__table td { background: #fff; }

@media (max-width: 767.98px) {
  .dedalo-specs { gap: 30px; padding-top: 20px; }
  .dedalo-specs__table th,
  .dedalo-specs__table td { padding: 12px 10px; font-size: 14px; }
  .dedalo-specs__table th { width: 48%; }
}

@media (max-width: 399.98px) {
  .dedalo-specs__table,
  .dedalo-specs__table tbody,
  .dedalo-specs__table tr,
  .dedalo-specs__table th,
  .dedalo-specs__table td { display: block; width: 100%; }
  .dedalo-specs__table tr { margin-bottom: 1px; }
  .dedalo-specs__table th { padding-bottom: 7px; border-bottom: 0; }
  .dedalo-specs__table td { padding-top: 7px; }
}
