/* gestionesocialmedia.it — design system in docs/04_design_system.md */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/newsreader-latin.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("../fonts/newsreader-italic-latin.woff2") format("woff2"); }

:root {
  --c-bg: #FAF9F5;
  --c-surface: #EFE9DE;
  --c-border: #E6DFD8;
  --c-ink: #141413;
  --c-ink-2: #3D3D3A;
  --c-muted: #6C6A64;
  --c-accent: #CC785C;
  --c-accent-strong: #A9583E;
  --c-accent-soft: #F3DFD5;
  --c-amber: #E8A55A;
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
  --sec: 64px;
}
@media (min-width: 960px) { :root { --gutter: 40px; --sec: 112px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font: 400 16px/1.625 var(--f-sans); -webkit-font-smoothing: antialiased; }
@media (min-width: 960px) { body { font-size: 17px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent-strong); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--c-accent-strong); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec) 0; }
.section--surface { background: var(--c-surface); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--c-ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 10; }

h1, h2, h3 { font-family: var(--f-serif); font-weight: 400; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: 40px; line-height: 1.1; }
h2 { font-size: 32px; line-height: 1.18; }
h3 { font-size: 22px; line-height: 1.27; font-weight: 500; }
@media (min-width: 960px) { h1 { font-size: 72px; line-height: 1.05; } h2 { font-size: 48px; } h3 { font-size: 26px; } }
h1 em, h2 em { color: var(--c-accent); font-style: italic; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 18px; line-height: 1.55; color: var(--c-ink-2); }
@media (min-width: 960px) { .lead { font-size: 21px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1.4 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-2); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--c-accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 600 16px/1.2 var(--f-sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--c-accent-strong); color: #fff; }
.btn--primary:hover { background: var(--c-ink); }
.btn--ghost { border-color: var(--c-ink); color: var(--c-ink); background: transparent; }
.btn--ghost:hover { background: var(--c-ink); color: var(--c-bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.header { position: sticky; top: 0; z-index: 5; background: rgba(250, 249, 245, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-border); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.header img { width: 168px; }
.nav { display: none; gap: 28px; align-items: center; }
.nav a { color: var(--c-ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--c-accent-strong); }
.nav .btn { min-height: 42px; padding: 8px 18px; font-size: 15px; color: #fff; }
/* Menu burger: tre linee che diventano una X */
.menu-btn { position: relative; width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: 12px; cursor: pointer; }
.menu-btn span { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: var(--c-ink); transition: transform .3s ease, opacity .2s ease, top .3s ease; }
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
@media (min-width: 960px) { .nav { display: flex; } .menu-btn { display: none; } }

/* Hero */
.hero { padding: 48px 0 var(--sec); }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding-top: 88px; } .hero .wrap { grid-template-columns: 7fr 5fr; gap: 64px; } }
/* Slider dei testi in homepage: slide sovrapposte nella stessa cella, altezza = slide più alta (nessuno spostamento del layout) */
.h1 { font-family: var(--f-serif); font-weight: 400; margin: 0 0 .5em; letter-spacing: -0.02em; font-size: 40px; line-height: 1.1; color: var(--c-ink); }
.h1 em { color: var(--c-accent); font-style: italic; }
@media (min-width: 960px) { .h1 { font-size: 72px; line-height: 1.05; } }
.hslider__track { display: grid; }
.hslide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s; }
.hslide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease, transform .6s ease; }
.hslider__nav { display: none; align-items: center; gap: 10px; margin: 8px 0 28px; }
.hslider__dot { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: var(--c-border); cursor: pointer; }
.hslider__dot[aria-current="true"] { background: var(--c-accent-strong); }
.hslider__pause { margin-left: 8px; padding: 2px 8px; border: 1px solid var(--c-border); border-radius: 999px; background: transparent; font: 500 12px/1.6 var(--f-sans); color: var(--c-muted); cursor: pointer; }
.hslider.is-ready .hslider__nav { display: flex; }
/* Foto abbinate alle slide: sovrapposte, stesso formato della foto principale */
.hmedia { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
.hmedia__item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.hmedia__item.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.hmedia__item img { aspect-ratio: 1046 / 1118 !important; object-fit: cover; object-position: 50% 0; height: auto; }
.hmedia figcaption { z-index: 1; }
.hero__trust { display: flex; align-items: center; gap: 12px; margin-top: 32px; font-size: 14px; color: var(--c-muted); }
.hero__trust img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.portrait { position: relative; margin: 0; }
@media (max-width: 959px) { .hero .portrait { width: 100%; max-width: 420px; justify-self: center; } }
.portrait img { border-radius: 20px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; }
.portrait figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--c-bg); border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.35; box-shadow: 0 6px 24px rgba(20, 20, 19, .12); }
.portrait figcaption strong { display: block; font-family: var(--f-serif); font-size: 18px; font-weight: 500; }

/* Problema */
.pain { display: grid; gap: 16px; margin-top: 32px; padding: 0; list-style: none; }
.pain li { border-top: 1px solid var(--c-border); padding-top: 16px; font-size: 18px; color: var(--c-ink-2); }
@media (min-width: 960px) { .pain { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* Servizi */
.cards { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; }
.card__num { font: italic 400 40px/1 var(--f-serif); color: var(--c-accent); margin-bottom: 20px; }
.card p { color: var(--c-ink-2); font-size: 16px; }
.card a { margin-top: auto; font-weight: 600; font-size: 15px; }

/* Processo */
.steps { display: grid; gap: 32px; margin-top: 40px; padding: 0; list-style: none; counter-reset: s; }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; font: italic 400 48px/1 var(--f-serif); color: var(--c-accent); margin-bottom: 12px; }
.steps h3 { font-size: 22px; }
.steps p { color: var(--c-ink-2); font-size: 16px; }

/* Chi sono */
.about .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .about .wrap { grid-template-columns: 5fr 7fr; gap: 80px; } }
.about img { border-radius: 20px; aspect-ratio: 4 / 5; object-fit: cover; }
.stats { display: flex; gap: 32px; margin: 28px 0; flex-wrap: wrap; }
.stats div { font-size: 14px; color: var(--c-muted); }
.stats strong { display: block; font: 400 40px/1 var(--f-serif); color: var(--c-ink); }
.todo { background: var(--c-accent-soft); color: var(--c-ink); font: 600 11px/1 var(--f-sans); padding: 4px 6px; border-radius: 4px; vertical-align: middle; letter-spacing: .04em; }

/* FAQ */
.faq { max-width: 820px; margin-top: 32px; }
.faq details { border-top: 1px solid var(--c-border); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--c-border); }
.faq summary { cursor: pointer; list-style: none; font: 500 20px/1.35 var(--f-serif); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-sans); color: var(--c-accent-strong); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--c-ink-2); }

/* CTA scura */
.cta { background: var(--c-ink); color: var(--c-bg); border-radius: 0; }
.cta .wrap { text-align: center; }
.cta h2 { color: var(--c-bg); }
.cta h2 em { color: var(--c-accent); }
.cta p { margin: 0 auto; color: #CFCCC4; }
.cta .btn-row { justify-content: center; }
.cta .btn--ghost { border-color: var(--c-bg); color: var(--c-bg); }
.cta .btn--ghost:hover { background: var(--c-bg); color: var(--c-ink); }
.cta .btn--primary:hover { background: var(--c-accent); color: var(--c-ink); }

/* Footer */
.footer { padding: 48px 0; font-size: 14px; color: var(--c-muted); }
.footer .wrap { display: grid; gap: 24px; }
@media (min-width: 960px) { .footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.footer img { width: 150px; margin-bottom: 12px; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--c-ink-2); }

/* Barra CTA mobile: compare dopo la hero, lascia spazio a destra per la bolla della chat */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 84px 10px 12px; background: rgba(250, 249, 245, .96); border-top: 1px solid var(--c-border); z-index: 6; transform: translateY(110%); transition: transform .2s; }
.mbar.is-visible { transform: none; }
.mbar .btn { flex: 1; min-height: 44px; padding: 8px 10px; font-size: 15px; white-space: nowrap; }
html.sca-chat-open .mbar { display: none; }
@media (min-width: 960px) { .mbar { display: none; } }
@media (max-width: 959px) { .footer { padding-bottom: 96px; } }

/* Menu mobile */
@media (max-width: 959px) {
  .nav.is-open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--c-bg); border-bottom: 1px solid var(--c-border); box-shadow: 0 12px 24px rgba(20, 20, 19, .08); }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--c-border); font-size: 17px; }
  .nav.is-open .btn { margin-top: 16px; border: 0; }
}
.header__logo { display: inline-flex; }

/* Varianti hero e ritratti */
.hero--compact { padding-bottom: 56px; }
@media (min-width: 960px) { .hero--compact .wrap { grid-template-columns: 7fr 4fr; } }
.portrait picture img, .about__img img, .contact__img img { border-radius: 20px; width: 100%; height: auto; }
.portrait img { aspect-ratio: auto; }
.portrait--small { max-width: 420px; justify-self: center; }
.about__img img { aspect-ratio: 4 / 5; object-fit: cover; }
.narrow { max-width: 780px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center p { margin-left: auto; margin-right: auto; }
.btn-row.center, .center .btn-row { justify-content: center; }
.pain strong { color: var(--c-ink); font-weight: 600; }

/* Contatti e form */
.contact .wrap { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact .wrap { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; } }
.contact__list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; font-weight: 600; }
.contact__img { max-width: 320px; margin-top: 32px; }
.form { background: #fff; border: 1px solid var(--c-border); border-radius: 14px; padding: 28px; display: grid; gap: 18px; }
@media (min-width: 640px) { .form { padding: 36px; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #CFCCC4; border-radius: 6px; background: var(--c-bg); font: inherit; color: var(--c-ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--c-accent-strong); outline: 3px solid rgba(169, 88, 62, .25); outline-offset: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field--check { grid-template-columns: 22px 1fr; align-items: start; gap: 10px; }
.field--check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; accent-color: var(--c-accent-strong); }
.field--check label { font-weight: 400; font-size: 15px; }
.form__errors { border: 1px solid #B42318; background: #FEF3F2; color: #7A271A; border-radius: 8px; padding: 14px 16px; }
.form__errors ul { margin: 6px 0 0; padding-left: 18px; }
.form__errors p { margin: 0; }
.form__note { font-size: 14px; color: var(--c-muted); margin: 0; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pagine legali */
.legal h1 { font-size: 36px; }
@media (min-width: 960px) { .legal h1 { font-size: 48px; } }
.legal h2 { font-size: 26px; margin-top: 1.6em; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.table th { font-weight: 600; background: var(--c-surface); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.about__more { display: inline-block; padding: 10px 0; }

/* CRM */
body.crm { background: var(--c-surface); }
.crm-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.crm-login .form { width: 100%; max-width: 380px; }
.crm-login h1 { font-size: 28px; margin: 8px 0 0; }
.crm-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 20px 64px; }
.crm-wrap h1 { font-size: 32px; }
.crm-wrap h1 small { color: var(--c-muted); font-size: 18px; }
.crm-wrap h2 { font-size: 22px; margin-top: 32px; }
.crm-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.crm-bar form { margin: 0; }
.crm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.crm-filters a { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--c-border); color: var(--c-ink); text-decoration: none; font-size: 14px; }
.crm-filters a[aria-current] { background: var(--c-ink); color: #fff; }
.crm .table { background: #fff; }
.crm-dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; background: #fff; padding: 20px; border-radius: 14px; border: 1px solid var(--c-border); }
.crm-dl dt { font-weight: 600; }
.crm-dl dd { margin: 0; }
.crm-msg { background: #fff; padding: 20px; border-radius: 14px; border: 1px solid var(--c-border); max-width: none; }
.crm-event { background: #fff; border: 1px solid var(--c-border); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; }
.crm-event pre { white-space: pre-wrap; font-size: 13px; }
.crm .form { margin-top: 24px; max-width: 640px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; background: var(--c-accent-soft); }
.badge--cliente { background: #D1FADF; } .badge--perso, .badge--archiviato { background: #EAECF0; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.notice { background: #D1FADF; padding: 10px 14px; border-radius: 8px; }

/* Fascia di contatto finale con foto su fondo scuro */
.cta__grid { display: grid; gap: 32px; justify-items: center; }
.cta__img { width: 220px; }
.cta__img img { border-radius: 20px; width: 100%; height: auto; }
@media (min-width: 960px) {
  .cta .wrap.cta__grid { grid-template-columns: 300px 1fr; gap: 72px; align-items: center; justify-items: start; text-align: left; }
  .cta__img { width: 300px; }
  .cta .cta__text p { margin: 0; }
  .cta .cta__text .btn-row { justify-content: flex-start; }
}

/* Meta Ads: obiettivi Lead / Awareness e automazioni */
.goals { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 900px) { .goals { grid-template-columns: 1fr 1fr; } }
.goal { background: var(--c-surface); border-radius: 20px; padding: 32px; }
.goal h3 { margin-bottom: .3em; }
.goal__tag { font: 500 12px/1.4 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent-strong); margin: 0 0 10px; }
.goal__fit { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--c-border); color: var(--c-ink-2); }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--c-accent); border-bottom: 2px solid var(--c-accent); transform: rotate(-45deg); }
.goals__auto { margin-top: 56px; }
.goals__auto h3 em { color: var(--c-accent); font-style: italic; }
.goals__auto .goals { margin-top: 8px; }
.goals__auto .ticks { margin: 0; }
.goals__combo { margin-top: 40px; padding: 28px 32px; border-left: 4px solid var(--c-accent); background: var(--c-accent-soft); border-radius: 0 16px 16px 0; }
.goals__combo h3 { margin-bottom: .3em; }
.goals__combo p { margin: 0; }

/* Animazioni: comparsa allo scorrimento (solo con JS attivo e senza "riduci movimento") */
.js-anim [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js-anim [data-reveal].is-in { opacity: 1; transform: none; }

/* Card dei servizi: sollevamento al passaggio del mouse */
.card { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, opacity .7s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20, 20, 19, .08); border-color: var(--c-accent-soft); }
.card__num { display: inline-block; transition: transform .35s ease; }
.card:hover .card__num { transform: translateX(6px); }

/* Passi: linea che si disegna e punti che si accendono */
@media (min-width: 960px) {
  .steps { position: relative; }
  .steps::before { content: ""; position: absolute; left: 0; right: 0; top: 70px; height: 2px; background: var(--c-border); }
  .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 70px; height: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.6, 0, .2, 1); }
  .steps li { position: relative; }
  .steps li::before { margin-bottom: 44px; }
  .steps li::after { content: ""; position: absolute; left: 0; top: 64px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-bg); border: 2px solid var(--c-accent); transform: scale(0); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(.3s + var(--i, 0) * .35s); }
  .steps.is-in::after, .no-anim .steps::after { transform: scaleX(1); }
  .steps.is-in li::after, .no-anim .steps li::after { transform: scale(1); }
}

/* Icone animate dei problemi */
.pain__ico { display: block; width: 56px; height: 56px; margin-bottom: 14px; fill: none; stroke: var(--c-accent-strong); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ico-cal .d { fill: var(--c-accent); stroke: none; opacity: .15; }
.ico-cal .d1, .ico-cal .d3, .ico-cal .d5 { animation: blink 3.2s infinite; }
.ico-cal .d3 { animation-delay: 1.1s; } .ico-cal .d5 { animation-delay: 2.3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .15; } 15%, 35% { opacity: 1; } }
.ico-chat .t { fill: var(--c-accent-strong); stroke: none; animation: typing 1.4s infinite; }
.ico-chat .t2 { animation-delay: .2s; } .ico-chat .t3 { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-3px); opacity: 1; } }
.ico-chat .badge circle { fill: var(--c-accent-strong); stroke: var(--c-surface); stroke-width: 2; }
.ico-chat .badge text { fill: #fff; stroke: none; font: 700 10px/1 var(--f-sans); }
.ico-chat .badge { transform-box: fill-box; transform-origin: center; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.ico-coin .coin circle { fill: var(--c-amber); stroke: var(--c-accent-strong); }
.ico-coin .coin text { fill: var(--c-ink); stroke: none; font: 700 9px/1 var(--f-sans); }
.ico-coin .coin { animation: drop 2.4s cubic-bezier(.5, 0, .8, .6) infinite; }
@keyframes drop { 0% { transform: translateY(-6px); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(26px); opacity: 1; } 85%, 100% { transform: translateY(30px); opacity: 0; } }
.ico-coin .q { fill: var(--c-accent-strong); stroke: none; font: 700 16px/1 var(--f-serif); animation: blink 2.4s infinite 1.6s; }

/* Meta Ads: schema animato del tracciamento */
.track { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .track { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.flow { margin: 0; }
.flow svg { width: 100%; height: auto; overflow: visible; }
.flow__path { fill: none; stroke: var(--c-accent); stroke-width: 2; stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.flow__dot { fill: var(--c-accent-strong); filter: drop-shadow(0 0 6px rgba(204, 120, 92, .7)); }
.flow__node rect { fill: var(--c-bg); stroke: var(--c-border); stroke-width: 1.5; }
.flow__node text { font: 600 15px/1 var(--f-sans); fill: var(--c-ink); text-anchor: middle; }
.flow__node--hot rect { fill: var(--c-accent-strong); stroke: none; animation: glow 3s infinite; }
.flow__node--hot text { fill: #fff; }
.flow__node--dark rect { fill: var(--c-ink); stroke: none; }
.flow__node--dark text { fill: var(--c-bg); }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(169, 88, 62, 0)); } 50% { filter: drop-shadow(0 0 12px rgba(169, 88, 62, .55)); } }
.flow__label { font: 500 13px/1 var(--f-sans); fill: var(--c-muted); text-anchor: middle; }

@media (prefers-reduced-motion: reduce) {
  .pain__ico *, .flow__path, .flow__node--hot rect { animation: none !important; }
  .flow__dot { display: none; }
}
.js-anim .card[data-reveal].is-in { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; transition-delay: 0s; }

/* Tablet e telefono: foto di "Chi sono" non oltre 420 px, centrata */
@media (max-width: 959px) { .about__img { width: 100%; max-width: 420px; justify-self: center; } }

/* Tabelle legali da telefono: ogni riga diventa una scheda con le etichette */
@media (max-width: 639px) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { border: 1px solid var(--c-border); border-radius: 12px; padding: 6px 14px; margin-bottom: 12px; background: var(--c-bg); }
  .table--stack td { border: 0; padding: 8px 0; }
  .table--stack td + td { border-top: 1px solid var(--c-border); }
  .table--stack td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 2px; }
}
/* Tablet: problemi su tre colonne e passi su due */
@media (min-width: 720px) and (max-width: 959px) { .pain { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 640px) and (max-width: 959px) { .steps { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
