/* Light, non-invasive refresh for header/footer.
   Keeps legacy layout (floats/media queries) intact. */

/* Modern font stack (no external downloads) */
html, body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

input, button, select, textarea{
  font: inherit;
}

/* Modernize legacy <li> icon (replaces li.gif) */
li{
  list-style-image: none;
}

li::marker{
  content: "▸  ";
  color: #EF7916;
}

/* Logo: keep it crisp and readable */
.Logo{
  max-width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

/* Logo size: -40% vs legacy rules */
@media screen and (max-width: 480px) {
  .Logo{ width: 60%; }
}
@media screen and (min-width: 481px) and (max-width: 767px) {
  .Logo{ width: 30%; }
}
@media only screen and (min-width: 768px) and (max-width: 1165px) {
  .Logo{ width: 10.8%; }
}
@media screen and (min-width: 1166px) {
  .Logo{ width: 54%; }
}

/* Header: avoid splitting the white menu area with a grey line */
div#LogoRow{
  border-bottom: 0;
}

/* Header: slightly more modern (same colors, no layout changes) */
div#LogoRow{
  box-shadow: none;
}

/* Top action button: make it feel like a pill */
div#DealerButton_Box{
  border-radius: 999px;
  overflow: hidden;
}

div#DealerButton_Pad{
  letter-spacing: .02em;
}

/* Footer: improve readability/spacing without altering structure */
div#TemplateBottom_Pad{
  padding-top: 36px;
}

div#LeftBottom_Pad b,
div#MiddleBottom_Pad b,
div#RightBottom_Pad .ArticlesMenuTitle{
  letter-spacing: .03em;
}

div#TemplateBottom_Box a{
  text-decoration: none;
}

div#TemplateBottom_Box a:hover{
  text-decoration: underline;
}

/* Slightly smoother hover on top buttons */
div#PrivatiButton_Box,
div#DealerButton_Box{
  transition: background-color .18s ease, filter .18s ease;
}

div#PrivatiButton_Box:hover,
div#DealerButton_Box:hover{
  filter: brightness(0.96);
}

/* Footer: improve readability without changing structure */
div#TemplateBottom_Box{
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

div#TemplateBottom_Box a{
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Footer facelift (keep brand colors) */
div#TemplateBottom_Box{
  background: linear-gradient(180deg, rgba(239,121,22,1) 0%, rgba(239,121,22,0.92) 100%);
}

div#LeftBottom_Pad,
div#MiddleBottom_Pad,
div#RightBottom_Pad{
  color: rgba(255,255,255,0.92);
}

div#TemplateBottom_Box a{
  color: rgba(255,255,255,0.92);
}

div#TemplateBottom_Box a:hover{
  color: #FFFFFF;
}

/* Legal bar under footer */
#FooterLegalBar{
  background: #42240C;
  color: rgba(255,255,255,0.92);
}

#FooterLegalPad{
  padding: 12px 20px;
  font-size: 0.95em;
  line-height: 1.3;
  text-align: center;
}

#FooterLegalPad .FooterLegalSep{
  padding: 0 8px;
  opacity: 0.6;
}

/* Top nav: better spacing, no separators */
#MenuCommerciale .NavTopLink{
  display: inline-block;
  padding: 8px 10px;
  margin: 0 2px;
  border-radius: 10px;
  line-height: 1;
}

#MenuCommerciale .NavTopLink:hover{
  text-decoration: none;
  background: rgba(255,255,255,0.12);
}

/* Area Clienti: align/pad the trigger consistently */
#MenuCommerciale #modal_trigger{
  display: inline-block;
  padding: 8px 12px;
  margin: 0 0 0 10px;
  border-radius: 10px;
  line-height: 1;
  vertical-align: middle;
}

#MenuCommerciale #modal_trigger .AChiaro{
  display: inline-block;
  padding: 0;
}

/* Slideshow: enforce "cover" and remove white gaps */
#HomeFlash_Box .fotorama__stage,
#HomeFlash_Box .fotorama__stage__shaft{
  background: transparent;
}

#MenuCommerciale{
  padding-top: 0;
  height: 55px; /* keep visual height but align contents */
}

#HomeFlash_Box{
  margin-top: -6px; /* pull up slightly: no overlap with nav */
}

#HomeFlash_Box,
#HomeFlash_Box .fotorama{
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Full-bleed slideshow (override centered layout gutters) */
#HomeFlash_Box{
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

#HomeFlash_Box .fotorama{
  width: 100% !important;
  max-width: none !important;
}

#HomeFlash_Box .fotorama__img{
  object-fit: cover;
}

