/* =====================================================================
   ToneLab 3D — Stile del sito pubblico
   File: src/css/main.css

   Stesso linguaggio visivo del gestionale: sfondo quasi nero, pannelli
   antracite, bordi sottili, angoli arrotondati, accento champagne.
   Font di sistema: nessun caricamento esterno, più velocità e privacy.

   Indice
     1. Variabili (colori, spazi, raggi)
     2. Base
     3. Layout
     4. Intestazione e menu
     5. Pulsanti e link
     6. Card e componenti
     7. Sezioni della home
     8. Catalogo e prodotto
     9. Piè di pagina
    10. Movimento e accessibilità
   ===================================================================== */

/* 1. Variabili ------------------------------------------------------- */
:root {
  --bg: #0b0b0c;
  --bg-elevated: #111112;
  --surface: #161617;
  --surface-2: #1c1c1e;
  --border: #29292b;
  --border-strong: #3a3a3d;

  --text: #f3f2ee;
  --text-2: #a5a49e;
  --text-3: #7a7974;

  --accent: #dccba5;
  --accent-hover: #e6d7b5;
  --accent-ink: #18160f;
  --accent-soft: rgba(220, 203, 165, 0.12);
  --accent-line: rgba(220, 203, 165, 0.35);

  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px -18px rgba(0, 0, 0, 0.6);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 9vw, 112px);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter,
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

/* 2. Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }

h1, h2, h3, .h3 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); }
h3, .h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.muted { color: var(--text-2); }
.small { font-size: 0.875rem; }
.center { text-align: center; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 0.9rem;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--text-2);
  max-width: 62ch;
  text-wrap: pretty;
}

.prose { color: var(--text-2); max-width: 68ch; }
.prose p { text-wrap: pretty; }

.icon { width: 20px; height: 20px; flex: none; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

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

/* 3. Layout ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.narrow { max-width: calc(820px + var(--gutter) * 2); }
.narrow-text { max-width: 68ch; margin-bottom: 2rem; }

.section { padding: var(--section) 0 0; }
.section-tight { padding-top: clamp(24px, 4vw, 40px); }
main > .section:last-child { padding-bottom: var(--section); }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.split {
  display: grid;
  gap: clamp(24px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.section-head h2 { margin-bottom: 0.25em; }
.section-sub { color: var(--text-2); margin: 0; max-width: 60ch; }

.page-head { padding: clamp(40px, 7vw, 88px) 0 0; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }

.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 0.875rem; color: var(--text-3);
  margin-bottom: 1.5rem;
}
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current] { color: var(--text-2); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.actions.center { justify-content: center; }

/* 4. Intestazione e menu --------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 72px;
}

.logo {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.32rem; letter-spacing: -0.035em;
  color: var(--text); line-height: 1; flex: none;
}
.logo-badge {
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.72em; font-weight: 750; letter-spacing: -0.01em;
  padding: 0.22em 0.42em 0.2em; border-radius: 7px;
}

.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) {
  display: block; padding: 8px 11px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 0.94rem; font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}
.main-nav a:not(.btn):hover { color: var(--text); background: var(--surface); }
.main-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle .icon-close { display: none; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  /* posizionato rispetto all'intestazione: il suo effetto sfocato crea
     un nuovo riferimento per gli elementi "fixed" */
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - 72px); height: calc(100dvh - 72px);
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 20px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a:not(.btn) { padding: 14px 12px; font-size: 1.1rem; color: var(--text); }
  .nav-cta { width: 100%; }
  .menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .menu-toggle .icon-open { display: none; }
  .menu-open .menu-toggle .icon-close { display: block; }
  .menu-open { overflow: hidden; }
}

/* 5. Pulsanti e link ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-size: 0.98rem; font-weight: 600; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }

.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover { background: var(--surface-2); border-color: #4a4a4e; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 600; font-size: 0.97rem;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--accent-hover); }
.link-arrow:hover .icon, a:hover > .link-arrow .icon { transform: translateX(3px); }

/* 6. Card e componenti ----------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

a.card { transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.25s var(--ease); }
a.card:hover { border-color: var(--border-strong); background: var(--surface-2); }

.category-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  padding: 24px; min-height: 180px;
}
.category-card h3 { margin-bottom: 0.4em; }
.category-card p { font-size: 0.95rem; }
.category-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: var(--text-3);
  border-top: 1px solid var(--border); padding-top: 14px;
}
.category-meta .icon { width: 18px; height: 18px; color: var(--accent); transition: transform 0.2s var(--ease); }
.category-card:hover .category-meta .icon { transform: translateX(3px); }

.service-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; }
.service-card p { font-size: 0.95rem; flex: 1; }
.service-card .link-arrow { margin-top: 12px; font-size: 0.92rem; }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
  margin-bottom: 14px;
}
.service-icon .icon { width: 22px; height: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; }
.chips li {
  font-size: 0.88rem; color: var(--text-2);
  padding: 6px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--bg-elevated);
}

.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.check-list .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }

.format-tags { display: flex; gap: 8px; margin: 1.25rem 0 1.5rem; }
.format-tags li {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent); padding: 5px 10px; border-radius: 8px;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
}

.steps {
  display: grid; gap: 16px; counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.step { padding: 22px; }
.step h3 { margin: 14px 0 6px; font-size: 1.05rem; }
.step p { color: var(--text-2); font-size: 0.95rem; }
.step-num {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-sign { position: relative; width: 14px; height: 14px; flex: none; }
.faq-sign::before, .faq-sign::after {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px;
  background: var(--accent); border-radius: 2px; transition: transform 0.25s var(--ease);
}
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::after { transform: rotate(0deg); }
.faq-answer { padding: 0 20px 20px; color: var(--text-2); }

.empty { padding: clamp(28px, 5vw, 48px); text-align: center; }
.empty h3 { margin-bottom: 0.4em; }
.empty p { max-width: 52ch; margin: 0 auto 1.4rem; }

.notice { padding: 28px; }
.notice .contact-list { margin-top: 1.4rem; }

.aside-cta { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.aside-cta .btn { margin: 1rem 0 0.5rem; }
.aside-cta .check-list { margin-top: 0.5rem; }

.contact-list { display: grid; gap: 10px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.contact-list a:hover { border-color: var(--border-strong); background: var(--surface-2); }
.contact-list .icon { color: var(--accent); }
.contact-label { display: block; font-size: 0.78rem; color: var(--text-3); letter-spacing: 0.04em; }
.contact-value { display: block; font-weight: 600; overflow-wrap: anywhere; }

/* 7. Sezioni della home ---------------------------------------------- */
.hero { padding: clamp(48px, 9vw, 120px) 0 0; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -72px 0 auto 0; height: 560px; z-index: -1;
  background: radial-gradient(60% 70% at 18% 20%, rgba(220, 203, 165, 0.07), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; gap: clamp(32px, 6vw, 72px); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
.hero h1 { max-width: 16ch; margin-bottom: 0.4em; }
.hero .lead { margin-bottom: 0; }
.hero-copy > * { animation: rise 0.7s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
.hero-panel { padding: 24px; animation: rise 0.8s 0.2s var(--ease) both; }
.hero-panel .eyebrow { margin-bottom: 0.6rem; }

.spec-list li + li { border-top: 1px solid var(--border); }
.spec-list a {
  display: flex; align-items: center; gap: 14px; padding: 14px 4px;
  color: var(--text); font-weight: 550;
}
.spec-icon { color: var(--accent); display: inline-flex; }
.spec-title { flex: 1; }
.spec-arrow { width: 18px; height: 18px; color: var(--text-3); transition: transform 0.2s var(--ease), color 0.2s; }
.spec-list a:hover .spec-arrow { color: var(--accent); transform: translateX(3px); }

.feature { padding: clamp(24px, 4vw, 44px); display: grid; gap: 32px; }
.feature-head { max-width: 62ch; }
.feature-head h2 { margin-bottom: 0.35em; }
.feature-head .section-sub { margin-bottom: 1rem; }
.feature-head .prose { margin-bottom: 1.6rem; }
.feature .step { background: var(--bg-elevated); box-shadow: none; }

.split-card {
  padding: clamp(24px, 4vw, 44px);
  display: grid; gap: 24px 48px; grid-template-columns: 1fr;
}
@media (min-width: 860px) { .split-card { grid-template-columns: 1fr 1fr; align-items: center; } }

.pro-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .pro-grid { grid-template-columns: 1.2fr 1fr; } }
.pro-card { padding: clamp(22px, 3.5vw, 32px); }
.pro-card .prose { margin-bottom: 1.6rem; color: var(--text); }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-line);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(220, 203, 165, 0.10), transparent 60%),
    var(--surface);
}
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band p { margin: 0; }

/* 8. Catalogo e prodotto --------------------------------------------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 24px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; font: inherit; font-size: 0.92rem; font-weight: 500;
  color: var(--text-2); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 9px 16px; min-height: 40px; cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.empty-filter { padding: 24px 0; }

.product-card { overflow: hidden; }
.product-link { display: flex; flex-direction: column; height: 100%; }
.product-media { aspect-ratio: 4 / 3; background: var(--bg-elevated); border-bottom: 1px solid var(--border); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.03); }
.product-card:hover { border-color: var(--border-strong); }
.product-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.product-body .eyebrow { margin-bottom: 0.4rem; font-size: 0.7rem; }
.product-body h3 { margin-bottom: 0.3em; }
.product-body .muted { font-size: 0.94rem; flex: 1; }
.price { font-weight: 650; color: var(--accent); margin: 0.6rem 0 0; font-variant-numeric: tabular-nums; }
.price-lg { font-size: 1.35rem; margin: 0 0 1rem; }

.media-placeholder {
  width: 100%; height: 100%; min-height: 200px;
  display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center;
  color: var(--text-3);
  background: var(--bg-elevated);
}
.media-placeholder .icon { width: 32px; height: 32px; }

.product-layout {
  display: grid; gap: clamp(24px, 5vw, 56px); grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 960px) { .product-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.gallery-main { overflow: hidden; aspect-ratio: 1 / 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumb {
  width: 76px; height: 76px; flex: none; padding: 0; overflow: hidden; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  opacity: 0.6; transition: opacity 0.2s, border-color 0.2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active, .thumb:hover { opacity: 1; border-color: var(--accent-line); }

.product-info h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 0.3em; }
.product-info .lead { margin-bottom: 1.5rem; }
.specs { margin: 0 0 0.5rem; border-top: 1px solid var(--border); }
.specs div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.specs dt { color: var(--text-3); font-size: 0.9rem; }
.specs dd { margin: 0; }
.product-info .actions { margin: 1.6rem 0 0.8rem; }
.product-description { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* 8b. Modulo richieste ---------------------------------------------- */
@media (min-width: 900px) {
  .split.split-form { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}
.form-card { padding: clamp(22px, 4vw, 36px); }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.form-card legend {
  padding: 0; margin-bottom: 16px; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
}
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .field-wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field-label { font-size: 0.9rem; font-weight: 600; color: var(--text-2); }
.req { color: var(--accent); }
.optional { font-weight: 400; color: var(--text-3); text-transform: none; letter-spacing: 0; font-size: 0.85em; margin-left: 4px; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text);
  font: inherit; font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: #e5786d; }
textarea.input { resize: vertical; line-height: 1.5; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5a49e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field-error { color: #f0a49b; font-size: 0.85rem; }

.file-drop {
  position: relative; display: grid; gap: 4px; justify-items: center; text-align: center;
  padding: 26px 18px; border: 1px dashed var(--border-strong); border-radius: var(--radius);
  background: var(--bg-elevated); cursor: pointer; transition: border-color 0.2s, background-color 0.2s;
}
.file-drop:hover, .file-drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-drop-title { font-weight: 600; color: var(--accent); }
.file-list { display: grid; gap: 8px; margin-top: 12px; }
.file-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2);
}
.file-ext { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); min-width: 34px; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 0.85rem; color: var(--text-3); white-space: nowrap; }
.file-remove {
  width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; color: var(--text-2);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.file-remove:hover { background: var(--surface); color: #f0a49b; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-box:not(:empty) { margin-bottom: 18px; min-height: 65px; }

.check-field { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; cursor: pointer; flex-wrap: wrap; }
.check-field input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check-field > span { flex: 1; min-width: 0; color: var(--text-2); font-size: 0.95rem; }
.check-field a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.check-field .field-error { flex-basis: 100%; padding-left: 34px; }

.form-message {
  margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(229, 120, 109, 0.12); color: #f2b0a9; font-size: 0.95rem;
}
.form-progress { margin-bottom: 16px; }
.progress-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 8px; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.25s var(--ease); }
.btn-submit { width: 100%; margin-bottom: 12px; }
.btn.is-busy { opacity: 0.7; cursor: progress; }
.aside-note { margin: 1.4rem 0 0.6rem; }

.form-success { padding: clamp(28px, 5vw, 48px); outline: none; }
.success-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
  margin-bottom: 18px;
}
.success-icon .icon { width: 26px; height: 26px; }
.request-id { color: var(--accent); font-variant-numeric: tabular-nums; }

/* 9. Piè di pagina --------------------------------------------------- */
.site-footer {
  margin-top: var(--section);
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: clamp(40px, 6vw, 64px) 0 calc(28px + env(safe-area-inset-bottom));
}
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; font-size: 0.95rem; }
.footer-links { display: grid; gap: 8px; font-size: 0.95rem; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.footer-contacts a { padding: 12px 14px; }
.footer-contacts { display: grid; gap: 8px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
}
.footer-legal { display: flex; gap: 20px; font-size: 0.875rem; }
.footer-legal a { color: var(--text-2); }

/* 10. Movimento e accessibilità ------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .category-card { min-height: 0; padding: 20px; gap: 16px; }
  .actions .btn { flex: 1 1 100%; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .cta-band .btn { width: 100%; }
}
