/* ==========================================================================
   FR SERVICE — Forensic Research
   Design system / global stylesheet
   ========================================================================== */

:root {
  /* Palette */
  --navy-900: #0a1628;
  --navy-800: #0f2038;
  --navy-700: #16304f;
  --navy-600: #1d3d63;
  --steel:    #25527f;
  --accent:   #2f80ed;   /* blue accent */
  --accent-2: #38b6a0;   /* teal */
  --gold:     #c9a24b;   /* forensic gold detail */
  --ink:      #16202e;
  --muted:    #5b6b7d;
  --line:     #e4e9f0;
  --bg:       #ffffff;
  --bg-soft:  #f5f8fc;
  --bg-soft2: #eef3fa;
  --white:    #ffffff;
  --ok:       #2ea66a;
  --warn:     #d8821b;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 8px rgba(13, 30, 54, .06);
  --shadow:    0 12px 36px rgba(13, 30, 54, .12);
  --shadow-lg: 0 26px 60px rgba(13, 30, 54, .20);

  --max: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 { line-height: 1.18; color: var(--navy-900); margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-900); color: #d8e2f0; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--accent-2); }

.lead { font-size: 1.13rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #aebed3; }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .98rem;
  padding: 13px 24px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(47,128,237,.35); }
.btn--primary:hover { background: #1f6fd6; }
.btn--gold { background: var(--gold); color: #2a2210; box-shadow: 0 8px 20px rgba(201,162,75,.35); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-700); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900); color: #cbd7e6;
  font-size: .82rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #cbd7e6; }
.topbar .tb-right { display: flex; gap: 18px; }
.topbar .badge { color: var(--gold); font-weight: 600; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-700), var(--accent));
  color: #fff; font-weight: 900; font-size: 1.05rem;
  display: grid; place-items: center; letter-spacing: -.04em;
  box-shadow: var(--shadow-sm);
}
.brand .brand-logo { height: 48px; width: auto; display: block; border-radius: 8px; }
.app-topbar .brand .brand-logo { height: 40px; }
.brand .bt { display: flex; flex-direction: column; line-height: 1.05; }
.brand .bt strong { color: var(--navy-900); font-size: 1.05rem; letter-spacing: .02em; }
.brand .bt span { color: var(--muted); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; }

.menu { display: flex; align-items: center; flex-wrap: nowrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a {
  color: var(--ink); font-weight: 600; font-size: .93rem; white-space: nowrap;
  padding: 9px 11px; border-radius: 8px;
}
.menu a:hover { background: var(--bg-soft2); text-decoration: none; color: var(--navy-900); }
.menu a.active { color: var(--accent); }

/* Sotto-menu (categorie) */
.menu .has-sub { position: relative; }
.menu .has-sub > .sub-toggle { display: inline-flex; align-items: center; gap: 5px; }
.menu .caret { font-size: .62rem; }
.menu .submenu {
  list-style: none; margin: 0; padding: 6px;
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); display: none; z-index: 60;
}
.menu .has-sub:hover .submenu { display: block; }
.menu .submenu a { display: block; padding: 9px 12px; white-space: nowrap; }
/* Secondo livello (sotto-categorie) */
.menu .submenu .has-sub-2 { position: relative; }
.menu .submenu .has-sub-2 > .sub-toggle-2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.menu .submenu-2 {
  list-style: none; margin: 0; padding: 6px;
  position: absolute; top: -7px; left: 100%; min-width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); display: none; z-index: 61;
}
.menu .submenu .has-sub-2:hover .submenu-2 { display: block; }
.menu .submenu-2 a { display: block; padding: 9px 12px; white-space: nowrap; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); margin: 5px auto; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(47,128,237,.20), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #e7eefa;
  padding: 84px 0 92px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--accent-2); }
.hero p.lead { color: #b9c8de; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust div { font-size: .85rem; color: #9fb1cb; }
.hero-trust strong { display: block; font-size: 1.7rem; color: #fff; font-weight: 800; }

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; padding: 26px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: #fff; margin-bottom: 16px; font-size: 1.1rem; }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li { display: flex; gap: 11px; padding: 9px 0; color: #cdd9ea; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.hero-card li:last-child { border: 0; }
.hero-card li .ck { color: var(--accent-2); font-weight: 900; }

/* ---------- Logos / trust strip ---------- */
.trust-strip { background: var(--navy-800); padding: 18px 0; }
.trust-strip .container { display: flex; align-items: center; justify-content: center; gap: 38px; flex-wrap: wrap; color: #8fa3bd; font-size: .85rem; font-weight: 600; letter-spacing: .03em; }
.trust-strip span { display: flex; align-items: center; gap: 8px; }
.trust-strip .dot { color: var(--accent-2); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0f6; }
.card .ico {
  width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--bg-soft2); color: var(--accent); margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .9rem; }

/* feature list inside card */
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag { font-size: .76rem; font-weight: 600; color: var(--steel); background: var(--bg-soft2); padding: 4px 10px; border-radius: 999px; }

/* ---------- Audience ---------- */
.aud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.aud-item { background: var(--navy-800); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 24px; }
.aud-item .ico { font-size: 1.6rem; margin-bottom: 12px; }
.aud-item h3 { color: #fff; font-size: 1.08rem; }
.aud-item p { color: #a9bad2; font-size: .92rem; margin: 0; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .n {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1.15rem;
  display: grid; place-items: center; margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(47,128,237,.3);
}
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; text-align: center; }
.stat strong { display: block; font-size: 2.4rem; color: var(--accent-2); font-weight: 800; }
.stat span { color: #9fb1cb; font-size: .9rem; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.price.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); position: relative; }
.price .pill { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: .06em; }
.price h3 { margin-bottom: 4px; }
.price .desc { color: var(--muted); font-size: .9rem; min-height: 40px; }
.price .amount { font-size: 2.3rem; font-weight: 800; color: var(--navy-900); margin: 12px 0 2px; }
.price .amount small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.price ul { list-style: none; margin: 18px 0 24px; padding: 0; }
.price li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; color: var(--ink); display: flex; gap: 9px; }
.price li .ck { color: var(--ok); font-weight: 900; }
.price .btn { margin-top: auto; justify-content: center; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.quote .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.quote p { font-style: italic; color: var(--ink); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.quote .av { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; font-weight: 700; }
.quote .who strong { display: block; font-size: .92rem; }
.quote .who span { color: var(--muted); font-size: .82rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent), var(--navy-700));
  color: #fff; border-radius: 20px; padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #dbe6f7; margin: 0; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 22px; font-weight: 700; font-size: 1.02rem; color: var(--navy-900); cursor: pointer; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq-q .sign { color: var(--accent); font-size: 1.4rem; transition: transform .2s; }
.faq-item.open .faq-q .sign { transform: rotate(45deg); }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; color: var(--muted); }
.faq-item.open .faq-a { padding: 0 22px 20px; max-height: 480px; }

/* ---------- Forms ---------- */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-family: inherit; font-size: .96rem; color: var(--ink); background: var(--bg-soft);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(47,128,237,.35); border-color: var(--accent); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.check input { width: auto; margin-top: 4px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact-info .ci { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .ci .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft2); color: var(--accent); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.contact-info .ci strong { display: block; color: var(--navy-900); }
.contact-info .ci span { color: var(--muted); font-size: .92rem; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 64px 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #b9c8de; max-width: 70ch; margin: 0; }
.breadcrumb { font-size: .82rem; color: #8aa0bd; margin-bottom: 14px; }
.breadcrumb a { color: #b9c8de; }

/* ---------- Prose ---------- */
.prose h2 { margin-top: 36px; }
.prose h3 { margin-top: 24px; }
.prose ul { padding-left: 20px; color: var(--muted); }
.prose li { margin-bottom: 8px; }
.prose .box { background: var(--bg-soft); border-left: 4px solid var(--accent); padding: 18px 22px; border-radius: 0 10px 10px 0; margin: 20px 0; }
.prose .box.warn { border-left-color: var(--warn); background: #fff8ef; }

/* ---------- Share (condividi sui social) ---------- */
.share-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 8px; font-size: .85rem; font-weight: 600;
  text-decoration: none; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.share-btn:hover { background: var(--bg-soft2); text-decoration: none; }
.site-footer .share-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #cfe0f6; }
.site-footer .share-btn:hover { background: rgba(255,255,255,.14); }

/* ---------- Product modal (negozio) ---------- */
.pmodal-bg { position: fixed; inset: 0; background: rgba(10,22,40,.6); display: none; place-items: center; z-index: 200; padding: 20px; }
.pmodal-bg.show { display: grid; }
.pmodal { background: #fff; border-radius: 16px; max-width: 640px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); position: relative; }
.pmodal .pm-close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; background: #fff; border: 1px solid var(--line); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; box-shadow: var(--shadow-sm); z-index: 2; }
.pmodal .pm-cover img { width: 100%; max-height: 280px; object-fit: cover; }
.pmodal .pm-body { padding: 26px 28px 30px; }
.pmodal .pm-body h2 { margin-bottom: 10px; }
.pmodal .pm-price { font-size: 1.6rem; font-weight: 800; color: var(--navy-900); margin: 16px 0; }

/* Descrizione prodotto: HTML scritto dall'admin con l'editor visuale.
   Le regole servono a dare una tipografia decente a qualunque cosa scriva. */
.pm-desc { color: var(--ink); font-size: .97rem; line-height: 1.75; }
.pm-desc > :first-child { margin-top: 0; }
.pm-desc > :last-child { margin-bottom: 0; }
.pm-desc p, .pm-desc div { margin: 0 0 14px; color: var(--muted); }
.pm-desc h2 { font-size: 1.3rem; margin: 26px 0 10px; color: var(--navy-900); }
.pm-desc h3 { font-size: 1.1rem; margin: 22px 0 8px; color: var(--navy-900); }
.pm-desc h4 { font-size: 1rem; margin: 18px 0 6px; color: var(--navy-900); }
.pm-desc ul, .pm-desc ol { margin: 0 0 14px; padding-left: 22px; color: var(--muted); }
.pm-desc li { margin-bottom: 7px; }
.pm-desc li::marker { color: var(--accent); font-weight: 700; }
.pm-desc strong, .pm-desc b { color: var(--ink); font-weight: 700; }
.pm-desc a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.pm-desc img { max-width: 100%; height: auto; border-radius: 10px; margin: 14px 0; display: block; }
.pm-desc blockquote {
  margin: 18px 0; padding: 14px 20px; color: var(--muted); font-style: italic;
  border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 10px 10px 0;
}
.pm-desc hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.pm-desc code { background: var(--bg-soft2); padding: 2px 6px; border-radius: 5px; font-size: .88em; }
.pm-desc pre { background: var(--bg-soft2); padding: 14px 16px; border-radius: 10px; overflow-x: auto; margin: 14px 0; }
.pm-desc table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: .92rem; }
.pm-desc th, .pm-desc td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.pm-desc th { background: var(--bg-soft); font-weight: 700; color: var(--navy-900); }
.pm-desc figure { margin: 16px 0; }
.pm-desc figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; text-align: center; }
.card .more-btn { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .9rem; color: var(--accent); cursor: pointer; }
.card .more-btn:hover { text-decoration: underline; }
/* Anteprima nelle card: sempre 4 righe, così la griglia resta allineata */
.card .card-excerpt {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb1cb; padding: 60px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: .04em; }
.site-footer a { color: #9fb1cb; display: block; padding: 5px 0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-brand .brand .bt strong { color: #fff; }
.footer-brand p { margin-top: 16px; max-width: 34ch; color: #8499b4; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #7387a3; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.disclaimer { background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 12px; padding: 18px 22px; font-size: .86rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .grid-3, .grid-4, .aud, .steps, .stats, .pricing, .quotes { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Menu a tendina quando le voci sono troppe per stare su una riga */
@media (max-width: 1100px) {
  .menu {
    position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px; gap: 2px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none; max-height: 80vh; overflow-y: auto;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 14px; white-space: normal; }
  .nav-toggle { display: block; }
  .menu .submenu {
    position: static; display: none; box-shadow: none; border: 0;
    padding: 0 0 4px 16px; min-width: 0;
  }
  .menu .has-sub:hover .submenu { display: none; }
  .menu .has-sub.open .submenu { display: block; }
  .menu .submenu-2 {
    position: static; display: none; box-shadow: none; border: 0;
    padding: 0 0 4px 16px; min-width: 0;
  }
  .menu .submenu .has-sub-2:hover .submenu-2 { display: none; }
  .menu .has-sub-2.open .submenu-2 { display: block; }
}

@media (max-width: 760px) {
  .menu {
    position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px; gap: 2px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .topbar .tb-left { display: none; }
  .section { padding: 60px 0; }
  .grid-3, .grid-4, .aud, .steps, .stats, .pricing, .quotes, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px; }
}

/* ---- Filtri Negozio (ricerca + categoria + sottocategoria + ordina) ---- */
.shop-filter { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.shop-filter .ff { display: flex; flex-direction: column; gap: 6px; min-width: 180px; flex: 1 1 200px; }
.shop-filter .ff-search { flex: 2 1 260px; }
.shop-filter label { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.shop-filter select, .shop-filter input[type="search"] {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font: inherit; font-size: 1rem; color: var(--navy-900); width: 100%;
  background-color: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px;
}
.shop-filter select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6b7d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px; cursor: pointer;
}
.shop-filter input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.shop-filter select:focus, .shop-filter input[type="search"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,128,237,.15); }
.shop-filter select:disabled { opacity: .5; cursor: not-allowed; }

.shop-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.shop-count { font-size: .9rem; color: var(--muted); font-weight: 600; }
.shop-reset {
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  color: var(--navy-900); background: var(--bg-soft2, #eef2f8);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.shop-reset:hover { background: #e2e8f2; }
.shop-reset[hidden] { display: none; }

/* Sotto-titolo per sottocategoria dentro una sezione */
.subcat-head { font-size: 1.02rem; color: var(--muted); margin: 30px 0 16px; font-weight: 700; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.subcat-head::before { content: ""; width: 20px; height: 2px; background: var(--accent); display: inline-block; border-radius: 2px; }
.subcat-head:first-child { margin-top: 4px; }
