/* =========================================================
   Voxel3D — Stile sito stampa 3D
   Tema: chiaro con ancore navy.
   Il sito e' luminoso; le sezioni "firma" (hero delle pagine,
   footer, banner) sono in navy, come le creative social.
   Per cambiare i colori, modifica le variabili qui sotto.
   ========================================================= */

:root {
  --blu: #1878e6;
  --blu-scuro: #0f5fbf;
  --blu-chiaro: #eaf3fd;
  --verde-wa: #25d366;

  /* Navy delle sezioni scure (hero, footer, banner) */
  --navy: #0f2137;
  --navy-2: #16293f;
  --navy-bordo: #2a4260;
  --navy-testo: #9fb2c9;
  --navy-accento: #66b2ff;

  --testo: #0d1b2a;
  --testo-soft: #5b6b80;
  --bordo: #e6eaf0;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --bg-card: #ffffff;

  /* Alias usati dagli <style> delle pagine interne */
  --primary: var(--blu);
  --surface: var(--bg-card);
  --surface-2: var(--bg-alt);
  --border: var(--bordo);
  --text: var(--testo);
  --text-muted: var(--testo-soft);
  --radius-lg: 18px;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(13,27,42,.06), 0 12px 30px rgba(13,27,42,.07);
  --shadow-lg: 0 18px 46px rgba(24,120,230,.20);
  --maxw: 1140px;

  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--testo);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 820px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blu);
  background: var(--blu-chiaro);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.grad {
  background: linear-gradient(100deg, var(--blu), #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===================== BOTTONI ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blu); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.25); }
.btn-primary:hover { background: var(--blu-scuro); box-shadow: 0 12px 28px rgba(37,99,235,.35); }

.btn-ghost { background: #fff; color: var(--testo); border-color: var(--bordo); }
.btn-ghost:hover { border-color: var(--blu); color: var(--blu); }

.btn-whatsapp { background: var(--verde-wa); color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.3); }
.btn-whatsapp:hover { background: #1ebe5a; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--bordo);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; }
.brand-logo { height: 42px; width: auto; display: block; }
@media (max-width: 480px) { .brand-logo { height: 34px; } }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 600; font-size: .95rem; color: var(--testo-soft); transition: color .15s; }
.nav a:hover { color: var(--blu); }
.nav .nav-cta { color: #fff; }
.nav .nav-cta:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--testo); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO (ancora navy) ===================== */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 480px at 82% -12%, rgba(24,120,230,.30), transparent 62%),
    radial-gradient(800px 460px at 0% 0%, rgba(24,120,230,.14), transparent 58%),
    var(--navy);
  padding-top: 70px;
  overflow: hidden;
}
.hero h1 { color: #fff; }
.hero .eyebrow {
  color: #8cc4ff;
  background: rgba(24,120,230,.18);
  border: 1px solid rgba(102,178,255,.28);
}
.hero .grad { background: linear-gradient(100deg, #66b2ff, #a99cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 56px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
.hero .lead { font-size: 1.18rem; color: var(--navy-testo); max-width: 540px; margin: 18px 0 28px; }
/* Sul navy il bottone secondario non puo' essere bianco */
.hero .btn-ghost { background: transparent; color: #d9e6f3; border-color: var(--navy-bordo); }
.hero .btn-ghost:hover { border-color: var(--navy-accento); color: #fff; background: rgba(24,120,230,.14); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 40px 0 0;
  padding: 0;
  flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy-accento); }
.hero-stats span { font-size: .85rem; color: #7d92ab; }

/* Visual animato */
.hero-visual { display: flex; justify-content: center; }
.hero-card {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/5;
  border-radius: 24px;
  /* Sul navy la card deve staccare verso l'alto, non verso il nero */
  background: linear-gradient(160deg, #1d3350, #16293f);
  box-shadow: 0 18px 46px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  border: 1px solid rgba(140,196,255,.16);
}
.printer { width: 200px; display: flex; justify-content: center; }
.print-anim { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.hero-card-label { color: #a9c2e0; font-size: .9rem; font-family: var(--font-display); letter-spacing: .04em; }

.hero-trust { border-top: 1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.16); }
.hero-trust .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: .88rem;
  color: #8ba0b8;
}

/* ===================== SEZIONI ===================== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.section-head p { color: var(--testo-soft); font-size: 1.08rem; margin: 14px 0 0; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--bordo);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===================== SERVIZI ===================== */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card { padding: 32px 28px; transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--blu-chiaro);
  color: var(--blu);
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service-card > p { color: var(--testo-soft); margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 28px; font-size: .95rem; color: var(--testo); }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blu-chiaro);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.audience-col {
  padding: 28px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--bordo);
  background: linear-gradient(180deg, var(--blu-chiaro), #fff);
}
.audience-col h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--blu-scuro); }
.audience-col p { margin: 0; color: var(--testo-soft); }

/* ===================== STEPS ===================== */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blu);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--testo-soft); font-size: .95rem; }

/* ===================== MATERIALI ===================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--bordo); box-shadow: var(--shadow); }
.materials { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; }
.materials th, .materials td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--bordo); font-size: .95rem; }
.materials thead th {
  background: var(--testo);
  color: #fff;
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.materials tbody tr:last-child td { border-bottom: 0; }
.materials tbody tr:hover { background: var(--blu-chiaro); }
.materials td strong { color: var(--blu-scuro); }
.note { font-size: .85rem; color: var(--testo-soft); margin-top: 14px; text-align: center; }

/* ===================== GALLERIA ===================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--bordo);
  background: #fff;
  box-shadow: var(--shadow);
}
.gallery-item img { aspect-ratio: 4/3; width: 100%; object-fit: cover; display: block; }
.gallery-tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  background: var(--blu);
  padding: 4px 10px;
  border-radius: 999px;
}
.gallery-item figcaption { padding: 14px 18px; font-size: .92rem; color: var(--testo-soft); }

/* ===================== FAQ ===================== */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--blu);
  font-weight: 400;
  transition: transform .2s;
  margin-left: 16px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: var(--testo-soft); }

/* ===================== CONTATTI / FORM ===================== */
.section-cta {
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(124,58,237,.10), transparent 60%),
    var(--bg-alt);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: start;
}
.contact-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }
.contact-copy > p { color: var(--testo-soft); font-size: 1.08rem; margin: 14px 0 24px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; }
.contact-list .ci { width: 26px; text-align: center; }
.contact-list a:hover { color: var(--blu); }

.quote-tip {
  background: var(--blu-chiaro);
  border: 1px solid #c7d7fe;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .95rem;
  margin: 0 0 24px;
}
.quote-tip a { color: var(--blu-scuro); text-decoration: underline; }

.quote-form { padding: 30px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--bordo);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--testo);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blu);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.field small { color: var(--testo-soft); font-size: .82rem; }
.field textarea { resize: vertical; }

/* Allegati multipli additivi */
.file-input-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  padding: 11px 18px;
  border: 1px dashed var(--bordo);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--testo);
  transition: border-color .15s, color .15s;
}
.file-add:hover { border-color: var(--blu); color: var(--blu); }
.file-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.file-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--bordo);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: .88rem;
}
.file-item-name { flex: 1 1 100%; min-width: 0; font-weight: 600; color: var(--testo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item-mat { display: flex; align-items: center; gap: 6px; flex: 1 1 150px; min-width: 0; font-size: .8rem; color: var(--testo-soft); }
.file-item-mat select {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid var(--bordo);
  border-radius: 8px;
  font-size: .85rem;
  font-family: var(--font);
  background: #fff;
}
.file-item-qty { display: flex; align-items: center; gap: 6px; flex: none; font-size: .8rem; color: var(--testo-soft); }
.file-item-qty input {
  width: 56px;
  padding: 5px 8px;
  border: 1px solid var(--bordo);
  border-radius: 8px;
  font-size: .85rem;
  font-family: var(--font);
  text-align: center;
}
.file-item-mat select:focus,
.file-item-qty input:focus { outline: none; border-color: var(--blu); box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.file-item-remove {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 0;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.file-item-remove:hover { background: #fecaca; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--testo-soft); margin: 4px 0 18px; }
.check input { margin-top: 4px; }
.check a { color: var(--blu); text-decoration: underline; }

.form-status { font-size: .92rem; margin: 14px 0 0; text-align: center; min-height: 1.2em; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 56px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand-footer { color: #fff; }
.footer-tag { margin: 14px 0 0; max-width: 320px; font-size: .92rem; color: #94a3b8; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 6px; }
.footer-nav a, .footer-contact a { color: #94a3b8; font-size: .92rem; transition: color .15s; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-addr { color: #94a3b8; font-size: .92rem; line-height: 1.5; margin-top: 4px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  font-size: .82rem;
  color: #64748b;
}
.footer-bottom a { color: #94a3b8; }

/* ===================== PAGINA LEGALE ===================== */
.legal { padding-top: 110px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; }
.legal .updated { color: var(--testo-soft); font-size: .9rem; margin: 8px 0 32px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.legal h3 { font-size: 1.02rem; margin: 18px 0 6px; }
.legal p, .legal li { color: var(--testo-soft); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blu); text-decoration: underline; }
.legal .legal-box {
  background: var(--bg-alt);
  border: 1px solid var(--bordo);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
}
.legal .draft-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .9rem;
  margin-bottom: 28px;
}

/* ===================== BANNER COOKIE ===================== */
.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(15,23,42,.22);
  padding: 20px 22px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.cc-banner.cc-show { opacity: 1; transform: none; pointer-events: auto; }
.cc-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cc-text { flex: 1 1 320px; }
.cc-text strong { font-family: var(--font-display); font-size: 1.02rem; display: block; margin-bottom: 4px; }
.cc-text p { margin: 0; font-size: .9rem; color: var(--testo-soft); }
.cc-text a { color: var(--blu); text-decoration: underline; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-btn { padding: 10px 18px; font-size: .9rem; }

/* "Rifiuta" deve avere lo stesso peso visivo di "Accetta" (nessuna scelta va resa meno evidente).
   "Preferenze" resta l'unica azione in stile ghost/discreto. */
.cc-btn-reject {
  background: #fff;
  color: var(--testo);
  border: 2px solid var(--testo);
  font-weight: 600;
}
.cc-btn-reject:hover { background: var(--testo); color: #fff; }

.cc-prefs { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--bordo); display: grid; gap: 12px; }
.cc-prefs[hidden] { display: none; } /* l'attributo [hidden] deve avere la precedenza su display:grid */
.cc-row { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--testo-soft); }
.cc-row input { margin-top: 3px; }
.cc-row-disabled { opacity: .85; }
.cc-prefs-actions { display: flex; justify-content: flex-end; }

@media (max-width: 560px) {
  .cc-actions { width: 100%; }
  .cc-actions .cc-btn { flex: 1; }
}

/* ===================== WHATSAPP FLOTTANTE ===================== */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--verde-wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(37,211,102,.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ===================== ANIMAZIONI REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* ===================== RESPONSIVE ===================== */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 300px; aspect-ratio: 16/10; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--bordo);
    padding: 8px 24px 20px;
    transform: translateY(-130%);
    transition: transform .28s ease;
    box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--bordo); }
  .nav .nav-cta { margin-top: 12px; border-bottom: 0; text-align: center; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .cards-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}

/* =========================================================
   PREVENTIVATORE ISTANTANEO (preventivatore.html)
   ========================================================= */
.btn-sm { padding: 8px 14px; font-size: .85rem; }

.quoter-hero {
  background:
    radial-gradient(900px 420px at 88% -20%, rgba(24,120,230,.30), transparent 62%),
    radial-gradient(700px 400px at 0% 0%, rgba(24,120,230,.14), transparent 58%),
    var(--navy);
  padding: 96px 0 40px;
  text-align: center;
}
.quoter-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.quoter-hero .lead { color: var(--navy-testo); font-size: 1.12rem; max-width: 640px; margin: 16px auto 0; }

.quoter-section { padding-top: 32px; }
.quoter {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: start;
}

/* Dropzone */
.dropzone {
  border: 2px dashed var(--bordo);
  border-radius: var(--radius);
  background: var(--bg-alt);
  min-height: 420px;
  display: grid;
  place-items: center;
  transition: border-color .2s, background .2s;
}
/* l'attributo [hidden] deve avere la precedenza su display:grid */
.dropzone[hidden] { display: none; }
.dropzone.drag { border-color: var(--blu); background: var(--blu-chiaro); }
.dropzone-inner { text-align: center; color: var(--testo-soft); cursor: pointer; padding: 30px; }
.dropzone-inner svg { color: var(--blu); margin-bottom: 14px; }
.dropzone-inner p { margin: 0 0 6px; font-size: 1.05rem; }
.dropzone-inner .link { color: var(--blu); text-decoration: underline; }
.dropzone-inner small { color: var(--testo-soft); }

/* Viewer 3D */
.viewer-wrap { border: 1px solid var(--bordo); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.viewer { width: 100%; height: 420px; background: #0f172a; }
.viewer canvas { display: block; }
.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--bordo);
}
.file-name { font-size: .9rem; color: var(--testo-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-hint { text-align: center; font-size: .8rem; color: var(--testo-soft); margin: 10px 0 0; }

.quoter-error {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: .9rem;
}
.quoter-error.is-loading {
  background: var(--blu-chiaro);
  border-color: #c7d7fe;
  color: var(--blu-scuro);
}

/* Colonna destra */
.quoter-right { display: grid; gap: 20px; position: sticky; top: 86px; }
.config-card { padding: 24px; }
.config-card h2 { font-size: 1.3rem; margin-bottom: 18px; }

.result-card { padding: 24px; }
.result-empty { text-align: center; color: var(--testo-soft); padding: 24px 0; }

.result-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.result-specs div {
  background: var(--bg-alt);
  border: 1px solid var(--bordo);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.result-specs span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--testo-soft); margin-bottom: 4px; }
.result-specs strong { font-family: var(--font-display); font-size: .95rem; }

.price-box {
  background: linear-gradient(150deg, var(--blu), #4f46e5);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  text-align: center;
}
.price-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
.price-value { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1.1; margin: 4px 0; }
.price-sub { font-size: .85rem; opacity: .9; }

.disclaimer {
  font-size: .82rem;
  color: var(--testo-soft);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 18px 0;
}
.result-actions { display: grid; gap: 10px; }
.result-note { text-align: center; font-size: .8rem; color: var(--testo-soft); margin: 4px 0 0; }

@media (max-width: 900px) {
  .quoter { grid-template-columns: 1fr; }
  .quoter-right { position: static; }
}

/* Carrello multi-modello */
.cart { padding: 22px 24px; margin-top: 32px; }
.cart-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.cart-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--bordo);
  border-radius: var(--radius-sm);
}
.cart-item-thumb { flex: none; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #0f172a; border: 1px solid var(--bordo); }
.cart-item-info { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-item-info strong { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-info span { font-size: .8rem; color: var(--testo-soft); }
.cart-item-qty { flex: none; display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--testo-soft); }
.cart-item-qty input {
  width: 56px;
  padding: 5px 8px;
  border: 1px solid var(--bordo);
  border-radius: 8px;
  font-size: .85rem;
  font-family: var(--font);
  text-align: center;
}
.cart-item-qty input:focus { outline: none; border-color: var(--blu); box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.cart-item-price { flex: none; min-width: 62px; text-align: right; font-family: var(--font-display); font-weight: 700; color: var(--blu-scuro); white-space: nowrap; }
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px 4px;
  border-top: 2px solid var(--bordo);
  font-family: var(--font-display);
  font-weight: 700;
}
.cart-total strong { font-size: 1.5rem; color: var(--blu-scuro); }
#quoteSendForm { margin-top: 32px; padding: 26px; }
#quoteSendForm h3 { font-size: 1.2rem; margin-bottom: 16px; }
.cart-done { text-align: center; padding: 44px 24px; }
.cart-done-icon { font-size: 2.6rem; line-height: 1; margin-bottom: 8px; }
.cart-done h3 { font-size: 1.4rem; margin-bottom: 8px; }
.cart-done p { color: var(--testo-soft); margin: 0 0 18px; }


/* =========================================================
   ANCORE NAVY SULLE PAGINE INTERNE
   Gli <style> dentro le singole pagine vengono caricati DOPO
   questo foglio: per vincere serve una specificita' maggiore,
   ottenuta anteponendo "body". Cosi' non tocchiamo gli HTML.
   ========================================================= */
body .page-hero {
  background:
    radial-gradient(900px 420px at 85% -20%, rgba(24,120,230,.30), transparent 62%),
    radial-gradient(700px 380px at 0% 0%, rgba(24,120,230,.14), transparent 58%),
    var(--navy) !important;
  color: #fff;
}
body .page-hero h1 { color: #fff; }
body .page-hero .lead { color: var(--navy-testo); }
body .page-hero .eyebrow {
  color: #8cc4ff;
  background: rgba(24,120,230,.18);
  border: 1px solid rgba(102,178,255,.28);
}
body .page-hero .btn-ghost { background: transparent; color: #d9e6f3; border-color: var(--navy-bordo); }
body .page-hero .btn-ghost:hover { border-color: var(--navy-accento); color: #fff; background: rgba(24,120,230,.14); }

/* Briciole di pane: stanno dentro l'hero navy */
body .page-hero .breadcrumb,
body .page-hero .breadcrumb a,
body .page-hero .breadcrumb span { color: #8ba0b8; }
body .page-hero .breadcrumb a:hover { color: #fff; }

/* Il pannello scuro dentro l'hero (laser / scansione) deve staccare
   verso l'alto, non confondersi con lo sfondo navy */
body .page-hero .laser-card,
body .page-hero .scan-card {
  background: linear-gradient(160deg, #1d3350, #16293f) !important;
  border: 1px solid rgba(140,196,255,.16) !important;
}

/* Banner promozionale: allineato al navy invece che al viola */
body .keep-banner {
  background: linear-gradient(120deg, var(--navy) 0%, #1d4e8c 100%);
}
body .keep-banner .btn { background: #fff; color: var(--blu-scuro); }

/* =========================================================
   FEED FACEBOOK (sezione "Ultimi lavori dai social")
   ========================================================= */
.fbfeed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 940px) { .fbfeed-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fbfeed-grid { grid-template-columns: 1fr; } }

.fbpost {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--bordo);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.fbpost:hover { transform: translateY(-6px); border-color: var(--blu); box-shadow: var(--shadow-lg); }

.fbpost-media { position: relative; display: block; background: var(--bg-alt); }
.fbpost-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.fbpost-media.is-video::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(13,27,42,.28) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center;
  background-size: 56px;
}

.fbpost-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fbpost-date { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--testo-soft); font-weight: 700; }
.fbpost-text {
  margin: 0;
  color: var(--testo-soft);
  font-size: .95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fbpost-link {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--blu);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fbpost-link:hover { color: var(--blu-scuro); }
.fbfeed-foot { text-align: center; margin-top: 34px; }

/* Skeleton di caricamento */
.fbpost-skel {
  height: 340px;
  border-radius: var(--radius);
  border: 1px solid var(--bordo);
  background: linear-gradient(100deg, #f2f6fa 30%, #e8eef6 50%, #f2f6fa 70%);
  background-size: 220% 100%;
  animation: fbshimmer 1.4s linear infinite;
}
@keyframes fbshimmer { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .fbpost-skel { animation: none; } }

/* Titolo in gradiente: sul navy servono toni chiari */
body .page-hero .grad {
  background: linear-gradient(100deg, #66b2ff, #a99cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Le "assicurazioni" (pagina Aziende) stanno dentro l'hero navy:
   pannelli traslucidi invece di rettangoli bianchi */
body .page-hero .assurance {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(140,196,255,.20) !important;
  backdrop-filter: blur(4px);
}
body .page-hero .assurance i { color: var(--navy-accento); }
body .page-hero .assurance strong { color: #fff; }
body .page-hero .assurance span { color: var(--navy-testo); }
