/* ============================================================
   STUDIO RATTI — Dottori Commercialisti e Revisori Legali — rattistudio.com
   Design system: blu notte + azzurro (palette dal logo), serif classica
   Nessuna risorsa esterna: font di sistema, icone SVG inline
   ============================================================ */

/* Palette derivata dal logo: blu notte + azzurro */
:root {
  --ink: #132a42;
  --ink-2: #1b3a5c;
  --ink-3: #25507c;
  --paper: #f5f7f9;
  --card: #ffffff;
  --accent: #2e7fa3;
  --accent-dark: #1f6485;
  --accent-darker: #174e69;
  --accent-light: #8fc0d2;
  --accent-pale: #e1eef4;
  --muted: #55606c;
  --line: #dbe4ea;
  --line-dark: rgba(255, 255, 255, 0.12);
  --ok: #2e7d4f;
  --warn: #9a4517;
  --wa: #15803f;
  --wa-dark: #106331;
  --shadow-sm: 0 1px 3px rgba(15, 29, 46, 0.08);
  --shadow-md: 0 10px 30px -12px rgba(15, 29, 46, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(15, 29, 46, 0.35);
  --radius: 14px;
  --radius-sm: 9px;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--accent-pale); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

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

/* ---------- Tipografia ---------- */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
  flex: none;
}
.on-dark .kicker { color: var(--accent-light); }
.on-dark .kicker::before { background: var(--accent-light); }

.lead { font-size: 1.13rem; color: var(--muted); max-width: 46em; }
.on-dark .lead { color: #c3cedb; }

/* ---------- Layout ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

section { padding: 72px 0; }
section.tight { padding: 48px 0; }

.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center .kicker::before { display: none; }
.section-head p { margin-top: 12px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 54px 0; }
}

/* ---------- Header ---------- */

.top-bar {
  background: var(--ink);
  color: #b9c5d4;
  font-size: 0.82rem;
  padding: 7px 0;
}
.top-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.top-bar a {
  color: #e8eef5;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  padding: 10px 6px;
  margin: -10px -6px;
}
.top-bar .tb-item { display: inline-flex; align-items: center; gap: 7px; }
.top-bar svg { width: 13px; height: 13px; flex: none; }
@media (max-width: 640px) { .top-bar .tb-hide-mobile { display: none; } }

header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 247, 249, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 74px;
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none !important; }
.brand .mark { width: 46px; height: 46px; flex: none; }
.brand .name {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.brand .name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-top: 3px;
}

nav.main { display: flex; align-items: center; gap: 4px; }
nav.main a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
  padding: 9px 13px;
  border-radius: 8px;
  text-decoration: none;
}
nav.main a:hover { background: var(--accent-pale); text-decoration: none; }
nav.main a[aria-current="page"] { color: var(--accent-dark); }
nav.main a.cta {
  background: var(--ink);
  color: #fff;
  margin-left: 8px;
  padding: 10px 18px;
}
nav.main a.cta:hover { background: var(--ink-3); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  nav.main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 22px 20px;
    box-shadow: var(--shadow-md);
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 13px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  nav.main a.cta { margin: 12px 0 0; border-radius: 8px; text-align: center; border-bottom: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(143, 192, 210, 0.22), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, var(--ink-3) 100%);
  color: #fff;
  padding: 96px 0 110px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M0 47.5h48M47.5 0v48' stroke='%23ffffff' stroke-opacity='0.045' fill='none'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 15em; }
.hero h1 em {
  font-style: normal;
  color: var(--accent-light);
  border-bottom: 3px solid rgba(143, 192, 210, 0.5);
}
.hero p.lead { margin-top: 20px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-badges {
  display: flex;
  gap: 26px 38px;
  flex-wrap: wrap;
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line-dark);
}
.hero-badges .hb { display: flex; gap: 12px; align-items: flex-start; max-width: 250px; }
.hero-badges svg { width: 26px; height: 26px; color: var(--accent-light); flex: none; margin-top: 2px; }
.hero-badges strong { display: block; font-size: 0.98rem; }
.hero-badges span { font-size: 0.85rem; color: #b9c5d4; }

/* ---------- Bottoni ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-gold { background: var(--accent-dark); color: #fff; }
.btn-gold:hover { background: var(--accent-darker); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-3); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; box-shadow: none; }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eaf1f5; }

/* ---------- Card ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.card { text-decoration: none !important; color: inherit; display: block; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-light); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-pale);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--muted); }
.card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.card ul { margin: 10px 0 0 18px; font-size: 0.95rem; color: var(--muted); }
.card ul li { margin-bottom: 6px; }

/* ---------- Fascia scura ---------- */

.band {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
}
.band .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-dark);
  box-shadow: none;
}
.band .card h3 { color: #fff; }
.band .card p, .band .card ul { color: #b9c5d4; }
.band .card .icon { background: rgba(143, 192, 210, 0.16); color: var(--accent-light); }

/* ---------- Numeri / pilastri ---------- */

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillar { text-align: center; padding: 26px 16px; }
.pillar svg { width: 34px; height: 34px; color: var(--accent); margin: 0 auto 12px; }
.pillar strong { display: block; font-family: var(--serif); font-size: 1.25rem; margin-bottom: 6px; }
.pillar span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Liste di dettaglio servizi ---------- */

.svc-detail { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.svc-detail:first-of-type { border-top: none; }
.svc-detail .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--accent-pale); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.svc-detail .icon svg { width: 28px; height: 28px; }
.svc-detail h2 { font-size: 1.5rem; }
.svc-detail .svc-body p { color: var(--muted); margin-bottom: 14px; }
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; list-style: none; }
.svc-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.97rem; }
.svc-list svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 5px; }
@media (max-width: 880px) {
  .svc-detail { grid-template-columns: 1fr; gap: 18px; }
  .svc-list { grid-template-columns: 1fr; }
}

/* ---------- Steps / come lavoriamo ---------- */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 22px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--accent-light);
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}
.step h3 { font-size: 1.05rem; margin-bottom: 7px; }
.step p { font-size: 0.9rem; color: var(--muted); }

/* ---------- FAQ accordion ---------- */

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 52px 19px 22px;
  font-weight: 700;
  font-size: 1.02rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 0.97rem; }
.faq details[open] { border-color: var(--accent-light); }

/* ---------- Strumenti / tools ---------- */

.tool {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 34px 30px;
  margin-bottom: 34px;
  scroll-margin-top: 110px;
}
.tool > h2 { display: flex; align-items: center; gap: 14px; font-size: 1.45rem; margin-bottom: 6px; }
.tool > h2 svg { width: 28px; height: 28px; color: var(--accent); flex: none; }
.tool > .tool-sub { color: var(--muted); font-size: 0.96rem; margin-bottom: 22px; max-width: 60em; }

.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 22px; }
.tool-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .tool-grid { grid-template-columns: 1fr; } }

.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfd;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 127, 163, 0.35);
}
.field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 5px; }

.tool .btn { margin-top: 20px; }

/* La region aria-live resta sempre nel DOM (mai display:none),
   così gli screen reader annunciano i risultati quando compaiono. */
.result {
  display: block;
  margin-top: 0;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.result.show {
  margin-top: 24px;
  border: 1.5px solid var(--accent-light);
  background: linear-gradient(180deg, #fafdfe, #eef5f8);
  padding: 22px 24px;
  animation: fadeUp 0.35s ease;
}
.result h4 { font-family: var(--serif); font-size: 1.12rem; margin-bottom: 12px; }
.result table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.result th, .result td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.result th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.result td.num, .result th.num { text-align: right; font-variant-numeric: tabular-nums; }
.result tr.tot td { font-weight: 800; border-top: 2px solid var(--accent-light); border-bottom: none; }
.result .verdict { font-size: 1.02rem; font-weight: 700; margin-top: 14px; }
.result .verdict.good { color: var(--ok); }
.result .verdict.bad { color: var(--warn); }
.result .note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

.badge-ok, .badge-no {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.05rem;
  padding: 8px 16px; border-radius: 99px;
}
.badge-ok { background: #e5f3ea; color: var(--ok); }
.badge-no { background: #fbeae0; color: var(--warn); }

.disclaimer {
  font-size: 0.84rem;
  color: var(--muted);
  background: var(--accent-pale);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 8px 0 34px;
}

/* ---------- Banner in evidenza (es. sportello fatture) ---------- */
.feature-banner {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: space-between;
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 34px;
  box-shadow: var(--shadow-md);
}
.feature-banner .fb-main { display: flex; align-items: center; gap: 20px; flex: 1 1 340px; }
.feature-banner .fb-ico {
  width: 58px; height: 58px; flex: none;
  border-radius: 14px;
  background: rgba(143, 192, 210, 0.16);
  color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
}
.feature-banner .fb-ico svg { width: 30px; height: 30px; }
.feature-banner h3 { color: #fff; font-size: 1.3rem; margin-bottom: 5px; }
.feature-banner p { color: #c3cedb; font-size: 0.96rem; max-width: 44em; }
.feature-banner .btn { flex: none; }
@media (max-width: 640px) {
  .feature-banner { padding: 26px; }
  .feature-banner .btn { width: 100%; }
}

/* ---------- Scadenzario ---------- */

.deadline-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.deadline-filters button {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
}
.deadline-filters button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.deadline { display: flex; gap: 18px; padding: 16px 6px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.deadline:last-child { border-bottom: none; }
.deadline .date {
  flex: none;
  width: 74px;
  text-align: center;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 9px 6px 10px;
}
.deadline .date b { display: block; font-family: var(--serif); font-size: 1.45rem; line-height: 1; }
.deadline .date span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; }
.deadline.past { opacity: 0.7; }
.deadline.next .date { background: var(--accent-dark); }
.deadline .dl-body strong { display: block; font-size: 1rem; }
.deadline .dl-body p { font-size: 0.88rem; color: var(--muted); margin-top: 3px; }
.deadline .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1c5a77;
  background: var(--accent-pale);
  border-radius: 5px;
  padding: 2px 8px;
  margin-top: 7px;
}

/* ---------- Contatti ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 34px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-card:last-child { border-bottom: none; }
.contact-card .icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  background: var(--accent-pale); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
}
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card strong { display: block; margin-bottom: 3px; }
.contact-card a { font-size: 1.05rem; font-weight: 700; }
.contact-card p { font-size: 0.88rem; color: var(--muted); }

.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours td { padding: 9px 6px; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }

/* ---------- CTA finale ---------- */

.cta-final { text-align: center; }
.cta-final h2 { max-width: 18em; margin: 0 auto 14px; }
.cta-final .lead { margin: 0 auto 30px; }
.cta-final .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

footer.site {
  background: var(--ink);
  color: #b9c5d4;
  padding: 60px 0 30px;
  font-size: 0.92rem;
}
footer.site .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 880px) { footer.site .cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 9px; }
footer.site a { color: #d7dfe9; }
footer.site .brand .name { color: #fff; }
footer.site .brand .name small { color: var(--accent-light); }
footer.site .f-about { font-size: 0.88rem; margin-top: 14px; max-width: 34em; }
footer.site .legal {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 0.8rem;
  color: #8896a7;
}

/* ---------- WhatsApp float ---------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(23, 138, 69, 0.45);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Breadcrumb / hero pagina interna ---------- */

.page-hero {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  padding: 64px 0 58px;
}
.page-hero h1 { max-width: 18em; }
.page-hero .lead { margin-top: 14px; }

/* ---------- Animazioni reveal ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
.gold-text { color: var(--accent-dark); }

/* ---------- Print ---------- */

@media print {
  header.site, .top-bar, .wa-float, footer.site .cols, .hero-actions, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .result { display: block; }
}
