/* ============================================================
   TWOKON — Soluzioni IoT
   Design system: colori, tipografia, componenti
   ============================================================ */

:root {
  /* Palette */
  --navy-950: #06121f;
  --navy-900: #0a1a2f;
  --navy-800: #0f2440;
  --navy-700: #16304f;
  --navy-600: #1e3f66;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-300: #5eead4;
  --orange-500: #f59e0b;
  --orange-400: #fbbf24;
  --red-500: #ef4444;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;

  /* Tipografia */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", -apple-system, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(6, 18, 31, 0.08);
  --shadow-md: 0 6px 24px rgba(6, 18, 31, 0.10);
  --shadow-lg: 0 18px 50px rgba(6, 18, 31, 0.16);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id], #non-conformita { scroll-margin-top: 110px; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-500); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--slate-900);
  line-height: 1.15;
  font-weight: 700;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 26, 47, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.brand-name span { color: var(--teal-400); }

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--slate-300);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.main-nav a.active { color: var(--teal-300); }

/* Dropdown sottomenu prodotto */
.main-nav .has-dropdown { position: relative; }
.main-nav .has-dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.dropdown-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--slate-300);
  padding: 4px;
  cursor: pointer;
}
.dropdown-toggle svg { width: 14px; height: 14px; transition: transform 0.2s; }
.main-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  z-index: 100;
}
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown,
.main-nav .has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .dropdown a { white-space: nowrap; }
.main-nav .has-dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  border: none;
  background: transparent;
  color: var(--slate-300);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  transition: all 0.2s;
}
.lang-switch button.active { background: var(--teal-500); color: var(--white); }

/* Mobile menu */
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--white);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary { background: var(--teal-500); color: var(--white); }
.btn-primary:hover { background: var(--teal-400); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); color: var(--white); }
.btn-dark { background: var(--navy-900); color: var(--white); }
.btn-dark:hover { background: var(--navy-800); color: var(--white); transform: translateY(-1px); }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: var(--slate-100); color: var(--navy-900); transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--slate-200);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(20, 184, 166, 0.22), transparent 60%),
    radial-gradient(500px 300px at 10% 90%, rgba(20, 184, 166, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 110px 0 120px;
  max-width: 860px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(20, 184, 166, 0.35);
  color: var(--teal-300);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
  letter-spacing: 0.03em;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--teal-400); }
.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--slate-300);
  max-width: 640px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-top: 60px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.stat .stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}
.stat .stat-num em { font-style: normal; color: var(--teal-400); }
.stat .stat-label { font-size: 0.88rem; color: var(--slate-400); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--slate-50); }
.section-dark {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--slate-300);
}
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 12px;
}
.section-dark .eyebrow { color: var(--teal-400); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 16px; letter-spacing: -0.01em; }
.section-head p { color: var(--slate-500); font-size: 1.05rem; }
.section-dark .section-head p { color: var(--slate-400); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 184, 166, 0.12);
  color: var(--teal-600);
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--slate-500); font-size: 0.95rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-anchor-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.feature-anchor-nav a { padding: 8px 14px; border: 1px solid var(--slate-200); border-radius: 999px; background: var(--white); color: var(--navy-800); font-size: 0.88rem; font-weight: 600; }
.feature-anchor-nav a:hover, .feature-anchor-nav a:focus-visible { border-color: var(--teal-500); color: var(--teal-700); }
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s, background 0.2s;
}
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top:hover, .back-to-top:focus-visible { background: var(--teal-600); color: var(--white); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.card[href] { display: block; color: inherit; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.card[href]:hover, .card[href]:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Schede tecniche dispositivi ---------- */
.device-sheets .section-head .btn { margin-top: 20px; }
.device-sheet { display: flex; flex-direction: column; align-items: flex-start; }
.device-sheet h3 { margin-bottom: 10px; }
.device-sheet > a { margin-top: auto; }
.device-visual {
  display: grid;
  justify-items: center;
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--slate-100);
  border-radius: 14px;
  background: linear-gradient(145deg, #f2fbfa, #f4f7fb);
}
.device-visual svg { display: block; width: min(100%, 300px); height: auto; }
.spec-list { width: 100%; margin: 18px 0; }
.spec-list > div { display: grid; grid-template-columns: minmax(105px, 0.8fr) 1.2fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--slate-100); }
.spec-list dt { color: var(--slate-600); font-size: 0.82rem; font-weight: 700; }
.spec-list dd { margin: 0; color: var(--slate-700); font-size: 0.86rem; }
.device-sheet .spec-note { margin: 0 0 18px; font-size: 0.84rem; }

/* ---------- Feature list (checkmarks) ---------- */
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  color: var(--slate-600);
}
.check-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--teal-500);
  margin-top: 3px;
}

/* ---------- Steps / timeline ---------- */
.steps { counter-reset: step; display: grid; gap: 26px; }
.step {
  position: relative;
  display: flex;
  gap: 22px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
}
.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy-900);
  color: var(--teal-400);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-num::before { content: counter(step); }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--slate-500); font-size: 0.95rem; }

/* ---------- Architecture diagram ---------- */
.arch {
  display: flex;
  gap: 18px;
  align-items: stretch;
}
.arch-node {
  flex: 1;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.arch-node .card-icon { margin: 0 auto 14px; }
.arch-node h4 { font-size: 1rem; margin-bottom: 6px; }
.arch-node p { font-size: 0.85rem; color: var(--slate-500); }
.arch-arrow {
  flex: 0 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-500);
}
.arch-arrow svg { width: 26px; height: 26px; }

/* ---------- Compliance ---------- */
.compliance-item {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.compliance-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
.compliance-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.compliance-item p { color: var(--slate-500); font-size: 0.93rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.featured {
  border: 2px solid var(--teal-500);
  box-shadow: var(--shadow-lg);
}
.price-flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal-500);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--slate-900); }
.price-desc { color: var(--slate-500); font-size: 0.9rem; margin: 6px 0 20px; }
.price-amount { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--slate-900); }
.price-amount small { font-size: 1rem; font-weight: 500; color: var(--slate-500); }
.price-features { margin: 22px 0 28px; flex-grow: 1; }
.price-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  color: var(--slate-600);
  font-size: 0.93rem;
}
.price-features svg { width: 18px; height: 18px; color: var(--teal-500); flex-shrink: 0; margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--white);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--slate-900);
}
.faq-q svg { width: 20px; height: 20px; color: var(--teal-500); transition: transform 0.25s; flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--slate-500); font-size: 0.95rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--slate-200); box-shadow: var(--shadow-sm); }
table.specs { width: 100%; border-collapse: collapse; background: var(--white); min-width: 560px; }
table.specs th, table.specs td { padding: 14px 20px; text-align: left; font-size: 0.93rem; }
table.specs thead th {
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
table.specs tbody tr:nth-child(even) { background: var(--slate-50); }
table.specs td:first-child { font-weight: 600; color: var(--slate-800); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-600), var(--teal-500));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn-light { box-shadow: var(--shadow-md); }

/* ---------- Demo sensore (frigo + wizard) ---------- */
.demo-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.demo-fridge {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: linear-gradient(165deg, var(--navy-900), var(--navy-950));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: var(--white);
}
.demo-fridge-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.demo-fridge-sub { font-size: 0.85rem; color: var(--slate-400); margin-bottom: 22px; }
.fridge-svg { width: 100%; height: auto; display: block; border-radius: 14px; }
.demo-steps { margin-top: 24px; display: grid; gap: 12px; }
.demo-step { display: flex; gap: 14px; align-items: flex-start; }
.demo-step .ds-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--teal-500);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.demo-step h4 { font-size: 0.95rem; margin-bottom: 2px; }
.demo-step p { font-size: 0.82rem; color: var(--slate-400); line-height: 1.45; }

/* Wizard simulato */
.demo-wizard {
  background: #16213e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  color: #eee;
  box-shadow: var(--shadow-lg);
}
.demo-wizard h3 { color: #e94560; font-size: 1.25rem; margin-bottom: 4px; font-family: var(--font-display); }
.demo-wizard .dw-sub { font-size: 0.83rem; color: #aaa; margin-bottom: 20px; }
.dw-fieldset {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 16px 16px 12px;
  margin-bottom: 18px;
}
.dw-fieldset legend { font-size: 0.78rem; color: #888; padding: 0 8px; }
.dw-opt { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; cursor: pointer; }
.dw-opt:last-child { margin-bottom: 0; }
.dw-opt input[type="radio"] { margin-top: 3px; accent-color: #e94560; flex-shrink: 0; }
.dw-opt input:disabled + .dw-opt-body { opacity: 0.4; }
.dw-opt-body { flex: 1; }
.dw-opt-title { font-size: 0.9rem; font-weight: 600; color: #eee; line-height: 1.3; }
.dw-badge { font-size: 0.66rem; background: rgba(233, 69, 96, 0.18); color: #e94560; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.dw-opt-desc { font-size: 0.75rem; color: #888; margin-top: 3px; line-height: 1.4; }
.dw-alert {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #5a3d1a;
  color: #ffd27f;
  border: 1px solid #8a5b00;
  font-size: 0.8rem;
  line-height: 1.4;
}
.dw-alert.show { display: block; }
.dw-wifi { display: none; margin-top: 18px; }
.dw-wifi.active { display: block; }
.dw-field { display: block; font-size: 0.78rem; color: #aaa; margin: 12px 0 4px; }
.dw-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0f3460;
  color: #eee;
  font-size: 0.95rem;
  outline: none;
}
.dw-input:focus { border-color: #e94560; }
.dw-scan-hdr { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; margin-bottom: 6px; }
.dw-scan-lbl { font-size: 0.78rem; color: #aaa; }
.dw-scan-btn {
  font-size: 0.75rem;
  color: #e94560;
  background: none;
  border: 1px solid rgba(233, 69, 96, 0.3);
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
}
.dw-scan-btn:disabled { opacity: 0.5; cursor: default; }
.dw-nets { max-height: 150px; overflow-y: auto; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; background: #0d1b2a; }
.dw-net { padding: 8px 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.dw-net:last-child { border-bottom: none; }
.dw-net:hover { background: #1a3a5a; }
.dw-net-n { font-size: 0.85rem; }
.dw-net-i { font-size: 0.72rem; color: #888; white-space: nowrap; }
.dw-msg { padding: 10px; color: #666; font-size: 0.82rem; text-align: center; }
.dw-save {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #e94560;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.dw-save:hover { background: #d63a53; }
.dw-footer { margin-top: 14px; font-size: 0.72rem; color: #666; text-align: center; }
.dw-saved { display: none; text-align: center; padding: 20px 0 6px; }
.dw-saved.show { display: block; }
.dw-saved h4 { color: #4caf50; font-size: 1.2rem; margin-bottom: 8px; }
.dw-saved p { color: #aaa; font-size: 0.88rem; margin-bottom: 16px; }
.dw-reset {
  display: inline-block;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ccc;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.85rem;
  cursor: pointer;
}
.dw-reset:hover { color: #fff; border-color: #fff; }
.demo-cta { margin-top: 36px; text-align: center; }
.demo-cta p { color: var(--slate-500); margin-bottom: 18px; }

/* Animazioni demo frigo */
.demo-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.dc-play {
  border: 1px solid var(--teal-500);
  background: rgba(20, 184, 166, 0.14);
  color: var(--teal-300);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.dc-play:hover { background: rgba(20, 184, 166, 0.25); }
.dc-play.playing { background: var(--teal-500); color: #fff; }
.dc-power { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--slate-300); }
.dc-opt {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--slate-300);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.dc-opt:hover { border-color: var(--teal-400); color: var(--teal-300); }
.dc-opt.active { background: var(--teal-500); border-color: var(--teal-500); color: #fff; }

/* Elementi animati del frigo */
.anim-sensor { opacity: 0; transform: translateX(90px); transition: opacity 0.7s ease, transform 0.7s ease; }
.demo-fridge.d1 .anim-sensor { opacity: 1; transform: translateX(0); }

.anim-probe { opacity: 0; transform: translateY(-40px); transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s; }
.demo-fridge.d2 .anim-probe { opacity: 1; transform: translateY(0); }

.anim-cable { opacity: 0; }
.demo-fridge.d3.usb .anim-cable { opacity: 1; transition: opacity 0.5s ease 0.35s; }
.anim-cable .cable-path { stroke-dasharray: 160; stroke-dashoffset: 160; }
.demo-fridge.d3.usb .anim-cable .cable-path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s ease 0.45s; }

.anim-battery { opacity: 0; transform: translateX(56px); transition: opacity 0.6s ease, transform 0.6s ease; }
.demo-fridge.d3.batt .anim-battery { opacity: 1; transform: translateX(0); }

.anim-temp { opacity: 0; transition: opacity 0.6s ease 0.2s; }
.demo-fridge.d4 .anim-temp { opacity: 1; }
.anim-led { transform-box: fill-box; transform-origin: center; }
.demo-fridge.d4 .anim-led { animation: ledPulse 1.2s ease-in-out infinite; }
@keyframes ledPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.anim-temp .temp-val { animation: tempBlink 2s ease-in-out infinite; }
@keyframes tempBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.demo-step { cursor: pointer; border-radius: 10px; padding: 6px; transition: background 0.2s; }
.demo-step:hover { background: rgba(255, 255, 255, 0.06); }
.demo-step.active { background: rgba(20, 184, 166, 0.14); }
.demo-step .ds-num { transition: background 0.2s, color 0.2s; }
.demo-step.active .ds-num { background: var(--teal-400); color: var(--navy-950); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--slate-200);
  padding: 84px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 260px at 80% 20%, rgba(20, 184, 166, 0.18), transparent 60%);
  pointer-events: none;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 14px; letter-spacing: -0.01em; }
.page-hero p { color: var(--slate-300); max-width: 640px; font-size: 1.08rem; }
.breadcrumb { font-size: 0.85rem; color: var(--slate-400); margin-bottom: 18px; }
.breadcrumb a { color: var(--teal-400); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--slate-800); }
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--slate-900);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--slate-400); margin-top: 6px; }
.form-success {
  display: none;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid var(--teal-500);
  color: var(--teal-600);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-top: 18px;
  font-weight: 500;
}
.form-success.show { display: block; }

/* ---------- Contact info cards ---------- */
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.contact-card .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--slate-500); font-size: 0.93rem; }
.contact-card a:hover { color: var(--teal-600); }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.legal h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--slate-600); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.legal .updated { color: var(--slate-400); font-size: 0.85rem; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand .brand-name { font-size: 1.2rem; }
.footer-brand p { font-size: 0.9rem; margin-top: 14px; max-width: 300px; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--slate-400); font-size: 0.92rem; }
.footer-col a:hover { color: var(--teal-400); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--slate-400); }
.footer-bottom a:hover { color: var(--teal-400); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--navy-900);
  color: var(--slate-200);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transform: translateY(140%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.9rem; margin-bottom: 16px; }
.cookie-banner .btn { margin-right: 10px; }

/* ---------- Preventivatore (quote calculator) ---------- */
.quote-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.quote-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.quote-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.quote-card .quote-sub { color: var(--slate-500); font-size: 0.92rem; margin-bottom: 26px; }
.quote-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--slate-100); }
.quote-row:last-child { border-bottom: 0; }
.quote-row-info { display: flex; align-items: center; gap: 14px; }
.quote-row-info .card-icon { margin: 0; width: 46px; height: 46px; }
.quote-row-info .card-icon svg { width: 22px; height: 22px; }
.quote-row-name { font-weight: 600; color: var(--slate-800); font-size: 0.98rem; }
.quote-row-price { color: var(--slate-500); font-size: 0.85rem; margin-top: 2px; }
.quote-row-price strong { color: var(--teal-600); font-weight: 700; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--slate-100); border-radius: 999px; padding: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--white); color: var(--slate-700); font-size: 1.15rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); transition: all 0.15s; }
.stepper button:hover { background: var(--teal-500); color: var(--white); }
.stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.stepper .stepper-val { min-width: 40px; text-align: center; font-weight: 700; color: var(--slate-800); font-size: 1.05rem; }
.quote-summary { background: var(--navy-900); color: var(--white); border-radius: var(--radius-lg); padding: 34px; position: sticky; top: calc(var(--header-h) + 20px); }
.quote-summary h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 4px; }
.quote-summary .quote-sub { color: var(--slate-400); font-size: 0.9rem; margin-bottom: 24px; }
.quote-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.92rem; color: var(--slate-300); }
.quote-line span:last-child { color: var(--white); font-weight: 600; }
.quote-activation { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 0.92rem; color: var(--teal-300); }
.quote-activation span:last-child { color: var(--teal-300); font-weight: 700; }
.quote-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 0 4px; }
.quote-total .qt-label { font-size: 0.95rem; color: var(--slate-300); }
.quote-total .qt-value { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; color: var(--teal-400); }
.quote-total .qt-value small { font-size: 1rem; font-weight: 500; color: var(--slate-400); }
.quote-summary .btn { width: 100%; margin-top: 22px; }
.quote-note { font-size: 0.8rem; color: var(--slate-400); margin-top: 14px; text-align: center; }

/* ---------- Tabella comparativa ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--white); }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--slate-100); font-size: 0.92rem; }
.compare-table thead th { background: var(--navy-900); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }
.compare-table thead th:first-child { background: var(--navy-800); }
.compare-table tbody th { font-weight: 600; color: var(--slate-700); background: var(--slate-50); }
.compare-table td { color: var(--slate-600); }
.compare-table .yes { color: var(--teal-600); font-weight: 700; }
.compare-table .no { color: var(--slate-400); }
.compare-table .featured-col { background: rgba(20, 184, 166, 0.14); color: var(--slate-800); }
.compare-table thead th.featured-col { background: rgba(20, 184, 166, 0.18); color: var(--navy-900); }
.compare-table .featured-col.yes { color: #0f766e; }
.compare-table .featured-col .badge-price { display: block; font-size: 0.78rem; font-weight: 600; opacity: 0.92; margin-top: 2px; }
.compare-table tbody tr:last-child td, .compare-table tbody tr:last-child th { border-bottom: 0; }

/* ---------- Scanner documentale ---------- */
.scanner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.scanner-box { background: var(--navy-900); border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.scanner-box video, .scanner-box img { width: 100%; height: 100%; object-fit: cover; }
.scanner-placeholder { color: var(--slate-400); text-align: center; padding: 30px; }
.scanner-placeholder svg { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--teal-400); }
.scanner-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.scanner-controls .btn { flex: 1; min-width: 140px; }
.scanner-hint { font-size: 0.85rem; color: var(--slate-500); margin-top: 12px; }
.ocr-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(20,184,166,0.12); color: var(--teal-600); border: 1px solid rgba(20,184,166,0.3); border-radius: 999px; padding: 6px 14px; font-size: 0.82rem; font-weight: 600; margin-bottom: 18px; }
.ocr-badge svg { width: 16px; height: 16px; }
.ddt-form { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.ddt-form h3 { font-size: 1.15rem; margin-bottom: 4px; }
.ddt-form .quote-sub { color: var(--slate-500); font-size: 0.9rem; margin-bottom: 20px; }
.ddt-row { display: grid; grid-template-columns: 1.4fr 1fr 0.7fr 1fr 34px; gap: 10px; margin-bottom: 10px; align-items: center; }
.ddt-row input { padding: 10px 12px; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); font-size: 0.9rem; }
.ddt-row input:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(20,184,166,0.15); }
.ddt-remove { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--slate-200); background: var(--white); color: var(--red-500); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.ddt-remove:hover { background: var(--red-500); color: var(--white); border-color: var(--red-500); }
.ddt-add { margin-top: 6px; }
.ddt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ddt-actions .btn { flex: 1; min-width: 150px; }
.ddt-result { margin-top: 20px; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-md); padding: 18px; font-size: 0.9rem; color: var(--slate-600); }
.ddt-result h4 { font-size: 0.95rem; margin-bottom: 8px; color: var(--slate-800); }
.ddt-result ul { list-style: disc; padding-left: 20px; }
.ddt-result li { margin-bottom: 4px; }

/* ---------- Checklist ---------- */
.checklist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.checklist-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.checklist-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.checklist-card h3 { font-size: 1.1rem; }
.checklist-card .checklist-count { font-size: 0.82rem; color: var(--slate-500); font-weight: 600; }
.checklist-progress { height: 8px; background: var(--slate-100); border-radius: 999px; overflow: hidden; margin: 12px 0 18px; }
.checklist-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-500), var(--teal-400)); border-radius: 999px; transition: width 0.35s ease; }
.checklist-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--slate-100); cursor: pointer; }
.checklist-item:last-child { border-bottom: 0; }
.checklist-item input { display: none; }
.checklist-item .ck-box { width: 22px; height: 22px; border: 2px solid var(--slate-300); border-radius: 6px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s; margin-top: 2px; }
.checklist-item .ck-box svg { width: 14px; height: 14px; color: var(--white); opacity: 0; transform: scale(0.5); transition: all 0.15s; }
.checklist-item input:checked + .ck-box { background: var(--teal-500); border-color: var(--teal-500); }
.checklist-item input:checked + .ck-box svg { opacity: 1; transform: scale(1); }
.checklist-item .ck-label { font-size: 0.93rem; color: var(--slate-600); transition: color 0.15s; }
.checklist-item input:checked ~ .ck-label { color: var(--slate-400); text-decoration: line-through; }
.checklist-item .ck-temp { margin-left: auto; flex-shrink: 0; font-size: 0.78rem; font-weight: 700; color: var(--teal-600); background: rgba(20,184,166,0.1); border-radius: 999px; padding: 3px 10px; }

/* ---------- Ricette ---------- */
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.recipe-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.recipe-cover { height: 150px; display: flex; align-items: center; justify-content: center; color: var(--white); position: relative; }
.recipe-cover svg { width: 52px; height: 52px; opacity: 0.9; }
.recipe-cover .recipe-temp { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,0.92); color: var(--navy-900); font-weight: 700; font-size: 0.78rem; border-radius: 999px; padding: 4px 12px; }
.recipe-body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.recipe-body h3 { font-size: 1.08rem; margin-bottom: 6px; }
.recipe-body .recipe-meta { font-size: 0.82rem; color: var(--slate-500); margin-bottom: 12px; }
.recipe-body .recipe-meta span { margin-right: 12px; }
.recipe-body p { font-size: 0.9rem; color: var(--slate-500); margin-bottom: 14px; }
.recipe-body h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate-400); margin: 10px 0 8px; }
.recipe-body ul { list-style: disc; padding-left: 18px; font-size: 0.88rem; color: var(--slate-600); }
.recipe-body ul li { margin-bottom: 4px; }
.recipe-body .btn { margin-top: auto; }

/* ---------- CAPTCHA puzzle ---------- */
.captcha { max-width: 420px; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); margin-top: 6px; }
.captcha-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.captcha-head svg { width: 20px; height: 20px; color: var(--teal-600); }
.captcha-head span { font-size: 0.9rem; font-weight: 600; color: var(--slate-700); }
.captcha-stage { position: relative; height: 150px; border-radius: var(--radius-sm); overflow: hidden; background: var(--navy-800); user-select: none; touch-action: none; }
.captcha-bg { position: absolute; inset: 0; }
.captcha-bg .bg-pattern { position: absolute; inset: 0; opacity: 0.9; }
.captcha-bg .bg-target { position: absolute; top: 0; bottom: 0; width: 56px; border: 2px dashed rgba(255,255,255,0.85); border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2); }
.captcha-piece { position: absolute; top: 0; bottom: 0; width: 56px; cursor: grab; z-index: 3; }
.captcha-piece:active { cursor: grabbing; }
.captcha-piece .piece-img { position: absolute; inset: 0; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,0.45); }
.captcha-piece .piece-notch { position: absolute; width: 16px; height: 16px; background: var(--navy-800); }
.captcha-piece .piece-notch.tl { top: -8px; left: 20px; border-radius: 4px 4px 0 0; }
.captcha-piece .piece-notch.br { bottom: -8px; right: 20px; border-radius: 0 0 4px 4px; }
.captcha-track { position: relative; height: 40px; background: var(--slate-100); border-radius: 999px; margin-top: 12px; }
.captcha-slider { position: absolute; top: 3px; left: 3px; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-500); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: grab; box-shadow: var(--shadow-md); z-index: 4; }
.captcha-slider:active { cursor: grabbing; }
.captcha-slider svg { width: 18px; height: 18px; }
.captcha-track-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: rgba(20,184,166,0.25); border-radius: 999px; }
.captcha-status { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; margin-top: 10px; min-height: 22px; }
.captcha-status .ok { color: var(--teal-600); font-weight: 600; }
.captcha-status .err { color: var(--red-500); font-weight: 600; }
.captcha.solved { border-color: var(--teal-500); background: rgba(20,184,166,0.04); }
.captcha.shake { animation: captcha-shake 0.4s; }
@keyframes captcha-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.captcha-refresh { margin-left: auto; background: none; border: 0; color: var(--slate-400); display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; }
.captcha-refresh:hover { color: var(--teal-600); }
.captcha-refresh svg { width: 16px; height: 16px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 60px; }
.mb-1 { margin-bottom: 12px; } .mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .arch { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-summary { position: static; }
  .scanner-grid { grid-template-columns: 1fr; }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-fridge { position: static; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px 20px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 12px 14px; }
  .nav-toggle { display: inline-flex; }
  /* Dropdown mobile: accordion */
  .main-nav .has-dropdown { position: static; }
  .main-nav .has-dropdown > a { display: flex; }
  .dropdown-toggle { display: inline-flex; margin-left: auto; }
  .main-nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--teal-500);
    border-radius: 0;
    margin: 2px 0 4px 14px;
    padding: 2px 0 2px 8px;
    display: none;
    background: transparent;
  }
  .main-nav .has-dropdown.open .dropdown { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-inner { padding: 80px 0 90px; }
  .section { padding: 64px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { padding: 44px 26px; }
  .checklist-grid { grid-template-columns: 1fr; }
  .ddt-row { grid-template-columns: 1fr 1fr; }
  .ddt-row .ddt-remove { grid-column: 1 / -1; justify-self: end; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .brand-name { font-size: 1.1rem; }
  .recipe-grid { grid-template-columns: 1fr; }
  .quote-card, .quote-summary { padding: 24px; }
  .quote-row { flex-wrap: wrap; }
  .ddt-row { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  .back-to-top { display: none !important; }
  body * { visibility: hidden !important; }
  #technical-data, #technical-data * { visibility: visible !important; }
  #technical-data {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0 !important;
    background: #fff !important;
  }
  #technical-data .container { width: 100%; max-width: none; padding: 0; }
  #technical-data .section-head { margin: 0 0 8mm; }
  #technical-data .section-head button { display: none; }
  #technical-data .grid-3 { display: block; }
  #technical-data .device-sheet {
    display: block;
    min-height: 0;
    margin: 0;
    padding: 8mm;
    border: 0;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }
  #technical-data .device-sheet:last-child { break-after: auto; page-break-after: auto; }
  #technical-data .spec-list > div { grid-template-columns: 36mm 1fr; }
  #technical-data .device-visual {
    min-height: 0;
    margin-bottom: 5mm;
    break-inside: avoid;
  }
  #technical-data .device-visual svg { width: 75mm; }
  #technical-data .device-sheet > a { display: inline-block; margin-top: 3mm; }
}