/* Pieffe Auto | Natale90
 * Tema stagionale: una vetrina italiana degli anni Novanta.
 * CSS dopo site.css. Nessuna modifica a layout, foto, dati o percorsi.
 * Decorazioni statiche, locali e senza intercettare i clic.
 */
:root {
  --blue: #16513c;
  --blue-2: #1b684b;
  --blue-soft: #edf3e9;
  --night: #123e31;
  --night-2: #174a39;
  --night-3: #245a43;
  --stone: #faf3e5;
  --stone-2: #f1e6d2;
  --stone-3: #dfcfb0;
  --paper: #fffdf7;
  --line: #d8c5a1;
  --line-2: #e8dbc1;
  --saffron: #f1c36d;
  --saffron-2: #ffdb94;
  --saffron-soft: #fff0cf;
  --saffron-ink: #744311;
  --tema-fascia-fondo: #123e31;
  --tema-fascia-testo: #fff7e8;
}
/* Le variabili delle offerte, km 0 e WhatsApp restano quelle del sito. */
.site-header,
.site-header.is-scrolled {
  background: #fffaf0;
  border-bottom-color: #d7ba7d;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a[aria-current=page],
.nav-mega__btn:hover,
.nav-mega__btn[data-current] { background-color: #f3e8d1; }
.nav-mega.is-open .nav-mega__btn { background-color: #f6e2b8; color: #6b3a0e; }
.tema-fascia {
  background-image: url("img/tartan.svg");
  background-size: 160px 160px;
  box-shadow: inset 0 -1px 0 #bd9452;
}
.tema-fascia__link { color: #ffe1a2; text-decoration-thickness: 1.5px; }
.tema-fascia__link:hover { color: #fffaf0; }
/* La vetrina: velluto rosso, luce calda e una cornice di lampadine. */
.hero {
  background:
    radial-gradient(ellipse at 95% 0, #b3473f 0, transparent 48%),
    linear-gradient(118deg, #7c1d29 0, #962938 65%, #782031 100%);
  color: #fff7e8;
  box-shadow: inset 0 -3px 0 #d8b061;
}
.hero::before {
  content: "";
  position: absolute;
  pointer-events: none;
  left: 0;
  right: 0;
  top: 1px;
  height: 39px;
  background: url("img/luci-vintage.svg") repeat-x center top / 360px 39px;
}
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  top: 44px;
  right: max(28px, calc((100vw - 1320px) / 2 + 28px));
  width: 266px;
  height: 220px;
  background: url("img/addobbi-vintage.svg") no-repeat center / contain;
}
.hero__grid { position: relative; z-index: 1; }
.hero .display { color: #fff7e8; }
.hero .hl {
  color: #ffe1a2;
  background: none;
  text-decoration: underline;
  text-decoration-color: #d6a253;
  text-decoration-thickness: .055em;
  text-underline-offset: .15em;
}
.hero .eyebrow--line { color: #fff0d2; }
.hero .eyebrow::before { background: #f1c36d; }
.hero__lead { color: #fff4e5; }
.hero .finder {
  background: #fffdf7;
  color: var(--ink);
  border-color: #d4b16e;
  box-shadow: 0 2px 0 #d4b16e, inset 0 0 0 1px #fff;
}
.finder__tabs { background-color: #f2ead9; }
.finder__tabs input:checked + span { box-shadow: inset 0 0 0 1px #ccb88f; }
.btn--primary {
  background: linear-gradient(180deg, #f8d792, #f1c36d);
  color: var(--ink);
  border-color: #d2a550;
  box-shadow: inset 0 1px 0 #fff0c2, inset 0 -2px 0 #dcae5c;
}
.btn--primary:hover {
  background: #ffdb94;
  color: var(--ink);
  border-color: #c6953d;
}
.hero__feature-tag { background: #ffe1a2; color: var(--ink); }
/* Carta calda e bordi dorati: le auto rimangono il centro della pagina. */
.page-head {
  background:
    linear-gradient(90deg, #faf3e5 0 70%, #faf3e5d9 100%),
    url("img/tartan-chiaro.svg") right center / 144px 144px;
  border-bottom-color: #dac6a2;
}
.section--night {
  background: linear-gradient(110deg, #123e31, #1c503a);
  color: #f7eee0;
}
.section--night .arrivo__copy p { color: #eee4d0; }
.section--night .arrivo__txt small { color: #dfdbc8; }
.section--night .arrivo__item { border-color: #ffffff2b; }
.section--night .arrivo__item:hover { border-color: #f1c36d; }
.contact-band {
  background:
    linear-gradient(95deg, #123e31 0 70%, #123e31de 100%),
    url("img/tartan.svg") right center / 160px 160px;
  color: #f8edda;
}
.contact-band::before,
.contact-band::after {
  background: #e9bb63;
  opacity: .14;
}
.contact-band .btn--outline-light { background-color: #143e31; }
.site-footer {
  position: relative;
  background:
    linear-gradient(180deg, #143f32f0, #103b2ff5),
    url("img/tartan.svg") center / 160px 160px;
  color: #f1e8d6;
}
.site-footer::before {
  content: "";
  position: absolute;
  pointer-events: none;
  top: 0;
  left: 0;
  right: 0;
  height: 35px;
  background: url("img/luci-vintage.svg") repeat-x center top / 360px 39px;
}
.site-footer::after {
  content: "";
  position: absolute;
  pointer-events: none;
  top: 2px;
  right: max(30px, calc((100vw - 1320px) / 2 + 30px));
  width: 116px;
  height: 63px;
  background: url("img/pacchetti.svg") no-repeat center / contain;
}
.site-footer__title { color: #ffe1a2; }
.site-footer__sedi span,
.site-footer__legal { color: #d7d5c1; }
.site-footer__legal a:not(.btn),
.site-footer__policies .linklike { color: #f1e8d6; }
/* Niente addobbi fissi sopra il catalogo, le foto o i moduli. */
.tema-decoro > i { display: none; }
:focus-visible { outline-color: #16513c; }
.hero__feature:focus-visible,
.hero__chips :focus-visible,
.section--night :focus-visible,
.contact-band :focus-visible,
.site-footer :focus-visible,
.tema-fascia :focus-visible { outline-color: #ffe1a2; }
@media (max-width: 1279px) { .hero::after { display: none; } }
@media (max-width: 760px) {
  .hero::before { height: 22px; background-size: 280px 30px; top: -7px; }
  .site-footer::before { height: 24px; background-size: 280px 30px; }
  .site-footer::after { display: none; }
  .page-head { background: #faf3e5; }
  .contact-band::before, .contact-band::after { opacity: .08; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .site-footer::before, .site-footer::after { animation: none; }
}
@media print {
  .hero::before, .hero::after, .site-footer::before, .site-footer::after { display: none; }
}

/* --- Simboli da cartolina, distribuiti nei margini gia liberi ------------ */
.tema-fascia { position: relative; }
.tema-fascia::before,
.tema-fascia::after {
  content: "";
  position: absolute;
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.tema-fascia::before {
  left: max(10px, calc((100vw - 1320px) / 2 + 10px));
  width: 26px;
  height: 36px;
  background-image: url("img/caramelle.svg");
}
.tema-fascia::after {
  right: max(10px, calc((100vw - 1320px) / 2 + 10px));
  width: 26px;
  height: 36px;
  background-image: url("img/albero.svg");
}
/* Solo l'area alta delle testate: nessun decoro accanto ai filtri. */
.page-head { position: relative; }
.page-head::after {
  content: "";
  display: none;
  position: absolute;
  pointer-events: none;
  top: 4px;
  right: max(30px, calc((100vw - 1320px) / 2 + 30px));
  width: 146px;
  height: 62px;
  background: url("img/bosco-feste.svg") no-repeat right center / contain;
}
.page-head--catalog::after {
  width: 62px;
  height: 54px;
  background-image: url("img/caramelle.svg");
}
/* I simboli occupano il padding superiore esistente delle sezioni.
 * Restano sopra alle intestazioni e alle foto, senza cambiare misure.
 */
.section { position: relative; }
.section::before {
  content: "";
  position: absolute;
  pointer-events: none;
  top: 5px;
  right: max(18px, calc((100vw - 1320px) / 2 + 18px));
  width: clamp(34px, 4vw, 62px);
  height: clamp(36px, 4vw, 62px);
  background: url("img/albero.svg") no-repeat center / contain;
}
.section:nth-of-type(4n+2)::before { background-image: url("img/caramelle.svg"); }
.section:nth-of-type(4n+3)::before { background-image: url("img/pupazzo.svg"); }
.section:nth-of-type(4n)::before { background-image: url("img/palline.svg"); }
.section--tight::before {
  top: 3px;
  width: clamp(28px, 3vw, 44px);
  height: clamp(20px, 2.5vw, 32px);
}
/* Il pupazzo e i pacchetti stanno nel margine alto del footer. */
.site-footer::after {
  background-image: url("img/bosco-feste.svg");
  width: 108px;
  height: 63px;
}
@media (min-width: 1200px) { .page-head::after { display: block; } }
/* I gutter della scheda sono liberi solo sui monitor larghi. */
@media (min-width: 1440px) {
  .vdp { position: relative; }
  .vdp::before,
  .vdp::after {
    content: "";
    position: absolute;
    pointer-events: none;
    width: 34px;
    height: 74px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }
  .vdp::before {
    top: 124px;
    left: max(18px, calc((100vw - 1320px) / 2 - 4px));
    background-image: url("img/caramelle.svg");
  }
  .vdp::after {
    top: 296px;
    right: max(18px, calc((100vw - 1320px) / 2 - 4px));
    background-image: url("img/pupazzo.svg");
  }
}
@media (max-width: 760px) {
  /* Quattordici pixel nelle estremita, fuori dal testo della fascia. */
  .tema-fascia::before { left: 0; width: 14px; height: 31px; }
  .tema-fascia::after { right: 0; width: 14px; height: 26px; }
  .section::before { top: 5px; width: 34px; height: 36px; }
  .section--tight::before { top: 3px; width: 28px; height: 20px; }
  .site-footer::after {
    display: block;
    top: 2px;
    right: 16px;
    width: 60px;
    height: 36px;
  }
}
@media print {
  .tema-fascia::before, .tema-fascia::after,
  .page-head::after, .section::before,
  .vdp::before, .vdp::after,
  .site-footer::after { display: none !important; }
}

/* --- adattamento al nuovo menu (ottobre 2026) ----------------------------------------------- */
/* pannello «Auto»: bordo dorato e le lucine vintage in cima; nel menu del telefono il nastro scozzese */
.mega { border-color: #d7ba7d; }
.mega::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 2px;
  height: 26px;
  background: url("img/luci-vintage.svg") repeat-x center top / 260px 28px;
  pointer-events: none;
}
.mega__title { color: #8a5a1c; }
.sheet__head { position: relative; border-bottom-color: #d7ba7d; }
.sheet__head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 7px;
  background: url("img/tartan.svg") center / 56px 56px;
  pointer-events: none;
}
/* il chip rosso «In offerta» sulla testata in velluto rosso: bordo panna per staccarlo */
.hero .chip--offerta { box-shadow: 0 0 0 2px #fff7e8; }
