/* Giada Giacomini - stile del sito */

/* Giada Giacomini - stile del sito
   Colori presi dal sito originale: prugna, giallo, grigio chiaro, bianco.
   Forme a pillola, stelline a quattro punte come unico decoro. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/9b03f9ffed05.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/adbdfd9a7869.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --plum: #320435;
  --plum-soft: #4a1f4d;
  --yellow: #f6c543;
  --yellow-dark: #e6b12d;
  --grey: #f6f6f6;
  --line: #e4dde5;
  --muted: #5f4c62;
  --white: #ffffff;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --narrow: 740px;
  --gutter: clamp(18px, 4.5vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--plum);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--plum); padding: 10px 16px; z-index: 100; font-family: var(--display); }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), var(--narrow)); }
.center { text-align: center; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.4vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

.spark { display: inline-block; flex: none; color: var(--plum); }
.spark svg { display: block; width: 100%; height: 100%; fill: currentColor; }

/* ---------- Pulsanti a pillola ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1;
  padding: 19px 30px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-card { background: var(--yellow); color: var(--plum); }
.btn-card:hover { background: var(--yellow-dark); }
.btn-dark { background: var(--plum); color: #fff; }
.btn-dark:hover { background: var(--plum-soft); }
.btn-line { border-color: currentColor; color: inherit; }
.btn-line:hover { background: rgba(50, 4, 53, 0.07); }
.on-dark .btn-line:hover { background: rgba(255, 255, 255, 0.12); }
.btn-small { padding: 13px 20px; font-size: 0.97rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 0; }
.hero .actions, .page-head .actions { justify-content: center; }
.center .actions { justify-content: center; }
.text-link { font-family: var(--display); font-weight: 700; }

/* ---------- Header: pillola prugna ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding-top: 12px; background: linear-gradient(var(--white) 55%, transparent); }
.bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--plum); color: #fff; border-radius: 999px; padding: 8px 10px 8px 22px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.brand img { height: 38px; width: auto; }
.brand span { display: none; }
.nav { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 600; }
.nav a:not(.btn) { text-decoration: none; padding: 10px 16px; border-radius: 999px; }
.nav a:not(.btn):hover { background: rgba(255, 255, 255, 0.12); }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--plum); border-radius: 2px; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 5vw, 56px); text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--grey); color: var(--plum);
  font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.3;
  padding: 14px 24px; border-radius: 999px; margin: 0 0 1.6rem; max-width: 100%; text-align: left;
}
.kicker .spark { width: 20px; height: 20px; }
.hero h1, .page-head h1 { max-width: 17ch; margin-inline: auto; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.55; max-width: 36em; margin-inline: auto; color: var(--plum); }
.hero-photo { margin: clamp(32px, 5vw, 56px) auto 0; position: relative; max-width: 520px; }
.hero-photo::before { content: ""; position: absolute; inset: 8% -4% -5% 6%; background: var(--yellow); border-radius: 40px; z-index: 0; }
.hero-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; border-radius: 40px; }

/* ---------- Sezioni ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-title { max-width: 20ch; margin-inline: auto; text-align: center; margin-bottom: 1.1em; }
.section-intro { text-align: center; max-width: 40em; margin: -0.4em auto 2.4em; color: var(--muted); font-size: 1.15rem; }
.head-line { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 2rem; }
.head-line .section-title { margin: 0; text-align: left; margin-inline: 0; }

/* Brand */
.brands { padding: clamp(20px, 4vw, 40px) 0; }
.brand-panel { background: var(--grey); border-radius: 36px; padding: 28px clamp(20px, 4vw, 44px); display: grid; gap: 18px; justify-items: center; text-align: center; }
.section-label { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--muted); margin: 0; letter-spacing: 0; }
.brand-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; align-items: center; }
.brand-list img { height: 34px; width: auto; max-width: 150px; object-fit: contain; }
.brand-list span { font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--plum); opacity: 0.85; }

/* Servizi: schede grigie con stellina */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.service { background: var(--grey); border-radius: 32px; padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 14px; }
.service .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }
.service .ico .spark { width: 24px; height: 24px; }
.service h3 { margin: 0; font-size: 1.4rem; }
.service p { margin: 0; color: var(--plum); }

/* Chi sono: pannello prugna */
.about-teaser { background: var(--plum); color: #fff; border-radius: 44px; padding: clamp(28px, 5vw, 64px); display: grid; gap: 32px; align-items: center; }
.about-teaser h2 { margin-bottom: 0.4em; }
.about-teaser p { color: rgba(255, 255, 255, 0.9); font-size: 1.15rem; }
.about-teaser .kicker { background: rgba(255, 255, 255, 0.12); color: #fff; }
.about-teaser .kicker .spark { color: var(--yellow); }
.about-teaser img { width: 100%; max-width: 380px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 32px; margin-inline: auto; }
.about-points { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 10px; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; font-family: var(--display); font-weight: 600; }
.about-points .spark { width: 18px; height: 18px; color: var(--yellow); margin-top: 0.25em; }

/* Metodo */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 48px; }
.value { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.value .spark { width: 26px; height: 26px; margin-top: 0.15em; }
.value h3 { margin: 0 0 0.3em; }
.value p { margin: 0; color: var(--muted); }

/* Creator */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chips li { background: var(--grey); border-radius: 999px; padding: 12px 20px; font-family: var(--display); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.chips li img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.chips small { color: var(--muted); font-weight: 500; font-size: 0.88rem; }
.chips a { text-decoration: none; }
.chips a:hover { text-decoration: underline; }

/* Portfolio creator */
.portfolio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.creator { background: var(--grey); border-radius: 28px; padding: 18px 22px 18px 18px; display: flex; align-items: center; gap: 16px; min-width: 0; }
.creator img, .creator .avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.creator img { object-fit: cover; }
.creator .avatar { background: var(--yellow); color: var(--plum); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.6rem; }
.creator-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.creator-text strong { font-family: var(--display); font-weight: 700; font-size: 1.08rem; overflow-wrap: anywhere; }
.creator-text a { text-decoration: none; }
.creator-text a:hover { text-decoration: underline; }
.creator-text small { color: var(--muted); font-size: 0.95rem; margin-top: 2px; }

/* Numeri */
.stat-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.stat-list dt { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; }
.stat-list dd { margin: 8px 0 0; color: var(--muted); }

/* Testimonianze */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.quote { margin: 0; background: var(--grey); border-radius: 32px; padding: 30px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.quote .spark { width: 26px; height: 26px; color: var(--yellow-dark); margin-bottom: 14px; }
.quote blockquote { margin: 0; font-size: 1.15rem; line-height: 1.55; }
.quote blockquote p { margin: 0; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 0.97rem; line-height: 1.35; color: var(--muted); }
.quote figcaption strong { color: var(--plum); }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* Articoli */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 40px 24px; }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 28px; margin-bottom: 16px; }
.post h2, .post h3 { font-size: 1.35rem; line-height: 1.2; margin-bottom: 0.4em; }
.post h2 a, .post h3 a { text-decoration: none; }
.post h2 a:hover, .post h3 a:hover { text-decoration: underline; }
.post p { color: var(--muted); }
.post time, .post-meta { font-family: var(--display); font-size: 0.95rem; color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; }
.post-meta span { background: var(--grey); border-radius: 999px; padding: 2px 12px; color: var(--plum); font-weight: 600; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 56px; justify-content: center; font-family: var(--display); font-weight: 700; }
.pager a { padding: 12px 18px; border-radius: 999px; text-decoration: none; background: var(--grey); }
.pager a[aria-current="page"] { background: var(--plum); color: #fff; }
.pager a:hover { background: var(--line); }
.pager a[aria-current="page"]:hover { background: var(--plum); }

/* Testi lunghi */
.prose { font-size: 1.15rem; line-height: 1.75; }
.prose h2 { margin-top: 2em; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.prose h3 { margin-top: 1.6em; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: 28px; width: 100%; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.8em 0; padding: 22px 26px; background: var(--grey); border-radius: 28px; font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.35; }
.prose a { font-weight: 600; }
.page-head { padding: clamp(40px, 7vw, 84px) 0 clamp(16px, 3vw, 32px); text-align: center; }
.page-head .lead { margin-bottom: 0; }
.article-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 20ch; }
.article-head .post-meta { justify-content: center; }
.cover { margin-top: 24px; }
.cover img { width: 100%; border-radius: 32px; }
.article-body { padding-top: 32px; }
.article-end { padding-bottom: 56px; }

/* Frase in evidenza */
.pull { padding: clamp(24px, 4vw, 48px) 0; }
.pull blockquote { margin: 0; text-align: center; }
.pull blockquote p { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 4.4vw, 2.9rem); line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.pull footer { font-family: var(--display); color: var(--muted); font-weight: 600; }

/* Contatti */
.checks { list-style: none; margin: 0 auto; padding: 0; max-width: 34em; display: grid; gap: 10px; text-align: left; }
.checks li { display: flex; gap: 14px; align-items: flex-start; background: var(--grey); border-radius: 22px; padding: 16px 20px; font-family: var(--display); font-weight: 600; line-height: 1.35; }
.checks .spark { width: 20px; height: 20px; margin-top: 0.1em; }
.contact-box { background: var(--plum); color: #fff; border-radius: 44px; padding: clamp(28px, 5vw, 56px); display: grid; gap: 28px; align-items: center; }
.contact-box .lead { margin-inline: 0; color: rgba(255, 255, 255, 0.9); }
.contact-box img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.contact-name { font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin: 12px 0 0; }
.contact-role { color: rgba(255, 255, 255, 0.78); margin: 0 0 10px; }
.contact-box .text-link { color: var(--yellow); }
.email-line { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 4.4vw, 2.2rem); word-break: break-word; margin: 0.4em 0 0; }
.email-line a { text-decoration-color: var(--yellow); }
.note { font-size: 0.95rem; color: rgba(255, 255, 255, 0.75); margin: 1.2rem 0 0; }

.faq details { background: var(--grey); border-radius: 26px; margin-bottom: 10px; }
.faq summary { font-family: var(--display); font-weight: 700; font-size: 1.15rem; padding: 22px 64px 22px 26px; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-size: 1.5rem; line-height: 1; font-weight: 500; padding-bottom: 3px; }
.faq details[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 26px 14px; }

/* Chiusura */
.closing { padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 7vw, 88px); }
.closing-box { background: var(--yellow); border-radius: 44px; padding: clamp(36px, 7vw, 88px) clamp(22px, 5vw, 64px); text-align: center; position: relative; overflow: hidden; }
.closing-box h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 16ch; margin-inline: auto; }
.closing-box p { font-size: 1.2rem; max-width: 30em; margin-inline: auto; }
.closing-box .actions { justify-content: center; }
.closing-box .btn-card { background: var(--plum); color: #fff; }
.closing-box .btn-card:hover { background: var(--plum-soft); }
.closing-box .spark { position: absolute; color: var(--plum); opacity: 0.9; }
.closing-box .s1 { width: 44px; height: 44px; left: 8%; top: 18%; }
.closing-box .s2 { width: 28px; height: 28px; right: 10%; bottom: 20%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: rgba(255, 255, 255, 0.9); border-radius: 44px 44px 0 0; padding: 56px 0 28px; margin-top: 8px; }
.site-footer p { margin: 0 0 0.5em; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer-name { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: #fff; }
.footer-text { max-width: 30em; color: rgba(255, 255, 255, 0.72); }
.footer-label { color: var(--yellow); font-family: var(--display); font-weight: 700; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links.stacked { flex-direction: column; gap: 6px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.92rem; color: rgba(255, 255, 255, 0.68); }

/* ---------- Schermi larghi ---------- */
@media (min-width: 860px) {
  .brand span { display: inline; }
  .about-teaser { grid-template-columns: 1.3fr 0.7fr; gap: 56px; }
  .contact-box { grid-template-columns: 1.4fr 0.6fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 0.7fr; gap: 48px; }
}

/* ---------- Telefono ---------- */
@media (max-width: 859px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 4px; text-align: center;
    background: var(--plum); border-radius: 32px; padding: 14px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 16px; font-size: 1.1rem; }
  .nav .btn { margin: 8px 0 0; padding: 17px 20px; }
  .kicker { border-radius: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}


/* ---------- Esperienza: numeri, timeline, fascia brand ---------- */
.exp-stats { margin-bottom: clamp(36px, 6vw, 64px); }
.exp-stats dt { font-variant-numeric: tabular-nums; }
.exp-stats dd { max-width: 16em; margin-inline: auto; line-height: 1.4; }

.tl-wrap { --date: 10.5rem; --col-gap: 26px; --dot: 20px; position: relative; max-width: 880px; margin-inline: auto; }
.tl-track { position: absolute; top: 8px; bottom: 8px; left: calc(var(--date) + var(--col-gap) + var(--dot) / 2 - 2px); width: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.tl-fill { display: block; width: 100%; height: 100%; background: var(--plum); transform-origin: top; transform: scaleY(var(--p, 1)); }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(26px, 4vw, 40px); position: relative; }
.tl-item { display: grid; grid-template-columns: var(--date) var(--dot) minmax(0, 1fr); column-gap: var(--col-gap); align-items: start; }
.tl-date { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--muted); text-align: right; padding-top: 3px; font-variant-numeric: tabular-nums; }
.tl-dot { width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--yellow); border: 4px solid var(--plum); margin-top: 4px; transition: background-color 0.35s ease, transform 0.35s ease; }
.tl-body { transition: opacity 0.45s ease, transform 0.45s ease; }
.tl-body h3 { margin: 0 0 0.15em; font-size: 1.4rem; }
.tl-org { font-family: var(--display); font-weight: 700; margin: 0 0 0.5em; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tl-now { background: var(--yellow); color: var(--plum); border-radius: 999px; padding: 2px 12px; font-size: 0.85rem; }
.tl-body p:last-child { margin: 0; color: var(--muted); max-width: 34em; }
.tl-wrap.is-live .tl-item:not(.on) .tl-dot { background: var(--white); transform: scale(0.8); }
.tl-wrap.is-live .tl-item:not(.on) .tl-body { opacity: 0.4; transform: translateY(10px); }

.marquee-block { margin-top: clamp(40px, 6vw, 72px); background: var(--plum); color: #fff; border-radius: 36px; padding: 26px 0 28px; overflow: hidden; }
.marquee-block .section-label { color: rgba(255, 255, 255, 0.78); text-align: center; padding-inline: 20px; margin-bottom: 16px; }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex: none; }
.marquee-list li { display: flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--display); font-weight: 800; font-size: clamp(1.15rem, 2.4vw, 1.5rem); white-space: nowrap; }
.marquee-list .spark { width: 14px; height: 14px; color: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 699px) {
  .tl-wrap { --date: 0px; --col-gap: 16px; }
  .tl-track { left: calc(var(--dot) / 2 - 2px); }
  .tl-item { grid-template-columns: var(--dot) minmax(0, 1fr); }
  .tl-dot { grid-column: 1; grid-row: 1 / span 2; }
  .tl-date { grid-column: 2; grid-row: 1; text-align: left; padding-top: 2px; margin-bottom: 2px; }
  .tl-body { grid-column: 2; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-dot, .tl-body { transition: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee-list { flex-wrap: wrap; justify-content: center; row-gap: 8px; padding-inline: 20px; }
  .marquee-list[aria-hidden="true"] { display: none; }
}

.tl-origin .tl-body { background: var(--grey); border-radius: 28px; padding: 24px 26px 26px; margin-top: -6px; }
.tl-origin .tl-dot { background: var(--plum); box-shadow: 0 0 0 5px var(--yellow); }
.tl-origin .tl-date { color: var(--plum); }
.tl-origin .tl-body > p:not(.tl-org) { color: var(--plum); max-width: 38em; margin: 0 0 1.1em; }
.origin-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.origin-links li { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--white); border-radius: 18px; padding: 12px 18px; line-height: 1.3; }
.origin-links .from { color: var(--muted); }
.origin-links .to { font-family: var(--display); font-weight: 700; }
.origin-links svg { width: 20px; height: 20px; fill: none; stroke: var(--yellow-dark); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tl-wrap.is-live .tl-origin:not(.on) .tl-dot { background: var(--white); box-shadow: none; }

/* Chiusura compatta */
.closing-box { padding: clamp(24px, 4vw, 40px) clamp(22px, 4vw, 48px); border-radius: 36px; display: grid; gap: 6px 32px; }
.closing-box h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); max-width: none; margin: 0; }
.closing-box p { font-size: 1.05rem; margin: 0; }
.closing-box .actions { margin-top: 12px; }
.closing-box > .spark { display: none; }
@media (min-width: 760px) {
  .closing-box { grid-template-columns: minmax(0, 1fr) auto; align-items: center; text-align: left; }
  .closing-box h2, .closing-box p { margin-inline: 0; }
  .closing-box h2 { grid-column: 1; }
  .closing-box h2 + p { grid-column: 1; }
  .closing-box .actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}
@media (max-width: 699px) {
  .tl-origin .tl-body { padding: 20px 18px; }
  .origin-links li { grid-template-columns: 1fr; gap: 4px; }
  .origin-links svg { transform: rotate(90deg); }
}

.tl-origin .tl-body > p:last-child { margin-bottom: 0; }
.tl-jump .tl-dot { grid-column: 2; border-radius: 5px; background: var(--yellow); transform: rotate(45deg) scale(0.9); margin-top: 22px; }
.tl-jump .tl-body { grid-column: 3; background: var(--plum); color: #fff; border-radius: 24px; padding: 18px 24px 20px; }
.tl-jump .jump-k { font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); margin: 0 0 4px; }
.tl-jump .tl-body h3 { font-size: 1.3rem; margin: 0 0 0.3em; }
.tl-jump .tl-body p:last-child { color: rgba(255, 255, 255, 0.88); }
.tl-wrap.is-live .tl-jump:not(.on) .tl-dot { transform: rotate(45deg) scale(0.7); }
@media (max-width: 699px) {
  .tl-jump .tl-dot { grid-column: 1; grid-row: 1; }
  .tl-jump .tl-body { grid-column: 2; grid-row: 1; padding: 16px 18px 18px; }
}

.tl-today .tl-body > p:not(.today-k) { margin-bottom: 1.1em; }
.tl-today .today-k { font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.today-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.today-list li { background: var(--white); border-radius: 999px; padding: 9px 18px; font-family: var(--display); font-weight: 700; line-height: 1.3; }

.today-list a { text-decoration: none; overflow-wrap: anywhere; }
.today-list a:hover { text-decoration: underline; }
.today-list .more { background: none; padding-inline: 4px; font-weight: 600; color: var(--muted); }

.tl-jump .tl-body > p:not(.jump-k) { color: rgba(255, 255, 255, 0.88); max-width: 36em; }
.tl-jump .portfolio { margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 10px; }
.tl-jump .creator { background: rgba(255, 255, 255, 0.1); border-radius: 22px; padding: 12px 16px 12px 12px; gap: 12px; }
.tl-jump .creator img, .tl-jump .creator .avatar { width: 48px; height: 48px; }
.tl-jump .creator-text strong { font-size: 1rem; }
.tl-jump .creator-text small { color: rgba(255, 255, 255, 0.75); font-size: 0.88rem; }

/* Salti leggeri: niente riquadro pieno */
.tl-jump .tl-body { background: none; color: inherit; padding: 0; border-radius: 0; }
.tl-jump .tl-dot { margin-top: 6px; }
.tl-jump .jump-k { display: inline-block; background: var(--yellow); color: var(--plum); border-radius: 999px; padding: 3px 12px; margin-bottom: 8px; }
.tl-jump .tl-body h3 { font-size: 1.4rem; }
.tl-jump .tl-body > p:not(.jump-k), .tl-jump .tl-body p:last-child { color: var(--muted); }
.tl-jump .creator { background: var(--grey); }
.tl-jump .creator-text small { color: var(--muted); }

.tl-jump .tl-date { color: var(--plum); padding-top: 8px; }
@media (max-width: 699px) {
  .tl-jump.tl-dated .tl-dot { grid-row: 1 / span 2; }
  .tl-jump.tl-dated .tl-date { padding-top: 4px; }
  .tl-jump.tl-dated .tl-body { grid-row: 2; }
}

/* Icone servizi: immagini animate */
.service .ico { width: 64px; height: 64px; border-radius: 0; background: none; overflow: visible; }
.service .ico-img { width: 100%; height: 100%; display: block; animation: ico-float 3.4s ease-in-out infinite; transition: transform 0.25s ease; }
.service:nth-child(2) .ico-img { animation-delay: 0.3s; }
.service:nth-child(3) .ico-img { animation-delay: 0.6s; }
.service:hover .ico-img { transform: scale(1.08) rotate(-4deg); }
@keyframes ico-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .service .ico-img { animation: none; }
  .service:hover .ico-img { transform: none; }
}

/* Loghi brand nella fascia scorrevole */
.marquee-list .brand-logo { height: 28px; width: auto; max-width: 150px; object-fit: contain; display: block; }


/* ---------- Stage 2: hero con foto ---------- */
.hero-split { text-align: left; }
.hero-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-split h1 { max-width: 14ch; margin-inline: 0; font-size: clamp(2.2rem, 5.2vw, 4rem); }
.hero-split .lead { margin-inline: 0; max-width: 30em; }
.hero-split .actions { justify-content: flex-start; }
.hero-split .kicker { padding: 10px 20px; font-size: 0.95rem; }
.hero-split .hero-photo { margin: 0 auto; max-width: 440px; width: 100%; }
.hero-split .hero-photo::before { inset: 10% -5% -4% 12%; }
.hero-split .hero-photo img { object-position: 50% 0; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
@media (max-width: 899px) { .hero-split .hero-photo { max-width: 340px; } }

/* servizi */
.svc-list { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.svc-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; font-size: 1rem; }
.svc-list .spark { width: 14px; height: 14px; margin-top: 0.3em; color: var(--yellow-dark); }

/* metodo */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 24px; position: relative; }
.step { position: relative; }
.step-n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin-bottom: 14px; position: relative; z-index: 1; transition: transform 0.3s ease; }
.step:hover .step-n { transform: scale(1.1); }
.step h3 { margin: 0 0 0.3em; font-size: 1.4rem; }
.step p { margin: 0; color: var(--muted); }
@media (min-width: 980px) {
  .step:not(:last-child)::before { content: ""; position: absolute; top: 25px; left: 52px; right: -24px; height: 3px; background: var(--line); border-radius: 3px; }
}

/* caso studio */
.case { background: var(--plum); color: #fff; border-radius: 44px; padding: clamp(28px, 5vw, 60px); display: grid; gap: 32px; align-items: center; }
.case-k { font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); margin: 0 0 10px; }
.case h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 0.5em; }
.case-copy p { color: rgba(255, 255, 255, 0.9); max-width: 34em; }
.case-copy .case-meta { font-family: var(--display); font-weight: 700; color: #fff; margin: 0; }
.case-num { text-align: center; }
.case-num p { margin: 0; }
.case-from { font-family: var(--display); font-weight: 600; color: rgba(255, 255, 255, 0.8); font-size: 1.2rem; }
.case-from strong { color: #fff; font-weight: 800; }
.case-to { font-family: var(--display); font-weight: 800; font-size: clamp(4.5rem, 13vw, 8.5rem); line-height: 1; letter-spacing: -0.04em; color: var(--yellow); font-variant-numeric: tabular-nums; }
.case-lab { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.case-bar { display: block; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.16); margin: 18px auto 0; max-width: 260px; overflow: hidden; }
.case-bar span { display: block; height: 100%; width: 100%; background: var(--yellow); border-radius: 8px; transform-origin: left; transform: scaleX(var(--g, 1)); }
@media (min-width: 860px) { .case { grid-template-columns: 1.2fr 0.8fr; gap: 48px; } }

.ph-ff { background-image: url("img/b8bbd510b697.jpg"); }
.ph-cosa { background-image: url("img/5c008f70c418.jpg"); }
.ph-bello { background-image: url("img/02542c989ea9.jpg"); }
.ph-alice { background-image: url("img/ebc051224573.jpg"); }
.ph-ludo { background-image: url("img/f4559bcde4b2.jpg"); }
.ph-casa { background-image: url("img/19d1fddf284b.jpg"); }
.ph-sere { background-image: url("img/cb7d639c0cef.jpg"); }
.wall-col .ph-bello { aspect-ratio: 440 / 819; }
.wall-col .ph-sere { aspect-ratio: 440 / 526; }
.wall-col .ph-casa { aspect-ratio: 440 / 826; }
.wall-col .ph-ludo { aspect-ratio: 440 / 836; }
.wall-col .ph-cosa { aspect-ratio: 440 / 836; }
.wall-col .ph-alice { aspect-ratio: 440 / 510; }
.wall-col .ph-ff { aspect-ratio: 440 / 836; }

/* ---------- Stage 3: hero con muro di telefoni ---------- */
.hero-wall { padding: clamp(16px, 2.5vw, 28px) 0 clamp(28px, 5vw, 56px); text-align: left; }
.hw { background: var(--plum); color: #fff; border-radius: 44px; overflow: hidden; display: grid; position: relative; }
.hw-copy { padding: clamp(28px, 5vw, 64px); align-self: center; position: relative; z-index: 2; }
.hw-k { font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); margin: 0 0 16px; }
.hero-wall h1 { max-width: 13ch; margin: 0 0 0.45em; font-size: clamp(2.2rem, 4.9vw, 3.9rem); }
.hero-wall h1 span { color: var(--yellow); }
.hero-wall .lead { color: rgba(255, 255, 255, 0.88); margin-inline: 0; max-width: 26em; }
.hero-wall .actions { justify-content: flex-start; }
.hw-stats { margin: clamp(28px, 4vw, 44px) 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.18); display: flex; flex-wrap: wrap; gap: 18px 36px; }
.hw-stats dt { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; white-space: nowrap; }
.hw-stats dd { margin: 6px 0 0; color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }

.phone { display: block; background: #12011a; border-radius: 26px; padding: 7px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); position: relative; }
.phone-scr { display: block; aspect-ratio: 920 / 1750; border-radius: 20px; background-color: #fff; background-size: 100% auto; background-repeat: no-repeat; background-position: top center; }
.hw-wall { display: none; }
.wall-col { width: 172px; flex: none; }
.wall-track { display: flex; flex-direction: column; }
.wall-track .phone { margin-bottom: 18px; }

.hw-solo { padding: 0 clamp(28px, 5vw, 64px); height: 330px; overflow: hidden; display: flex; justify-content: center; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.hw-solo .phone { width: 230px; align-self: flex-start; }
.hw-solo .phone-scr { opacity: 0; transition: opacity 0.7s ease; }
.hw-solo .phone-scr + .phone-scr { position: absolute; inset: 7px; }
.hw-solo .phone-scr.on { opacity: 1; }

@media (min-width: 940px) {
  .hw { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); min-height: 600px; }
  .hw-solo { display: none; }
  .hw-wall { display: flex; gap: 18px; justify-content: center; position: absolute; top: -12%; bottom: -12%; right: -3%; width: 50%; transform: rotate(-7deg); -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%); mask-image: linear-gradient(90deg, transparent, #000 16%); }
}
@media (prefers-reduced-motion: reduce) { .wall-track { animation: none; } .hw-solo .phone-scr { transition: none; } }

/* Composizione statica dei telefoni */
.wall-track { animation: none; }
.wall-col { width: 196px; }
.c2 { margin-top: 84px; }
.c3 { margin-top: 30px; }
.hw-solo { position: relative; height: 310px; padding: 0; display: block; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.hw-solo .phone { position: absolute; top: 12px; left: 50%; width: 168px; margin-left: -84px; }
.hw-solo .phone-scr { opacity: 1; position: static; inset: auto; }
.hw-solo .fan-l { transform: translateX(-104px) translateY(34px) rotate(-10deg); }
.hw-solo .fan-r { transform: translateX(104px) translateY(34px) rotate(10deg); }
.hw-solo .fan-c { z-index: 2; }
@media (min-width: 940px) { .hw-solo { display: none; } .hw-wall { top: -14%; bottom: -14%; right: -4%; width: 52%; align-items: flex-start; } }

/* chi sono */
.me { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.me-photo { margin: 0 auto; max-width: 300px; width: 100%; }
.me-photo img { object-position: 50% 0; }
.me-copy h2 { margin-bottom: 0.4em; }
.me-copy p { font-size: 1.15rem; max-width: 30em; }
.me-copy .actions { justify-content: flex-start; margin-top: 1.4rem; }
@media (min-width: 800px) { .me { grid-template-columns: 300px minmax(0, 1fr); } .me-photo { margin: 0; } }


/* ---------- Stage 4: hero chiara con foto e due telefoni ---------- */
.hero-duo { padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 6vw, 72px); text-align: left; }
.hd { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero-duo .kicker { padding: 10px 20px; font-size: 0.95rem; }
.hero-duo h1 { max-width: 13ch; margin: 0 0 0.45em; font-size: clamp(2.2rem, 4.9vw, 3.9rem); }
.hero-duo h1 span { background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 94%, transparent 94%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-duo .lead { margin-inline: 0; max-width: 27em; }
.hero-duo .actions { justify-content: flex-start; }
.hd-stats { margin: clamp(26px, 4vw, 40px) 0 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 40px; }
.hd-stats dt { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1; }
.hd-stats dd { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }
.hd-vis { position: relative; width: 100%; max-width: 500px; margin: 0 auto; padding: 0 13% 9% 13%; }
.hd-vis .hero-photo { margin: 0; max-width: none; }
.hd-vis .hero-photo::before { inset: 9% -5% -4% 10%; }
.hd-vis .hero-photo img { object-position: 50% 0; }
.hd-vis .phone { position: absolute; width: 31%; z-index: 3; border-radius: 22px; padding: 5px; box-shadow: 0 16px 34px rgba(50, 4, 53, 0.28); }
.hd-vis .phone-scr { aspect-ratio: 9 / 16; border-radius: 17px; }
.hd-vis .p1 { left: 0; bottom: 0; }
.hd-vis .p2 { right: 0; top: 7%; }
@media (min-width: 940px) { .hd { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }


/* ---------- Stage 5: scheda profili ---------- */
.hd-card { padding: 0 4% 4% 0; max-width: 480px; }
.pc { position: relative; background: var(--white); border: 2px solid var(--plum); border-radius: 32px; padding: 22px 22px 20px; }
.pc::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; background: var(--yellow); border-radius: 32px; z-index: -1; }
.hd-card { isolation: isolate; }
.pc-k { font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.pc-list { list-style: none; margin: 0; padding: 0; }
.pc-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.pc-list img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.pc-who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.pc-who strong { font-family: var(--display); font-weight: 700; font-size: 1rem; overflow-wrap: anywhere; }
.pc-who small { color: var(--muted); font-size: 0.88rem; }
.pc-n { font-family: var(--display); font-weight: 800; font-size: 1.05rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pc-tot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0; padding-top: 14px; border-top: 2px solid var(--plum); font-family: var(--display); }
.pc-tot span { font-weight: 600; color: var(--muted); }
.pc-tot strong { font-weight: 800; font-size: 1.3rem; }


/* ---------- Stage 6: alternative hero ---------- */
.pv-sw { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: 8px; }
.pv-sw b { font-weight: 700; margin-right: 2px; }
.pv-sw button { font: inherit; font-weight: 600; color: var(--plum); background: var(--white); border: 1.5px solid var(--plum); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.pv-sw button[aria-pressed="true"] { background: var(--plum); color: #fff; }
.hero-duo h1 em { font-style: normal; display: inline-block; transition: opacity 0.3s ease, transform 0.3s ease; }
.hero-duo h1 em.out { opacity: 0; transform: translateY(8px); }
.pc-note { margin: 12px 0 0; font-size: 0.82rem; color: var(--muted); }
.pc sup { font-size: 0.5em; vertical-align: super; color: var(--muted); }
.big { margin: 0; }
.big > div { padding: 14px 0; border-top: 1px solid var(--line); }
.big dt { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.3rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.big dd { margin: 6px 0 0; color: var(--muted); }
.grow { display: block; width: 100%; height: auto; margin-top: 4px; }
.grow-area { fill: var(--yellow); opacity: 0.35; }
.grow-line { fill: none; stroke: var(--plum); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.grow-dot { fill: var(--white); stroke: var(--plum); stroke-width: 4; }
.grow-dot.end { fill: var(--yellow); }
.grow-t { font-family: var(--display); font-weight: 800; font-size: 26px; fill: var(--plum); }
.grow-s { font-family: var(--display); font-weight: 600; font-size: 14px; fill: var(--muted); }
.pc-cap { margin: 10px 0 0; font-family: var(--display); font-weight: 700; line-height: 1.3; }
.alt.play .grow-line { animation: grow-draw 1.8s ease-out both; }
.alt.play .grow-area { animation: grow-fade 1.8s ease-out both; }
.alt.play .grow-dot.end, .alt.play .grow-t[text-anchor="end"] { animation: grow-pop 0.4s ease-out 1.5s both; }
@keyframes grow-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes grow-fade { from { opacity: 0; } to { opacity: 0.35; } }
@keyframes grow-pop { from { opacity: 0; } to { opacity: 1; } }
.ins { list-style: none; margin: 0; padding: 0; }
.ins li { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 2px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.ins-l { color: var(--muted); grid-column: 1; }
.ins strong { grid-column: 1; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.mini { grid-column: 2; grid-row: 1 / span 2; width: 96px; height: 34px; }
.mini polyline { fill: none; stroke: var(--yellow-dark); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .alt.play .grow-line, .alt.play .grow-area, .alt.play .grow-dot.end, .alt.play .grow-t[text-anchor="end"] { animation: none; } .hero-duo h1 em { transition: none; } }


/* ---------- Stage 7: lavagna ---------- */
.board { background-image: radial-gradient(var(--line) 1.2px, transparent 1.3px); background-size: 18px 18px; background-color: var(--white); }
.bd-svg { display: block; width: 100%; height: auto; }
.bd-svg .note.y { fill: var(--yellow); }
.bd-svg .note.w { fill: var(--white); stroke: var(--plum); stroke-width: 2.5; }
.bd-svg .bt { font-family: var(--display); font-weight: 800; font-size: 13px; fill: var(--plum); }
.bd-svg .ink { fill: var(--plum); }
.bd-svg .ring { fill: none; stroke: var(--plum); stroke-width: 3; }
.bd-svg .card { fill: var(--white); stroke: var(--plum); stroke-width: 2; }
.bd-svg .ln { fill: none; stroke: var(--plum); stroke-width: 2; stroke-linecap: round; }
.bd-svg .arw, .bd-svg .hd { fill: none; stroke: var(--plum); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bd-svg .arw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.bd-svg .axis { fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.bd-svg .curve { fill: none; stroke: var(--plum); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.bd-svg .tag { fill: var(--white); stroke: var(--plum); stroke-width: 2; }
.bd-svg .tt { font-family: var(--display); font-weight: 700; font-size: 12px; fill: var(--plum); text-anchor: middle; }
.bd-svg .end { fill: var(--yellow); stroke: var(--plum); stroke-width: 4; }
.bd-svg .star { fill: var(--yellow-dark); }
.alt.play .bd, .alt.play .hd { animation: bd-in 0.45s ease-out both; animation-delay: var(--d, 0s); }
.alt.play .arw { animation: grow-draw 0.4s ease-out both; animation-delay: var(--d, 0s); }
.alt.play .curve { animation: grow-draw 2.2s ease-in-out both; animation-delay: var(--d, 0s); }
@keyframes bd-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .alt.play .bd, .alt.play .hd, .alt.play .arw, .alt.play .curve { animation: none; } }


/* ---------- Stage 8: metodo corto ---------- */
#metodo.is-short .section-intro, #metodo.is-short .step p { display: none; }
#metodo.is-short .section-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1.2em; }
#metodo.is-short .steps { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
#metodo.is-short .step { display: flex; align-items: center; gap: 12px; }
#metodo.is-short .step-n { width: 40px; height: 40px; font-size: 1.1rem; margin: 0; flex: none; }
#metodo.is-short .step h3 { margin: 0; font-size: 1.15rem; }
#metodo.is-short .step::before { display: none; }


/* ---------- Stage 9: firma ---------- */
.sig { display: flex; align-items: center; gap: 12px; margin: clamp(22px, 3vw, 30px) 0 0; }
.sig img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--plum); }
.sig span { display: flex; flex-direction: column; line-height: 1.3; }
.sig strong { font-family: var(--display); font-weight: 800; }
.sig small { color: var(--muted); font-size: 0.95rem; }
.hero-duo .hd-stats { margin-top: 22px; }


/* ---------- Stage 10: figurina di carta ---------- */
.hd-card { position: relative; }
.paper { position: absolute; right: -3%; bottom: -3%; height: 52%; width: auto; max-width: none; z-index: 3; transform: rotate(3deg); transform-origin: 50% 100%; filter: drop-shadow(0 6px 0 rgba(50, 4, 53, 0.14)) drop-shadow(0 14px 16px rgba(50, 4, 53, 0.22)); pointer-events: none; }
.board .pc-cap { padding-right: 30%; }
.paper { right: -6%; }
.hd-card.go .paper { animation: paper-in 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes paper-in { from { opacity: 0; transform: translateY(18px) rotate(-6deg); } to { opacity: 1; transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .hd-card.go .paper { animation: none; } }
@media (max-width: 939px) { .paper { right: 1%; height: 46%; } }

.svc-note { text-align: center; font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin: 28px auto 0; max-width: 30em; }
.hero-duo h1 { max-width: 15ch; }


/* ---------- Stage 14: restyling hero e processo ---------- */
:root { --sp1: 8px; --sp2: 16px; --sp3: 24px; --sp4: 40px; --sp5: 64px; }
.hx { padding: clamp(20px, 4vw, 56px) 0 clamp(32px, 5vw, 64px); text-align: left; }
.hx-grid { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); grid-template-areas: "copy copy" "vis stats"; gap: var(--sp3) var(--sp2); align-items: center; }
.hx-copy { grid-area: copy; min-width: 0; }
.hx-badge { display: inline-block; background: var(--grey); border-radius: 999px; padding: 6px 14px; margin: 0 0 var(--sp2); font-family: var(--display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; line-height: 1.3; }
.hx h1 { font-size: clamp(2rem, 8.2vw, 3.9rem); line-height: 1.05; max-width: 13.5ch; margin: 0 0 var(--sp2); }
.hx h1 span { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 0.16em; text-underline-offset: 0.13em; text-decoration-skip-ink: none; }
.hx-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); border-radius: 12px; padding: 8px 14px; margin: 0 0 var(--sp3); font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1.2; transform: rotate(-2deg); box-shadow: 3px 4px 0 var(--plum); }
.hx-tag .spark { width: 14px; height: 14px; }
.hx-lead { font-size: clamp(1.05rem, 2vw, 1.2rem); line-height: 1.55; max-width: 30em; margin: 0 0 var(--sp3); }
.hx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp1) var(--sp3); margin: 0; }
.hx-cta .btn { padding: 16px 26px; min-height: 52px; }
.hx-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--display); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.hx-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hx-link:hover { text-decoration-color: var(--yellow-dark); }
.hx-vis { grid-area: vis; position: relative; display: flex; justify-content: center; align-items: flex-end; aspect-ratio: 5 / 8; isolation: isolate; }
.hx-vis img { position: relative; z-index: 2; height: 100%; width: auto; max-width: none; filter: drop-shadow(0 10px 14px rgba(50, 4, 53, 0.25)); }
.hx-s1 { position: absolute; z-index: 0; inset: 26% 4% 3% 4%; background: var(--yellow); border-radius: 28px; transform: rotate(-4deg); }
.hx-s2 { position: absolute; z-index: 1; width: 34%; aspect-ratio: 1; right: -2%; bottom: 6%; border: 4px solid var(--plum); border-radius: 50%; }
.hx-s3 { position: absolute; z-index: 0; left: -4%; top: 34%; width: 42%; height: 30%; background-image: radial-gradient(var(--plum) 1.6px, transparent 1.8px); background-size: 12px 12px; opacity: 0.35; }
.hx-stats { grid-area: stats; margin: 0; display: grid; gap: var(--sp3); align-content: center; padding-left: var(--sp2); border-left: 2px solid var(--line); }
.hx-stats dt { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 9vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; }
.hx-stats dd { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.3; }
@media (min-width: 900px) {
  .hx-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); grid-template-areas: "copy vis" "stats vis"; gap: var(--sp4) var(--sp5); }
  .hx-vis { aspect-ratio: auto; height: min(620px, 72vh); min-height: 460px; }
  .hx-s1 { inset: 24% 14% 3% 14%; border-radius: 40px; }
  .hx-s2 { right: 8%; width: 24%; }
  .hx-s3 { left: 6%; width: 30%; }
  .hx-stats { grid-auto-flow: column; justify-content: start; gap: var(--sp5); padding: var(--sp3) 0 0; border-left: 0; border-top: 2px solid var(--line); align-self: start; }
  .hx-copy { align-self: end; }
}

.px { padding-top: clamp(24px, 4vw, 48px); }
.px-head { max-width: 40em; margin: 0 0 var(--sp4); }
.px-k { font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--sp1); }
.px-head h2 { font-size: clamp(1.8rem, 4.4vw, 3rem); margin: 0 0 0.35em; }
.px-head p:last-child { font-size: 1.15rem; color: var(--muted); margin: 0; }
.px-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp2); }
.ph { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--sp2); }
.ph-n { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--plum); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.ph:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: calc(-1 * var(--sp2)); border-left: 2px dashed var(--plum); opacity: 0.45; }
.ph-b { background: var(--grey); border-radius: 24px; padding: 18px 20px 20px; }
.ph-i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--yellow); margin-bottom: 12px; }
.ph-i svg { width: 24px; height: 24px; fill: none; stroke: var(--plum); color: var(--plum); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ph h3 { font-size: 1.25rem; margin: 0 0 0.3em; }
.ph p { margin: 0; color: var(--muted); line-height: 1.5; }
@media (min-width: 900px) {
  .px-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp3); }
  .ph { display: flex; flex-direction: column; }
  .ph-n { margin: 0 0 -26px 20px; flex: none; }
  .ph-b { padding: 44px 22px 24px; flex: 1; }
  .ph:not(:last-child)::before { left: 84px; right: calc(-1 * var(--sp3) - 20px); top: 25px; bottom: auto; border-left: 0; border-top: 2px dashed var(--plum); }
}
.px-loop { position: relative; margin-top: var(--sp4); border: 2px solid var(--plum); border-radius: 32px; padding: clamp(20px, 3.5vw, 36px); background-color: var(--white); background-image: radial-gradient(var(--line) 1.2px, transparent 1.3px); background-size: 18px 18px; display: grid; grid-template-columns: minmax(0, 1fr) 96px; grid-template-areas: "svg svg" "t me"; gap: var(--sp2); align-items: end; }
.px-loop-t { grid-area: t; align-self: center; }
.px-loop h3 { font-size: 1.4rem; margin: 0 0 0.4em; }
.px-loop p { margin: 0; color: var(--muted); line-height: 1.5; }
.px-svg { grid-area: svg; display: block; width: 100%; height: auto; max-width: 520px; margin-inline: auto; }
.px-line { fill: none; stroke: var(--plum); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.px-back, .px-backh { fill: none; stroke: var(--plum); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; }
.px-back { stroke-dasharray: 6 7; }
.px-pt circle { fill: var(--yellow); stroke: var(--plum); stroke-width: 4; }
.px-pt text { font-family: var(--display); font-weight: 800; font-size: 17px; fill: var(--plum); text-anchor: middle; }
.px-me { grid-area: me; width: 100%; height: auto; justify-self: end; filter: drop-shadow(0 8px 10px rgba(50, 4, 53, 0.22)); }
.px-loop.go .px-line { animation: grow-draw 1.6s ease-out both; }
.px-loop.go .px-pt { animation: bd-in 0.4s ease-out both; animation-delay: var(--d, 0s); }
@media (min-width: 900px) {
  .px-loop { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) 170px; grid-template-areas: "t svg me"; align-items: center; gap: var(--sp4); padding-right: 8px; margin-bottom: 40px; }
  .px-me { width: 165px; max-width: none; margin: -52px 0 -60px; justify-self: center; }
  .px-svg { max-width: 600px; }
}
@media (prefers-reduced-motion: reduce) { .px-loop.go .px-line, .px-loop.go .px-pt { animation: none; } }

/* navbar più compatta su telefono */
@media (max-width: 859px) {
  .site-header { padding-top: 8px; }
  .bar { min-height: 56px; padding: 6px 6px 6px 18px; }
  .brand img { height: 32px; }
  .nav-toggle { width: 44px; height: 44px; }
  .nav-toggle span { left: 12px; right: 12px; }
  .nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 27px; }
}


/* ---------- Stage 15: hero riequilibrata ---------- */
.hx { padding-top: clamp(16px, 3vw, 48px); }
.hx-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "vis" "stats"; gap: var(--sp3); justify-items: center; }
.hx-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hx-badge { font-size: 0.66rem; letter-spacing: 0.12em; padding: 5px 12px; margin-bottom: 14px; background: none; border: 1.5px solid var(--line); color: var(--muted); }
.hx h1 { font-size: clamp(1.85rem, 7.4vw, 3.9rem); line-height: 1.08; max-width: 12.5ch; margin-bottom: 14px; }
.hx h1 span { text-decoration: none; background: var(--yellow); border-radius: 0.18em; padding: 0 0.14em; margin: 0 -0.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; white-space: nowrap; }
.hx-lead { font-size: 1rem; line-height: 1.6; max-width: 23em; margin-bottom: 20px; }
.hx-cta { flex-direction: column; gap: 4px; justify-content: center; }
.hx-cta .btn { padding: 13px 24px; min-height: 48px; font-size: 1rem; }
.hx-link { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--muted); }
.hx-link:hover { color: var(--plum); text-decoration: underline; text-decoration-thickness: 1px; }
.hx-vis { width: min(100%, 300px); aspect-ratio: auto; height: clamp(380px, 112vw, 460px); }
.hx-s1 { inset: 24% 6% 3% 6%; }
.hx-s2 { width: 26%; right: 0; }
.hx-s3 { left: -2%; width: 36%; }
.hx-tag { position: absolute; z-index: 3; right: -4px; top: 13%; margin: 0; display: block; max-width: 8.2em; text-align: center; background: var(--white); border: 2px solid var(--plum); border-radius: 14px 14px 14px 4px; padding: 7px 10px; font-size: 0.82rem; line-height: 1.2; font-weight: 700; transform: rotate(2deg); box-shadow: none; }
.hx-stats { width: 100%; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; padding: 16px 8px; border: 0; background: var(--grey); border-radius: 24px; text-align: center; }
.hx-stats > div + div { border-left: 2px solid var(--line); }
.hx-stats dt { font-size: clamp(2rem, 8vw, 2.8rem); }
.hx-stats dd { font-size: 0.9rem; }
@media (min-width: 900px) {
  .hx-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); grid-template-areas: "copy vis" "stats stats"; gap: var(--sp4) var(--sp5); justify-items: stretch; align-items: center; }
  .hx-copy { text-align: left; align-items: flex-start; align-self: center; }
  .hx h1 { max-width: 13.5ch; margin-bottom: var(--sp3); }
  .hx-badge { font-size: 0.72rem; margin-bottom: var(--sp2); }
  .hx-lead { font-size: 1.15rem; max-width: 28em; margin-bottom: var(--sp3); }
  .hx-cta { flex-direction: row; gap: var(--sp3); justify-content: flex-start; }
  .hx-cta .btn { padding: 16px 26px; min-height: 52px; font-size: 1.05rem; }
  .hx-vis { width: 100%; height: min(680px, 78vh); min-height: 500px; }
  .hx-s1 { inset: 22% 16% 3% 16%; }
  .hx-s2 { right: 10%; width: 22%; }
  .hx-s3 { left: 8%; width: 28%; }
  .hx-tag { right: 6%; top: 14%; font-size: 0.95rem; padding: 9px 13px; }
  .hx-stats { padding: 22px 16px; border-top: 0; justify-content: stretch; align-self: auto; }
}


/* ---------- Stage 16: figura che esce dal riquadro ---------- */
.hx-vis { align-items: flex-start; clip-path: inset(-60px -60px 0 -60px); height: clamp(340px, 98vw, 400px); width: min(100%, 320px); }
.hx-vis img { height: 136%; }
.hx-s1 { inset: 20% 3% 0 3%; transform: none; border-radius: 32px; }
.hx-s2 { bottom: 10%; right: 0; }
.hx-s3 { top: 30%; }
.hx-tag { top: 9%; right: 0; }
@media (min-width: 900px) {
  .hx-vis { width: 100%; max-width: 460px; justify-self: center; height: min(560px, 68vh); min-height: 440px; }
  .hx-s1 { inset: 20% 6% 0 6%; }
  .hx-s2 { right: 2%; width: 22%; }
  .hx-s3 { left: 0; }
  .hx-tag { right: 2%; top: 10%; }
}

/* la fascia dei numeri fa da bancone: copre il taglio */
.hx-vis img { height: 150%; }
.hx-stats { position: relative; z-index: 4; margin-top: calc(-1 * var(--sp3) - 34px); background: var(--white); border: 2px solid var(--plum); box-shadow: 0 6px 0 var(--yellow); }
.hx-s1 { border-radius: 32px 32px 0 0; }
.hx-s2 { bottom: 18%; }
@media (min-width: 900px) { .hx-stats { margin-top: calc(-1 * var(--sp4) - 44px); } .hx-vis { max-width: 440px; } .hx-copy { padding-bottom: 96px; } }

/* fumetto su due righe */
.hx-tag { max-width: none; white-space: nowrap; border: 3px solid var(--plum); border-radius: 18px; padding: 10px 18px; font-size: 0.95rem; line-height: 1.25; font-weight: 800; transform: rotate(3deg); right: -6px; }
@media (min-width: 900px) { .hx-tag { font-size: 1.15rem; padding: 12px 22px; right: -4%; } }


/* ---------- Stage 17: Gigi ---------- */
.px-loop { grid-template-columns: minmax(0, 1fr); grid-template-areas: "svg" "t" "me"; }
.px-gg { width: min(100%, 230px); justify-self: end; filter: none; margin: 0; }
.px-loop .px-gigi { font-family: var(--display); font-weight: 700; color: var(--plum); margin-top: 12px; }
@media (min-width: 900px) {
  .px-loop { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) 250px; grid-template-areas: "t svg me"; padding-right: clamp(20px, 3.5vw, 36px); margin-bottom: 0; }
  .px-gg { width: 250px; margin: 0; align-self: end; }
}
.closing-box.has-gigi { position: relative; overflow: visible; }
.cl-g { position: absolute; right: 28px; bottom: calc(100% - 17px); height: 120px; width: auto; }
#pg-home .closing { padding-top: 110px; }
@media (min-width: 760px) { .cl-g { right: 70px; height: 140px; bottom: calc(100% - 20px); } }



html { scroll-behavior: auto; }

/* mobile: tag un po' piu' in basso, per non coprire il viso */
@media (max-width: 899px) { .hx-tag { top: 39%; } }