/* =========================================================
   FULLWATT — sistema visivo condiviso
   Caricato per ultimo: uniforma pagine, categorie e footer.
   ========================================================= */

:root{
  --fw-panel: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  --fw-panel-solid: #08080b;
  --fw-line: rgba(255,255,255,.12);
  --fw-line-accent: rgba(124,77,255,.42);
  --fw-glow-violet: rgba(102,11,177,.22);
  --fw-glow-green: rgba(0,230,119,.13);
  --fw-radius: 24px;
  --fw-radius-small: 18px;
  --fw-shadow: 0 28px 80px rgba(0,0,0,.46);
}

html{
  scrollbar-color: rgba(124,77,255,.62) #050505;
}

body:not(.legal-page){
  font-size: clamp(15px, .25vw + 14px, 17px);
}

body:not(.legal-page) ::selection{
  color: #fff;
  background: rgba(102,11,177,.76);
}

body:not(.legal-page) :where(h1, h2, h3){
  text-wrap: balance;
}

body:not(.legal-page) :where(p, li){
  text-wrap: pretty;
}

body:not(.legal-page){
  background:
    radial-gradient(circle at 8% 18%, rgba(102,11,177,.055), transparent 28rem),
    #000;
}

body:not(.legal-page) main{
  background: #000;
}

/* Header più compatto e leggibile su tutte le pagine */
body:not(.legal-page) .header{
  min-height: 72px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.84);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  backdrop-filter: blur(18px);
}

body:not(.legal-page) .header-links ul{
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
}

body:not(.legal-page) .header-links a{
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(255,255,255,.67);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .055em;
  transition: color .2s ease, background-color .2s ease;
}

body:not(.legal-page) .header-links a:is(:hover, [aria-current="page"]){
  color: #fff;
  background: rgba(124,77,255,.14);
}

body:not(.legal-page) .cart-fab{
  min-width: 58px;
  min-height: 40px;
  margin-right: 0;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.035);
  box-shadow: none;
  backdrop-filter: none;
}

body:not(.legal-page) .cart-fab:hover{
  border-color: rgba(0,230,119,.38);
  background: rgba(0,230,119,.06);
  transform: translateY(-1px);
}

body:not(.legal-page) .cart-badge{
  background: transparent;
  color: #fff;
  text-shadow: none;
}

body:not(.legal-page) .fullscreen-menu{
  background:
    radial-gradient(circle at 8% 15%, rgba(102,11,177,.2), transparent 30rem),
    radial-gradient(circle at 92% 84%, rgba(0,230,119,.09), transparent 28rem),
    #000;
}

body:not(.legal-page) .menu-panel{
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--fw-line-accent);
  border-radius: var(--fw-radius);
  background: rgba(255,255,255,.022);
  box-shadow: var(--fw-shadow);
}

body:not(.legal-page) .menu-group{
  padding-top: 14px;
  border-top: 1px solid var(--fw-line);
}

/* Contenitori: una sola larghezza e un solo gutter */
:where(
  .hero-inner,
  .home-container,
  .products-inner,
  .product-inner,
  .spares-inner,
  .plastics-inner,
  .company-inner,
  .contact-inner,
  .test-container,
  .blog-hero .hero-inner,
  .blog-section .container
){
  width: min(var(--container), calc(100% - (2 * var(--gutter))));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

/* Linguaggio hero condiviso */
:where(
  .hero,
  .products-hero,
  .product-hero,
  .spares-hero,
  .plastics-hero,
  .company-hero,
  .contact-hero,
  .blog-hero,
  .test-hero
){
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 5vw, 64px) 0 clamp(58px, 8vw, 98px);
  border-bottom: 1px solid var(--color-border);
  background: #000;
}

:where(
  .hero,
  .products-hero,
  .product-hero,
  .spares-hero,
  .plastics-hero,
  .company-hero,
  .contact-hero,
  .blog-hero,
  .test-hero
)::before{
  content: "";
  position: absolute;
  z-index: -2;
  inset: -12rem;
  background:
    radial-gradient(circle at 12% 28%, rgba(102,11,177,.32), transparent 31rem),
    radial-gradient(circle at 86% 72%, rgba(0,230,119,.15), transparent 29rem);
  filter: blur(5px);
  pointer-events: none;
  animation: fw-ambient-drift 16s ease-in-out infinite alternate;
}

:where(
  .hero,
  .products-hero,
  .product-hero,
  .spares-hero,
  .plastics-hero,
  .company-hero,
  .contact-hero,
  .blog-hero,
  .test-hero
)::after{
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .2;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 92%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 92%);
  pointer-events: none;
}

/* Pannelli editoriali dentro gli hero */
:where(
  .hero-grid,
  .products-head,
  .product-hero-inner,
  .spares-hero-inner,
  .plastics-hero-inner,
  .company-hero > .company-inner,
  .contact-hero > .contact-inner,
  .blog-hero > .hero-inner,
  .test-hero-grid
){
  position: relative;
  border: 1px solid var(--fw-line-accent);
  border-radius: clamp(22px, 3vw, 32px);
  background:
    radial-gradient(circle at 96% 100%, var(--fw-glow-green), transparent 31%),
    radial-gradient(circle at 0 0, var(--fw-glow-violet), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.052), rgba(255,255,255,.016));
  box-shadow: var(--fw-shadow);
}

.hero-grid,
.products-head,
.company-hero > .company-inner,
.contact-hero > .contact-inner,
.blog-hero > .hero-inner,
.test-hero-grid{
  padding: clamp(26px, 5vw, 62px);
}

.product-hero-inner,
.spares-hero-inner,
.plastics-hero-inner{
  width: min(var(--container), calc(100% - (2 * var(--gutter))));
  max-width: none;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 50px);
  gap: clamp(28px, 5vw, 66px);
}

.spares-hero-left,
.plastics-hero-left{
  margin-right: 0;
}

.spares-hero-right{
  align-self: center;
  margin-top: 0;
}

.products-hero .products-inner{
  display: grid;
  gap: 18px;
}

.products-head{
  margin: 0;
}

.hero-breadcrumb,
.test-breadcrumb{
  margin-bottom: clamp(20px, 3vw, 34px);
}

.product-hero-inner > .hero-breadcrumb,
.spares-hero-inner > .hero-breadcrumb,
.plastics-hero-inner > .hero-breadcrumb,
.company-hero .hero-breadcrumb,
.contact-hero .hero-breadcrumb{
  margin-bottom: 0;
}

/* Titoli e testi hero */
:where(
  .hero-title,
  .products-title,
  .product-title,
  .spares-title,
  .plastics-title,
  .company-title,
  .contact-title,
  .blog-hero h1,
  .test-hero h1
){
  margin: 14px 0 16px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.01;
  letter-spacing: -.045em;
  text-align: left;
}

:where(
  .hero-gradient,
  .products-gradient,
  .spares-gradient,
  .contact-gradient,
  .test-hero h1 span
){
  color: transparent;
  background: linear-gradient(90deg, var(--color-violet-bright), var(--color-green));
  -webkit-background-clip: text;
  background-clip: text;
}

:where(
  .hero-subtitle,
  .products-subtitle,
  .product-lead,
  .spares-lead,
  .plastics-lead,
  .company-subtitle,
  .contact-subtitle,
  .blog-hero p,
  .test-lead
){
  max-width: 66ch;
  margin: 0 0 24px;
  color: rgba(255,255,255,.7);
  font-family: var(--font-copy);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.72;
  text-align: left;
}

.badge,
.product-kicker,
.plastics-kicker,
.test-kicker,
.section-kicker{
  color: var(--color-green);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.badge{
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(124,77,255,.45);
  background: rgba(124,77,255,.1);
  font-family: var(--font-body);
  font-size: 11px;
}

.badge-emoji:last-child{
  display: none;
}

.hero-right{
  justify-content: center;
}

.hero-image{
  max-width: 660px;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 44px 70px rgba(0,0,0,.56));
}

.hero-divider,
.company-divider{
  height: 1px;
  margin: 28px 0 20px;
  background: linear-gradient(90deg, rgba(124,77,255,.6), rgba(0,230,119,.3), transparent);
}

.hero-stats,
.company-stats{
  gap: 12px;
}

.stat,
.cstat{
  min-width: 132px;
  padding: 13px 15px;
  border: 1px solid var(--fw-line);
  border-radius: 14px;
  background: rgba(0,0,0,.26);
}

.stat-value,
.cstat-value{
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
}

.stat-value.violet,
.cstat-value.violet{ color: var(--color-violet-bright); }
.stat-value.green,
.stat-value.green2,
.cstat-value.green,
.cstat-value.green2{ color: var(--color-green); }

/* Pulsanti coerenti */
:where(.btn-primary, .btn-secondary){
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 46px;
  padding: 11px 17px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

:where(.btn-primary, .btn-secondary)::after{
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2px;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.18) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .55s ease;
}

:where(.btn-primary, .btn-secondary):hover::after{
  transform: translateX(120%);
}

.btn-primary{
  border-color: rgba(124,77,255,.62);
  background: linear-gradient(135deg, rgba(102,11,177,.82), rgba(124,77,255,.46));
}

.btn-secondary{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
}

:where(.btn-primary, .btn-secondary):hover{
  transform: translateY(-2px);
  border-color: rgba(0,230,119,.45);
}

/* Ritmo verticale comune */
:where(
  .products-grid-wrap,
  .product-section,
  .product-block,
  .spares-section,
  .plastics-section,
  .company-sections,
  .team,
  .contact-grid-wrap,
  .blog-section,
  .test-section
){
  padding: clamp(62px, 8vw, 104px) 0;
  border-bottom: 1px solid var(--color-border);
}

:where(
  .product-section,
  .product-block,
  .spares-section,
  .plastics-section,
  .company-sections,
  .team,
  .contact-grid-wrap,
  .blog-section,
  .test-section
):nth-of-type(even){
  background:
    radial-gradient(circle at 90% 20%, rgba(102,11,177,.07), transparent 26rem),
    #030303;
}

:where(
  .products-header,
  .spares-head,
  .plastics-head,
  .section-head,
  .team-head,
  .test-heading
){
  max-width: 780px;
  margin: 0 0 clamp(28px, 5vw, 48px);
  text-align: left;
}

:where(
  .products-header,
  .spares-head,
  .plastics-head,
  .section-head,
  .team-head
)::before{
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--color-violet-bright), var(--color-green));
}

:where(.h1, .h2, .team-title, .test-heading h2){
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -.03em;
  text-align: left;
}

:where(.p, .p.dim, .team-subtitle, .test-heading p){
  margin: 0;
  color: var(--color-text-muted);
  font-family: var(--font-copy);
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.72;
  text-align: left;
}

/* Catalogo moto: griglia editoriale */
.products-grid{
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 18px;
}

.products-grid > .product-card{
  grid-column: span 6;
  min-height: 350px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--fw-line);
  border-radius: var(--fw-radius);
  background-color: #090909;
  box-shadow: var(--fw-shadow);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.products-grid > .product-card:nth-child(1){ grid-column: span 7; }
.products-grid > .product-card:nth-child(2){ grid-column: span 5; }
.products-grid > .product-card:nth-child(5){ grid-column: span 12; min-height: 300px; }

.products-grid > .product-card::before{
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(3,0,8,.86)),
    linear-gradient(90deg, rgba(102,11,177,.18), transparent 60%);
}

.products-grid > .product-card::after{
  content: "↗";
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.38);
  font-size: 18px;
}

.products-grid > .product-card:hover{
  transform: translateY(-6px);
  border-color: rgba(0,230,119,.35);
  box-shadow: 0 34px 90px rgba(0,0,0,.62);
}

.products-grid > .product-card .product-img{
  transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}

.products-grid > .product-card:hover .product-img{
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

.products-grid .product-tag{
  color: var(--color-green);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

.products-grid .product-chip{
  border-color: rgba(124,77,255,.48);
  background: rgba(0,0,0,.34);
  font-size: 11px;
}

.products-grid .product-name{
  margin-top: auto;
  padding-top: 112px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(25px, 3vw, 34px);
}

.products-grid .product-desc{
  max-width: 48ch;
  margin: 0;
  padding-right: 58px;
  color: rgba(255,255,255,.7);
  font-size: 15px;
}

/* Categorie ricambi */
.spares-grid{
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 18px;
  padding: 0;
}

.spares-grid > .spares-card{
  grid-column: span 4;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--fw-line);
  border-radius: var(--fw-radius);
  color: #fff;
  background:
    radial-gradient(circle at 100% 100%, rgba(102,11,177,.18), transparent 45%),
    var(--fw-panel);
  box-shadow: var(--shadow-card);
  transition: transform .28s ease, border-color .28s ease;
}

.spares-grid > .spares-card:nth-child(4){ grid-column: span 8; }
.spares-grid > .spares-card:nth-child(5){ grid-column: span 4; }

.spares-grid > .spares-card::before{
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(3,0,8,.84));
}

.spares-grid > .spares-card.plastiche{
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(3,0,8,.88)),
    url("/prodotti/ricambi/assets/img/rtech.jpg") center / cover no-repeat;
}

.spares-grid > .spares-card-cta{
  border-color: rgba(124,77,255,.4);
  background:
    radial-gradient(circle at 100% 100%, rgba(0,230,119,.1), transparent 44%),
    linear-gradient(145deg, rgba(102,11,177,.2), rgba(255,255,255,.025));
}

.spares-grid > .spares-card::after{
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 1;
  color: rgba(255,255,255,.08);
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
}

.spares-grid > .spares-card:nth-child(1)::after{ content: "01"; }
.spares-grid > .spares-card:nth-child(2)::after{ content: "02"; }
.spares-grid > .spares-card:nth-child(3)::after{ content: "03"; }
.spares-grid > .spares-card:nth-child(4)::after{ content: "04"; }
.spares-grid > .spares-card:nth-child(5)::after{ content: "05"; }
.spares-grid > .spares-card:nth-child(6)::after{ content: "06"; }
.spares-grid > .spares-card:nth-child(7)::after{ content: "07"; }
.spares-grid > .spares-card:nth-child(8)::after{ content: "08"; }

.spares-grid > .spares-card:hover{
  transform: translateY(-5px);
  border-color: rgba(0,230,119,.34);
}

.spares-card-title{
  position: relative;
  z-index: 2;
  max-width: 80%;
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(21px, 2.4vw, 27px);
}

.spares-card-text{
  position: relative;
  z-index: 2;
  max-width: 50ch;
  color: rgba(255,255,255,.68);
  font-size: 15px;
  font-weight: 400;
}

.spares-hero-card,
.variant-panel{
  border: 1px solid var(--fw-line);
  border-radius: var(--fw-radius-small);
  background: rgba(0,0,0,.34);
  box-shadow: none;
}

/* Schede informative comuni */
:where(
  .product-grid > .product-card,
  .company-card,
  .contact-card,
  .mode-card,
  .info-card,
  .compat-item,
  .step,
  .ride-point,
  .specs-col,
  .safety-box,
  .company-cta-box,
  .contact-direct-box,
  .cta-wide
){
  border: 1px solid var(--fw-line);
  border-radius: var(--fw-radius-small);
  background: var(--fw-panel);
  box-shadow: var(--shadow-card);
}

:where(
  .company-h3,
  .contact-h3,
  .spares-mini-title,
  .step-title,
  .compat-title,
  .variant-label
){
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
}

:where(
  .spares-mini-note,
  .step-text,
  .compat-text,
  .product-caption,
  .variant-note
){
  color: var(--color-text-muted);
  font-family: var(--font-copy);
  line-height: 1.65;
}

.step-num,
.compat-num{
  flex: 0 0 auto;
  border-color: rgba(124,77,255,.45);
  border-radius: 50%;
  color: var(--color-green);
  background: rgba(102,11,177,.12);
  font-family: var(--font-display);
  font-size: 11px;
}

.team-name{
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.15;
}

.team-role{
  color: var(--color-green);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.team-desc,
.spares-check{
  color: var(--color-text-muted);
  font-family: var(--font-copy);
  line-height: 1.7;
}

.variant-switch{
  width: 42px;
  height: 42px;
  border-color: var(--fw-line);
}

.variant-switch:is(:hover, .is-active){
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(124,77,255,.2);
}

.product-grid > .product-card{
  position: relative;
  min-height: 230px;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
}

.product-grid > .product-card::after{
  content: "";
  position: absolute;
  right: -54px;
  bottom: -76px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(102,11,177,.18);
  filter: blur(28px);
  pointer-events: none;
}

.product-grid > .product-card:nth-child(even)::after{
  background: rgba(0,230,119,.1);
}

.product-price{
  width: fit-content;
  min-width: 190px;
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid var(--fw-line);
  border-radius: 14px;
  background: rgba(0,0,0,.28);
}

.price-value{
  color: var(--color-green);
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  text-shadow: none;
}

.price-old::after{
  border: 1px solid rgba(124,77,255,.46);
  background: rgba(102,11,177,.2);
  font-family: var(--font-body);
  font-weight: 600;
}

.product-badges li,
.plastics-badges li{
  border-color: rgba(124,77,255,.32);
  background: rgba(124,77,255,.07);
}

.product-media,
.test-media{
  border: 1px solid rgba(124,77,255,.4);
  border-radius: var(--fw-radius);
  background: #050507;
  box-shadow: var(--fw-shadow);
}

.specs{
  gap: 18px;
  padding-bottom: 0;
}

.specs-col{
  padding: 12px 18px;
}

.spec-row{
  min-height: 54px;
  align-items: center;
  padding: 12px 6px;
}

.spec-row strong{
  text-align: right;
}

/* FAQ uniforme */
.faq{
  width: 100%;
  max-width: 920px;
  margin: 0;
  gap: 10px;
}

.faq-item{
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--fw-line);
  border-radius: 16px;
  background: rgba(255,255,255,.028);
}

.faq-item summary{
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 19px;
  list-style: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
}

.faq-item summary::-webkit-details-marker{ display: none; }

.faq-item summary::after{
  content: "+";
  flex: 0 0 auto;
  color: var(--color-green);
  font-family: var(--font-display);
  font-size: 20px;
}

.faq-item[open] summary::after{ content: "−"; }

.faq-item p{
  margin: 0;
  padding: 16px 19px 19px;
  border-top: 1px solid var(--fw-line);
  color: var(--color-text-muted);
  line-height: 1.72;
}

/* Company, contatti, blog e test ride */
.company-grid{
  grid-template-columns: repeat(12, minmax(0,1fr));
}

.company-card{ grid-column: span 6; padding: clamp(24px, 3vw, 34px); }
.company-card:nth-child(1){ grid-column: span 7; }
.company-card:nth-child(2){ grid-column: span 5; }

.company-h2,
.contact-name,
.mode-card h3,
.info-card h3{
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(21px, 2.5vw, 28px);
}

.company-p,
.company-list,
.contact-desc,
.mode-card p,
.info-card p{
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.72;
}

.team-card{
  height: clamp(380px, 42vw, 520px);
  border: 1px solid var(--fw-line-accent);
  border-radius: var(--fw-radius);
  box-shadow: var(--fw-shadow);
}

.team-card::before{
  background: linear-gradient(180deg, transparent 20%, rgba(7,0,13,.94) 100%);
}

.team-body{
  padding: clamp(24px, 4vw, 38px);
}

.contact-grid{
  gap: 18px;
}

.contact-card{
  min-height: 290px;
  padding: clamp(24px, 3vw, 34px);
}

.contact-card-actions{
  margin-top: auto;
}

.contact-card{
  display: flex;
  flex-direction: column;
}

.contact-card .contact-desc{
  flex: 1;
}

.blog-grid{
  gap: 20px;
}

.blog-card{
  border: 1px solid var(--fw-line);
  border-radius: var(--fw-radius);
  background: var(--fw-panel);
  box-shadow: var(--fw-shadow);
}

.blog-card:hover{
  border-color: rgba(0,230,119,.32);
}

.card-body{
  padding: 24px;
}

.card-title{
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.4vw, 27px);
}

.filter,
.page-btn{
  min-height: 40px;
  border-color: var(--fw-line);
  background: rgba(255,255,255,.03);
  font-family: var(--font-body);
}

.filter.active,
.page-btn.active{
  border-color: rgba(0,230,119,.36);
  background: rgba(0,230,119,.08);
}

.search-box input{
  min-height: 52px;
  border-color: var(--fw-line);
  border-radius: 14px;
  background: rgba(0,0,0,.34);
}

.search-box input:focus{
  border-color: rgba(0,230,119,.48);
  box-shadow: 0 0 0 4px rgba(0,230,119,.07);
}

.ride-points{
  gap: 14px;
}

.ride-point{
  min-height: 70px;
  display: flex;
  align-items: center;
  padding: 18px 20px 18px 44px;
  position: relative;
}

.ride-point::before{
  content: "";
  position: absolute;
  left: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-violet-bright), var(--color-green));
}

.mode-card,
.info-card{
  padding: clamp(24px, 3vw, 34px);
}

.gallery-prev{ left: 16px; }
.gallery-next{ right: 16px; }

/* Drawer carrello coordinato */
.cart-drawer{
  border-left-color: var(--fw-line-accent);
  background:
    radial-gradient(circle at 100% 0, rgba(102,11,177,.16), transparent 26rem),
    rgba(8,8,11,.97);
}

.cart-header{
  min-height: 70px;
  padding-inline: 20px;
}

.cart-header h2{
  font-family: var(--font-heading);
  font-size: 20px;
}

.cart-item{
  border-color: var(--fw-line);
  background: var(--fw-panel);
}

.checkout-btn{
  border-color: rgba(124,77,255,.56);
  background: linear-gradient(135deg, rgba(102,11,177,.82), rgba(124,77,255,.46));
}

/* Animazioni d’ingresso: attive solo quando lo script è disponibile */
.reveal-ready .reveal-target{
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity .66s cubic-bezier(.2,.7,.2,1),
    transform .72s cubic-bezier(.2,.7,.2,1),
    border-color .28s ease,
    box-shadow .28s ease;
  transition-delay: calc(var(--reveal-order, 0) * 65ms);
  will-change: opacity, transform;
}

.reveal-ready .reveal-target[data-reveal="hero"]{
  transform: translate3d(0, 18px, 0) scale(.985);
}

.reveal-ready .reveal-target.is-visible{
  opacity: 1;
  transform: none;
  will-change: auto;
}

@keyframes fw-ambient-drift{
  0%{ transform: translate3d(-1.5%, -1%, 0) scale(1); opacity: .88; }
  100%{ transform: translate3d(1.5%, 1%, 0) scale(1.035); opacity: 1; }
}

@media (hover: hover){
  :where(
    .service-feature,
    .product-grid > .product-card,
    .company-card,
    .contact-card,
    .mode-card,
    .info-card,
    .compat-item,
    .step,
    .ride-point,
    .specs-col
  ){
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
  }

  :where(
    .service-feature,
    .product-grid > .product-card,
    .company-card,
    .contact-card,
    .mode-card,
    .info-card,
    .compat-item,
    .step,
    .ride-point,
    .specs-col
  ):hover{
    border-color: rgba(124,77,255,.4);
    box-shadow: 0 28px 70px rgba(0,0,0,.5);
    transform: translateY(-4px);
  }
}

/* Responsive */
@media (max-width: 1050px){
  .products-grid > .product-card:nth-child(n){ grid-column: span 6; }
  .products-grid > .product-card:nth-child(5){ grid-column: span 12; }
  .spares-grid > .spares-card:nth-child(n){ grid-column: span 6; }
  .footer-top{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-top > .footer-col:last-child{ grid-column: 1 / -1; }
}

@media (max-width: 980px){
  body:not(.legal-page) .header{ min-height: 64px; }

  .product-hero-inner,
  .spares-hero-inner,
  .plastics-hero-inner,
  .test-hero-grid{
    grid-template-columns: 1fr;
  }

  .spares-hero-left,
  .plastics-hero-left{
    margin-right: 0;
  }

  .spares-hero-right{
    margin-top: 0;
  }

  .company-grid{
    grid-template-columns: 1fr;
  }

  .company-card:nth-child(n){ grid-column: auto; }

  body:not(.legal-page) .menu-panel{
    width: min(700px, 100%);
  }
}

@media (max-width: 720px){
  :where(
    .hero,
    .products-hero,
    .product-hero,
    .spares-hero,
    .plastics-hero,
    .company-hero,
    .contact-hero,
    .blog-hero,
    .test-hero
  ){
    padding-top: 22px;
  }

  .hero-grid,
  .products-head,
  .company-hero > .company-inner,
  .contact-hero > .contact-inner,
  .blog-hero > .hero-inner,
  .test-hero-grid,
  .product-hero-inner,
  .spares-hero-inner,
  .plastics-hero-inner{
    padding: 22px 20px;
    border-radius: 20px;
  }

  .products-grid > .product-card:nth-child(n),
  .spares-grid > .spares-card:nth-child(n){
    grid-column: span 12;
  }

  .products-grid > .product-card{
    min-height: 300px;
  }

  .products-grid .product-name{
    padding-top: 86px;
  }

  .product-grid,
  .specs,
  .team-grid,
  .contact-grid,
  .blog-grid,
  .mode-grid,
  .info-grid,
  .compat{
    grid-template-columns: 1fr;
  }

  .footer-top{
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .footer-top > .footer-col:last-child{ grid-column: auto; }

  .product-hero-right,
  .product-media,
  .variant-panel{
    min-width: 0;
    width: 100%;
  }

  .product-media,
  .test-media{
    aspect-ratio: 4 / 3;
  }

  .product-grid > .product-card,
  .contact-card{
    min-height: 0;
  }
}

@media (max-width: 520px){
  :where(
    .hero-title,
    .products-title,
    .product-title,
    .spares-title,
    .plastics-title,
    .company-title,
    .contact-title,
    .blog-hero h1,
    .test-hero h1
  ){
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero-stats,
  .company-stats{
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
  }

  .stat,
  .cstat{
    min-width: 0;
    padding: 11px;
  }

  .products-grid > .product-card,
  .spares-grid > .spares-card{
    border-radius: 18px;
  }

  .products-grid .product-desc{
    padding-right: 0;
  }

  .products-grid > .product-card::after{
    display: none;
  }

  .hero-stats > :last-child:nth-child(odd),
  .company-stats > :last-child:nth-child(odd){
    grid-column: 1 / -1;
  }

  body:not(.legal-page) .menu-panel{
    width: 100%;
    padding: 20px;
    border-radius: 18px;
  }

  .cart-drawer{
    width: 100%;
  }

  .cart-item{
    grid-template-columns: 72px 1fr;
    padding: 11px;
  }

  .cart-thumb{
    width: 72px;
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce){
  .reveal-ready .reveal-target,
  .reveal-ready .reveal-target[data-reveal="hero"]{
    opacity: 1;
    transform: none;
    transition: none;
  }

  :where(.btn-primary, .btn-secondary)::after{
    display: none;
  }
}
