/* Vivi Service – sito viviservice.it
   Idea: foto dei mezzi grandi su bianco, verde del logo come accento, una fascia scura per le aziende.
   Un solo tema chiaro (sito pubblico), font ospitati sul sito: nessuna chiamata a Google. */

@font-face { font-family: "Saira SC"; src: url("fonts/saira-semi-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Saira SC"; src: url("fonts/saira-semi-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f4f6f2;          /* fondo pagina, grigio con un filo di verde */
  --surface: #ffffff;     /* schede e foto prodotto (fondo bianco come le foto) */
  --ink: #142017;         /* testo */
  --muted: #4d5c51;       /* testo secondario (7:1 su bianco) */
  --line: #dde3dc;        /* bordi */
  --brand: #3e9d41;       /* verde del logo: accenti e testo grande */
  --action: #2a7a2e;      /* verde dei pulsanti (5,4:1 col bianco) */
  --action-hover: #22672a;
  --band: #101a12;        /* fascia scura aziende */
  --band-ink: #e9f1ea;
  --band-muted: #a9bcac;
  --display: "Saira SC", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--action); text-underline-offset: 3px; }
::selection { background: #cfe9cf; color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 1rem/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--action); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--action-hover); }
  .btn-ghost:hover { background: var(--ink); color: #fff; }
  .card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20, 32, 23, 0.10); }
  .card:hover img { transform: scale(1.03); }
  .nav a:hover { color: var(--action); }
}

/* Testata */
.top { position: sticky; top: 0; z-index: 20; background: rgba(244, 246, 242, 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand img { width: 118px; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav .btn { min-height: 42px; padding: 0 18px; }
.nav .btn-primary { color: #fff; }
@media (max-width: 900px) { .nav a:not(.btn) { display: none; } }

/* Apertura */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }

.hero .lead { margin-top: 22px; font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; font-weight: 600; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.hero-photo { border-radius: 22px; overflow: hidden; aspect-ratio: 13 / 9; background: #c9d3c6; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: settle 900ms var(--ease-out) both; }
  @keyframes settle { from { transform: scale(1.04); opacity: 0.85; } to { transform: none; opacity: 1; } }
}
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-photo { order: -1; } }

/* Sezioni */
section.block { padding: clamp(56px, 8vw, 104px) 0; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; align-items: end; margin-bottom: 36px; }
.head p { color: var(--muted); font-size: 1.08rem; max-width: 36em; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }

/* Schede mezzi */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 200ms var(--ease-out), box-shadow 200ms ease; }
.card figure { margin: 0; overflow: hidden; aspect-ratio: 1 / 0.8; display: grid; place-items: center; }
.card figure img { width: 100%; height: 100%; object-fit: contain; padding: 10px 14px 0; transition: transform 300ms var(--ease-out); }
.card .body { padding: 6px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .spec { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 0.95rem; }
.card .price { font-family: var(--display); font-size: 1.55rem; font-weight: 700; color: var(--ink); margin-top: auto; }
.card .price small { font-family: var(--body); font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.card .was { color: var(--muted); font-size: 0.92rem; }
.card .was s { text-decoration-thickness: 1px; }
.card .btn { align-self: flex-start; min-height: 44px; }

.included { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.included li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 500; }
.note { margin-top: 18px; color: var(--muted); font-size: 0.92rem; max-width: 60em; }

/* Vendita: riga usato */
.used { margin-top: 26px; display: grid; grid-template-columns: 180px 1fr auto; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 24px 14px 14px; }
.used img { border-radius: 10px; }
.used h3 { font-size: 1.3rem; }
.used p { color: var(--muted); margin-top: 4px; }
@media (max-width: 700px) { .used { grid-template-columns: 1fr; padding: 14px; } .used img { max-width: 200px; } }

/* Fascia aziende */
.band { background: var(--band); color: var(--band-ink); }
.band .head p, .band .muted { color: var(--band-muted); }
.biz { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.biz-photo { border-radius: 18px; overflow: hidden; }
.season { width: 100%; border-collapse: collapse; margin: 6px 0 22px; }
.season th, .season td { text-align: left; padding: 13px 0; border-bottom: 1px solid #2a3a2d; }
.season td:last-child, .season th:last-child { text-align: right; }
.season th { color: var(--band-muted); font-weight: 500; font-size: 0.92rem; }
.season td { font-size: 1.08rem; }
.season td:last-child { font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.points { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 12px; }
.points li { padding-left: 26px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 2px; background: var(--brand); }
.band .btn-ghost { color: var(--band-ink); border-color: var(--band-ink); }
@media (hover: hover) and (pointer: fine) { .band .btn-ghost:hover { background: var(--band-ink); color: var(--band); } }
@media (max-width: 860px) { .biz { grid-template-columns: 1fr; } }

/* Officina */
.shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.shop div { padding: 24px 26px; }
.shop div + div { border-left: 1px solid var(--line); }
.shop strong { display: block; font-family: var(--display); font-size: 2.1rem; line-height: 1.1; }
.shop span { color: var(--muted); }
@media (max-width: 700px) { .shop { grid-template-columns: 1fr; } .shop div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Domande */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--action); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 62ch; }

/* Visita */
.visit { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.address { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; line-height: 1; }
.address span { display: block; color: var(--brand); }
.contacts { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contacts a, .contacts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 18px 22px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); min-height: 44px; }
.contacts > :last-child { border-bottom: 0; }
.contacts span { color: var(--muted); }
.contacts b { font-weight: 600; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .contacts a:hover b { color: var(--action); } }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .contacts a, .contacts div { grid-template-columns: 1fr; gap: 2px; } }

/* Piè di pagina */
footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; }
footer a { color: var(--muted); }

/* Barra WhatsApp sul telefono */
.phonebar { display: none; }
@media (max-width: 700px) {
  .phonebar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 30; transition: transform 260ms var(--ease-out), opacity 200ms ease; }
  .phonebar.hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
  footer { padding-bottom: 110px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { flex-direction: row; align-items: stretch; }
  .card figure { flex: 0 0 38%; aspect-ratio: auto; }
  .card figure img { padding: 8px; }
  .card .body { padding: 16px 16px 16px 4px; gap: 8px; }
  .card h3 { font-size: 1.3rem; }
  .card .spec { font-size: 0.88rem; gap: 2px 10px; }
  .card .price { font-size: 1.35rem; }
  .card .btn { min-height: 44px; padding: 0 16px; font-size: 0.95rem; }
  .phonebar .btn { width: 100%; box-shadow: 0 8px 24px rgba(20, 32, 23, 0.25); }
  .hero .actions .btn { width: 100%; }
}

/* Pagina privacy */
.doc { max-width: 760px; padding: 48px 0 80px; }
.doc h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 10px; }
.doc h2 { font-size: 1.6rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink); max-width: 68ch; }
.doc p + p { margin-top: 12px; }
.doc .meta { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ===== Versione 2: più movimento ===== */

/* Apertura con palco */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; grid-template-columns: 0.95fr 1.05fr; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; pointer-events: none; }
.glow.g1 { width: 620px; height: 620px; right: -120px; top: -160px; background: radial-gradient(circle, #9be29d 0%, rgba(155,226,157,0) 70%); }
.glow.g2 { width: 520px; height: 520px; left: -200px; bottom: -260px; background: radial-gradient(circle, #cdeccf 0%, rgba(205,236,207,0) 70%); }
@media (prefers-reduced-motion: no-preference) {
  .glow.g1 { animation: drift 14s ease-in-out infinite alternate; }
  .glow.g2 { animation: drift 18s ease-in-out infinite alternate-reverse; }
  @keyframes drift { to { transform: translate(-60px, 50px) scale(1.12); } }
}
.stats { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 34px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { color: var(--muted); font-size: 0.92rem; }
.stats dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 2.3rem; line-height: 1; }
.stats dd small { font-family: var(--body); font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-left: 2px; }

.stage { position: relative; margin: 0; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.stage:active { cursor: grabbing; }
.podium { position: absolute; left: 8%; right: 8%; bottom: 0; height: 24%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(62,157,65,0.38) 0%, rgba(62,157,65,0.12) 45%, rgba(62,157,65,0) 70%); }
.podium::after { content: ""; position: absolute; inset: 22% 18%; border-radius: 50%; border: 2px solid rgba(62,157,65,0.35); }
@media (prefers-reduced-motion: no-preference) { .podium::after { animation: ring 3.2s ease-out infinite; } @keyframes ring { from { transform: scale(0.7); opacity: 0.9; } to { transform: scale(1.35); opacity: 0; } } }
.view { position: relative; aspect-ratio: 1000 / 640; }
.frames { position: absolute; inset: 0 0 6% 0; }
.frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 260ms ease, transform 420ms var(--ease-out); transform: scale(0.985); filter: drop-shadow(0 18px 18px rgba(20,32,23,0.18)); pointer-events: none; }
.frames img.on { opacity: 1; transform: none; }
.stage figcaption { margin-top: 6px; display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }
.stage figcaption b { font-family: var(--display); font-size: 1.25rem; }
.hint { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.9rem; background: rgba(255,255,255,0.75); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.hint svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .stage { order: -1; } .hero-photo { display: none; } }

/* Nastro scorrevole */
.ticker { background: var(--action); color: #fff; overflow: hidden; padding: 14px 0; font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.02em; }
.track { display: flex; width: max-content; gap: 0; }
.track span { padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 28px; }
.track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b9efbb; margin-left: 28px; }
@media (prefers-reduced-motion: no-preference) { .track { animation: marquee 38s linear infinite; } .ticker:hover .track { animation-play-state: paused; } @keyframes marquee { to { transform: translateX(-50%); } } }

/* Comparsa allo scorrimento: visibile senza JavaScript, anima solo quando lo script c'è */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .grid .reveal:nth-child(2) { transition-delay: 70ms; } .js .grid .reveal:nth-child(3) { transition-delay: 140ms; }
.js .grid .reveal:nth-child(4) { transition-delay: 210ms; } .js .grid .reveal:nth-child(5) { transition-delay: 280ms; } .js .grid .reveal:nth-child(6) { transition-delay: 350ms; }

/* Schede che si inclinano e mezzi che fluttuano */
.card { transform-style: preserve-3d; }
.card figure { background: radial-gradient(ellipse at 50% 88%, rgba(62,157,65,0.16), rgba(62,157,65,0) 60%); }
@media (prefers-reduced-motion: no-preference) {
  .card figure img { animation: float 5.5s ease-in-out infinite; }
  .grid .card:nth-child(2n) figure img { animation-delay: -2.2s; }
  .grid .card:nth-child(3n) figure img { animation-delay: -3.6s; }
  @keyframes float { 50% { transform: translateY(-7px); } }
}
@media (hover: hover) and (pointer: fine) {
  .tilt { transition: transform 220ms var(--ease-out), box-shadow 220ms ease; }
  .card:hover figure img { animation-play-state: paused; }
}
.spin img { transition: transform 520ms cubic-bezier(0.77, 0, 0.175, 1), opacity 260ms ease; }
.spin.turning img { transform: perspective(900px) rotateY(90deg) scale(0.92); opacity: 0.2; }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; transition: transform 160ms var(--ease-out), box-shadow 160ms ease; }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--action); transform: scale(1.12); }
.swatches button:active { transform: scale(0.92); }
.grid.sale { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* Preventivatore */
.calc-wrap { background: linear-gradient(180deg, var(--bg), #e8f1e6); }
.calc { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.calc-left { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 26px 26px; display: grid; gap: 22px; }
.calc-photo { height: 210px; display: flex; justify-content: center; align-items: center; background: radial-gradient(ellipse at 50% 90%, rgba(62,157,65,0.2), rgba(62,157,65,0) 62%); border-radius: 14px; }
.calc-photo img { height: 200px; width: auto; max-width: 100%; object-fit: contain; transition: transform 500ms var(--ease-out); }
.calc-photo img.bump { transform: translateY(-8px) scale(1.04); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin-bottom: 12px; padding: 0; }
legend small { font-family: var(--body); font-weight: 500; font-size: 0.9rem; color: var(--muted); margin-left: 6px; }
.range-row { display: flex; align-items: center; gap: 18px; }
.range-row output { font-family: var(--display); font-weight: 700; font-size: 1.5rem; min-width: 5.5ch; text-align: right; }
input[type="range"] { flex: 1; accent-color: var(--action); height: 28px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.choice { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; min-height: 52px; transition: border-color 160ms ease, background-color 160ms ease, transform 140ms var(--ease-out); }
.choice:active { transform: scale(0.98); }
.choice input { accent-color: var(--action); width: 18px; height: 18px; margin: 0; }
.choice b { font-family: var(--display); font-size: 1.1rem; }
.choice em { display: block; font-style: normal; color: var(--action); font-weight: 600; font-size: 0.85rem; }
.choice:has(input:checked) { border-color: var(--action); background: #eef7ed; }
.choice.best { position: relative; }
.switch { display: flex; gap: 10px; align-items: center; margin-top: 12px; color: var(--muted); cursor: pointer; min-height: 44px; }
.switch input { accent-color: var(--action); width: 18px; height: 18px; }
.calc-right { position: sticky; top: 88px; background: var(--band); color: var(--band-ink); border-radius: 20px; padding: 26px; display: grid; gap: 16px; box-shadow: 0 24px 50px rgba(16,26,18,0.25); }
.calc-label { color: var(--band-muted); }
.calc-big { font-family: var(--display); font-weight: 700; font-size: clamp(3.2rem, 6vw, 4.6rem); line-height: 0.95; color: #8fe492; }
.calc-big small { font-family: var(--body); font-size: 1.1rem; color: var(--band-muted); font-weight: 500; }
.calc-lines { margin: 0; display: grid; gap: 0; }
.calc-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #263629; }
.calc-lines dt { color: var(--band-muted); }
.calc-lines dd { margin: 0; font-weight: 600; }
.calc-lines .tot { border-bottom: 0; padding-top: 14px; }
.calc-lines .tot dt { color: var(--band-ink); font-weight: 600; }
.calc-lines .tot dd { font-family: var(--display); font-size: 1.6rem; }
.calc-inc { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.calc-inc li { font-size: 0.85rem; padding: 5px 10px; border-radius: 999px; background: #1d2b20; color: #cfe3d1; }
.btn-block { width: 100%; }
.calc-note { color: var(--band-muted); font-size: 0.85rem; }
.pop { animation: pop 380ms var(--ease-out); }
@keyframes pop { 40% { transform: scale(1.06); } }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } .calc-right { position: static; } }

/* Fascia fotografica */
.feature { position: relative; height: min(78vh, 720px); min-height: 420px; overflow: hidden; background: #1a2a1c; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@media (prefers-reduced-motion: no-preference) { .feature img { transform: scale(1.08); transition: transform 1.6s var(--ease-out); } .feature.in img { transform: scale(1); } }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,12,0) 35%, rgba(10,18,12,0.72) 100%); }
.feature-copy { position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vw, 64px); z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; }
.feature-copy h2 { color: #fff; max-width: 14ch; }

@media (max-width: 560px) {
  .stats dd { font-size: 1.9rem; }
  .calc-left { padding: 18px; }
  .choices { grid-template-columns: 1fr; }
  .grid.sale { grid-template-columns: 1fr; }
}

/* ===== Versione 3: vetrina rotante e più animazioni ===== */

/* Barra di avanzamento come una batteria che si carica */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #3e9d41, #8fe492); }

/* Titolo che sale riga per riga */
.split .ln { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; }
.split .ln > span { display: inline-block; }
.split .ln > span { color: var(--ink); }
.split .ln > span.g { color: var(--brand); }
@media (prefers-reduced-motion: no-preference) {
  .split .ln > span { animation: rise 900ms var(--ease-out) both; }
  .split .ln:nth-child(2) > span { animation-delay: 90ms; }
  .split .ln:nth-child(3) > span { animation-delay: 180ms; }
  .split .ln:nth-child(4) > span { animation-delay: 270ms; }
  @keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
  .hero .lead { animation: fadeUp 800ms 380ms var(--ease-out) both; }
  .hero .actions { animation: fadeUp 800ms 480ms var(--ease-out) both; }
  .hero .stats { animation: fadeUp 800ms 580ms var(--ease-out) both; }
  .show { animation: fadeUp 1000ms 200ms var(--ease-out) both; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}

/* Vetrina rotante */
.show { position: relative; user-select: none; -webkit-user-select: none; }
.show-stage { position: relative; aspect-ratio: 1000 / 700; perspective: 1400px; touch-action: pan-y; cursor: grab; }
.show-stage:active { cursor: grabbing; }
.show .podium { bottom: 9%; }
.slides { position: absolute; inset: 0 0 8% 0; transform-style: preserve-3d; }
.slide { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; opacity: 0; transform: translateX(40%) rotateY(-75deg) scale(0.8); transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), opacity 500ms ease, filter 600ms ease; filter: blur(6px); pointer-events: none; }
.slide img { width: 88%; height: auto; filter: drop-shadow(0 26px 22px rgba(20, 32, 23, 0.22)); }
.slide.on { opacity: 1; transform: none; filter: none; }
.slide.out { opacity: 0; transform: translateX(-45%) rotateY(70deg) scale(0.82); filter: blur(6px); }
.slide.back.out { transform: translateX(45%) rotateY(-70deg) scale(0.82); }
.slide.back:not(.on):not(.out) { transform: translateX(-40%) rotateY(75deg) scale(0.8); }
@media (prefers-reduced-motion: no-preference) {
  .slide.on img { animation: turntable 7s ease-in-out infinite; }
  @keyframes turntable { 0%, 100% { transform: rotateY(-14deg) translateY(0); } 50% { transform: rotateY(14deg) translateY(-8px); } }
}
.road { position: absolute; left: 6%; right: 6%; bottom: 5%; height: 4px; overflow: hidden; border-radius: 4px; opacity: 0.55; }
.road i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(62,157,65,0.75) 0 34px, transparent 34px 70px); }
.show.moving .road i { animation: road 700ms linear infinite; }
@keyframes road { to { transform: translateX(-70px); } }
.streaks { position: absolute; inset: 20% 0 30% 0; pointer-events: none; opacity: 0; transition: opacity 300ms ease; }
.streaks i { position: absolute; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(62,157,65,0), rgba(62,157,65,0.7)); width: 40%; }
.streaks i:nth-child(1) { top: 10%; } .streaks i:nth-child(2) { top: 38%; width: 55%; } .streaks i:nth-child(3) { top: 62%; width: 30%; } .streaks i:nth-child(4) { top: 84%; width: 48%; }
.show.moving .streaks { opacity: 1; }
.show.moving .streaks i { animation: streak 650ms ease-out infinite; }
.show.moving .streaks i:nth-child(2) { animation-delay: 120ms; } .show.moving .streaks i:nth-child(3) { animation-delay: 240ms; } .show.moving .streaks i:nth-child(4) { animation-delay: 60ms; }
@keyframes streak { from { transform: translateX(120%); opacity: 0; } 30% { opacity: 1; } to { transform: translateX(-140%); opacity: 0; } }
.show-bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.arrow { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease; touch-action: manipulation; }
.arrow svg { width: 20px; height: 20px; }
.arrow:active { transform: scale(0.9); }
@media (hover: hover) and (pointer: fine) { .arrow:hover { background: var(--action); color: #fff; border-color: var(--action); } }
.show-label { min-width: 15em; text-align: center; text-decoration: none; color: var(--ink); display: grid; gap: 2px; }
.show-label b { font-family: var(--display); font-size: 1.45rem; line-height: 1.1; }
.show-label span { color: var(--action); font-weight: 600; }
.show-label.swap b, .show-label.swap span { animation: labelIn 520ms var(--ease-out); }
.show-label.swap span { animation-delay: 60ms; }
@keyframes labelIn { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } }
.show-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.show-dots i { width: 22px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.show-dots i.on::after { content: ""; position: absolute; inset: 0; background: var(--action); transform-origin: 0 50%; animation: fill var(--dur, 3600ms) linear forwards; }
.show.paused .show-dots i.on::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 860px) { .show { order: -1; } .show-label { min-width: 0; flex: 1; } }

/* Luce che segue il mouse nell'apertura */
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; left: var(--mx, 70%); top: var(--my, 40%); transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(143, 228, 146, 0.35), rgba(143, 228, 146, 0) 65%); pointer-events: none; transition: left 600ms var(--ease-out), top 600ms var(--ease-out); z-index: 0; }

/* Riflesso che passa sui pulsanti verdi */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%); transform: skewX(-18deg); z-index: -1; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .btn-primary::after { animation: shine 4.5s ease-in-out infinite; }
  @keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
}
.magnet { transition: transform 260ms var(--ease-out); }

/* Titoli di sezione con la linea che si disegna */
.head h2, .biz h2 { position: relative; padding-bottom: 14px; }
.head h2::after, .biz h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 5px; border-radius: 4px; background: var(--brand); transform-origin: 0 50%; }
.js .reveal .head h2::after, .js .head.reveal h2::after, .js .biz .reveal h2::after { transform: scaleX(0); transition: transform 800ms 250ms var(--ease-out); }
.js .head.reveal.in h2::after, .js .biz .reveal.in h2::after { transform: scaleX(1); }

/* Comparse più ricche per le schede */
.js .card.reveal { transform: translateY(40px) rotateX(10deg) scale(0.96); transform-origin: 50% 100%; }
.js .card.reveal.in { transform: none; }
.js .card.reveal figure img { opacity: 0; transform: translateX(-30px); transition: opacity 600ms 200ms ease, transform 900ms 200ms var(--ease-out); }
.js .card.reveal.in figure img { opacity: 1; transform: none; }

/* Le scelte del preventivo rimbalzano */
.choice:has(input:checked) b { color: var(--action); }
.choice.tick { animation: tick 360ms var(--ease-out); }
@keyframes tick { 40% { transform: scale(1.035); } }

/* Domande che si aprono morbide */
@media (prefers-reduced-motion: no-preference) { .faq details[open] p { animation: fadeUp 420ms var(--ease-out); } }

/* Pin dei contatti che pulsa */
.pin { position: relative; width: 54px; height: 54px; color: var(--action); margin-bottom: 14px; }
.pin svg { position: relative; z-index: 1; width: 54px; height: 54px; }
.pin i { position: absolute; left: 50%; bottom: 0; width: 34px; height: 12px; margin-left: -17px; border-radius: 50%; background: rgba(62,157,65,0.35); }
@media (prefers-reduced-motion: no-preference) {
  .pin svg { animation: bounce 2.4s ease-in-out infinite; }
  .pin i { animation: ripple 2.4s ease-out infinite; }
  @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  @keyframes ripple { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }
}

/* Officina: numeri che si accendono */
.js .shop.reveal div { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 600ms var(--ease-out); }
.js .shop.reveal.in div { opacity: 1; transform: none; }
.js .shop.reveal.in div:nth-child(2) { transition-delay: 120ms; } .js .shop.reveal.in div:nth-child(3) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) { .slide { transition: opacity 200ms ease; transform: none !important; filter: none !important; } }

/* ===== Promo Black Friday ===== */
.announce { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 10px 16px; background: #0a1a0f; color: #e6f3e7; text-decoration: none; font-size: 0.95rem; position: relative; overflow: hidden; }
.announce b { font-family: var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: #8fe492; }
.announce-dot { width: 8px; height: 8px; border-radius: 50%; background: #8fe492; box-shadow: 0 0 0 0 rgba(143,228,146,0.7); }
.announce-arrow { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .announce:hover .announce-arrow { transform: translateX(4px); } }
@media (prefers-reduced-motion: no-preference) {
  .announce-dot { animation: dot 1.8s ease-out infinite; }
  @keyframes dot { 70% { box-shadow: 0 0 0 9px rgba(143,228,146,0); } 100% { box-shadow: 0 0 0 0 rgba(143,228,146,0); } }
  .announce::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -40%; background: linear-gradient(100deg, transparent, rgba(143,228,146,0.18), transparent); animation: sweep 5s ease-in-out infinite; }
  @keyframes sweep { 0%, 60% { left: -40%; } 100% { left: 120%; } }
}
@media (max-width: 560px) { .announce { font-size: 0.85rem; flex-wrap: wrap; } }

.promo { position: relative; overflow: hidden; background: radial-gradient(ellipse at 75% 55%, #143d20 0%, #0b2113 45%, #07140b 100%); color: #eef6ef; padding: clamp(56px, 8vw, 96px) 0; }
.promo-glow { position: absolute; width: 700px; height: 700px; right: 5%; top: 50%; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(107, 224, 111, 0.28), rgba(107, 224, 111, 0) 65%); filter: blur(30px); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .promo-glow { animation: breathe 5s ease-in-out infinite; } @keyframes breathe { 50% { opacity: 0.55; transform: translateY(-50%) scale(1.12); } } }
.promo-in { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.promo-tag { color: #8fe492; font-weight: 600; letter-spacing: 0.04em; }
.promo-title { font-size: clamp(3.6rem, 10vw, 8rem); line-height: 0.88; text-transform: uppercase; margin: 10px 0 22px; padding: 0; }
.promo-title::after { display: none; }
.promo-title span { display: block; }
.promo-title span:last-child { color: transparent; -webkit-text-stroke: 2px #8fe492; }
@media (prefers-reduced-motion: no-preference) {
  .promo-title span:last-child { background: linear-gradient(90deg, #8fe492 0 0) left / 0% 100% no-repeat; -webkit-background-clip: text; background-clip: text; transition: background-size 1.4s 400ms var(--ease-out); }
  .promo-title.in span:last-child { background-size: 100% 100%; }
}
.promo-text { font-size: 1.15rem; color: #c3d8c6; max-width: 32em; }
.countdown { display: flex; gap: 10px; margin: 28px 0 30px; }
.countdown div { min-width: 78px; padding: 14px 10px 10px; text-align: center; border-radius: 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(143,228,146,0.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.countdown b { display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.countdown b.flip { animation: flip 420ms var(--ease-out); }
@keyframes flip { from { transform: translateY(-40%) rotateX(70deg); opacity: 0.2; } }
.countdown span { font-size: 0.8rem; color: #a9c4ac; }
.btn-bf { background: #6be06f; color: #0b140c; }
@media (hover: hover) and (pointer: fine) { .btn-bf:hover { background: #8fe492; } }
.promo-visual { position: relative; }
.promo-visual img { width: 100%; max-width: 560px; margin-left: auto; }
@media (prefers-reduced-motion: no-preference) { .promo-visual img { animation: hover3d 6s ease-in-out infinite; } @keyframes hover3d { 0%, 100% { transform: perspective(1000px) rotateY(-6deg) translateY(0); } 50% { transform: perspective(1000px) rotateY(6deg) translateY(-12px); } } }
@media (max-width: 860px) { .promo-in { grid-template-columns: 1fr; } .promo-visual { order: -1; } .promo-visual img { margin: 0 auto; max-width: 380px; } .countdown div { min-width: 0; flex: 1; } .countdown b { font-size: 2rem; } }

/* ===== Configuratore ===== */
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 22px; }
.tabs button { position: relative; z-index: 1; border: 0; background: transparent; font: 600 1rem var(--body); color: var(--muted); padding: 11px 22px; border-radius: 999px; cursor: pointer; min-height: 44px; transition: color 220ms ease; }
.tabs button[aria-selected="true"] { color: #fff; }
.tab-ink { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--action); transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), width 420ms cubic-bezier(0.22, 1, 0.36, 1); }
.panel { animation: panelIn 520ms var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } }

.picker { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 14px; margin: 0 -4px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.pick { flex: 0 0 auto; width: 138px; scroll-snap-align: start; border: 1.5px solid var(--line); background: var(--surface); border-radius: 16px; padding: 8px 8px 10px; cursor: pointer; text-align: center; font: inherit; color: var(--ink); transition: transform 200ms var(--ease-out), border-color 200ms ease, box-shadow 200ms ease; }
.pick img { width: 100%; height: 78px; object-fit: contain; transition: transform 400ms var(--ease-out); }
.pick b { display: block; font-family: var(--display); font-size: 1rem; line-height: 1.1; margin-top: 4px; }
.pick span { display: block; font-size: 0.8rem; color: var(--muted); }
.pick[aria-checked="true"] { border-color: var(--action); box-shadow: 0 10px 24px rgba(42,122,46,0.18); background: #f2f9f1; }
.pick[aria-checked="true"] img { transform: scale(1.08) translateY(-3px); }
.pick:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .pick:hover { transform: translateY(-3px); } .pick:hover img { transform: scale(1.08); } }

.cfg { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.cfg-stage-wrap { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 22px 22px; overflow: hidden; }
.cfg-stage { position: relative; overflow: hidden; aspect-ratio: 720 / 500; perspective: 1200px; display: grid; place-items: center; }
.cfg-stage .podium { bottom: 2%; }
.cfg-ring { position: absolute; left: 15%; width: 70%; aspect-ratio: 1; bottom: -26%; border-radius: 50%; border: 2px dashed rgba(62,157,65,0.45); transform: scaleY(0.2) rotate(0deg); }
@media (prefers-reduced-motion: no-preference) { .cfg-ring { animation: spinring 14s linear infinite; } @keyframes spinring { to { transform: scaleY(0.2) rotate(360deg); } } }
#cfg-img { position: relative; z-index: 1; width: 92%; height: auto; filter: drop-shadow(0 24px 22px rgba(20,32,23,0.2)); }
#cfg-img.leave { animation: leave 380ms cubic-bezier(0.55, 0, 1, 0.45) forwards; }
#cfg-img.enter { animation: enter 900ms cubic-bezier(0.22, 1, 0.36, 1); }
#cfg-img.recolor { animation: recolor 640ms cubic-bezier(0.77, 0, 0.175, 1); }
@keyframes leave { to { transform: translateX(-60%) rotateY(60deg) scale(0.8); opacity: 0; filter: blur(6px); } }
@keyframes enter { 0% { transform: translateX(60%) rotateY(-300deg) scale(0.7); opacity: 0; filter: blur(8px); } 60% { opacity: 1; filter: none; } 100% { transform: none; } }
@keyframes recolor { 0% { transform: none; } 45% { transform: rotateY(90deg) scale(0.94); filter: brightness(1.6); } 55% { transform: rotateY(-90deg) scale(0.94); filter: brightness(1.6); } 100% { transform: none; } }
.cfg-id { text-align: center; }
.cfg-brand { color: var(--action); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.cfg-id h3 { font-size: 2.2rem; }
.cfg-specs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.cfg-specs div { background: var(--bg); border-radius: 12px; padding: 8px 14px; min-width: 92px; }
.cfg-specs dt { font-size: 0.78rem; color: var(--muted); }
.cfg-specs dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.cfg-id.swap > * { animation: labelIn 520ms var(--ease-out) both; }
.cfg-id.swap > *:nth-child(2) { animation-delay: 60ms; } .cfg-id.swap > *:nth-child(3) { animation-delay: 120ms; }

.cfg-steps { display: grid; gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: grid; gap: 20px; }
.legend-val { font-family: var(--body); font-weight: 500; font-size: 0.95rem; color: var(--muted); margin-left: 8px; }
.swatches.big button { width: 38px; height: 38px; border-width: 3px; }
.cfg .choices { grid-template-columns: 1fr; }
.choice small { display: block; color: var(--muted); font-size: 0.82rem; }
.choice.na b { font-family: var(--body); font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.choice.enter-anim { animation: fadeUp 420ms var(--ease-out) both; }

.cfg-sum { perspective: 1600px; }
.sum-flip { display: grid; transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1); transform-style: preserve-3d; }
.sum-face { grid-area: 1 / 1; background: var(--band); color: var(--band-ink); border-radius: 20px; padding: 24px; display: grid; gap: 14px; align-content: start; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 24px 50px rgba(16,26,18,0.25); }
.sum-back { transform: rotateY(180deg); }
.sum-flip.fin { transform: rotateY(180deg); }
.btn-ghost-dark { background: transparent; color: var(--band-ink); border-color: #3a4d3d; }
@media (hover: hover) and (pointer: fine) { .btn-ghost-dark:hover { border-color: var(--band-ink); } }
.back-link { justify-self: start; background: none; border: 0; color: #8fe492; font: 600 0.95rem var(--body); cursor: pointer; padding: 6px 0; min-height: 44px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid #33473a; background: transparent; color: var(--band-ink); font: 600 0.95rem var(--body); cursor: pointer; transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out); }
.seg button[aria-checked="true"] { background: #6be06f; color: #0b140c; border-color: #6be06f; }
.seg button:disabled { opacity: 0.35; cursor: not-allowed; }
.seg button:active:not(:disabled) { transform: scale(0.95); }
.fin-row { display: flex; justify-content: space-between; color: var(--band-muted); margin-top: 2px; }
.fin-row output { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--band-ink); }
.cfg-sum input[type="range"] { accent-color: #6be06f; width: 100%; }
#fin-taeg-tag { font-size: 0.75rem; color: #a9c4ac; }
.calc-big .roll { display: inline-block; animation: roll 420ms var(--ease-out); }
@keyframes roll { from { transform: translateY(-35%); opacity: 0.3; } }
@media (max-width: 960px) { .cfg { grid-template-columns: 1fr; } .cfg-stage-wrap { position: relative; top: 0; } }
@media (max-width: 560px) { .cfg-id h3 { font-size: 1.8rem; } .tabs { display: flex; } .tabs button { flex: 1; padding: 11px 10px; } }

/* ===== Sezione Ecobonus animata (attiva fino al 12/12/2026) ===== */
.eco { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, #eaf4e8 100%); }
.eco::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -380px; border-radius: 50%; background: radial-gradient(circle, rgba(107,224,111,0.22), rgba(107,224,111,0) 60%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .eco::before { animation: drift 16s ease-in-out infinite alternate; } }
.eco .wrap { position: relative; }
.eco-timer { display: flex; align-items: center; gap: 22px; background: var(--band); color: var(--band-ink); border-radius: 20px; padding: 18px 24px; margin: -6px 0 28px; box-shadow: 0 18px 40px rgba(16,26,18,0.18); }
.eco-rings { position: relative; width: 92px; height: 92px; flex: none; }
.eco-rings svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #23352a; stroke-width: 10; }
.ring-fg { fill: none; stroke: #6be06f; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
.eco-timer.in .ring-fg { stroke-dashoffset: 60; }
.eco-rings b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 1.6rem; color: #fff; }
.eco-txt { flex: 1; display: grid; gap: 6px; }
.eco-dead { color: var(--band-muted); }
.eco-dead b { color: #8fe492; }
.eco-left { font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1; }
.eco-left span { display: inline-block; min-width: 1.15em; }
.eco-left .tickd { animation: flip 420ms var(--ease-out); }
.eco-bar { height: 8px; border-radius: 8px; background: #23352a; overflow: hidden; }
.eco-bar i { display: block; height: 100%; width: 100%; border-radius: 8px; background: linear-gradient(90deg, #f2b13a, #6be06f); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-reduced-motion: no-preference) { .eco-bar i { background-size: 200% 100%; animation: flow 3s linear infinite; } @keyframes flow { to { background-position: -200% 0; } } }
@media (max-width: 560px) { .eco-timer { gap: 14px; padding: 16px; } .eco-rings { width: 70px; height: 70px; } .eco-rings b { font-size: 1.25rem; } .eco-left { font-size: 1.5rem; } }

/* schede: prezzo barrato che si disegna, prezzo che scende, bollino che salta */
.eco .card figure { position: relative; }
.eco-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--action); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.05rem; padding: 6px 12px; border-radius: 999px; box-shadow: 0 8px 18px rgba(42,122,46,0.35); transform: scale(0) rotate(-12deg); transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.eco .card.in .eco-badge, .no-io .eco-badge { transform: scale(1) rotate(-6deg); transition-delay: 900ms; }
@media (prefers-reduced-motion: no-preference) { .eco .card.in .eco-badge { animation: wobble 3.6s 2.2s ease-in-out infinite; } @keyframes wobble { 0%, 86%, 100% { transform: scale(1) rotate(-6deg); } 90% { transform: scale(1.12) rotate(4deg); } 94% { transform: scale(1.05) rotate(-8deg); } } }
.eco .was s { position: relative; text-decoration: none; }
.eco .was s::after { content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px; background: #d2463a; transform-origin: 0 50%; transform: scaleX(0); transition: transform 500ms 350ms var(--ease-out); }
.eco .card.in .was s::after, .no-io .eco .was s::after { transform: scaleX(1); }
.eco .card figure::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.65) 48%, transparent 66%); transform: translateX(-120%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .eco .card.in figure::before { animation: cardshine 5.5s 1.4s ease-in-out infinite; } @keyframes cardshine { 0%, 72% { transform: translateX(-120%); } 100% { transform: translateX(120%); } } }
.eco .price.dropping { color: var(--action); }

/* ===== Officina in verde, contatori in evidenza ===== */
.shopband { position: relative; overflow: hidden; background: linear-gradient(135deg, #2a7a2e 0%, #1d5c22 55%, #154519 100%); color: #f1f8f1; }
.shop-glow { position: absolute; width: 760px; height: 760px; left: -220px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(143,228,146,0.35), rgba(143,228,146,0) 62%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .shop-glow { animation: drift 15s ease-in-out infinite alternate; } }
.shopband .wrap { position: relative; }
.shopband .head p, .shopband .note { color: #cfe8d0; }
.shopband .head h2::after { background: #8fe492; }
.counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 44px; }
.counter { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: center; padding: 24px 28px; border-radius: 22px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow: hidden; }
.counter svg { grid-row: span 2; width: 58px; height: 58px; padding: 12px; border-radius: 16px; background: #8fe492; color: #123d16; box-sizing: content-box; }
.counter strong { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 0.95; color: #fff; }
.counter > span { color: #d9f0da; font-size: 1.05rem; }
.counter::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.18) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .counters.in .counter::after { animation: cardshine 4.8s 1s ease-in-out infinite; }
  .counters.in .counter:nth-child(2)::after { animation-delay: 2.2s; }
  .counters.in .counter svg { animation: iconpop 700ms 300ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
  .counters.in .counter:nth-child(2) svg { animation-delay: 450ms; }
  @keyframes iconpop { from { transform: scale(0) rotate(-20deg); } }
}
.shop-photos { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.shop-photos img { width: 170px; height: 128px; object-fit: cover; border-radius: 14px; border: 3px solid rgba(255,255,255,0.85); box-shadow: 0 12px 26px rgba(0,0,0,0.25); transition: transform 300ms var(--ease-out), box-shadow 300ms ease; }
.shop-photos img:nth-child(odd) { transform: rotate(-2deg); } .shop-photos img:nth-child(even) { transform: rotate(2deg); }
.js .shop-photos img.reveal.in:nth-child(odd) { transform: rotate(-2deg); } .js .shop-photos img.reveal.in:nth-child(even) { transform: rotate(2deg); }
.js .shop-photos img.reveal:nth-child(2) { transition-delay: 90ms; } .js .shop-photos img.reveal:nth-child(3) { transition-delay: 180ms; } .js .shop-photos img.reveal:nth-child(4) { transition-delay: 270ms; }
@media (hover: hover) and (pointer: fine) { .shop-photos img:hover { transform: rotate(0) scale(1.25) !important; z-index: 2; box-shadow: 0 20px 40px rgba(0,0,0,0.35); transition-delay: 0ms; } }
@media (max-width: 700px) { .counters { grid-template-columns: 1fr; } .counter { padding: 18px 20px; } .counter svg { width: 44px; height: 44px; padding: 10px; } .shop-photos img { width: calc(50% - 6px); height: 120px; } }

/* Link al listino officina in PDF */
.dl { display: inline-flex; align-items: center; gap: 16px; margin-top: 30px; padding: 14px 24px 14px 14px; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 16px 34px rgba(0,0,0,0.22); transition: transform 220ms var(--ease-out), box-shadow 220ms ease; }
.dl-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--action); color: #fff; display: grid; place-items: center; flex: none; }
.dl-ico svg { width: 26px; height: 26px; }
.dl-txt b { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.1; }
.dl-txt small { color: var(--muted); font-size: 0.9rem; }
.dl:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .dl:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(0,0,0,0.28); } }
@media (prefers-reduced-motion: no-preference) { .dl-ico svg { animation: nudge 2.2s ease-in-out infinite; } @keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 75% { transform: translateY(4px); } } }
.shopband .note { margin-top: 16px; }
