/* Intestazione condivisa dal sito pubblico e dal pannello. */
.c78-site-header {
  --c78-header-paper: #faf8f4;
  --c78-header-red: #a80917;
  --c78-header-line: #e3d5c8;
  position: relative;
  z-index: 25;
  background: var(--c78-header-paper);
  border-bottom: 1px solid var(--c78-header-line);
}

.c78-site-header__inner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(100%, 1660px);
  min-height: 92px;
  margin-inline: auto;
  padding: 12px clamp(20px, 4vw, 64px);
}

.c78-site-header__logo {
  display: block;
  flex: 0 1 clamp(275px, 28vw, 410px);
  min-width: 0;
}

.c78-site-header__logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.c78-navigation {
  font: 400 clamp(17px, 1.4vw, 22px)/1.2 Georgia, "Times New Roman", serif;
  flex: 0 0 auto;
}

.c78-navigation .c78-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 42px);
}

.c78-navigation a {
  position: relative;
  display: block;
  border-bottom: 2px solid transparent;
  padding: 9px 17px 7px 1px;
  color: var(--c78-header-red, #a80917);
  text-decoration: none;
  white-space: nowrap;
}

.c78-navigation a::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--c78-header-red, #a80917);
  opacity: 0;
}

.c78-navigation a[aria-current="page"]::after {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .c78-navigation a:hover::after { opacity: 1; }
}

.c78-site-header a:focus-visible,
.c78-navigation summary:focus-visible {
  outline: 2px solid var(--c78-header-red);
  outline-offset: 4px;
}

.c78-site-header__action {
  margin: 0;
  flex-shrink: 0;
}

.c78-navigation .c78-nav-mobile {
  display: none;
}

.hero #menuBtn,
.hero #menu {
  display: none !important;
}

@media (max-width: 960px) {
  /* Anche nella home, dove la navigazione e fuori dall'intestazione. */
  .c78-navigation {
    --c78-header-paper: #faf8f4;
    --c78-header-red: #a80917;
    --c78-header-line: #e3d5c8;
    position: relative;
    z-index: 30;
  }

  .c78-site-header__inner {
    min-height: 68px;
    gap: 12px;
    padding: 10px clamp(14px, 4vw, 28px);
  }

  .c78-site-header__logo {
    flex-basis: min(48vw, 290px);
  }

  .c78-navigation > .c78-nav-links {
    display: none;
  }

  .c78-navigation .c78-nav-mobile {
    display: block;
    position: relative;
  }

  .c78-nav-mobile summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--c78-header-line);
    border-radius: 7px;
    color: var(--c78-header-red);
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
  }

  .c78-nav-mobile summary::-webkit-details-marker {
    display: none;
  }

  .c78-navigation .c78-nav-mobile .c78-nav-links {
    position: absolute;
    z-index: 1;
    inset: calc(100% + 8px) 0 auto auto;
    display: grid;
    gap: 0;
    width: min(256px, calc(100vw - 28px));
    padding: 6px 14px;
    border: 1px solid var(--c78-header-line);
    border-radius: 10px;
    background: var(--c78-header-paper);
    box-shadow: 0 8px 24px #27151221;
  }

  .c78-nav-mobile:not([open]) .c78-nav-links {
    display: none;
  }

  .c78-nav-mobile a {
    padding: 13px 18px 13px 2px;
    justify-self: start;
  }
}

/* Solo telefono: il menu aperto occupa spazio e spinge il contenuto. */
@media (max-width: 760px) {
  .c78-site-header__inner {
    flex-wrap: wrap;
  }

  .c78-site-header__inner > .c78-navigation {
    flex: 0 0 100%;
    min-width: 0;
  }

  .c78-navigation .c78-nav-mobile .c78-nav-links {
    position: static;
    inset: auto;
    box-sizing: border-box;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }

  .c78-navigation .c78-nav-mobile a {
    justify-self: stretch;
    text-align: center;
    padding: 13px 16px;
  }

  .c78-navigation .c78-nav-mobile a + a {
    border-top: 1px solid var(--c78-header-line);
  }

  .c78-navigation .c78-nav-mobile a::after {
    position: static;
    display: inline-block;
    margin: 0 0 2px 8px;
  }
}

/* Intestazione: mantiene il proprio spazio, senza salti del contenuto. */
.c78-scroll-header{position:sticky;top:0;z-index:100;transform:translateY(0)!important;transition:transform .2s ease!important}
.c78-scroll-header.c78-header-hidden{transform:translateY(-110%)!important;pointer-events:none}
.c78-scroll-header:has(details[open]){max-height:85dvh;overflow:auto}
.c78-scroll-header .c78-navigation{--c78-header-paper:#faf8f4;--c78-header-red:#a80917;--c78-header-line:#e3d5c8}
.c78-home-scroll:not(.c78-home-compact) .c78-site-header__logo{display:none}
.c78-home-scroll:not(.c78-home-compact) .c78-site-header__inner{padding:0;min-height:0;width:100%;max-width:none}
.c78-home-scroll:not(.c78-home-compact) .c78-navigation{width:100%}
.c78-home-scroll.c78-home-compact .c78-navigation{background:transparent;border:0}
@media(min-width:961px){
 .c78-home-scroll.c78-home-compact .c78-navigation>.c78-nav-links{padding:0!important;gap:clamp(14px,2vw,32px)!important;flex-wrap:nowrap!important}
}
@media(min-width:761px) and (max-width:960px){
 .c78-home-scroll.c78-home-compact .c78-navigation>.c78-nav-links{display:none!important}
 .c78-home-scroll.c78-home-compact .c78-navigation>.c78-nav-mobile{display:block!important}
}
@media(max-width:760px){
 .c78-scroll-header .c78-site-header__inner{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 14px}
 .c78-scroll-header .c78-site-header__logo{max-width:220px}
 .c78-scroll-header .c78-site-header__inner>.c78-navigation{min-width:0}
 .c78-scroll-header .c78-site-header__inner:has(details[open]){grid-template-columns:1fr}
 .c78-home-scroll:not(.c78-home-compact) .c78-site-header__inner{display:block}
}
@media(prefers-reduced-motion:reduce){.c78-scroll-header{transition:none!important}}

/* Il navigatore prodotti occupa spazio solo quando viene aperto. */
.c78-product-explorer{margin:28px 0 0;border-top:1px solid #e3d5c8;border-bottom:1px solid #e3d5c8}
.c78-product-explorer>summary{padding:17px 12px;text-align:center;cursor:pointer;list-style:none;color:#a80917;font:inherit}
.c78-product-explorer>summary::-webkit-details-marker{display:none}
.c78-product-explorer>summary::after{content:' ▾';display:inline-block;margin-left:8px}
.c78-product-explorer[open]>summary::after{content:' ▴'}
.c78-product-explorer>summary:focus-visible{outline:2px solid #a80917;outline-offset:2px}
.c78-product-explorer>.category-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;padding:0 12px 12px}
.c78-product-explorer:not([open])>.category-nav{display:none}
.c78-product-explorer>.category-nav a{display:block;padding:13px 10px;border:0;border-radius:0;border-top:1px solid #e3d5c8;text-align:center;white-space:normal;overflow-wrap:anywhere;color:var(--navy,#071737);background:transparent;line-height:1.35}
.c78-product-explorer>.category-nav a[hidden]{display:none!important}
.c78-product-explorer>.category-nav a[aria-current]{background:transparent;color:#a80917;font-weight:bold}
.c78-product-explorer > .category-nav a[aria-current="page"] { position: relative; }
.c78-product-explorer > .category-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: min(2.5em, 75%);
  height: 2px;
  border-radius: 2px;
  background: #960d23;
  transform: translateX(-50%);
}
.c78-product-explorer>.category-nav a:hover{background:#f5eee6}
.c78-product-explorer>.category-nav a:focus-visible{outline:2px solid #a80917;outline-offset:-2px}
@media(max-width:760px){.c78-product-explorer>.category-nav{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 4px 8px}.c78-product-explorer>.category-nav a{font-size:16px}}


@media screen and (max-width: 767px) {
  :is(body[data-catalog-category], body:has(.category-nav a[aria-current][href$="tabacchi.html"], .category-nav a[aria-current][href$="tabacco-riscaldato.html"], .category-nav a[aria-current][href$="lotto-gratta-e-vinci.html"])) .c78-site-header .c78-site-header__logo {
      width: min(59vw, 246px);
      max-width: 100%;
      flex-basis: min(59vw, 246px);
    }

  :is(body[data-catalog-category], body:has(.category-nav a[aria-current][href$="tabacchi.html"], .category-nav a[aria-current][href$="tabacco-riscaldato.html"], .category-nav a[aria-current][href$="lotto-gratta-e-vinci.html"])) .detail > .category-intro {
      padding: 0;
      background: transparent;
      border: 0;
      border-radius: 0;
    }

  :is(body[data-catalog-category], body:has(.category-nav a[aria-current][href$="tabacchi.html"], .category-nav a[aria-current][href$="tabacco-riscaldato.html"], .category-nav a[aria-current][href$="lotto-gratta-e-vinci.html"])) .category-intro::before,
  :is(body[data-catalog-category], body:has(.category-nav a[aria-current][href$="tabacchi.html"], .category-nav a[aria-current][href$="tabacco-riscaldato.html"], .category-nav a[aria-current][href$="lotto-gratta-e-vinci.html"])) .category-intro::after,
  :is(body[data-catalog-category], body:has(.category-nav a[aria-current][href$="tabacchi.html"], .category-nav a[aria-current][href$="tabacco-riscaldato.html"], .category-nav a[aria-current][href$="lotto-gratta-e-vinci.html"])) .category-intro > #page-title::after {
      content: none;
    }

  :is(body[data-catalog-category], body:has(.category-nav a[aria-current][href$="tabacchi.html"], .category-nav a[aria-current][href$="tabacco-riscaldato.html"], .category-nav a[aria-current][href$="lotto-gratta-e-vinci.html"])) .category-intro > #page-title {
      box-sizing: border-box;
      width: 100%;
      margin: 0;
      padding: 18px 18px;
      border-radius: 10px;
      background: #960d23;
      color: #fff;
      font-size: clamp(30px, 7.6vw, 38px);
      font-weight: 700;
      line-height: 1.12;
      overflow-wrap: break-word;
    }

  :is(body[data-catalog-category], body:has(.category-nav a[aria-current][href$="tabacchi.html"], .category-nav a[aria-current][href$="tabacco-riscaldato.html"], .category-nav a[aria-current][href$="lotto-gratta-e-vinci.html"])) .category-intro > #page-title + :is(.category-copy, .intro) {
      margin-top: 12px;
    }
}

@media screen and (max-width: 767px) {
  :is(body[data-catalog-category], body:has(.category-nav a[aria-current][href$="tabacchi.html"], .category-nav a[aria-current][href$="tabacco-riscaldato.html"], .category-nav a[aria-current][href$="lotto-gratta-e-vinci.html"])) .detail details:not(.c78-product-explorer) > summary {
    padding-block: 16px;
    min-height: 68px;
  }
}

@media screen and (max-width: 760px) {
  :is(body[data-catalog-category], body:has(.category-nav a[aria-current][href$="tabacchi.html"], .category-nav a[aria-current][href$="tabacco-riscaldato.html"], .category-nav a[aria-current][href$="lotto-gratta-e-vinci.html"])) .detail details:not(.c78-product-explorer) > summary {
    padding-block: 13px;
    min-height: 62px;
  }
}

/* Titoli delle marche nel catalogo. */
@media screen {
  .detail details:is(.parts-brand, .pod-brand, .liquid-brand):not([data-base-section]) > summary,
  .detail:has(.category-nav a[aria-current][href$="tabacco-riscaldato.html"]) details:not(.c78-product-explorer) > summary {
    color: #071737;
    font-weight: 600;
  }

  body[data-catalog-category="pod"] .category-intro > #page-title {
    text-transform: lowercase;
  }

  body[data-catalog-category="pod"] .category-intro > #page-title::first-letter {
    text-transform: uppercase;
  }
}

@media screen and (max-width: 767px) {
  .detail details:is(.parts-brand, .pod-brand, .liquid-brand):not([data-base-section]) > summary::after,
  .detail:has(.category-nav a[aria-current][href$="tabacco-riscaldato.html"]) details:not(.c78-product-explorer) > summary::after {
    width: 30px;
    height: 30px;
    font-size: 22px;
    color: #960d23;
  }
}

#categorie .category-card:has(a[href="pod.html"]) > h3,
#categorie .section-title > h2 {
  text-transform: lowercase;
}
#categorie .category-card:has(a[href="pod.html"]) > h3::first-letter,
#categorie .section-title > h2::first-letter {
  text-transform: uppercase;
}
#categorie .section-title > h2 {
  font-family: Georgia, serif;
  font-weight: 700;
  color: #960d23;
  letter-spacing: .015em;
}

/* Indicatore delle voci di navigazione del sito. */
:is(.c78-site-header:has(.c78-site-header__logo[href="index.html"]) .c78-navigation, body:has(header.hero#home) > .c78-navigation) a::after {
  content: none;
}

:is(.c78-site-header:has(.c78-site-header__logo[href="index.html"]) .c78-navigation, body:has(header.hero#home) > .c78-navigation) summary {
  position: relative;
}

:is(.c78-site-header:has(.c78-site-header__logo[href="index.html"]) .c78-navigation, body:has(header.hero#home) > .c78-navigation) :is(a, .c78-products-dropdown > summary)::before {
  content: "";
  position: absolute;
  pointer-events: none;
  bottom: 3px;
  left: 50%;
  width: min(2.5em, 75%);
  height: 2px;
  border-radius: 2px;
  background: #960d23;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease-out;
}

:is(.c78-site-header:has(.c78-site-header__logo[href="index.html"]) .c78-navigation, body:has(header.hero#home) > .c78-navigation) :is(a, .c78-products-dropdown > summary):is(:active, :focus-visible, [aria-current="page"])::before,
:is(.c78-site-header:has(.c78-site-header__logo[href="index.html"]) .c78-navigation, body:has(header.hero#home) > .c78-navigation) .c78-products-dropdown[open] > summary::before,
:is(.c78-site-header:has(.c78-site-header__logo[href="index.html"]) .c78-navigation, body:has(header.hero#home) > .c78-navigation) .c78-products-dropdown:has(a[aria-current="page"]) > summary::before {
  transform: translateX(-50%) scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  :is(.c78-site-header:has(.c78-site-header__logo[href="index.html"]) .c78-navigation, body:has(header.hero#home) > .c78-navigation) :is(a, .c78-products-dropdown > summary):hover::before {
    transform: translateX(-50%) scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.c78-site-header:has(.c78-site-header__logo[href="index.html"]) .c78-navigation, body:has(header.hero#home) > .c78-navigation) :is(a, .c78-products-dropdown > summary)::before {
    transition: none;
  }
}

/* Centra la linea sul testo con padding sinistro 1px e destro 17px. */
@media (min-width: 961px) {
  :is(.c78-site-header:has(.c78-site-header__logo[href="index.html"]) .c78-navigation, body:has(header.hero#home) > .c78-navigation) > .c78-nav-links > a::before,
  :is(.c78-site-header:has(.c78-site-header__logo[href="index.html"]) .c78-navigation, body:has(header.hero#home) > .c78-navigation) > .c78-nav-links > .c78-products-dropdown > summary::before {
    left: calc(50% - 8px);
  }
}
/* Regole caricate con la pagina prima della visualizzazione del titolo. */
html body .detail .category-intro #page-title,
html body .category-intro > #page-title,
html body .category-intro :is(div,header,hgroup):has(> #page-title):not(:has(.category-copy,.intro)) {
 background:transparent!important;color:var(--navy,#071737)!important;
}
html body .category-intro #page-title :is(small,span),
html body .category-intro #page-title::after,
html body .category-intro #page-title + :is(.category-subtitle,small) {
 color:var(--navy,#071737)!important;
}
html body header#home.hero .hero-scene .leaf-position {display:none!important}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
 body .c78-navigation .c78-products-dropdown > .c78-products-menu {background-color:rgba(252,249,244,.84)}
 @media(max-width:960px){body .c78-navigation .c78-products-dropdown > .c78-products-menu {background-color:rgba(252,249,244,.92)}}
}
body :is(.c78-navigation .c78-products-dropdown > .c78-products-menu,.c78-product-explorer > .category-nav) > a {transition-property:color,transform!important}
body :is(.c78-navigation .c78-products-dropdown > .c78-products-menu,.c78-product-explorer > .category-nav) > a:is(:hover,:focus-visible,:active,[aria-current="page"]) {background:#f2dfe2!important;color:#890f25!important}

/*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           0000000020*/

/* Menu pubblico: testo nero, logo e indicatori invariati. */
html body .c78-navigation .c78-nav-links a,
html body .c78-navigation .c78-products-dropdown > summary,
html body .c78-navigation .c78-nav-mobile > summary { color: #111111 !important; }

/* Palette neutra del menu pubblico */
html body .c78-site-header, html body .c78-scroll-header { --c78-header-paper:#F8F9FB; --c78-header-line:#D5DAE0; background:#F8F9FB!important; border-color:#D5DAE0!important; }
html body .c78-navigation { --c78-header-paper:#F8F9FB!important; --c78-header-line:#D5DAE0!important; }
html body .c78-navigation .c78-products-dropdown > .c78-products-menu, html body .c78-navigation .c78-nav-mobile .c78-nav-links { background:#EBEEF1!important; border-color:#D5DAE0!important; backdrop-filter:none!important; -webkit-backdrop-filter:none!important; box-shadow:0 8px 24px rgba(20,30,40,.12)!important; }
html body .c78-navigation .c78-nav-links a, html body .c78-navigation .c78-products-dropdown > summary, html body .c78-navigation .c78-nav-mobile > summary { color:#161616!important; }
html body .c78-navigation .c78-products-dropdown > .c78-products-menu > a:is(:hover,:focus-visible,:active,[aria-current="page"]) { background:#DDE2E8!important; color:#161616!important; }

/* CORSO78 — palette condivisa delle pagine pubbliche, dicembre 2026. */
html body:not(:has(#categoryGrid)) {
 --c78-paper:#F8F9FB; --c78-tile:#EDF0F3; --c78-border:#D5DAE0;
 --c78-ink:#161616; --c78-copy:#414852;
 --cream:#F8F9FB!important; --card:#EDF0F3!important; --navy:#161616!important;
 --soft:#EBEEF1!important; --line:#D5DAE0!important;
 background:#fff!important; color:var(--c78-ink)!important;
}
html body:not(:has(#categoryGrid)) :is(.detail,.section,.category-copy,.parts-reference,.pod-brands,.catalog-products,.parts-brand,.pod-brand,.liquid-brand) {
 background:transparent!important; border-color:var(--c78-border)!important;
}
html body:not(:has(#categoryGrid)) .detail .category-intro {
 background:var(--c78-paper)!important; border:1px solid var(--c78-border)!important; border-radius:17px;
 padding:clamp(16px,3vw,34px)!important; color:var(--c78-ink)!important;
}
html body .detail .category-intro::before,html body .detail .category-intro::after {content:none!important;display:none!important}
html body .detail .category-intro :is(#page-title,.c78-category-heading) {
 background:transparent!important;color:#161616!important;text-align:center!important;border:0!important;
}
html body .detail .category-intro :is(.c78-category-summary,.category-copy,.category-copy p,.intro) {color:#414852!important;}
html body .detail .category-intro .c78-category-summary {text-align:center!important;}
html body .detail .category-intro #page-title::after {content:none!important}
html body:not(:has(#categoryGrid)) :is(.info-box,.ms-card,.sheet,.c78-contacts-unified,.c78-product-explorer,.notice) {
 background:#EDF0F3!important;border-color:#D5DAE0!important;color:#161616!important;
}
html body:not(:has(#categoryGrid)) :is(.sheet .photo,.ms-index .ms-card img,.ms-article-image) {background:#F8F9FB!important;}
html body:not(:has(#categoryGrid)) :is(.footer-refined,.legal-footer,.mobile-actions,.page-header) {background:#fff!important;border-color:#D5DAE0!important;color:#414852!important;}
html body:not(:has(#categoryGrid)) :is(.detail h2,.detail h3,.sheet h1,.sheet .brand,.catalog-copy h3,.ms-read,.breadcrumb a,.crumb a,.back,.back-link,.bn-back) {color:#161616!important;}
html body:not(:has(#categoryGrid)) :is(.catalog-description,.catalog-status,.sheet dt,.ms-card-copy p) {color:#414852!important;}
html body:not(:has(#categoryGrid)) :is(.catalog-product,.sheet dl div,.parts-section,.parts-row,.empty-panel,.pod-brand-panel,.liquid-brand-panel) {border-color:#D5DAE0!important;}
html body:not(:has(#categoryGrid)) :is(.category-nav a,.ms-bottom-nav a) {background:#F8F9FB!important;border-color:#D5DAE0!important;color:#161616!important;}
html body:not(:has(#categoryGrid)) :is(.category-nav a,.ms-bottom-nav a):is(:hover,:focus-visible,[aria-current]) {background:#DDE2E8!important;color:#161616!important;}
html body :is(.c78-navigation .c78-products-menu,.c78-nav-mobile[open] .c78-nav-links,#c78-cerca-dialog) {background:#EBEEF1!important;border-color:#D5DAE0!important;color:#161616!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
html body .c78-navigation .c78-nav-mobile .c78-products-dropdown[open]>summary,html body #c78-cerca-dialog a:is(:hover,:focus-visible) {background:#DDE2E8!important;color:#161616!important;}
html body #c78-cerca-dialog a {border-color:#D5DAE0!important;}
html body:not(:has(#categoryGrid)) :is(.c78-site-header,.c78-scroll-header,.c78-navigation) {--c78-header-paper:#F8F9FB!important;--c78-header-line:#D5DAE0!important;}
/* Marche: stessa geometria della home. I dettagli nativi rimangono intatti. */
html body main .detail :is(.parts-reference,.pod-brands,[data-catalog-container]):not(.bn-products):not([hidden]) {
 --brand-gap:clamp(8px,1.4vw,16px); --brand-cols:4;
 display:grid!important;grid-template-columns:repeat(var(--brand-cols),minmax(0,1fr));gap:var(--brand-gap);align-items:start;
}
html body main .detail :is(.parts-reference,.pod-brands,[data-catalog-container]):not(.bn-products) > :not(details) {grid-column:1/-1;}
html body main .detail :is(.parts-reference,.pod-brands,[data-catalog-container]):not(.bn-products) > details:is(.parts-brand,.pod-brand,.liquid-brand):not([hidden]) {
 min-width:0;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
}
html body main .detail :is(.parts-reference,.pod-brands,[data-catalog-container]):not(.bn-products) > details:is(.parts-brand,.pod-brand,.liquid-brand)[open] {grid-column:1/-1;}
html body main .detail :is(.parts-reference,.pod-brands,[data-catalog-container]):not(.bn-products) > details:is(.parts-brand,.pod-brand,.liquid-brand) > summary {
 position:relative;overflow:hidden;isolation:isolate;box-sizing:border-box;
 display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column;gap:8px;
 width:100%;height:auto!important;min-height:0!important;aspect-ratio:1/1;
 margin:0!important;padding:clamp(8px,1.4vw,18px)!important;
 border:1px solid #D5DAE0!important;border-radius:17px!important;
 background:#EDF0F3!important;color:#161616!important;text-align:center!important;
 font-size:clamp(14px,1.7vw,22px)!important;font-weight:700!important;line-height:1.2!important;letter-spacing:normal!important;
 overflow-wrap:anywhere;box-shadow:0 3px 9px #202d4010!important;cursor:pointer;
 transition:transform .2s ease,box-shadow .2s ease;
}
html body main .detail :is(.parts-reference,.pod-brands,[data-catalog-container]):not(.bn-products) > details:is(.parts-brand,.pod-brand,.liquid-brand)[open] > summary {
 aspect-ratio:auto;min-height:60px!important;background:#E3E7EC!important;
}
html body main .detail :is(.parts-reference,.pod-brands,[data-catalog-container]):not(.bn-products) > details:is(.parts-brand,.pod-brand,.liquid-brand) > summary::before,
html body main .detail :is(.parts-reference,.pod-brands,[data-catalog-container]):not(.bn-products) > details:is(.parts-brand,.pod-brand,.liquid-brand) > summary::after {content:none!important;display:none!important;}
html body main .detail .bn-brands {--space:clamp(8px,1.4vw,16px);gap:var(--space)!important;}
html body main .detail .bn-brands > a {background:#EDF0F3!important;border:1px solid #D5DAE0!important;color:#161616!important;border-radius:17px!important;box-shadow:0 3px 9px #202d4010!important;font-size:clamp(14px,1.7vw,22px)!important;font-weight:700!important;}
html body main .detail .bn-products:not([hidden]) {display:block!important;}
html body main .detail .bn-products details > summary {display:none!important;}
@media (min-width:1000px){html body main .detail:has(.parts-reference,.pod-brands,.bn-brands) {max-width:1180px;}}
@media (max-width:999px){
 html body main .detail :is(.parts-reference,.pod-brands,[data-catalog-container]):not(.bn-products):not([hidden]) {--brand-cols:2;}
 html body main .detail .bn-brands > a {flex-basis:calc((100% - var(--space))/2)!important;}
}
@media (hover:hover) and (pointer:fine){
 html body main .detail :is(.parts-reference,.pod-brands,[data-catalog-container]):not(.bn-products) > details:not([open]) > summary:hover,html body main .detail .bn-brands > a:hover {transform:translateY(-3px);box-shadow:0 7px 17px #202d4018!important;}
}
@media (prefers-reduced-motion:reduce){html body main .detail :is(.parts-reference,.pod-brands,.bn-brands) :is(summary,a){transition:none!important;transform:none!important;}}
html body main .detail :is(.parts-reference,.pod-brands,.bn-brands) :is(summary,a):focus-visible {outline:2px solid #64748B!important;outline-offset:3px!important;}

/* Conferma maggiore eta: palette coordinata con la home. */
html body .c78-gate{background:#F5F6F8!important;color:#161616!important;}
html body .c78-gate .c78-badge{border-color:#161616!important;color:#161616!important;}
html body .c78-gate .c78-actions :is(button,a){background:#EDF0F3!important;border-color:#D5DAE0!important;color:#161616!important;border-radius:12px!important;}
html body .c78-gate .c78-actions button:first-child{background:#161616!important;border-color:#161616!important;color:#FFFFFF!important;}
html body .c78-gate .c78-box a:not(.c78-actions a){color:#414852!important;}
html body .c78-gate :focus-visible{outline:3px solid #64748B!important;outline-offset:4px!important;}

/* Avviso cookie: stessa palette della conferma 18+. */
html body .c78-cookie{background:#F5F6F8!important;color:#414852!important;border-color:#D5DAE0!important;box-shadow:0 8px 32px #202d401a!important;}
html body .c78-cookie h2{color:#161616!important;}
html body .c78-cookie p{color:#414852!important;}
html body .c78-cookie a{color:#414852!important;}
html body .c78-cookie button{background:#161616!important;border-color:#161616!important;color:#FFFFFF!important;border-radius:12px!important;}
html body .c78-cookie :focus-visible{outline:3px solid #64748B!important;outline-offset:3px!important;}

/* Ritocchi finali palette neutra: home, ricerca e footer. */
html body #c78-apri-cerca{color:#161616!important;}
html body #c78-apri-cerca.c78-cerca-libera{background:#F8F9FB!important;}
html body #c78-cerca-dialog{background:#F8F9FB!important;border-color:#D5DAE0!important;color:#161616!important;}
html body #c78-cerca-dialog a{border-color:#D5DAE0!important;}
html body #c78-cerca-dialog a:is(:hover,:focus-visible){background:#EBEEF1!important;}
html body .c78-info-maggiorenni{border-top-color:#D5DAE0!important;color:#414852!important;}
html body .c78-info-maggiorenni a,html body .c78-legal :is(a,button){color:#414852!important;}
html body .c78-info-maggiorenni a:focus-visible,html body .c78-legal :focus-visible{outline-color:#64748B!important;}
html body .footer-refined{border-color:#D5DAE0!important;}
html body #mondo-svapo .ms-actions .c78-blog-button{background:#161616!important;border-color:#161616!important;color:#fff!important;}
html body #mondo-svapo .ms-actions .c78-blog-button:is(:hover,:focus-visible,.c78-blog-button-hover){background:#35383D!important;border-color:#35383D!important;}
html body #categorie:has(#categoryGrid){padding-top:clamp(28px,3vw,44px)!important;padding-bottom:clamp(28px,3vw,44px)!important;}
html body #mondo-svapo.ms-home{padding-top:clamp(12px,1.8vw,24px)!important;}
html body #contatti.c78-contacts-unified .c78-contact-action{border-color:#D5DAE0!important;color:#414852!important;}
html body #contatti.c78-contacts-unified .c78-contact-action:is(:hover,:focus-visible){background:#DDE2E8!important;border-color:#BFC6D1!important;color:#161616!important;}
html body #contatti.c78-contacts-unified .contact-item h3 svg{color:#414852!important;}
html body #home .foto-dot[aria-current=true]::after{background:#161616!important;}
html body #home .foto-dots button:focus-visible{outline-color:#FFFFFF!important;}

/* Pulsanti contatti: contrasto e interazione. */
html body #contatti.c78-contacts-unified .c78-contact-action{background:#FFFFFF!important;border:1px solid #9CA3AF!important;color:#161616!important;font-weight:500;box-shadow:0 2px 6px rgba(32,45,64,.10)!important;cursor:pointer;transition:background .2s ease,color .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease;}
html body #contatti.c78-contacts-unified .c78-contact-action svg{color:inherit!important;}
@media (hover:hover) and (pointer:fine){html body #contatti.c78-contacts-unified .c78-contact-action:hover{background:#161616!important;border-color:#161616!important;color:#FFFFFF!important;transform:translateY(-3px);box-shadow:0 5px 12px rgba(32,45,64,.18)!important;}}
html body #contatti.c78-contacts-unified .c78-contact-action:focus-visible{background:#161616!important;border-color:#161616!important;color:#FFFFFF!important;outline:2px solid #64748B!important;outline-offset:3px;}
@media (prefers-reduced-motion:reduce){html body #contatti.c78-contacts-unified .c78-contact-action{transition:none!important;transform:none!important;}}
