/* GardenMotors.it — stile moderno, palette verde (ispirata al brand ma rinnovata) */
:root {
  --green: #3ebd17;
  --green-dark: #135b2e;
  --green-deeper: #0c3d1e;
  --yellow: #fbe300;
  --ink: #1a1f1a;
  --gray: #5c6b5f;
  --bg: #ffffff;
  --bg-soft: #f2f7f0;
  --line: #e3ece0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(19, 91, 46, .12);
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.2; color: var(--green-deeper); }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); margin-bottom: .6rem; }
p { margin-bottom: .9rem; }

/* header */
.site-header { background: var(--green-deeper); position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-logo { border-radius: 12px; }
.brand-text { font-size: 1.45rem; font-weight: 300; letter-spacing: .3px; color: #fff; display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-weight: 800; color: var(--yellow); }
.brand-text small { font-size: .68rem; color: #b8d8b0; text-transform: uppercase; letter-spacing: 1.4px; font-weight: 500; }
.site-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: #e8f4e4; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .93rem; }
.site-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.7rem; cursor: pointer; margin-left: auto; }

/* breadcrumbs */
.breadcrumbs { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 20px; max-width: 1200px; margin: 0 auto; font-size: .85rem; }
.breadcrumbs li + li::before { content: '›'; margin-right: 8px; color: #9db39a; }
.breadcrumbs a { color: var(--green-dark); }
.breadcrumbs li[aria-current] { color: var(--gray); }

/* hero */
.hero { background: linear-gradient(135deg, var(--green-deeper) 0%, var(--green-dark) 55%, #1f7a3e 100%); color: #fff; border-radius: 0 0 28px 28px; margin-bottom: 34px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(251,227,0,.28), transparent 65%); }
.hero-inner { padding: 56px 20px 60px; max-width: 780px; position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero p { font-size: 1.12rem; color: #d9eed3; margin-bottom: 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* bottoni */
.btn { display: inline-block; padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: .98rem; border: 2px solid transparent; cursor: pointer; transition: all .18s ease; text-align: center; }
.btn-cta { background: var(--yellow); color: var(--green-deeper); }
.btn-cta:hover { background: #ffec4d; color: var(--green-deeper); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(251,227,0,.35); }
.btn-outline { background: transparent; border-color: #b8d8b0; color: #e8f4e4; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .86rem; border-radius: 10px; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-outline.btn-sm { border-color: var(--green); color: var(--green-dark); }
.btn-outline.btn-sm:hover { background: var(--bg-soft); color: var(--green-deeper); }

/* categorie tiles */
.cat-tiles { margin-bottom: 40px; }
.cat-tiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.cat-tile { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; font-weight: 700; color: var(--green-dark); transition: all .18s ease; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green); }
.cat-tile-icon { display: block; font-size: 2rem; margin-bottom: 8px; }

/* griglia prodotti */
.pcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 18px 0 30px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all .2s ease; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #b9d8b2; }
.pcard-img { background: #fbfdfa; display: block; }
.pcard-img img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 10px; }
.pcard-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-title { font-size: .98rem; font-weight: 600; }
.pcard-title a { color: var(--ink); }
.pcard-title a:hover { color: var(--green-dark); }
.pcard-brand { font-size: .8rem; color: var(--gray); text-transform: uppercase; letter-spacing: .6px; }
.price { color: var(--green-dark); font-weight: 800; font-size: 1.05rem; }
.pcard .btn { margin-top: auto; }

/* categoria hero */
.cat-hero { background: linear-gradient(135deg, var(--green-deeper), var(--green-dark)); color: #fff; border-radius: 20px; padding: 34px 30px; margin: 26px 0 10px; }
.cat-hero h1 { color: #fff; }
.cat-hero p { color: #d9eed3; max-width: 760px; }

/* pagina prodotto */
.product-page { padding: 26px 0 40px; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.product-gallery { background: #fbfdfa; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.product-main-img { width: 100%; border-radius: 12px; }
.product-brand { color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; font-size: .82rem; margin-bottom: 6px; }
.product-info h1 { margin-bottom: 12px; }
.product-price-row { display: flex; align-items: center; gap: 14px; margin: 10px 0 16px; flex-wrap: wrap; }
.price-big { font-size: 1.7rem; }
.prime-badge { background: var(--bg-soft); color: var(--green-dark); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.product-features { list-style: none; margin: 0 0 20px; }
.product-features li { padding: 7px 0 7px 30px; position: relative; border-bottom: 1px dashed var(--line); }
.product-features li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.affiliate-note { font-size: .8rem; color: var(--gray); margin-top: 10px; }
.product-meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--gray); }
.product-meta strong { color: var(--ink); }
.product-desc { margin-top: 38px; background: var(--bg-soft); border-radius: 20px; padding: 30px; }
.product-desc p { max-width: 860px; }
.product-desc .btn { margin-top: 8px; }

/* FAQ */
.faq-section { margin-top: 36px; }
.faq { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.faq summary { padding: 15px 18px; font-weight: 700; cursor: pointer; color: var(--green-deeper); list-style: none; position: relative; padding-right: 44px; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--green); font-weight: 400; }
.faq[open] summary::after { content: '–'; }
.faq p { padding: 0 18px 16px; color: var(--gray); }

/* related */
.related { margin-top: 40px; }

/* howto */
.howto { margin: 44px 0; }
.howto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 18px; }
.howto-step { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-num { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }

/* CMS */
.cms-page { max-width: 860px; padding: 30px 0 50px; }
.cms-page h1 { margin-bottom: 16px; }
.cms-page h2 { margin: 26px 0 10px; }
.cms-page ul, .cms-page ol { margin: 0 0 18px 22px; }
.cms-page li { margin-bottom: 8px; }

/* footer */
.site-footer { background: var(--green-deeper); color: #cfe6c8; margin-top: 50px; padding: 44px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; padding-bottom: 26px; }
.footer-brand { font-size: 1.3rem; color: #fff; font-weight: 300; }
.footer-brand strong { color: var(--yellow); font-weight: 800; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 10px; }
.site-footer a { display: block; color: #cfe6c8; padding: 3px 0; font-size: .92rem; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 16px 20px; font-size: .82rem; color: #9dc296; }

/* mobile */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--green-deeper); flex-direction: column; padding: 10px 20px 18px; box-shadow: 0 18px 30px rgba(0,0,0,.3); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .product-layout { grid-template-columns: 1fr; }
  .hero-inner { padding: 40px 20px 46px; }
}
@media (max-width: 480px) {
  .pcard-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard-body { padding: 10px 10px 14px; }
  .pcard-title { font-size: .86rem; }
  .btn { padding: 10px 16px; font-size: .9rem; }
  .brand-text small { display: none; }
}

/* carosello marchi */
.brands-carousel { margin: 44px 0 10px; }
.brands-note { color: var(--gray); font-size: .95rem; }
.brands-track { display: flex; gap: 14px; overflow-x: auto; padding: 18px 4px 22px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.brands-track::-webkit-scrollbar { height: 8px; }
.brands-track::-webkit-scrollbar-thumb { background: #c5d9c0; border-radius: 99px; }
.brand-badge { flex: 0 0 auto; width: 128px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 10px; text-decoration: none; transition: all .18s ease; }
.brand-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #b9d8b2; }
.brand-badge-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--bbg); color: var(--bfg); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; letter-spacing: .3px; }
.brand-badge-name { font-size: .82rem; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.15; }

/* badge stelle */
.stars-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--ink); }
.stars-badge .star { color: #f5a800; }
.stars-badge strong { color: var(--green-dark); }

/* punti di forza */
.strengths { list-style: none; margin: 14px 0 20px; }
.strengths li { padding: 8px 0 8px 34px; position: relative; border-bottom: 1px dashed var(--line); max-width: 860px; }
.strengths li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; font-size: 1.05rem; }

/* recensioni */
.reviews-section { margin-top: 38px; }
.reviews-note { color: var(--gray); font-size: .92rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 14px; }
.review-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 14px; padding: 18px 20px; margin: 0; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.review-stars { color: #f5a800; font-size: .9rem; font-weight: 700; }
.review-date { color: var(--gray); font-size: .8rem; }
.review-body { font-size: .95rem; color: #3a443a; line-height: 1.55; margin-bottom: 8px; }
.review-card footer { font-size: .8rem; color: var(--gray); }
/* ============================================================
   PREMIUM LAYER — website-graphic-enrichment (16/09/2026)
   Effetti: motion tokens · reveal+cascata · hero entrance+mesh glow ·
   pressed/hover states · card depth+spotlight+img zoom · sticky CTA mobile ·
   marquee marchi · grain · view transitions · focus states.
   Rollback: style.css.bak-20260916
   ============================================================ */

/* 1) Motion tokens + guardia globale reduced-motion */
:root {
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.32, .72, 0, 1);
  --dur-fast: 180ms;
  --dur: 380ms;
  --dur-slow: 700ms;
  --stagger: 60ms;
  --shadow-soft: 0 14px 34px rgba(19, 91, 46, .10), 0 2px 8px rgba(19, 91, 46, .06);
  --shadow-lift: 0 20px 44px rgba(19, 91, 46, .16), 0 4px 12px rgba(19, 91, 46, .08);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 2) Tipografia: bilanciamento, numeri tabulari */
h1, h2, h3 { text-wrap: balance; letter-spacing: -.01em; }
p { text-wrap: pretty; }
.price, .price-big, .stars-badge { font-variant-numeric: tabular-nums; }

/* 3) Focus visibility (tastiera) */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 8px;
}

/* 4) Bottoni: hover lift + pressed state (il segnale premium più economico) */
.btn {
  transition: transform var(--dur-fast) var(--ease-out-expo),
              box-shadow var(--dur-fast) var(--ease-out-expo),
              background-color var(--dur-fast) ease,
              color var(--dur-fast) ease,
              border-color var(--dur-fast) ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
@media (hover: none) { .btn:hover { transform: none; } }
.btn-cta { box-shadow: 0 6px 18px rgba(251, 227, 0, .22); }
.btn-cta:hover { box-shadow: 0 12px 26px rgba(251, 227, 0, .38); }

/* 5) Header: underline sweep sulla nav + hamburger che si trasforma in X */
.site-nav a { position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  border-radius: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out-expo);
}
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover::after { transform: scaleX(1); }
}
.nav-toggle { font-size: 0; position: relative; width: 44px; height: 44px; }
.nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform var(--dur) var(--ease-out-expo), top var(--dur) var(--ease-out-expo);
}
.nav-toggle::before { top: 16px; }
.nav-toggle::after { top: 26px; }
.nav-toggle[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }

/* 6) Hero: mesh gradient + glow drift + entrance (H1/LCP resta statico) */
.hero {
  background:
    radial-gradient(120% 140% at 8% 10%, #1f7a3e 0%, transparent 42%),
    radial-gradient(80% 120% at 92% 0%, rgba(251, 227, 0, .16) 0%, transparent 46%),
    linear-gradient(135deg, var(--green-deeper) 0%, var(--green-dark) 55%, #1f7a3e 100%);
}
.hero::before {
  content: ""; position: absolute; left: -120px; bottom: -150px; width: 380px; height: 380px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(62, 189, 23, .32), transparent 62%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: glow-drift 14s ease-in-out infinite alternate; }
  .hero::before { animation: glow-drift 18s ease-in-out infinite alternate-reverse; }
  .hero p { animation: hero-rise .55s var(--ease-out-expo) .08s both; }
  .hero-cta { animation: hero-rise .6s var(--ease-out-expo) .16s both; }
}
@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(26px, -18px, 0) scale(1.12); }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* 7) Card: double-bezel, ombre tinte, image zoom, spotlight (desktop) */
.pcard {
  position: relative;
  box-shadow: 0 1px 2px rgba(19, 91, 46, .05);
  transition: transform var(--dur) var(--ease-out-expo),
              box-shadow var(--dur) var(--ease-out-expo),
              border-color var(--dur-fast) ease;
}
.pcard::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.pcard::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  pointer-events: none; transition: opacity .3s var(--ease-soft); z-index: 1;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(62, 189, 23, .10), transparent 45%);
}
.pcard-img img { transition: transform .5s var(--ease-out-expo); }
@media (hover: hover) and (pointer: fine) {
  .pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #b9d8b2; }
  .pcard:hover .pcard-img img { transform: scale(1.045); }
  .pcard:hover::before { opacity: 1; }
  .cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
}
.cat-tile, .howto-step, .review-card { box-shadow: 0 1px 2px rgba(19, 91, 46, .04); }

/* 8) Reveal on scroll + cascata (baseline = stato finale; nativo o IO) */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
@keyframes reveal-up { from { opacity: 0; transform: translateY(22px); } }
.reveal-js {
  opacity: 0; transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
  transition-delay: var(--rd, 0ms);
}
.reveal-js.in { opacity: 1; transform: none; }

/* 9) Sticky CTA mobile (solo pagine prodotto, < 1024px) */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: none;
  padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(19, 91, 46, .12);
  box-shadow: 0 -10px 30px rgba(19, 91, 46, .12);
  transform: translateY(110%);
  transition: transform .45s var(--ease-out-expo);
}
.sticky-cta.ready { display: flex; align-items: center; gap: 10px; }
.sticky-cta.is-visible { transform: none; }
.sticky-cta.at-end { transform: translateY(110%); }
.sticky-cta .btn { flex: 1; padding: 13px 16px; font-size: .95rem; }
.sticky-cta-close {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--gray);
  font-size: 1.05rem; cursor: pointer; line-height: 1;
}
.sticky-cta-close:active { transform: scale(.96); }
@media (min-width: 1024px) { .sticky-cta.ready { display: none; } }

/* 10) Marquee marchi (home) — 1 per pagina, pausa su hover/focus */
.brands-carousel {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 44px, #000 calc(100% - 44px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 44px, #000 calc(100% - 44px), transparent 100%);
}
.brands-track.is-marquee {
  overflow: visible; width: max-content; gap: 0;
  scroll-snap-type: none; padding: 18px 0 22px;
  animation: marquee-x 44s linear infinite;
}
.brands-track.is-marquee:hover, .brands-track.is-marquee:focus-within { animation-play-state: paused; }
.mq-group { display: flex; gap: 14px; padding-right: 14px; flex: none; }
@keyframes marquee-x { to { transform: translateX(-50%); } }

/* 11) Grain overlay (grana filmica leggera, fixed, non interattiva) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

/* 12) View Transitions (cross-document, degrada da solo dove non supportato) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
