/* ============================================================
   forfettario.tools — restyling 2026-08-25
   Livello di miglioramento visivo: profondità, contrasto, moto.
   Caricato DOPO style.css: qui vivono solo override e aggiunte.
   ============================================================ */

:root {
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(23, 39, 30, 0.05), 0 4px 14px rgba(23, 39, 30, 0.06);
  --shadow-md: 0 2px 6px rgba(23, 39, 30, 0.06), 0 16px 40px rgba(23, 39, 30, 0.10);
  --shadow-lg: 0 4px 10px rgba(23, 39, 30, 0.08), 0 28px 64px rgba(23, 39, 30, 0.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Tipografia ---------- */
.hero-title,
.guide-title,
.section-title {
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

.result-value,
.big-number,
.net-table td,
.net-table th,
.deadline-date {
  font-variant-numeric: tabular-nums;
}

/* ---------- Header: sticky con vetro smerigliato ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(23, 39, 30, 0.06);
}

/* ---------- Hero: profondità discreta ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(37, 70, 55, 0.10), transparent 60%),
    radial-gradient(700px 380px at 8% 12%, rgba(185, 86, 57, 0.06), transparent 55%);
}

/* ---------- Pulsanti: pill, sollevamento ---------- */
.button {
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s var(--ease);
}
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* ---------- Campi: angoli morbidi, focus evidente ---------- */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
select {
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 4px rgba(37, 70, 55, 0.14);
}

/* Slider: pollice più generoso e di marca */
input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  background: var(--moss);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--moss);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

/* ---------- La card del risultato: IL momento dei soldi ---------- */
.result-card {
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 4vw, 36px);
}
.result-card .mini-label,
.result-card .result-subline span,
.result-card .source-note {
  color: #a8b8ac;
}
.result-card .result-subline strong {
  color: var(--paper);
}
.result-value {
  color: #f4efe2;
  text-shadow: 0 2px 24px rgba(232, 182, 74, 0.12);
}
.result-card .breakdown-row {
  border-color: rgba(246, 243, 236, 0.14);
}
.result-card .breakdown-row span,
.result-card .breakdown-row strong {
  color: var(--paper);
}
.result-card .button.secondary {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(246, 243, 236, 0.35);
  box-shadow: none;
}
.result-card .button.secondary:hover {
  background: rgba(246, 243, 236, 0.08);
  border-color: rgba(246, 243, 236, 0.6);
}
/* Badge/etichette dentro la card scura */
.result-card .pill,
.result-card .tag {
  background: rgba(232, 182, 74, 0.16);
  color: #e8c877;
  border-color: transparent;
}

/* ---------- Card generiche: sollevate dal foglio ---------- */
.guide-card,
.tip,
.metric,
.deadline,
.faq-item,
.waitlist-form {
  border-radius: var(--radius-md);
}
.guide-card,
.tip,
.metric {
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.3s var(--ease);
}
.guide-card:hover,
.tip:hover,
.metric:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.guide-card .card-arrow span:last-child {
  display: inline-block;
  transition: transform 0.22s var(--ease);
}
.guide-card:hover .card-arrow span:last-child {
  transform: translateX(5px);
}

/* ---------- FAQ: morbide e reattive ---------- */
.faq-item {
  transition: background-color 0.2s var(--ease);
}
.faq-item:hover {
  background: rgba(37, 70, 55, 0.04);
}
.faq-button .faq-icon {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.faq-button[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

/* ---------- Tabella ATECO e netti: righe reattive ---------- */
.net-table tbody tr {
  transition: background-color 0.15s var(--ease);
}
.net-table tbody tr:hover {
  background: rgba(37, 70, 55, 0.05);
}

/* ---------- Waitlist: card in evidenza ---------- */
.waitlist-form {
  box-shadow: var(--shadow-md);
}

/* ---------- Reveal on scroll (solo con JS attivo) ---------- */
.js-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Riduzione del moto ---------- */
@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .button,
  .guide-card,
  .tip,
  .metric {
    transition: none;
  }
}

/* ---------- Stampa: niente effetti ---------- */
@media print {
  .site-header { position: static; backdrop-filter: none; }
  .result-card { box-shadow: none; }
}
