/* =========================================================================
   Personal Fitness Lab — foglio di stile unico
   I valori qui dentro derivano da DESIGN.md. Non inventare token nuovi:
   se serve un colore o una spaziatura, prima si aggiorna DESIGN.md.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Token
   ------------------------------------------------------------------------- */
:root {
  --pfl-teal-900: #0a3a44;
  --pfl-teal-800: #0f4e5a;
  --pfl-teal-700: #15697a;
  --pfl-teal-600: #1c8195;
  --pfl-teal-200: #b9dbe1;
  --pfl-teal-100: #e4f1f3;
  --pfl-lime-500: #d8df22;
  --pfl-lime-400: #e6eb57;
  --pfl-ink: #10242a;
  --pfl-muted: #4f6870;
  --pfl-line: #dce6e8;
  --pfl-bg: #ffffff;
  --pfl-bg-soft: #f4f8f8;
  --pfl-wa: #25d366;

  --font-display: "Avenir Next", "Futura", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-6: 24px;  --s-8: 32px;  --s-9: 40px;  --s-10: 48px;
  --s-12: 64px; --s-14: 88px; --s-16: 120px;

  --w-page: 1180px;
  --w-narrow: 820px;
  --w-text: 68ch;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --header-h: 72px;

  /* Una curva sola non basta: un ease-out su un elemento che esce lo fa partire
     lento, e la partenza lenta legge come esitazione. Entrate ed uscite vogliono
     curve opposte, gli stati reversibili (hover, focus) una simmetrica. */
  /* Pendenza iniziale ~1.8 invece di 3.5: la curva precedente partiva di
     scatto, un'energia da app di fitness. Qui si arriva spesso con dolore o
     con timore di muoversi, e anche l'interfaccia deve entrare con calma. */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in: cubic-bezier(0.5, 0, 1, 0.6);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------------------
   2. Reset e base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--pfl-bg);
  color: var(--pfl-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--pfl-teal-700); text-underline-offset: 3px; }
a:hover { color: var(--pfl-teal-800); }

:focus-visible {
  outline: 3px solid var(--pfl-teal-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Il focus su fondo teal deve restare visibile: si passa al lime. */
.hero :focus-visible,
.band :focus-visible,
.site-footer :focus-visible,
.trust :focus-visible,
.site-nav :focus-visible { outline-color: var(--pfl-lime-500); }

::selection { background: var(--pfl-lime-500); color: var(--pfl-teal-900); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--pfl-teal-900);
  color: #fff;
  padding: var(--s-3) var(--s-6);
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------------------
   3. Tipografia
   ------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pfl-teal-900);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.1;  letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.25; letter-spacing: -0.01em; }

p { margin: 0 0 var(--s-4); max-width: var(--w-text); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--pfl-muted);
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pfl-teal-600);
  margin-bottom: var(--s-3);
}

.band .eyebrow,
.hero .eyebrow { color: var(--pfl-lime-500); }

.section-head { max-width: var(--w-narrow); margin-bottom: var(--s-10); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }

/* -------------------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: var(--s-6);
}

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--soft { background: var(--pfl-bg-soft); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.grid { display: grid; gap: var(--s-6); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--sidebar { grid-template-columns: 1.15fr 0.85fr; gap: var(--s-12); align-items: start; }
}

.stack > * + * { margin-top: var(--s-4); }

/* -------------------------------------------------------------------------
   5. Bottoni
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: var(--s-3) var(--s-8);
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease-standard), transform 160ms var(--ease-standard),
              border-color 160ms var(--ease-standard), color 160ms var(--ease-standard);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }

.btn--primary { background: var(--pfl-teal-700); color: #fff; }
.btn--primary:hover { background: var(--pfl-teal-800); color: #fff; }

.btn--accent { background: var(--pfl-lime-500); color: var(--pfl-teal-900); }
.btn--accent:hover { background: var(--pfl-lime-400); color: var(--pfl-teal-900); }

.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: currentColor; }

.section .btn--ghost { color: var(--pfl-teal-700); }
.section .btn--ghost:hover { background: var(--pfl-teal-100); }

.btn--wa { background: var(--pfl-wa); color: #08351a; }
.btn--wa:hover { background: #1fbb59; color: #08351a; }

.btn--sm { min-height: 42px; padding: var(--s-2) var(--s-6); font-size: 0.94rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-8);
}
.btn-row--center { justify-content: center; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}
.arrow-link::after {
  content: "\2192";
  transition: transform 160ms var(--ease-standard);
}
.arrow-link:hover::after { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   6. Header e navigazione
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--pfl-line);
  transition: box-shadow 200ms var(--ease-standard);
}
.site-header[data-scrolled="true"] { box-shadow: 0 6px 24px rgba(10, 58, 68, 0.07); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--pfl-teal-700);
  flex-shrink: 0;
}
.brand__mark { width: 38px; height: auto; color: currentColor; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--pfl-teal-700);
  white-space: nowrap;
}
/* Il lime non è leggibile su bianco: nel wordmark su fondo chiaro si scurisce. */
.brand__name b { font-weight: 700; color: #8f9410; }

.site-nav { margin-left: auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: var(--s-2) 0;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--pfl-ink);
  text-decoration: none;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--pfl-lime-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease-standard);
}
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--pfl-teal-700); font-weight: 600; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--pfl-line);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--pfl-teal-900);
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms var(--ease-standard), background-color 120ms linear;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { content: ""; position: absolute; top: -6px; left: 0; }
.nav-toggle__bars::after  { content: ""; position: absolute; top: 6px; left: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 979px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--pfl-teal-900);
    padding: var(--s-8) var(--s-6) var(--s-10);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    /* Stato chiuso: questa transizione governa la *chiusura*, quindi ease-in. */
    transition: opacity 160ms var(--ease-in), transform 160ms var(--ease-in), visibility 160ms;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 200ms;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav__link {
    display: block;
    padding: var(--s-4) 0;
    font-size: 1.2rem;
    font-family: var(--font-display);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .site-nav__link[aria-current="page"] { color: var(--pfl-lime-500); }
  .site-nav__link::after { display: none; }
  .site-nav .btn { width: 100%; margin-top: var(--s-6); }
}

/* -------------------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--pfl-teal-700);
  color: #fff;
  padding-block: clamp(64px, 10vw, 132px);
}
.hero__deco {
  position: absolute;
  right: -6%;
  bottom: -24%;
  width: min(760px, 80%);
  opacity: 0.1;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 860px; }
.hero h1, .hero h2 { color: #fff; }

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-6);
}
.hero__title em {
  font-style: normal;
  color: var(--pfl-lime-500);
}
.hero__lead {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 60ch;
}
.hero__note {
  margin-top: var(--s-6);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero--compact { padding-block: clamp(52px, 7vw, 92px); }
.hero--compact .hero__title { font-size: clamp(2.1rem, 4.8vw, 3.4rem); }

.breadcrumb {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 var(--s-4);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.9); text-decoration: underline; }
.breadcrumb a:hover { color: var(--pfl-lime-500); }
.breadcrumb span { padding-inline: var(--s-2); }

/* Striscia di rassicurazione sotto l'hero */
.trust {
  background: var(--pfl-teal-900);
  color: rgba(255, 255, 255, 0.92);
  padding-block: var(--s-6);
}
.trust__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-10);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
.trust__list li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.trust__list li::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--pfl-lime-500);
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   8. Fascia teal (manifesto / CTA)
   ------------------------------------------------------------------------- */
.band {
  position: relative;
  overflow: hidden;
  background: var(--pfl-teal-700);
  color: #fff;
  padding-block: clamp(56px, 8vw, 104px);
}
.band--dark { background: var(--pfl-teal-900); }
.band h2, .band h3 { color: #fff; }
.band p { color: rgba(255, 255, 255, 0.88); }
.band__deco {
  position: absolute;
  left: -8%;
  top: -32%;
  width: min(620px, 70%);
  opacity: 0.09;
  pointer-events: none;
}
.band__inner { position: relative; z-index: 1; }

.manifesto {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #fff;
}
.manifesto em { font-style: normal; color: var(--pfl-lime-500); }

.manifesto-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.5;
}
.manifesto-list li {
  padding: var(--s-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}
.manifesto-list li:last-child { border-bottom: 0; }

/* -------------------------------------------------------------------------
   9. Metodo — 4 fasi
   ------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--s-6);
  counter-reset: step;
}
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  padding: var(--s-8) var(--s-6) var(--s-6);
  background: var(--pfl-bg);
  border: 1px solid var(--pfl-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -12px;
  right: 6px;
  font-family: var(--font-display);
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--pfl-teal-100);
  pointer-events: none;
}
.step h3 { position: relative; margin-bottom: var(--s-2); }
.step p { color: var(--pfl-muted); font-size: 0.99rem; margin: 0; }

/* -------------------------------------------------------------------------
   10. Card servizio
   ------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s-8);
  background: var(--pfl-bg);
  border: 1px solid var(--pfl-line);
  border-radius: var(--r-md);
  transition: transform 180ms var(--ease-standard), border-color 180ms var(--ease-standard);
}
.card:hover { transform: translateY(-4px); border-color: var(--pfl-teal-600); }
.card__icon {
  width: 44px; height: 44px;
  margin-bottom: var(--s-6);
  color: var(--pfl-teal-600);
}
.card h3 { margin-bottom: var(--s-3); }
.card p { color: var(--pfl-muted); flex-grow: 1; margin-bottom: var(--s-6); }
.card .arrow-link { color: var(--pfl-teal-700); }
/* Tutta la card diventa cliccabile, senza annidare link */
.card .arrow-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
}

/* -------------------------------------------------------------------------
   11. Liste con bullet "sole"
   ------------------------------------------------------------------------- */
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 720px) {
  .ticks--2col { grid-template-columns: repeat(2, 1fr); gap: var(--s-3) var(--s-8); }
}

.ticks li {
  position: relative;
  padding-left: var(--s-8);
  line-height: 1.6;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--pfl-lime-500);
  box-shadow: 0 0 0 4px rgba(216, 223, 34, 0.22);
}
.band .ticks li { color: rgba(255, 255, 255, 0.92); }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.pills li {
  padding: var(--s-2) var(--s-4);
  background: var(--pfl-teal-100);
  border-radius: var(--r-pill);
  font-size: 0.94rem;
  color: var(--pfl-teal-800);
  font-weight: 500;
}

/* -------------------------------------------------------------------------
   12. Blocco contatti
   ------------------------------------------------------------------------- */
.info-card {
  padding: var(--s-8);
  background: var(--pfl-bg);
  border: 1px solid var(--pfl-line);
  border-radius: var(--r-md);
}
.info-card + .info-card { margin-top: var(--s-6); }
.info-card h3 { margin-bottom: var(--s-4); }

.info-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
}
.info-list dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pfl-muted);
  margin-bottom: 2px;
}
.info-list dd { margin: 0; font-size: 1.05rem; }
.info-list a { font-weight: 600; text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.99rem;
}
.hours th,
.hours td {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--pfl-line);
  vertical-align: top;
}
.hours th { font-weight: 600; color: var(--pfl-ink); text-align: left; }
.hours td { color: var(--pfl-muted); text-align: right; }
.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 0; }

/* -------------------------------------------------------------------------
   12b. Badge store (app non ancora pubblicata)
   ------------------------------------------------------------------------- */
.badge-store {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-6);
  border: 1px solid var(--pfl-line);
  border-radius: var(--r-sm);
  color: var(--pfl-muted);
  background: var(--pfl-bg);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: default;
  user-select: none;
}
.badge-store + .badge-store { margin-top: var(--s-3); }

/* -------------------------------------------------------------------------
   13. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--pfl-teal-900);
  color: rgba(255, 255, 255, 0.78);
  padding-block: var(--s-14) var(--s-8);
  font-size: 0.97rem;
}
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: var(--s-4); }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: var(--pfl-lime-500); }
.site-footer p { color: rgba(255, 255, 255, 0.78); }

.footer-grid { display: grid; gap: var(--s-10); }
@media (min-width: 760px)  { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; } }

.site-footer .brand__mark { width: 46px; color: var(--pfl-lime-500); }
.site-footer .brand { color: #fff; margin-bottom: var(--s-4); }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name b { color: var(--pfl-lime-500); }

.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom p { color: rgba(255, 255, 255, 0.6); margin: 0; }

.social {
  display: flex;
  gap: var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  transition: background-color 160ms var(--ease-standard), border-color 160ms var(--ease-standard);
}
.social a:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--pfl-lime-500); }
.social svg { width: 20px; height: 20px; }

/* -------------------------------------------------------------------------
   14. Barra CTA mobile
   ------------------------------------------------------------------------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--pfl-line);
  /* Rientro: la barra torna utile, quindi arriva decelerando. */
  transition: transform 220ms var(--ease-out);
}
.mobile-cta .btn { flex: 1; min-height: 46px; padding-inline: var(--s-3); font-size: 0.95rem; }
/* Uscita: accelera e sparisce, senza esitare davanti ai contatti che copre. */
.mobile-cta[data-hidden="true"] {
  transform: translateY(110%);
  transition: transform 180ms var(--ease-in);
}

@media (max-width: 767px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 78px; }
}

/* -------------------------------------------------------------------------
   15. Reveal on scroll
   ------------------------------------------------------------------------- */
/* Senza JS il contenuto resta visibile: la classe .js-reveal la aggiunge main.js. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
/* Le due colonne entrano l'una verso l'altra: dà un verso alla riga, invece
   di farla comparire tutta dal basso come un blocco unico. */
.js-reveal [data-reveal="sinistra"] { transform: translate(-22px, 10px); }
.js-reveal [data-reveal="destra"]   { transform: translate(22px, 10px); }
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------------------------
   16. Animazioni Lottie
   ------------------------------------------------------------------------- */
.motion {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  margin-inline: auto;
  color: var(--pfl-teal-600);

  /* Lottie riscrive di continuo i tracciati SVG: il containment evita che
     ogni riscrittura invalidi stile e layout oltre il riquadro.

     Niente content-visibility: su Safari iOS il salto di rendering non si
     annullava al rientro e restava un riquadro vuoto al posto del disegno.
     Il lavoro fuori schermo è comunque già evitato lato JS, dove le
     animazioni fuori viewport non vengono ridisegnate e i loop sono in pausa.

     Niente will-change: qui il costo è di script e layout, non di
     compositing, e promuovere 8 layer peggiorerebbe solo la memoria. */
  contain: layout paint style;
}
.motion svg { display: block; width: 100%; height: 100%; }

/* La colonna di testo accanto è molto più alta dell'animazione: senza questo
   il disegno resta incollato in cima e la riga sembra sbilanciata. */
.motion-wrap { display: flex; align-items: center; justify-content: center; height: 100%; }

/* Avanzamento nella pagina. Niente transition: la barra deve stare incollata
   allo scroll, non inseguirlo. */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 200;
  background: var(--pfl-lime-500);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* Il segnaposto sparisce solo quando l'animazione è davvero pronta: se il
   .json non arriva resta lui, e l'assenza non si nota. */
.motion[data-lottie-stato="pronto"] .motion__statico { display: none; }

/* Sulle fasce teal il segnaposto in teal-600 sparirebbe nello sfondo. */
.band .motion {
  color: var(--pfl-teal-200);
  max-width: 200px;
  margin-inline: 0;
  margin-bottom: var(--s-8);
}
.section-head .motion { margin-bottom: var(--s-6); }

@media (max-width: 767px) {
  .motion { max-width: 180px; }
}

/* -------------------------------------------------------------------------
   17. Preferenze utente e stampa
   ------------------------------------------------------------------------- */
/* Il movimento resta attivo anche con prefers-reduced-motion: è una scelta
   dichiarata del committente (vedi DESIGN.md §7). Il costo è stato ridotto
   dove si poteva: ampiezze contenute, nessun parallasse, nessuno spostamento
   a tutto schermo, e lo scorrimento della pagina resta immediato. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { scroll-behavior: auto !important; }
}

@media print {
  .site-header, .mobile-cta, .hero__deco, .band__deco, .social, .skip { display: none !important; }
  .hero, .band, .trust, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .hero__title, .hero__lead, .band h2, .band p, .manifesto,
  .site-footer a, .site-footer p { color: #000 !important; }
  .section { padding-block: 24px; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
}
