:root {
  --sb-red: #d13030;               /* Saccon red (also set inline by the page) */
  --sb-red-deep: #a82222;
  --sb-slate: #333946;             /* menu bar, widget bars */
  --sb-slate-deep: #262b35;        /* footer */
  --sb-ground: #eef0f3;            /* page background */
  --sb-paper: #ffffff;
  --sb-line: #dde1e7;
  --sb-field: #8d95a3;

  --sb-ink: #1f232b;
  --sb-ink-soft: #596170;
  --sb-on-slate: #d9dee6;

  --sb-font-head: "Roboto Slab", Georgia, serif;
  --sb-font-text: "Open Sans", "Segoe UI", Arial, sans-serif;
  --sb-font-meta: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;

  --sb-container: 1170px;
  --sb-gutter: clamp(1rem, 3vw, 1.5rem);
  --sb-radius: 6px;
  --sb-shadow: 0 1px 2px rgba(31, 35, 43, 0.06), 0 10px 24px -16px rgba(31, 35, 43, 0.35);

  /* tyre-tread band: chevrons, light on slate */
  --sb-tread: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='10' viewBox='0 0 22 10'%3E%3Cpath d='M0 1l11 7 11-7' fill='none' stroke='white' stroke-opacity='0.16' stroke-width='3'/%3E%3C/svg%3E");
}


/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sb-font-text);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--sb-ink);
  background-color: var(--sb-ground);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: var(--sb-red);
  text-decoration: none;
}

a:hover {
  color: var(--sb-red-deep);
}

h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  font-family: var(--sb-font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--sb-ink);
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ...except inside grids, where they would take a cell of their own */
.module-grid-carousel ul.slides::after,
.bk-blog-content::after,
.has-sb > .row::before,
.has-sb > .row::after {
  content: none;
}

.container,
.bkwrapper {
  width: 100%;
  max-width: calc(var(--sb-container) + 2 * var(--sb-gutter));
  margin-inline: auto;
  padding-inline: var(--sb-gutter);
}

.row {
  margin-inline: 0;
}

.screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}


/* ==========================================================================
   3. Parts that only work with the theme's scripts or a live server
   ========================================================================== */

#main-mobile-menu,         /* off-canvas menu: the main menu is used instead */
.page-cover,
.top-bar,                  /* log-in link and top labels that lost their links */
.mobile-menu-wrap,
.ajax-search-wrap,         /* live search (search is in the sidebar) */
#back-top,
.bk-preload,
.blog-ajax.loadmore,       /* "Load More" needs the server */
.widget-social,            /* icons without links */
.widget-facebook,          /* the Facebook box never loads */
.hide-thumb.bk-hidden {
  display: none !important;
}

/* Elements the theme fades in with scripts: always visible */
.opacity-zero,
.hide-thumb {
  opacity: 1 !important;
  visibility: visible !important;
}


/* ==========================================================================
   4. Header: logo, menu bar, tread band
   ========================================================================== */

.bk-page-header {
  background-color: var(--sb-paper);
}

.bk-page-header .header {
  padding-block: clamp(1rem, 3vw, 1.75rem);
  text-align: center;
}

.header .logo h1 {
  margin: 0;
  line-height: 0;
}

.header .logo img {
  width: auto;
  max-height: clamp(70px, 12vw, 130px);
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--sb-slate);
  border-bottom: 0 !important;
}

/* Tread band under the menu */
.main-nav::after {
  content: "";
  display: block;
  height: 10px;
  background: var(--sb-tread) repeat-x left center, var(--sb-slate-deep);
}

.main-nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

#main-menu .menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#main-menu .menu > li {
  position: relative;
}

#main-menu .menu > li > a {
  display: block;
  padding: 0.95rem 1.1rem;
  font-family: var(--sb-font-text);
  font-size: 0.875rem;
  font-weight: 700 !important;   /* the page sets 400 inline */
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
  color: #ffffff;
}

#main-menu .menu > li > a:hover {
  color: #ffffff;
  text-decoration: none;
}

#main-menu .menu > li:focus-within {
  background-color: var(--sb-red);
}

/* Dropdowns: open on hover and keyboard focus */
#main-menu .bk-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 110;
  min-width: 15rem;
  padding: 0.4rem 0;
  text-align: left;
  border-top: 3px solid var(--sb-red);
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0s linear 0.15s;
}

#main-menu .menu > li:hover > .bk-dropdown-menu,
#main-menu .menu > li:focus-within > .bk-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.bk-dropdown-menu a,
.bk-sub-sub-menu li {
  display: block;
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
  color: var(--sb-on-slate);
}

.bk-dropdown-menu a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

/* "Punti vendita": the three shops, listed under their heading */
.bk-sub-sub-menu {
  padding-bottom: 0.3rem;
}

.bk-sub-sub-menu li {
  padding-block: 0.25rem;
  padding-left: 1.75rem;
  font-size: 0.875rem;
  color: rgba(217, 222, 230, 0.8);
}

/* Small screens: a sideways strip; the dropdown pages appear in it directly */
@media (max-width: 899px) {
  .main-nav-inner {
    padding: 0;
  }

  .main-nav-container,
  .main-nav-wrap,
  #main-menu {
    display: block;
    overflow-x: auto;
    scrollbar-width: none;
  }

  #main-menu::-webkit-scrollbar {
    display: none;
  }

  #main-menu .menu {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    padding-inline: calc(var(--sb-gutter) - 0.6rem);
  }

  #main-menu .menu > li > a {
    padding: 0.85rem 0.6rem;
    white-space: nowrap;
  }

  #main-menu .menu > li.menu-item-has-children {
    display: contents;
  }

  #main-menu .menu > li.menu-item-has-children > a,
  #main-menu .bk-sub-sub-menu,
  #main-menu .bk-sub-menu > li > a[href="#"] {
    display: none;
  }

  #main-menu .bk-dropdown-menu,
  #main-menu .bk-sub-menu-wrap,
  #main-menu .bk-sub-menu {
    position: static;
    display: contents;
    opacity: 1;
    visibility: visible;
  }

  #main-menu .bk-sub-menu > li {
    display: contents;
  }

  #main-menu .bk-sub-menu > li > a {
    display: block;
    padding: 0.85rem 0.6rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #ffffff;
    background: none;
  }
}


/* ==========================================================================
   5. Latest tests: a photo mosaic (the theme's slider, without its script)
   ========================================================================== */

.module-grid-carousel {
  padding-block: clamp(1.5rem, 3vw, 2.25rem) 0;
}

.module-grid-carousel .flexslider,
.module-grid-carousel .flex-viewport {
  overflow: visible !important;
  height: auto !important;
}

.module-grid-carousel ul.slides {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(10rem, 16vw, 13rem);
  gap: 0.75rem;
  width: auto !important;
  transform: none !important;
}

.module-grid-carousel ul.slides > li {
  display: contents !important;
}

.module-grid-carousel ul.slides > li.clone {
  display: none !important;
}

.module-grid-carousel .item-child {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--sb-radius);
  background-color: var(--sb-slate);
}

/* First story large, second wide */
.module-grid-carousel ul.slides > li:first-child > .item-child:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.module-grid-carousel ul.slides > li:first-child > .item-child:nth-child(2) {
  grid-column: span 2;
}

.module-grid-carousel .item-child-inner,
.module-grid-carousel .bk-article-wrapper {
  height: 100%;
}

.module-grid-carousel .thumb {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform 0.4s ease;
}

.module-grid-carousel .item-child:hover .thumb {
  transform: scale(1.04);
}

.module-grid-carousel .post-c-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2.5rem 1rem 1rem;
  pointer-events: none;
  background: linear-gradient(to top, rgba(18, 21, 27, 0.92) 10%, rgba(18, 21, 27, 0));
}

.module-grid-carousel .post-c-wrap a {
  pointer-events: auto;
}

.module-grid-carousel .title {
  margin: 0.45rem 0 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.module-grid-carousel ul.slides > li:first-child > .item-child:first-child .title {
  font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem);
}

.module-grid-carousel .title a {
  color: #ffffff;
}

.module-grid-carousel .title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* Category tabs (their red fill comes from the page) */
.post-category a {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-family: var(--sb-font-meta);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #ffffff !important;
  background-color: var(--sb-red);
  border-radius: 3px;
}

@media (max-width: 767px) {
  .module-grid-carousel ul.slides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 11rem;
  }

  .module-grid-carousel ul.slides > li:first-child > .item-child:first-child {
    grid-row: span 1;
  }

  /* Phones: six stories, so the two-column grid comes out even */
  .module-grid-carousel ul.slides > li:nth-child(3) > .item-child:nth-child(n+2),
  .module-grid-carousel ul.slides > li:nth-child(n+4) {
    display: none !important;
  }
}


/* ==========================================================================
   6. Content and sidebar
   ========================================================================== */

.has-sb {
  padding-block: clamp(1.5rem, 3vw, 2.25rem) clamp(2.5rem, 5vw, 3.5rem);
}

.has-sb > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: start;
}

.has-sb .content-wrap,
.has-sb .sidebar {
  float: none;
  width: auto;
  min-width: 0;
  padding: 0;
}

@media (max-width: 899px) {
  .has-sb > .row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Post list: photo on the left, text on the right */
.bk-blog-content {
  display: grid;
  gap: 1.1rem;
}

.bk-blog-content > li {
  float: none;
  width: auto;
  padding: 0;
}

.classic-blog-type .bk-article-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  overflow: hidden;
  background-color: var(--sb-paper);
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow);
}

.classic-blog-type .bk-mask {
  grid-row: 1 / span 2;
  min-height: 11rem;
}

.classic-blog-type .thumb,
.classic-blog-type .thumb a {
  display: block;
  height: 100%;
}

.classic-blog-type .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.classic-blog-type .post-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

.classic-blog-type .post-c-wrap {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.25rem 1.2rem;
}

.classic-blog-type .meta {
  order: -1;
}

.classic-blog-type .title {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.classic-blog-type .title a {
  color: var(--sb-ink);
}

.classic-blog-type .title a:hover {
  color: var(--sb-red);
}

.classic-blog-type .excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.9375rem;
  color: var(--sb-ink-soft);
}

.readmore {
  margin-top: 0.7rem;
}

.readmore a {
  font-family: var(--sb-font-meta);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--sb-red);
}

.readmore a::after {
  content: " →";
}

.readmore a:hover {
  color: var(--sb-red-deep);
  text-decoration: underline;
  background: none !important;
}

/* Meta: date only (view and comment counts are 2019 snapshots) */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  font-family: var(--sb-font-meta);
  font-size: 0.875rem;
  color: var(--sb-ink-soft);
}

.meta .views,
.meta .comments {
  display: none;
}

.meta i {
  margin-right: 0.3rem;
}

@media (max-width: 599px) {
  .classic-blog-type .bk-article-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .classic-blog-type .bk-mask {
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}


/* ==========================================================================
   7. Sidebar widgets
   ========================================================================== */

.sidebar-wrap .widget {
  margin-bottom: 1.5rem;
  overflow: hidden;
  background-color: var(--sb-paper);
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow);
}

.sidebar-wrap .widget > :not(.widget-title-wrap):not(.bk-header) {
  margin: 1rem 1.25rem 1.25rem;
}

/* Widget bars: slate bar with a red tab (colours come from the page) */
.sidebar-wrap .widget-title {
  display: flex;
  background-color: var(--sb-slate);
}

.sidebar-wrap .widget-title h3 {
  margin: 0;
  padding: 0.6rem 1.1rem;
  font-size: 1rem;
  line-height: 1.3;
  color: #ffffff;
  background-color: var(--sb-red);
}

/* Search */
.searchform-wrap {
  display: flex;
}

.searchform-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--sb-ink);
  border: 1px solid var(--sb-field);
  border-right: 0;
  border-radius: var(--sb-radius) 0 0 var(--sb-radius);
}

.searchform-wrap .search-icon {
  position: relative;
  flex: none;
  width: 2.8rem;
  background-color: var(--sb-red);
  border-radius: 0 var(--sb-radius) var(--sb-radius) 0;
}

.searchform-wrap .search-icon i {
  display: none;
}

.searchform-wrap .search-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") center / 1.1rem no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") center / 1.1rem no-repeat;
}

/* Timeline: a line with dots */
.timeline-posts ul {
  position: relative;
  padding-left: 1.2rem;
}

.timeline-posts ul::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.3rem;
  width: 2px;
  background-color: var(--sb-line);
}

.timeline-posts li {
  position: relative;
  padding-bottom: 0.9rem;
}

.timeline-posts li:last-child {
  padding-bottom: 0;
}

.timeline-posts li a {
  display: block;
  color: var(--sb-ink);
}

.timeline-posts .meta {
  position: relative;
}

.timeline-posts .meta::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: -1.2rem;
  width: 0.7rem;
  height: 0.7rem;
  background-color: var(--sb-paper);
  border: 2px solid var(--sb-red);
  border-radius: 50%;
}

.timeline-posts li a:hover .meta::before {
  background-color: var(--sb-red);
}

.timeline-posts h3 {
  margin: 0.1rem 0 0;
  font-size: 0.975rem;
  line-height: 1.35;
}

.timeline-posts li a:hover h3 {
  color: var(--sb-red);
}


/* ==========================================================================
   8. Quote request form (Contact Form 7 in the sidebar)
   The brand lists follow the chosen price band in CSS alone.
   ========================================================================== */

.widget_elementor-library .elementor-text-editor p:first-child strong {
  display: block;
  font-family: var(--sb-font-head);
  font-size: 1.2rem;
  color: var(--sb-red);
}

.wpcf7-form {
  font-size: 0.9375rem;
}

.wpcf7-form p {
  margin: 0 0 0.85rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--sb-ink);
  background-color: var(--sb-paper);
  border: 1px solid var(--sb-field);
  border-radius: var(--sb-radius);
}

.wpcf7-form input:focus,
.wpcf7-form select:focus {
  outline: none;
  border-color: var(--sb-red);
  box-shadow: 0 0 0 3px rgba(209, 48, 48, 0.15);
}

/* Choices as pills */
.wpcf7-radio,
.wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.wpcf7-radio .wpcf7-list-item,
.wpcf7-checkbox .wpcf7-list-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.3rem 0.7rem;
  font-size: 0.875rem;
  background-color: var(--sb-ground);
  border: 1px solid var(--sb-line);
  border-radius: 999px;
}

.wpcf7-radio .wpcf7-list-item:has(input:checked) {
  color: #ffffff;
  background-color: var(--sb-slate);
  border-color: var(--sb-slate);
}

.wpcf7-list-item input {
  accent-color: var(--sb-red);
}

.wpcf7-acceptance .wpcf7-list-item {
  margin: 0 0.3rem 0 0;
}

/* Brand groups: only the one for the chosen price band shows */
[data-class="wpcf7cf_group"] {
  display: none;
  margin: 0 0 0.85rem;
  padding: 0.75rem;
  background-color: var(--sb-ground);
  border-radius: var(--sb-radius);
}

.wpcf7-form:has(input[name="radio-61"][value="Primo prezzo"]:checked) [data-id="group-Primoprezzo"],
.wpcf7-form:has(input[name="radio-61"][value="Quality"]:checked) [data-id="group-quality"],
.wpcf7-form:has(input[name="radio-61"][value="Premium"]:checked) [data-id="group-premium"] {
  display: block;
}

.wpcf7-submit {
  width: 100%;
  margin-bottom: 0.6rem;
  padding: 0.8rem 1rem;
  font-family: var(--sb-font-text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  background-color: var(--sb-red);
  border: 0;
  border-radius: var(--sb-radius);
  cursor: pointer;
}

.wpcf7-submit:hover {
  background-color: var(--sb-red-deep);
}

.wpcf7-response-output.wpcf7-display-none {
  display: none;
}


/* ==========================================================================
   9. Footer
   ========================================================================== */

.footer {
  color: var(--sb-on-slate);
  background-color: var(--sb-slate-deep);
}

.footer::before {
  content: "";
  display: block;
  height: 10px;
  background: var(--sb-tread) repeat-x left center, var(--sb-slate);
}

.footer-lower {
  padding-block: 1.75rem 2rem;
}

#footer-menu .menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.4rem;
  margin-bottom: 1rem;
}

#footer-menu a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
}

#footer-menu a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.bk-copyright {
  max-width: 52rem;
  margin-inline: auto;
  font-family: var(--sb-font-meta);
  font-size: 0.875rem;
  line-height: 1.55;
  text-align: center;
  color: rgba(217, 222, 230, 0.75);
}


/* ==========================================================================
   10. Cookie notice (Ginger), in case its own stylesheet is missing
   ========================================================================== */

.ginger_banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1000;
  max-width: 26rem;
  margin-left: auto;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  border-top: 3px solid var(--sb-red);
  border-radius: var(--sb-radius);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.45);
}

.ginger_banner pre {
  width: auto !important;
  height: auto !important;
  margin: 0 0 0.75rem !important;
  font-family: var(--sb-font-text) !important;
  white-space: normal !important;
  line-height: 1.5 !important;
}

.ginger_btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-weight: 700;
  border-radius: var(--sb-radius);
}


/* ==========================================================================
   11. Focus and motion
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--sb-red);
  outline-offset: 2px;
}

.main-nav :focus-visible,
.footer :focus-visible {
  outline-color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}