﻿/* GallettiStudio v2 - stile base + header + hero.
   Regole: nessuno stile scritto dentro l'HTML, animazioni solo transform/opacity,
   tutte le animazioni dentro prefers-reduced-motion: no-preference. */

:root {
  --ink: #17221d;
  --muted: #5a6660;
  --line: #d9ddd3;
  --mint-50: #e7eeea;
  --mint-100: #dbe8e4;
  --mint-150: #c9ddd8;
  --mint-200: #c3dfd6;
  --brand: #117a68;
  --brand-deep: #285156;   /* verde profondo: fasce a tutta larghezza con testo bianco */
  --paper: #f4f2eb;        /* carta calda al posto del bianco puro */
  --sun: #e2a52e;          /* larice dorato: riservato alle AZIONI (pulsanti) e a pochi dettagli */
  --white: #ffffff;
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--white); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--mint-200); color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
body.menu-open { overflow: hidden; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--ink); color: var(--white); border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  /* Sfondo quasi pieno, senza sfocatura (backdrop-filter): la sfocatura costa molto sui telefoni e faceva scattare l'apertura della home. */
  background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line);
}
.header-in { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand-light { font-weight: 500; }
.nav-desktop ul { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-desktop a { display: block; padding: 10px 14px; font-size: 15px; font-weight: 500; border-radius: 8px; }
.nav-desktop a:hover { background: rgba(23, 34, 29, 0.06); }
.nav-desktop a[aria-current="page"] { background: var(--mint-50); }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px;
  border-radius: 999px; background: var(--mint-100); color: var(--ink); font-size: 15px; font-weight: 500;
}
.pill:hover { background: var(--mint-150); }
.pill-ico { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--white); display: flex; align-items: center; justify-content: center; flex: none; }
.pill-lg { gap: 14px; padding: 10px 10px 10px 24px; font-size: 16px; }
.pill-ico-lg { width: 38px; height: 38px; }

.menu-toggle, .menu-close {
  width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  align-items: center; justify-content: center; font: inherit;
}
.menu-toggle { display: none; background: var(--mint-100); color: var(--ink); }
.menu-close { display: flex; background: var(--brand); color: var(--white); }

/* Senza JavaScript il menu resta una lista visibile; con JavaScript su schermi stretti diventa pulsante + menu a tutto schermo. */
@media (max-width: 919px) {
  .js .nav-desktop, .js .nav-cta { display: none; }
  .js .menu-toggle { display: flex; }
}

/* ---------- Menu mobile (sfondo SOLIDO, testo scuro: leggibile) ---------- */
.menu-mobile {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  padding: 16px var(--gutter) 28px; background: var(--mint-100); color: var(--ink);
  visibility: hidden; opacity: 0; overflow-y: auto;
}
.menu-mobile.is-open { visibility: visible; opacity: 1; }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.menu-mobile nav { margin-top: 40px; }
.menu-mobile nav a {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 0;
  border-bottom: 1px solid rgba(23, 34, 29, 0.18);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 9vw, 40px); letter-spacing: -0.03em;
}
.menu-mobile .num { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--brand); }
.menu-cta {
  margin-top: auto; padding: 18px; border-radius: 999px; text-align: center;
  background: var(--ink); color: var(--white); font-weight: 600; font-size: 17px;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 7vw, 104px); }
.hero > .wrap { position: relative; z-index: 1; }
/* Il marchio "G" in grande, colorato di menta tramite maschera: decorazione, non contenuto. */
.hero-mark {
  position: absolute; right: -4%; top: 50%; width: clamp(260px, 36vw, 520px); aspect-ratio: 309 / 328;
  transform: translateY(-50%); opacity: 0.1; pointer-events: none;   /* appena intravisibile */
  /* immagine gia' colorata di menta (niente maschera, che costa piu' risorse) */
  background: url(../assets/logo-g-menta.webp) center / contain no-repeat;
}
.hero-title {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 6.6vw, 96px); line-height: 0.98; letter-spacing: -0.05em;
}
.line { display: block; }
.line-soft { color: var(--muted); font-weight: 500; }
.line-brand { color: var(--brand); }

/* Ogni parola sale da dietro una "maschera" (overflow nascosto). Il padding evita di tagliare accenti e code delle lettere. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.08em 0 0.12em; margin: -0.08em 0 -0.12em; }
.wi { display: inline-block; }
.mark { position: relative; isolation: isolate; }
.mark::after {
  content: ""; position: absolute; z-index: -1; left: 0.04em; right: 0.2em; bottom: 0.2em;
  height: 0.16em; border-radius: 2px; background: var(--mint-200); transform-origin: left center;
}
.dot { display: inline-block; }

.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; margin-top: clamp(40px, 6vw, 72px); }
.nb { white-space: nowrap; }
.hero-lead { flex: 1 1 320px; max-width: 460px; margin: 0; font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.link-u { padding: 6px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--brand); }
.link-u:hover { color: var(--brand); }

/* ---------- Fascia clienti ---------- */
.clients { border-block: 1px solid var(--line); background: var(--mint-50); }
.clients-in { display: flex; align-items: center; gap: 12px 32px; padding-block: 22px; flex-wrap: wrap; }
.clients-label { flex: none; max-width: 130px; margin: 0; font-size: 13px; line-height: 1.3; color: var(--muted); }
.marquee { flex: 1 1 320px; min-width: 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; max-width: 100%; }
.marquee-list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin: 0; padding: 0; list-style: none; }
.marquee-list li {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em;
}
.marquee-list li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.marquee-list[aria-hidden="true"] { display: none; }   /* la copia serve solo al movimento continuo */

/* ---------- Lavori (2 progetti) ---------- */
.works { padding: clamp(80px, 10vw, 140px) 0; scroll-margin-top: 72px; }
.works-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 clamp(32px, 4vw, 56px); }
.works-head h2 {
  margin: 0; max-width: 720px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.045em; text-wrap: balance;
}
.works-head h2 .soft { color: var(--muted); font-weight: 500; }
.works-all { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--ink); font-size: 16px; font-weight: 500; }
.works-all:hover { color: var(--brand); border-color: var(--brand); }
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.work { display: flex; flex-direction: column; gap: 20px; }
.work-shot { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--mint-50); aspect-ratio: 16 / 10; }
.work-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.work-cat { margin: 0; font-size: 13px; color: var(--muted); }
.work h3 { margin: 6px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.035em; }
.work-desc { margin: 12px 0 0; max-width: 34em; font-size: 16px; line-height: 1.6; }
.work-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; font-weight: 500; }
.work-link:hover { color: var(--brand); }
@media (max-width: 760px) { .works-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Servizi ---------- */
.services { background: var(--ink); color: var(--white); padding: clamp(80px, 10vw, 140px) 0; scroll-margin-top: 72px; }
.services-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; margin: 0 0 clamp(40px, 5vw, 64px); }
.services-head h2 {
  margin: 0; max-width: 680px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.045em; text-wrap: balance;
}
.services-side { flex: 0 1 380px; display: grid; gap: 20px; justify-items: start; }
.services-side p { margin: 0; font-size: 17px; color: rgba(236, 248, 244, 0.78); }
.services-all { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--mint-200); font-size: 16px; font-weight: 500; color: var(--white); }
.services-all:hover { color: var(--mint-200); }
.svc-list { border-top: 1px solid rgba(236, 248, 244, 0.16); }
.svc {
  display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.4fr) 170px;
  gap: 10px 32px; align-items: baseline; padding: 28px 8px; border-bottom: 1px solid rgba(236, 248, 244, 0.16);
}
.svc-n { font-size: 14px; font-weight: 500; color: var(--mint-200); }
.svc-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.035em; }
.svc-desc { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(236, 248, 244, 0.78); }
.svc-tag { font-size: 13px; color: rgba(236, 248, 244, 0.65); text-align: right; }
@media (hover: hover) {
  .svc:hover { background: rgba(191, 240, 227, 0.06); }
  .svc:hover .svc-title { color: var(--mint-200); }
}
@media (max-width: 860px) {
  .svc { grid-template-columns: 40px minmax(0, 1fr); padding: 24px 0; }
  .svc-desc, .svc-tag { grid-column: 2; }
  .svc-tag { text-align: left; }
}

/* ---------- Recensioni Google ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.reviews { background: var(--mint-50); border-block: 1px solid var(--line); padding: clamp(80px, 10vw, 140px) 0; scroll-margin-top: 72px; }
.reviews-body { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6vw, 96px); }
.rating { flex: 1 1 260px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.rating-score { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(80px, 9vw, 128px); line-height: 0.9; letter-spacing: -0.06em; }
.stars { display: flex; gap: 4px; font-size: 18px; letter-spacing: 2px; color: #b9791a; }
.rating-label { margin: 0; font-size: 15px; color: var(--muted); }
.rating-link { display: inline-block; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 15px; font-weight: 500; }
.rating-link:hover { color: var(--brand); border-color: var(--brand); }
.quotes { flex: 2.4 1 520px; min-width: 0; display: flex; flex-direction: column; }
.quote { margin: 0; padding: 32px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 40px; }
.quote blockquote { flex: 1 1 420px; margin: 0; }
.quote blockquote p {
  margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.35; letter-spacing: -0.02em; text-wrap: pretty;
  font-size: clamp(19px, 1.6vw, 22px);
}
.quote:first-child blockquote p { font-size: clamp(22px, 2.2vw, 30px); }
.quote figcaption { flex: 0 0 170px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.quote figcaption .stars { font-size: 14px; margin-bottom: 4px; letter-spacing: 2px; }

/* ---------- Domande frequenti ---------- */
.faq { padding: clamp(80px, 10vw, 140px) 0; scroll-margin-top: 72px; }
.faq-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px clamp(40px, 6vw, 96px); }
.faq-title {
  flex: 1 1 300px; margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.045em;
}
.faq-list { flex: 2 1 520px; min-width: 0; border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.3; letter-spacing: -0.02em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }
.faq-ico {
  flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; background: transparent;
}
.faq-item[open] .faq-ico { background: var(--mint-200); border-color: var(--mint-200); transform: rotate(45deg); }
.faq-a { margin: 0; padding: 0 56px 28px 0; max-width: 640px; font-size: 16px; line-height: 1.7; color: rgba(23, 34, 29, 0.86); }

@media (max-width: 560px) { .faq-a { padding-right: 0; } }

/* ---------- Footer (con invito al contatto) ---------- */
.footer { margin-top: clamp(40px, 6vw, 80px); background: var(--ink); color: var(--white); }
.footer-in { padding-block: clamp(56px, 7vw, 88px) 88px; }   /* spazio sotto: il lucchetto dei cookie (fisso in basso a sinistra) non copre mai il testo */

/* Invito al contatto: prima riga del footer */
.footer-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px;
  padding-bottom: clamp(40px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid rgba(236, 248, 244, 0.16);
}
.footer-cta h2 {
  margin: 0; max-width: 16em; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance;
}
.footer-cta h2 span { color: var(--mint-200); }
.footer-cta-act { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-cta-btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 10px 10px 10px 26px;
  border-radius: 999px; background: var(--white); color: var(--ink); font-size: 17px; font-weight: 600;
}
.footer-cta-btn:hover { background: var(--mint-100); }
.footer-cta-btn .pill-ico { width: 42px; height: 42px; }
.footer-cta-note { margin: 0; font-size: 14px; color: rgba(236, 248, 244, 0.78); }

.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer-brand { flex: 1 1 300px; max-width: 380px; }
.footer-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.footer-logo img { filter: invert(1); }
.footer-logo-light { font-weight: 500; }
.footer-brand p { margin: 20px 0 0; font-size: 15px; line-height: 1.6; color: rgba(236, 248, 244, 0.78); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6vw, 96px); }
.footer-h { margin: 0 0 16px; font-family: var(--font-body); font-weight: 500; font-size: 13px; letter-spacing: 0; color: var(--mint-200); }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-col a:hover { color: var(--mint-200); }
.footer-col li:not(:has(a)) { color: rgba(236, 248, 244, 0.78); }
.footer-word {
  margin: clamp(56px, 7vw, 100px) 0 0; padding-top: 0.05em; overflow: hidden; white-space: nowrap; user-select: none;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 14vw, 196px); line-height: 1; letter-spacing: -0.065em; opacity: 0.1;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(236, 248, 244, 0.16); font-size: 13px; color: rgba(236, 248, 244, 0.78);
}
.footer-bottom ul { display: flex; gap: 24px; margin-left: auto; }   /* il link Privacy policy sta sempre a destra, anche quando va a capo su telefono */
.footer-bottom a:hover { color: var(--mint-200); }
.footer a:focus-visible { outline-color: var(--mint-200); }

/* ---------- Preloader a particelle (si vede solo se boot.js mette "is-preloading") ---------- */
.preloader {
  display: none; position: fixed; inset: 0; z-index: 200; overflow: hidden;
  background: var(--ink); color: var(--white);
  touch-action: none; overscroll-behavior: contain;
  will-change: opacity;   /* il livello esiste gia' prima della dissolvenza: niente scatto quando parte */
}
html.is-preloading .preloader, .preloader.is-out { display: block; }
/* Niente blocco dello scroll con overflow:hidden: farebbe comparire/sparire la barra di scorrimento proprio quando la home si apre (scatto). Lo scroll e' bloccato da preloader.js. */
.preloader::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(60, 201, 176, 0.2), rgba(60, 201, 176, 0) 55%);
}
.preloader-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.preloader-name {
  position: absolute; left: 0; right: 0; top: 66%; margin: 0; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--mint-200);
}
.preloader-name span { font-weight: 500; }
.preloader-skip {
  position: absolute; right: var(--gutter); bottom: 24px; padding: 10px 18px; cursor: pointer;
  border: 1px solid rgba(191, 240, 227, 0.4); border-radius: 999px; background: transparent;
  color: var(--mint-200); font: inherit; font-size: 14px;
}
.preloader-skip:hover { border-color: var(--mint-200); }
.preloader-skip:focus-visible { outline-color: var(--mint-200); }
.preloader.is-out { opacity: 0; pointer-events: none; transition: opacity 1.4s ease-in-out; }
.preloader.is-out.is-out-fast { transition-duration: 0.3s; }

/* ---------- Movimento (solo se l'utente non ha chiesto di ridurlo) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* La hero aspetta: finche' il preloader e' attivo le sue animazioni sono in pausa e partono quando la home si apre. */
  html.is-preloading .wi, html.is-preloading .mark::after, html.is-preloading .dot,
  html.is-preloading .fu1, html.is-preloading .fu2, html.is-preloading .hero-mark { animation-play-state: paused; }
  /* I livelli della hero vengono preparati prima che le animazioni partano (e per qualche secondo dopo), cosi' l'apertura della home non scatta. */
  html.is-preloading .wi, html.is-preloading .fu1, html.is-preloading .fu2, html.is-preloading .hero-mark,
  html.is-opening .wi, html.is-opening .fu1, html.is-opening .fu2, html.is-opening .hero-mark { will-change: transform, opacity; }
  .preloader-name { animation: fade-up 0.9s var(--ease-out) 1900ms both; }
  .preloader::before { animation: glow 2.4s ease-out 600ms both; }
  @keyframes glow { from { opacity: 0; } to { opacity: 1; } }

  .wi { animation: rise 0.9s var(--ease-out) both; }
  .d1 .wi { animation-delay: 150ms; } .d2 .wi { animation-delay: 225ms; } .d3 .wi { animation-delay: 300ms; }
  .d4 .wi { animation-delay: 375ms; } .d5 .wi { animation-delay: 480ms; } .d6 .wi { animation-delay: 555ms; }
  .d7 .wi { animation-delay: 630ms; } .d8 .wi { animation-delay: 705ms; } .d9 .wi { animation-delay: 840ms; }
  .mark::after { animation: draw-loop 3s linear 1250ms infinite both; }
  .dot { animation: pop-loop 3s linear 1250ms infinite both; }
  .fu1, .fu2 { animation: fade-up 0.8s var(--ease-out) both; }
  .fu1 { animation-delay: 1000ms; } .fu2 { animation-delay: 1150ms; }
  .hero-mark { animation: mark-in 1.8s ease-out 300ms both; }

  html { scroll-behavior: smooth; }

  /* Comparsa leggera allo scroll: gli elementi con data-reveal salgono di poco e si accendono quando entrano nello schermo.
     Lo stato nascosto esiste solo se boot.js ha messo la classe "reveal" (JavaScript attivo e IntersectionObserver disponibile). */
  .reveal [data-reveal] { opacity: 0; transform: translateY(24px); }
  .reveal [data-reveal].is-in {
    opacity: 1; transform: none;
    transition: opacity 0.8s var(--ease-out) var(--rd, 0ms), transform 0.8s var(--ease-out) var(--rd, 0ms), background-color 0.2s ease;
  }
  .svc:nth-child(2) { --rd: 60ms; } .svc:nth-child(3) { --rd: 120ms; } .svc:nth-child(4) { --rd: 180ms; }
  .svc:nth-child(5) { --rd: 240ms; } .svc:nth-child(6) { --rd: 300ms; } .svc:nth-child(7) { --rd: 360ms; }
  .services-side { --rd: 100ms; }
  .quote:nth-child(2) { --rd: 80ms; } .quote:nth-child(3) { --rd: 160ms; }

  /* Fascia clienti: scorre piano; si ferma passandoci sopra o con la tastiera. Con "riduci movimento" resta ferma e va a capo. */
  /* Bordi sfumati della fascia con due veli (niente maschera sul contenuto che scorre: piu' leggero) */
  .marquee { position: relative; }
  .marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8%; z-index: 1; pointer-events: none; }
  .marquee::before { left: 0; background: linear-gradient(90deg, var(--mint-50), rgba(239, 246, 243, 0)); }
  .marquee::after { right: 0; background: linear-gradient(270deg, var(--mint-50), rgba(239, 246, 243, 0)); }
  .marquee-track { max-width: none; animation: marquee 55s linear infinite; }
  .marquee-list { flex-wrap: nowrap; flex: none; }
  .marquee-list[aria-hidden="true"] { display: flex; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  .work-shot img { transition: transform 0.6s var(--ease-out); }
  .work-shot:hover img { transform: scale(1.03); }
  .work:nth-child(2) { --rd: 100ms; }

  .faq-ico { transition: transform 0.35s var(--ease-out), background-color 0.2s ease; }
  .faq-item[open] .faq-a { animation: fade-up 0.45s var(--ease-out) both; }
  .faq-item:nth-child(2) { --rd: 50ms; } .faq-item:nth-child(3) { --rd: 100ms; } .faq-item:nth-child(4) { --rd: 150ms; }
  .faq-item:nth-child(5) { --rd: 200ms; } .faq-item:nth-child(6) { --rd: 250ms; }

  .footer-cta-btn { transition: background-color 0.16s ease, transform 0.16s var(--ease-out); }
  .footer-cta-btn:active { transform: scale(0.97); }
  .footer-cta-btn .pill-ico { transition: transform 0.2s var(--ease-out); }
  .footer-cta-btn:hover .pill-ico { transform: translateX(3px); }
  .footer-cta-act { --rd: 100ms; }

  .pill:active { transform: scale(0.97); }
  .pill { transition: background-color 0.16s ease, transform 0.16s var(--ease-out); }
  .pill-ico { transition: transform 0.2s var(--ease-out); }
  .pill:hover .pill-ico { transform: translateX(3px); }
  .link-u { transition: color 0.16s ease; }
  .menu-mobile { transition: opacity 0.25s var(--ease-out), visibility 0s linear 0.25s; }
  .menu-mobile.is-open { transition-delay: 0s; }
  .menu-mobile.is-open nav li { animation: fade-up 0.5s var(--ease-out) both; }
  .menu-mobile.is-open nav li:nth-child(1) { animation-delay: 60ms; } .menu-mobile.is-open nav li:nth-child(2) { animation-delay: 110ms; }
  .menu-mobile.is-open nav li:nth-child(3) { animation-delay: 160ms; } .menu-mobile.is-open nav li:nth-child(4) { animation-delay: 210ms; }

  @keyframes rise { from { transform: translateY(110%); } to { transform: translateY(0); } }
  /* Ciclo di 3 secondi: la striscia si disegna fino al punto (0,8 s), resta ferma, sfuma e riparte. */
  @keyframes draw-loop {
    0%   { transform: scaleX(0); opacity: 1; animation-timing-function: var(--ease-out); }
    27%  { transform: scaleX(1); opacity: 1; }
    85%  { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(1); opacity: 0; }
  }
  /* Stesso ciclo di 3 secondi della striscia: il punto rimbalza nell'istante in cui la striscia lo raggiunge (27% = 0,8 s). */
  @keyframes pop-loop {
    0%   { transform: translateY(0); }
    26%  { transform: translateY(0); animation-timing-function: var(--ease-out); }
    31%  { transform: translateY(-0.07em); animation-timing-function: var(--ease-out); }
    42%  { transform: translateY(0); }
    100% { transform: translateY(0); }
  }
  @keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes mark-in { from { opacity: 0; transform: translateY(-46%); } to { opacity: 0.1; transform: translateY(-50%); } }
}



/* ---------- Fascia prezzo e rassicurazione (tra Servizi e Recensioni) ---------- */
.assure { padding: clamp(56px, 7vw, 96px) 0; }
.assure-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.assure-head h2 {
  margin: 0; max-width: 18em; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 3.8vw, 52px); line-height: 1.05; letter-spacing: -0.045em; text-wrap: balance;
}
.assure-price { color: var(--brand); }
.assure-tax { display: inline-block; font-size: max(14px, 0.42em); font-weight: 500; letter-spacing: -0.01em; color: var(--muted); white-space: nowrap; }
.assure-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 3vw, 48px); margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; list-style: none; }
.assure-list li { display: grid; gap: 8px; align-content: start; padding-top: 22px; border-top: 1px solid var(--ink); }
.assure-ico { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--mint-200); color: var(--brand); }
.assure-list strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.25; letter-spacing: -0.02em; }
.assure-list li > span:last-child { font-size: 16px; line-height: 1.55; color: var(--muted); }
.assure-note { margin: 28px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .assure-list { grid-template-columns: minmax(0, 1fr); } }



/* =====================================================================
   VARIANTE COLORI (prova): meno piatto = carta calda, fasce verdi a tutta larghezza, accento ambra, un po' di profondita'.
   Solo colori e ombre: nessun cambio di layout. La cartella originale (sorgente) resta intatta.
   ===================================================================== */
html, body { background: var(--paper); }
.site-header { background: rgba(244, 242, 235, 0.96); }
.nav-desktop a[aria-current="page"] { background: var(--mint-100); }
.mark::after { background: var(--sun); height: 0.14em; }
.hero-mark { opacity: 0.16; }
.pill { background: var(--mint-150); }
.pill:hover { background: var(--mint-200); }

/* fascia clienti: verde profondo, testo bianco */
.clients { background: var(--brand-deep); border-block-color: var(--brand-deep); color: var(--white); }
.clients-label { color: rgba(255, 255, 255, 0.9); }
.marquee-list li::after { background: var(--sun); }

/* lavori: anteprime con un po' di profondita' */
.work-shot { box-shadow: 0 24px 48px -28px rgba(23, 34, 29, 0.45); border-color: rgba(23, 34, 29, 0.12); }
.work-link:hover, .works-all:hover { color: var(--brand-deep); }

/* servizi: scuro con un alone verde in alto a destra */
.services { background: radial-gradient(900px 520px at 88% -8%, rgba(17, 122, 104, 0.55), transparent 62%), var(--ink); }
.svc-n { color: var(--sun); }
.svc:hover .svc-title { color: var(--sun); }
.services-all { border-bottom-color: var(--sun); }
.services-all:hover { color: var(--sun); }

/* recensioni: verde profondo, testo bianco, stelle ambra */
.reviews { background: var(--brand-deep); border-block-color: var(--brand-deep); color: var(--white); }
.reviews .stars, .quote figcaption .stars { color: var(--sun); }
.rating-label, .quote figcaption { color: rgba(255, 255, 255, 0.92); }
.rating-link { border-bottom-color: var(--white); }
.rating-link:hover { color: var(--sun); border-color: var(--sun); }
.quote { border-top-color: rgba(255, 255, 255, 0.28); }

/* FAQ su carta, apertura in ambra */
.faq-item[open] .faq-ico { background: var(--sun); border-color: var(--sun); }
.faq-item summary:hover { color: var(--brand-deep); }
.faq-a { color: rgba(23, 34, 29, 0.88); }

/* footer: stesso alone verde */
.footer { background: radial-gradient(800px 460px at 12% 0%, rgba(17, 122, 104, 0.4), transparent 62%), var(--ink); }
.footer-cta h2 span { color: var(--sun); }

/* pagine interne e contatti */
.page-dot { box-shadow: 0 0 0 4px rgba(226, 165, 46, 0.35); background: var(--brand); }
.contact-card, .legal .brief { background: var(--mint-50); }

@media (prefers-reduced-motion: no-preference) {
  .marquee::before { background: linear-gradient(90deg, var(--brand-deep), rgba(40, 81, 86, 0)); }
  .marquee::after { background: linear-gradient(270deg, var(--brand-deep), rgba(40, 81, 86, 0)); }
}


/* =====================================================================
   PULSANTI DI AZIONE in ambra: l'unico colore caldo della pagina, quindi l'occhio ci arriva subito.
   Testo scuro su ambra = contrasto 8,9:1.
   ===================================================================== */
.pill, .footer-cta-btn, .menu-cta { background: var(--sun); color: var(--ink); box-shadow: 0 10px 22px -12px rgba(23, 34, 29, 0.55); }
.pill:hover, .footer-cta-btn:hover { background: #efb94a; }
.menu-cta:hover { background: #efb94a; }
.pill-ico { background: var(--ink); color: var(--white); }
.footer-cta-btn .pill-ico { background: var(--ink); }
.assure-price { color: var(--brand-deep); }


/* =====================================================================
   VARIANTE NATURA (ispirata a un paesaggio di montagna con lago e larici in autunno)
   abete scuro = testo e fasce scure | lago smeraldo = marchio | blu del lago profondo = fasce con testo bianco
   larice dorato = SOLO pulsanti e pochi dettagli | pietra e nebbia = sfondi
   ===================================================================== */
.reviews { background: linear-gradient(165deg, var(--brand-deep), #1b6a62); }
.clients { background: linear-gradient(90deg, var(--brand-deep), #1b6a62); }
.services { background: radial-gradient(1000px 560px at 85% -10%, rgba(17, 122, 104, 0.6), transparent 62%), radial-gradient(700px 500px at 0% 110%, rgba(40, 81, 86, 0.55), transparent 65%), var(--ink); }
