/* =========================================================
   COLD CARE — Stylesheet
   Brand: Hygiene Care SAS - Firenze, Italy
   ========================================================= */

/* Google Fonts: moved to HTML head with preconnect (perf P0.6) */
/* ---------- 1. Tokens ---------- */
:root {
  --navy: #1B3A6F;
  --navy-2: #294D85;
  --red: #E63A35;
  --red-dark: #B82D29;
  --cyan: #00B0C9;
  --cyan-dark: #007A8F;
  --cyan-light: #6FD8E8;
  --ice: #EBF2F7;
  --soft: #F4F8FB;
  --frost: #DAEAF2;
  --paper: #FFFFFF;
  --muted: #5A6B85;
  --line: #C8D7E4;
  --ok: #2EA46C;

  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-card: 18px;
  --radius-pill: 999px;

  --container: 1200px;

  --shadow-sm: 0 1px 2px rgba(27, 58, 111, 0.06);
  --shadow-md: 0 8px 28px rgba(27, 58, 111, 0.10);
  --shadow-lg: 0 24px 60px rgba(27, 58, 111, 0.18);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--ice);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--cyan); color: var(--navy); }

/* ---------- 2. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; position: relative; }
section.tight { padding: 64px 0; }

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head .eyebrow { margin-bottom: 18px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  background: var(--frost);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 176, 201, 0.18);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--navy);
  margin: 0 0 18px;
}
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; }
h3 { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.3; }

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 64ch;
}

.italic-cyan { color: var(--cyan-dark); font-style: italic; font-family: var(--font-display); }

.mono { font-family: var(--font-mono); }

/* ---------- Top promo banner ---------- */
.top-banner {
  background: var(--navy);
  color: rgba(230, 238, 247, 0.95);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 0;
  text-align: center;
  position: relative;
  z-index: 60;
}
.top-banner span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.top-banner::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  margin-right: 10px;
  box-shadow: 0 0 0 4px rgba(0, 176, 201, 0.25);
  animation: pulse 2.4s ease-in-out infinite;
  vertical-align: middle;
}

/* ---------- Support languages chips ---------- */
.support-langs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.sl-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--frost);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
a.sl-chip { cursor: pointer; }
a.sl-chip:hover { background: var(--cyan-light); border-color: var(--cyan); transform: translateY(-1px); }
.sl-flag {
  display: inline-block;
  width: 18px; height: 13px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex: 0 0 auto;
}
.sl-flag.flag-it { background: linear-gradient(to right, #008C45 0 33.33%, #F4F9FF 33.33% 66.66%, #CD212A 66.66% 100%); }
.sl-flag.flag-en {
  background:
    linear-gradient(to bottom, transparent 42%, #CF142B 42% 58%, transparent 58%),
    linear-gradient(to right, transparent 42%, #CF142B 42% 58%, transparent 58%),
    #012169;
}
.sl-flag.flag-es { background: linear-gradient(to bottom, #AA151B 0 25%, #F1BF00 25% 75%, #AA151B 75% 100%); }

/* ---------- Blackout banner ---------- */
.blackout-banner {
  background: var(--navy);
  border-radius: var(--radius-card);
  padding: 36px 44px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.blackout-banner::before {
  content: "";
  position: absolute;
  right: -100px; top: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0, 176, 201, 0.45), transparent 60%);
  filter: blur(24px);
  animation: bb-glow 8s ease-in-out infinite;
}
.blackout-banner > * { position: relative; z-index: 1; }
.bb-icon {
  width: 88px; height: 88px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 122, 143, 0.45);
  position: relative;
  animation: bb-icon-bg 8s ease-in-out infinite;
}
.bb-icon svg { width: 42px; height: 42px; position: absolute; transition: filter 400ms ease; }
.bb-bulb { animation: bb-bulb 8s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7)); }
.bb-bolt { opacity: 0; animation: bb-bolt 8s ease-in-out infinite; }

/* Cinematic 8s cycle: bulb on (3s) → flicker (0.5s) → blackout (1.2s) → lightning zap → steady bolt → reset */
@keyframes bb-bulb {
  0%, 38%   { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 8px rgba(255, 235, 150, 0.85)); }
  41%       { opacity: 0.3; }                                       /* flicker 1 */
  43%       { opacity: 1; }
  45%       { opacity: 0.2; }                                       /* flicker 2 */
  47%       { opacity: 0.7; }
  50%, 95%  { opacity: 0; transform: scale(0.88); }                 /* completely off */
  100%      { opacity: 1; transform: scale(1); }
}
@keyframes bb-bolt {
  0%, 55%   { opacity: 0; transform: scale(0.6) rotate(-12deg); }
  60%       { opacity: 1; transform: scale(1.25) rotate(0deg); filter: drop-shadow(0 0 14px rgba(0, 220, 255, 0.95)); }   /* zap in */
  65%, 88%  { opacity: 1; transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 8px rgba(0, 220, 255, 0.7)); }
  93%       { opacity: 0; transform: scale(0.85) rotate(10deg); }
  100%      { opacity: 0; transform: scale(0.6) rotate(-12deg); }
}
@keyframes bb-icon-bg {
  0%, 38%   { background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%); box-shadow: 0 8px 22px rgba(0, 122, 143, 0.45); }
  50%, 55%  { background: linear-gradient(135deg, #0a1530 0%, #1a2540 100%); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6); }    /* blackout */
  60%, 88%  { background: linear-gradient(135deg, #062a3a 0%, #0a3a52 100%); box-shadow: 0 8px 30px rgba(0, 220, 255, 0.55); } /* energized */
  100%      { background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%); box-shadow: 0 8px 22px rgba(0, 122, 143, 0.45); }
}
@keyframes bb-glow {
  0%, 38%, 100% { opacity: 0.4; }
  50%, 55%      { opacity: 0.05; }
  60%, 88%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-bulb, .bb-bolt, .bb-icon, .blackout-banner::before { animation: none; }
  .bb-bulb { opacity: 0; }
  .bb-bolt { opacity: 1; }
}
.blackout-banner h3 { color: #fff; font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 10px; line-height: 1.15; }
.blackout-banner p { color: rgba(230, 238, 247, 0.82); margin: 0; font-size: 15px; line-height: 1.55; max-width: 720px; }

/* ---------- Time helper ---------- */
.time-helper-row {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan-dark);
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  letter-spacing: 0.04em;
}
.time-helper-row strong {
  color: var(--navy);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .blackout-banner { grid-template-columns: 1fr; padding: 28px; text-align: center; }
  .bb-icon { margin: 0 auto; }
}

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(235, 242, 247, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(200, 215, 228, 0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  padding-top: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #B7ECF5 0%, var(--cyan) 55%, var(--cyan-dark) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 122, 143, 0.30);
}
.brand-mark svg { width: 30px; height: 30px; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.wordmark .cold { color: var(--navy); }
.wordmark .care { color: var(--red); }
.wordmark .dot { color: var(--cyan); margin: 0 4px; }

.lang-switch {
  display: inline-flex;
  gap: 10px;
  background: transparent;
  padding: 0;
  margin-right: 10px;
  flex: 0 0 auto;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 32px;
  flex: 0 0 auto;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  filter: grayscale(0.55);
  opacity: 0.78;
  transition: filter 200ms var(--ease), opacity 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.lang-switch a span { position: relative; z-index: 2; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); }
.lang-switch a:hover { filter: grayscale(0); opacity: 1; transform: translateY(-1px); }
.lang-switch a.active {
  filter: grayscale(0);
  opacity: 1;
  box-shadow: 0 0 0 2px var(--navy), 0 4px 10px rgba(27, 58, 111, 0.18);
  border-color: var(--navy);
}
.lang-switch a.lang-it {
  background: linear-gradient(to right, #008C45 0 33.33%, #F4F9FF 33.33% 66.66%, #CD212A 66.66% 100%);
}
.lang-switch a.lang-en {
  background:
    linear-gradient(to bottom, transparent 42%, #CF142B 42% 58%, transparent 58%),
    linear-gradient(to right, transparent 42%, #CF142B 42% 58%, transparent 58%),
    #012169;
  color: #fff;
}
.lang-switch a.lang-en span { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55); }
.lang-switch a.lang-es {
  background: linear-gradient(to bottom, #AA151B 0 25%, #F1BF00 25% 75%, #AA151B 75% 100%);
  color: #5C0A0D;
}
.lang-switch a.lang-zh {
  background: #DE2910;
  color: #FFDE00;
  font-weight: 700;
}
.lang-switch a.lang-zh span { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }

/* Chinese flag chip for support languages on contatti */
.sl-flag.flag-zh {
  background: #DE2910;
  position: relative;
}
.sl-flag.flag-zh::after {
  content: "★";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFDE00;
  font-size: 9px;
  line-height: 1;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
  transition: color 200ms var(--ease);
}
.nav a:hover { color: var(--cyan-dark); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--cyan);
}

.hamburger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--navy);
  position: relative;
}
.hamburger span::before,
.hamburger span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--navy);
  transition: transform 240ms var(--ease);
}
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn .arrow { transition: transform 200ms var(--ease); display: inline-block; }
.btn:hover { transform: translateY(-1px); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-2); box-shadow: var(--shadow-md); }

.btn--accent { background: var(--cyan); color: var(--navy); }
.btn--accent:hover { background: var(--cyan-light); }

.btn--cta {
  background: var(--red);
  color: #fff;
  animation: cta-pulse 2.2s ease-in-out infinite;
}
.btn--cta:hover {
  background: var(--red-dark);
  box-shadow: 0 10px 28px rgba(230, 58, 53, 0.35);
  animation-play-state: paused;
}
@keyframes cta-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(230, 58, 53, 0.5), 0 6px 18px rgba(184, 45, 41, 0.22);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(230, 58, 53, 0), 0 6px 18px rgba(184, 45, 41, 0.22);
    transform: scale(1.025);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn--cta { animation: none; }
}

.wa-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #fff !important;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
  text-transform: uppercase;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
}
.wa-chip::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
}
.wa-chip:hover {
  background: #1FAA52;
  transform: translateY(-1px);
}

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn--sm { padding: 10px 16px; font-size: 13px; }

/* ---------- 5. Hero ---------- */
.hero {
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -120px -10% auto auto;
  width: 700px; height: 700px;
  background: radial-gradient(circle at center, rgba(0, 176, 201, 0.18), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-top: 18px; }
.hero .lead { margin: 22px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 6. Live Readout ---------- */
.readouts { display: grid; gap: 14px; }

.readout {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: transform 300ms var(--ease);
}
.readout:hover { transform: translateY(-2px); }
.readout.warn { border-left-color: var(--red); }

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(46, 164, 108, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
.readout.warn .dot { background: var(--red); box-shadow: 0 0 0 4px rgba(230, 58, 53, 0.2); }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

.readout .name { font-weight: 600; font-size: 15px; color: var(--navy); }
.readout .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.readout .value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 28px;
  color: var(--navy);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.readout.warn .value { color: var(--red); }

.spark {
  grid-column: 1 / -1;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 32px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.spark span {
  display: block;
  flex: 1;
  background: var(--cyan);
  opacity: 0.6;
  border-radius: 2px;
  transition: height 600ms var(--ease);
}
.readout.warn .spark span { background: var(--red); }

/* ---------- 7. Cards (problems) ---------- */
.problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.p-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.p-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan-dark);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.p-card h3 { margin-bottom: 12px; }
.p-card p { color: var(--muted); margin: 0; }

/* ---------- 8. Sectors ---------- */
.sectors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.sector {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px 22px;
  text-align: center;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sector .icon-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--frost);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: background 300ms var(--ease);
}
.sector .icon-wrap svg { width: 30px; height: 30px; stroke: var(--navy); fill: none; stroke-width: 1.6; }
.sector:hover .icon-wrap { background: var(--navy); }
.sector:hover .icon-wrap svg { stroke: var(--cyan-light); filter: drop-shadow(0 0 6px rgba(111, 216, 232, 0.6)); }
.sector h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.sector p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- 9. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 36px 28px;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 5vw, 64px);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.stat .unit {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan-dark);
  margin-left: 6px;
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- 10. Sezione navy / dark ---------- */
.ink {
  background: var(--navy);
  color: #E6EEF7;
  position: relative;
  overflow: hidden;
}
.ink::after {
  content: "";
  position: absolute;
  right: -200px; bottom: -200px;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(0, 176, 201, 0.35), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.ink h1, .ink h2, .ink h3, .ink h4 { color: #fff; }
.ink .lead { color: rgba(230, 238, 247, 0.78); }
.ink .eyebrow {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cyan-light);
}

.dark-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dark-cards.three { grid-template-columns: repeat(3, 1fr); }
.d-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: background 300ms var(--ease), transform 300ms var(--ease);
}
.d-card:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-3px); }
.d-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan-light);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.d-card h4 { font-family: var(--font-display); font-size: 22px; margin-bottom: 12px; }
.d-card p { color: rgba(230, 238, 247, 0.72); font-size: 15px; margin: 0; }

/* ---------- 11. V check list ---------- */
.v-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.v-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 16px;
  line-height: 1.55;
  color: var(--navy);
}
.v-list li .v {
  width: 26px; height: 26px;
  flex: 0 0 auto;
  margin-top: 2px;
}
.ink .v-list li { color: #E6EEF7; }

/* ---------- 12. Split layouts ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.split--reverse > :first-child { order: 2; }
.split-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan-dark);
  margin-bottom: 14px;
  display: block;
}

/* ---------- 13. Spec table ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table td { padding: 16px 0; vertical-align: top; }
.spec-table .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  width: 220px;
  padding-right: 24px;
}
.spec-table .value { color: var(--navy); font-weight: 500; }

/* ---------- 14. Frost section ---------- */
.frost-bg { background: var(--frost); }
.soft-bg { background: var(--soft); }

/* ---------- 15. Steps (How it works) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* ---------- 16. CTA Banner ---------- */
.cta-banner {
  position: relative;
  background: var(--navy);
  border-radius: 22px;
  padding: 56px 56px;
  display: grid;
  grid-template-columns: 1.5fr auto;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  margin: 96px 0 0;
}
.cta-banner::before {
  content: "";
  position: absolute;
  right: -80px; bottom: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0, 176, 201, 0.55), transparent 60%);
  filter: blur(30px);
}
.cta-banner h2 { color: #fff; margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 40px); }
.cta-banner p { color: rgba(230, 238, 247, 0.8); margin: 0; max-width: 640px; }
.cta-banner > * { position: relative; z-index: 1; }

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(230, 238, 247, 0.72);
  padding: 80px 0 32px;
  margin-top: 96px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.foot-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan-light);
  margin: 0 0 18px;
  font-weight: 600;
}
.foot-col p, .foot-col a { font-size: 14px; line-height: 1.7; }
.foot-col a { display: block; transition: color 200ms var(--ease); }
.foot-col a:hover { color: var(--cyan-light); }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(230, 238, 247, 0.55);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 18. Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 18px; left: 18px; right: 18px;
  z-index: 60;
  justify-content: center;
}
.sticky-cta .btn { width: 100%; justify-content: center; box-shadow: 0 12px 32px rgba(184, 45, 41, 0.45); }

/* ---------- 19. Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- 20. Documents ---------- */
.docs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.doc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.doc-icon {
  width: 56px; height: 64px;
  background: var(--frost);
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan-dark);
  letter-spacing: 0.06em;
}
.doc-icon::before {
  content: ""; position: absolute;
  top: 0; right: 0;
  border-style: solid;
  border-width: 0 14px 14px 0;
  border-color: transparent var(--ice) transparent transparent;
}
.doc-card h3 { font-size: 20px; margin-bottom: 10px; }
.doc-card p { color: var(--muted); margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; }
.doc-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ---------- 21. Form ---------- */
.form-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 40px;
}
.form-box h3 { margin-bottom: 24px; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--navy);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 0;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 176, 201, 0.15);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row.split3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.checkbox {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.checkbox input { width: 20px; height: 20px; margin: 1px 0 0; }

.form-success {
  background: var(--frost);
  border: 1px solid var(--cyan);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--navy);
  display: none;
  font-weight: 500;
  margin-bottom: 18px;
}
.form-success.show { display: block; }

/* Form error feedback (Formspree errors / network errors) */
.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #CF142B;
  border-radius: 12px;
  padding: 14px 18px;
  color: #7f1d1d;
  display: none;
  font-weight: 500;
  margin-bottom: 18px;
}
.form-error.show { display: block; }

/* ---------- 22. Trust strip ---------- */
.trust {
  background: var(--frost);
  border-radius: var(--radius-card);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.trust-item .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan-dark);
  margin-bottom: 8px;
}
.trust-item .val {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  font-weight: 600;
}

/* ---------- 23. Responsibilities (HACCP) ---------- */
.responsibilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.resp-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 36px;
}
.resp-card .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-dark);
}
.resp-card h3 { margin-top: 8px; margin-bottom: 18px; }

/* ---------- 24. Contacts info ---------- */
.contact-info { display: grid; gap: 24px; margin-bottom: 32px; }
.contact-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.contact-item .lab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-item .val { font-size: 18px; color: var(--navy); font-weight: 500; }

/* ---------- 26. Counter card (contatti hero) ---------- */
.counter-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  align-self: start;
  margin-top: 12px;
}
.counter-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -80px auto;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0, 176, 201, 0.18), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.counter-card > * { position: relative; z-index: 1; }
.counter-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  margin-bottom: 14px;
}
.counter-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 11vw, 140px);
  line-height: 0.95;
  color: var(--navy);
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.counter-suffix {
  font-family: var(--font-mono);
  font-size: 0.36em;
  font-weight: 600;
  color: var(--cyan-dark);
  margin-left: 6px;
}
.counter-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.counter-bar {
  width: 100%;
  height: 4px;
  background: var(--frost);
  border-radius: 4px;
  margin: 22px 0 16px;
  overflow: hidden;
}
.counter-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--cyan), var(--cyan-dark));
  transition: width 1500ms cubic-bezier(0.2, 0.7, 0.2, 1);
  border-radius: 4px;
}
.counter-card.in-view .counter-bar span { width: 100%; }
.counter-foot {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- 25. Mobile ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .problems { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dark-cards, .dark-cards.three { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .responsibilities { grid-template-columns: 1fr; gap: 40px; }
  .docs { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; padding: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trust { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .hero { padding: 40px 0 56px; }
  .nav { display: none; }
  .nav.open { display: flex; }
  .hamburger { display: inline-flex; }
  .nav.open {
    position: absolute;
    top: 92px; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .header-cta { display: none; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
  .form-row.split2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .form-box { padding: 28px; }
  .resp-card { padding: 28px; }
  .cta-banner { padding: 32px 24px; }
  .sectors { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 18px; }
}


/* ---------- Document unlock / locked state ---------- */
.unlock-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #102a52 100%);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  color: #fff;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.unlock-bar::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(0, 176, 201, 0.35), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.unlock-bar > * { position: relative; z-index: 1; }
.unlock-bar h3 {
  color: #fff;
  font-size: clamp(18px, 1.8vw, 22px);
  margin: 0 0 6px;
  font-weight: 700;
}
.unlock-bar p {
  margin: 0;
  font-size: 14px;
  color: rgba(230, 238, 247, 0.78);
  line-height: 1.5;
}
.unlock-bar p a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.unlock-bar p a:hover { color: #fff; }
.unlock-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.unlock-form input {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  min-width: 200px;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease;
}
.unlock-form input:focus {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.14);
}
.unlock-form input::placeholder { color: rgba(255, 255, 255, 0.45); }
.unlock-form button {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--care);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}
.unlock-form button:hover { background: #b00f24; transform: translateY(-1px); }
.unlock-msg {
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 10px;
  letter-spacing: 0.06em;
  min-height: 16px;
}
.unlock-msg.err { color: #ffb3bd; }
.unlock-msg.ok { color: #6effc9; }

.unlocked-banner {
  display: none;
  background: linear-gradient(135deg, #003d2b 0%, #006048 100%);
  border-radius: var(--radius-card);
  padding: 18px 28px;
  margin-bottom: 32px;
  color: #d4ffe8;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.unlocked-banner strong { color: #fff; font-weight: 700; }
.unlocked-banner button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 200ms ease;
}
.unlocked-banner button:hover { background: rgba(255, 255, 255, 0.1); }

body.docs-unlocked .unlock-bar { display: none; }
body.docs-unlocked .unlocked-banner { display: flex; }
body.docs-unlocked .doc-card.locked .doc-lock-overlay { display: none; }
body.docs-unlocked .doc-card.locked .doc-actions-locked { display: none; }
body.docs-unlocked .doc-card.locked .doc-actions-unlocked { display: inline-flex; }
body.docs-unlocked .doc-card.locked { filter: none; }
body.docs-unlocked .doc-card.locked .doc-icon { background: var(--cyan); color: #fff; }

.doc-card.locked { position: relative; }
.doc-card.locked .doc-icon {
  background: #c8d3e2;
  color: #6a7892;
  transition: background 300ms ease, color 300ms ease;
}
.doc-lock-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(27, 58, 111, 0.92);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  z-index: 2;
}
.doc-lock-overlay svg { width: 12px; height: 12px; }
.doc-actions-locked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-style: italic;
  padding: 10px 14px;
  background: rgba(27, 58, 111, 0.06);
  border: 1px dashed rgba(27, 58, 111, 0.25);
  border-radius: 10px;
}
.doc-actions-unlocked { display: none; }

@media (max-width: 720px) {
  .unlock-bar { grid-template-columns: 1fr; }
  .unlock-form { flex-direction: column; }
  .unlock-form input { min-width: 0; width: 100%; }
}


/* ---------- Interactive HACCP demo ---------- */
.demo-section { background: linear-gradient(180deg, #0a1530 0%, #0e2046 100%); color: #e6eef7; padding: 88px 0; position: relative; overflow: hidden; }
.demo-section::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 400px at 20% 10%, rgba(0, 176, 201, 0.12), transparent 60%),
    radial-gradient(700px 350px at 90% 90%, rgba(207, 20, 43, 0.08), transparent 60%);
  pointer-events: none;
}
.demo-section .container { position: relative; z-index: 1; }
.demo-section .section-head { color: #fff; }
.demo-section .section-head .eyebrow { color: var(--cyan-light); }
.demo-section .section-head h2 { color: #fff; }
.demo-section .section-head .lead { color: rgba(230, 238, 247, 0.78); }

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 28px;
  margin-top: 48px;
}

/* Monitor */
.demo-monitor {
  background: #060d1f;
  border: 1px solid rgba(0, 176, 201, 0.25);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}
.demo-monitor::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 4px);
  pointer-events: none;
}
.demo-monitor > * { position: relative; z-index: 1; }
.demo-monitor-head {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(230, 238, 247, 0.6);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
  margin-bottom: 22px;
}
.demo-led {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 12px var(--ok);
  transition: background 300ms ease, box-shadow 300ms ease;
  flex-shrink: 0;
}
.demo-led.warn { background: #f5b73e; box-shadow: 0 0 12px #f5b73e; animation: demo-led-pulse 1s ease-in-out infinite; }
.demo-led.alarm { background: var(--red); box-shadow: 0 0 16px var(--red); animation: demo-led-pulse 0.5s ease-in-out infinite; }
@keyframes demo-led-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.3); }
}
.demo-status { color: #fff; font-weight: 600; flex: 1; }
.demo-time { font-variant-numeric: tabular-nums; }

.demo-readout { padding: 0 4px; }
.demo-name { font-size: 13px; color: rgba(230, 238, 247, 0.65); font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.demo-meta { font-size: 11px; color: var(--cyan); font-family: var(--font-mono); margin-bottom: 18px; }
.demo-value {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--cyan-light);
  font-variant-numeric: tabular-nums;
  transition: color 400ms ease, text-shadow 400ms ease;
}
.demo-value.warn { color: #f5b73e; text-shadow: 0 0 24px rgba(245, 183, 62, 0.45); }
.demo-value.alarm { color: var(--red); text-shadow: 0 0 30px rgba(230, 58, 53, 0.6); }

.demo-bar {
  height: 8px; background: rgba(255, 255, 255, 0.06); border-radius: 999px;
  margin: 22px 0 12px; position: relative; overflow: hidden;
}
.demo-bar::before, .demo-bar::after {
  content: ""; position: absolute; top: -3px; bottom: -3px; width: 2px;
  background: rgba(255, 255, 255, 0.4);
}
.demo-bar::before { left: 66.6%; background: rgba(245, 183, 62, 0.7); }    /* +4°C threshold */
.demo-bar::after { left: 100%; background: rgba(230, 58, 53, 0.7); }       /* +6°C critical */
.demo-bar-fill {
  height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-light) 100%);
  border-radius: 999px;
  transition: width 800ms cubic-bezier(0.4, 0, 0.2, 1), background 400ms ease;
}
.demo-bar-fill.warn { background: linear-gradient(90deg, var(--cyan) 0%, #f5b73e 100%); }
.demo-bar-fill.alarm { background: linear-gradient(90deg, #f5b73e 0%, var(--red) 100%); }

.demo-thresholds {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  color: rgba(230, 238, 247, 0.5); text-transform: uppercase;
  margin-bottom: 26px;
}

.demo-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-controls .btn { padding: 12px 22px; font-size: 12px; }
.demo-controls .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* Activity log */
.demo-log {
  background: #060d1f;
  border: 1px solid rgba(0, 176, 201, 0.18);
  border-radius: 22px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.demo-log-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.demo-log-head h4 { color: #fff; font-size: 14px; margin: 0; letter-spacing: 0.04em; }
.demo-log-head span { font-size: 10px; color: var(--cyan); letter-spacing: 0.12em; text-transform: uppercase; }

.demo-log-list {
  list-style: none; padding: 0; margin: 0;
  font-family: var(--font-mono); font-size: 12.5px;
  color: rgba(230, 238, 247, 0.85);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 340px;
}
.demo-log-item {
  display: grid;
  grid-template-columns: 80px 16px 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.4;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.025);
  border-left: 2px solid var(--cyan);
  border-radius: 4px;
  animation: demo-log-in 400ms ease both;
}
.demo-log-item.placeholder {
  color: rgba(230, 238, 247, 0.3);
  font-style: italic;
  border-left-color: rgba(255, 255, 255, 0.1);
  grid-template-columns: 1fr;
}
.demo-log-item.warn { border-left-color: #f5b73e; }
.demo-log-item.alarm { border-left-color: var(--red); background: rgba(230, 58, 53, 0.08); }
.demo-log-item.ok { border-left-color: var(--ok); }
.demo-log-time { color: rgba(230, 238, 247, 0.45); font-size: 11px; }
.demo-log-icon { color: var(--cyan); font-weight: 700; }
.demo-log-item.warn .demo-log-icon { color: #f5b73e; }
.demo-log-item.alarm .demo-log-icon { color: var(--red); }
.demo-log-item.ok .demo-log-icon { color: var(--ok); }
@keyframes demo-log-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Toast notification */
.demo-toast {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 9999;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(230, 58, 53, 0.45);
  max-width: 360px;
  transform: translateX(420px);
  opacity: 0;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1), opacity 400ms ease;
  pointer-events: none;
}
.demo-toast.show { transform: translateX(0); opacity: 1; pointer-events: auto; }
.demo-toast-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
  animation: demo-toast-bell 0.6s ease-in-out 2;
}
@keyframes demo-toast-bell {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-15deg); }
  75%      { transform: rotate(15deg); }
}
.demo-toast strong { display: block; font-size: 14px; margin-bottom: 2px; letter-spacing: 0.02em; }
.demo-toast p { margin: 0; font-size: 13px; opacity: 0.9; line-height: 1.35; }

@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-toast { top: auto; bottom: 90px; right: 16px; left: 16px; max-width: none; }
  .demo-log-list { max-height: 260px; }
}


/* ---------- ROI Calculator ---------- */
.roi-section {
  background: linear-gradient(180deg, #f4f8fb 0%, #ebf2f7 100%);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.roi-section::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 380px at 85% 5%, rgba(0, 176, 201, 0.08), transparent 60%),
    radial-gradient(600px 300px at 5% 95%, rgba(207, 20, 43, 0.05), transparent 60%);
  pointer-events: none;
}
.roi-section .container { position: relative; z-index: 1; }

.roi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  margin-top: 48px;
  align-items: stretch;
}

/* INPUTS panel */
.roi-inputs {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 14px 40px rgba(27, 58, 111, 0.06);
}
.roi-inputs h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--navy);
  font-weight: 700;
}
.roi-inputs > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Sector presets */
.roi-presets {
  background: var(--frost);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 28px;
}
.roi-presets-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.roi-presets-label svg { width: 12px; height: 12px; }
.roi-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.roi-preset {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.roi-preset:hover {
  background: var(--cyan-light);
  border-color: var(--cyan);
  color: var(--navy);
  transform: translateY(-1px);
}
.roi-preset.active {
  background: var(--cyan);
  border-color: var(--cyan-dark);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 122, 143, 0.3);
}

/* Info tooltip */
.roi-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--frost);
  border: 1px solid var(--line);
  color: var(--cyan-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  position: relative;
  margin-left: 4px;
  transition: background 150ms ease, border-color 150ms ease;
}
.roi-info:hover { background: var(--cyan); color: #fff; border-color: var(--cyan-dark); }
.roi-info::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: 10px;
  width: 260px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  box-shadow: 0 14px 30px rgba(27, 58, 111, 0.25);
  z-index: 10;
  white-space: normal;
}
.roi-info::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--navy);
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: 10;
}
.roi-info:hover::after, .roi-info:hover::before,
.roi-info:focus::after, .roi-info:focus::before { opacity: 1; }

/* Sector reference table (collapsible) */
.roi-ref {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.roi-ref summary {
  cursor: pointer;
  color: var(--cyan-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  outline: none;
  display: inline-block;
  padding: 4px 0;
}
.roi-ref summary:hover { color: var(--cyan); }
.roi-ref-table {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.roi-ref-table dt {
  color: var(--navy);
  font-weight: 600;
  font-size: 11.5px;
}
.roi-ref-table dd {
  margin: 0;
  color: var(--cyan-dark);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .roi-info::after { width: 220px; left: auto; right: -8px; transform: none; }
  .roi-info::before { left: auto; right: 0; transform: none; margin-right: 4px; }
}

.roi-field { margin-bottom: 26px; }
.roi-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.roi-field-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.roi-field-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan-light), var(--cyan));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.roi-field-icon svg { width: 16px; height: 16px; }
.roi-field-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  background: var(--frost);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 14px;
  min-width: 110px;
  text-align: right;
  white-space: nowrap;
}

.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--frost);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.roi-slider::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--cyan) 0%, var(--cyan) var(--pct, 50%), var(--frost) var(--pct, 50%), var(--frost) 100%);
}
.roi-slider::-moz-range-track {
  height: 6px; border-radius: 999px;
  background: var(--frost);
}
.roi-slider::-moz-range-progress {
  height: 6px; border-radius: 999px;
  background: var(--cyan);
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--cyan);
  cursor: grab;
  margin-top: -8px;
  box-shadow: 0 4px 10px rgba(0, 122, 143, 0.35);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.roi-slider::-webkit-slider-thumb:hover,
.roi-slider:focus::-webkit-slider-thumb { transform: scale(1.15); box-shadow: 0 6px 14px rgba(0, 122, 143, 0.45); }
.roi-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--cyan);
  cursor: grab;
  box-shadow: 0 4px 10px rgba(0, 122, 143, 0.35);
}
.roi-field-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.04em;
}

/* RESULTS panel */
.roi-results {
  background: linear-gradient(160deg, #1B3A6F 0%, #102a52 60%, #0a1f44 100%);
  border-radius: 22px;
  padding: 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px rgba(27, 58, 111, 0.35);
}
.roi-results::before {
  content: ""; position: absolute;
  right: -120px; top: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0, 176, 201, 0.35), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
}
.roi-results::after {
  content: ""; position: absolute;
  left: -80px; bottom: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0, 176, 201, 0.18), transparent 60%);
  filter: blur(24px);
  pointer-events: none;
}
.roi-results > * { position: relative; z-index: 1; }

.roi-results-head {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan-light);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.roi-hero-result { margin-bottom: 32px; }
.roi-hero-label {
  font-size: 14px;
  color: rgba(230, 238, 247, 0.72);
  margin-bottom: 6px;
}
.roi-hero-value {
  font-family: var(--font-display);
  font-size: clamp(46px, 5.6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--cyan-light);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(0, 176, 201, 0.35);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.roi-hero-value .roi-currency {
  font-size: 0.55em;
  color: rgba(230, 238, 247, 0.6);
  font-weight: 400;
}
.roi-hero-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(230, 238, 247, 0.55);
  letter-spacing: 0.1em;
  margin-top: 4px;
  text-transform: uppercase;
}

.roi-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
.roi-result-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 20px;
  backdrop-filter: blur(10px);
}
.roi-result-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(230, 238, 247, 0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.roi-result-card-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.roi-result-card-suffix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan-light);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

.roi-breakdown {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  margin-bottom: 24px;
}
.roi-breakdown-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(230, 238, 247, 0.55);
  margin-bottom: 14px;
}
.roi-breakdown-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
}
.roi-breakdown-name { color: rgba(230, 238, 247, 0.85); }
.roi-breakdown-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.roi-breakdown-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-light) 100%);
  transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.roi-breakdown-bar-fill.b2 { background: linear-gradient(90deg, #6effc9 0%, var(--ok) 100%); }
.roi-breakdown-bar-fill.b3 { background: linear-gradient(90deg, #f5b73e 0%, #ffd485 100%); }
.roi-breakdown-amount {
  font-family: var(--font-mono);
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  white-space: nowrap;
}

.roi-cta { margin-top: auto; }
.roi-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.roi-cta-row .btn { padding: 14px 24px; }
.roi-disclaimer {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(230, 238, 247, 0.45);
  margin-top: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.roi-disclaimer summary {
  cursor: pointer;
  color: var(--cyan-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  outline: none;
}
.roi-disclaimer summary:hover { color: #fff; }
.roi-disclaimer ul { padding-left: 18px; margin: 10px 0 0; }
.roi-disclaimer li { margin-bottom: 4px; }

@media (max-width: 900px) {
  .roi-grid { grid-template-columns: 1fr; }
  .roi-inputs, .roi-results { padding: 28px 22px; }
  .roi-result-grid { grid-template-columns: 1fr; }
  .roi-breakdown-row { grid-template-columns: 100px 1fr auto; font-size: 12px; }
}

/* ============================================================================
 *  SHOP / E-COMMERCE PAGE
 * ========================================================================= */

/* Disponibilità notice — usato anche su contatti */
.availability-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(135deg, #FFF8E1 0%, #FFEED4 100%);
  border: 1px solid #F5B73E;
  border-left: 4px solid #F5B73E;
  border-radius: 14px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5a3a00;
}
.availability-notice .av-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: #F5B73E;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}
.availability-notice strong { color: var(--navy); font-weight: 700; }
.availability-notice .av-future {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #7a5500;
  letter-spacing: 0.02em;
}

/* Hero shop */
.shop-section { padding: 64px 0; }

/* Tab switcher: pacchetti / personalizza / prodotti */
.shop-tabs {
  display: flex;
  gap: 0;
  margin: 40px 0 24px;
  background: var(--frost);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
  flex-wrap: wrap;
}
.shop-tab {
  flex: 1;
  min-width: 140px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.shop-tab:hover { color: var(--navy); }
.shop-tab.active {
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 2px 10px rgba(27, 58, 111, 0.1);
}

.shop-panel { display: none; animation: shop-fade-in 350ms ease both; }
.shop-panel.active { display: block; }
@keyframes shop-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* PACKAGES */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.pkg-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.pkg-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(27, 58, 111, 0.1); border-color: var(--cyan); }
.pkg-card.popular {
  border-color: var(--cyan);
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FBFC 100%);
}
.pkg-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--care);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(207, 20, 43, 0.35);
}
.pkg-label {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.pkg-tagline {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 24px;
  line-height: 1.4;
  min-height: 36px;
}
.pkg-price {
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
  line-height: 1;
}
.pkg-price .pkg-currency { font-size: 22px; color: var(--cyan); font-weight: 500; }
.pkg-price .pkg-amount { font-size: 48px; letter-spacing: -0.03em; }
.pkg-price-orig {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  margin-bottom: 16px;
}
.pkg-price-orig.empty { visibility: hidden; height: 18px; margin-bottom: 16px; }
.pkg-discount-badge {
  display: inline-block;
  background: rgba(0, 176, 201, 0.15);
  color: var(--cyan-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
}
.pkg-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.pkg-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--navy);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}
.pkg-includes li:last-child { border-bottom: none; }
.pkg-includes li svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--cyan);
  margin-top: 2px;
}
.pkg-includes li .qty {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan-dark);
  font-weight: 700;
  background: var(--frost);
  padding: 1px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.pkg-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.pkg-actions .btn { width: 100%; justify-content: center; padding: 14px; }
.pkg-btn-disabled {
  background: var(--frost);
  color: var(--muted);
  border: 1px dashed var(--line);
  padding: 14px;
  text-align: center;
  border-radius: var(--radius-btn);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: not-allowed;
}

/* CUSTOM CONFIGURATOR */
.cfg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  margin-top: 24px;
  align-items: stretch;
}
.cfg-inputs {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
}
.cfg-inputs h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
}
.cfg-inputs > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.cfg-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cfg-item:first-of-type { padding-top: 0; }
.cfg-item:last-of-type { border-bottom: none; padding-bottom: 0; }
.cfg-item-info { min-width: 0; }
.cfg-item-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 4px;
}
.cfg-item-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.cfg-item-control { flex-shrink: 0; }
.cfg-toggle {
  position: relative;
  width: 52px; height: 28px;
  background: var(--frost);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
  flex-shrink: 0;
}
.cfg-toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cfg-toggle.on { background: var(--cyan); border-color: var(--cyan-dark); }
.cfg-toggle.on::after { transform: translateX(24px); }
.cfg-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--frost);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.cfg-stepper button {
  background: transparent;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  transition: background 150ms ease, color 150ms ease;
}
.cfg-stepper button:hover { background: var(--cyan); color: #fff; }
.cfg-stepper button:disabled { color: var(--muted); cursor: not-allowed; background: transparent; }
.cfg-stepper input {
  width: 50px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.cfg-stepper input::-webkit-inner-spin-button,
.cfg-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* SUMMARY (right column of configurator) */
.cfg-summary {
  background: linear-gradient(160deg, #1B3A6F 0%, #102a52 60%, #0a1f44 100%);
  border-radius: 22px;
  padding: 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cfg-summary::before {
  content: ""; position: absolute;
  right: -100px; top: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0, 176, 201, 0.35), transparent 60%);
  filter: blur(28px);
  pointer-events: none;
}
.cfg-summary > * { position: relative; z-index: 1; }
.cfg-summary h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cfg-summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}
.cfg-summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-family: var(--font-mono);
}
.cfg-summary-list li span:first-child { color: rgba(230, 238, 247, 0.8); }
.cfg-summary-list li span:last-child {
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cfg-summary-list li.empty {
  color: rgba(230, 238, 247, 0.5);
  font-style: italic;
  font-family: var(--font-body);
  font-size: 13px;
  display: block;
  text-align: center;
  border-bottom: none;
  padding: 22px 0;
}
.cfg-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  padding-top: 16px;
  margin-bottom: 24px;
}
.cfg-total-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(230, 238, 247, 0.6);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cfg-total-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  color: var(--cyan-light);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.cfg-total-value .cfg-currency { font-size: 22px; color: rgba(230, 238, 247, 0.6); font-weight: 400; }
.cfg-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.cfg-actions .btn { padding: 14px; justify-content: center; }
.cfg-actions .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cfg-actions .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.cfg-cloud-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(230, 238, 247, 0.5);
  margin-top: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
}

/* PRODOTTI SINGOLI */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.prod-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(27, 58, 111, 0.08); border-color: var(--cyan); }
.prod-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan-light), var(--cyan));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.prod-icon svg { width: 30px; height: 30px; }
.prod-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}
.prod-card > p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.55;
}
.prod-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.prod-features li {
  font-size: 13px;
  color: var(--navy);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.prod-features li::before {
  content: "→";
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
}
.prod-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.prod-price .prod-currency { font-size: 18px; color: var(--cyan); font-weight: 500; }
.prod-price .prod-amount { font-size: 36px; letter-spacing: -0.02em; line-height: 1; }
.prod-price-suffix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.prod-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.prod-actions .btn { width: 100%; justify-content: center; padding: 12px; font-size: 13px; }

/* FAQ shop */
.shop-faq { margin-top: 64px; }
.shop-faq summary {
  cursor: pointer;
  padding: 18px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  transition: border-color 200ms ease;
}
.shop-faq summary:hover { border-color: var(--cyan); }
.shop-faq summary::-webkit-details-marker { display: none; }
.shop-faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--cyan);
  font-weight: 300;
  transition: transform 200ms ease;
}
.shop-faq details[open] summary::after { transform: rotate(45deg); }
.shop-faq details > p {
  padding: 0 24px 18px;
  margin-top: -4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .pkg-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .cfg-grid { grid-template-columns: 1fr; }
  .shop-tabs { flex-direction: column; }
  .shop-tab { width: 100%; }
}


/* ============================================================================
 *  COOKIE BANNER · GDPR consent
 * ========================================================================= */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(160deg, #1B3A6F 0%, #102a52 100%);
  color: #fff;
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 480ms cubic-bezier(0.4, 0, 0.2, 1), opacity 380ms ease;
  font-family: var(--font-body);
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(230, 238, 247, 0.92);
}
.cookie-banner-text strong {
  color: #fff;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  font-size: 14.5px;
}
.cookie-banner-text a {
  color: var(--cyan-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner-text a:hover { color: #fff; }
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: background 200ms ease, transform 200ms ease, color 200ms ease;
  white-space: nowrap;
}
.cookie-btn-accept {
  background: var(--cyan);
  color: #fff;
}
.cookie-btn-accept:hover { background: var(--cyan-dark); transform: translateY(-1px); }
.cookie-btn-reject {
  background: transparent;
  color: rgba(230, 238, 247, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.cookie-btn-reject:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.5); }

.cookie-btn-customize {
  background: transparent;
  color: rgba(230, 238, 247, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.cookie-btn-customize:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.6); }

/* Cookie banner CUSTOMIZE expand panel (GDPR granular consent) */
.cookie-banner-customize {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: block;
}
.cookie-banner-customize[hidden] { display: none; }
.cookie-cat { margin-bottom: 14px; }

.cookie-toggle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  color: rgba(230, 238, 247, 0.9);
}
.cookie-toggle input[type="checkbox"] {
  position: relative;
  width: 38px;
  height: 22px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
  margin: 2px 0 0;
  transition: background 0.2s;
}
.cookie-toggle input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.22s;
}
.cookie-toggle input[type="checkbox"]:checked { background: var(--cyan, #00B0C9); }
.cookie-toggle input[type="checkbox"]:checked::before { transform: translateX(16px); }
.cookie-toggle input[type="checkbox"]:disabled { opacity: 0.55; cursor: not-allowed; }
.cookie-toggle-slider { display: none; }
.cookie-toggle-label { flex: 1; font-size: 14px; line-height: 1.45; }
.cookie-toggle-label strong { display: block; color: #fff; margin-bottom: 2px; font-weight: 600; }
.cookie-cat-desc { display: block; font-size: 12.5px; color: rgba(230, 238, 247, 0.7); font-weight: 400; line-height: 1.5; }

.cookie-banner-customize-actions { margin-top: 16px; text-align: right; }
.cookie-btn-save {
  background: var(--cyan, #00B0C9);
  color: #fff;
  border: 1px solid var(--cyan, #00B0C9);
}
.cookie-btn-save:hover { background: var(--cyan-dark, #008fa3); transform: translateY(-1px); }

@media (max-width: 720px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 18px 20px;
  }
  .cookie-banner-actions { width: 100%; }

/* ============================================================================
 *  LEGAL PAGES (privacy)
 * ========================================================================= */
.legal-section {
  padding: 64px 0 96px;
}
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}
.legal-content > p.lead {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 8px;
}
.legal-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line);
}
.legal-toc {
  background: var(--frost);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 28px;
  margin: 32px 0;
}
.legal-toc h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  margin: 0 0 12px;
  font-weight: 700;
}
.legal-toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 24px;
  font-size: 14px;
}
.legal-toc li { margin-bottom: 4px; break-inside: avoid; }
.legal-toc a { color: var(--navy); text-decoration: none; }
.legal-toc a:hover { color: var(--cyan); text-decoration: underline; }
.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 48px 0 14px;
  padding-top: 8px;
  letter-spacing: -0.01em;
  scroll-margin-top: 100px;
}
.legal-content h2 .num {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-weight: 500;
  margin-right: 10px;
  font-size: 16px;
}
.legal-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 8px;
}
.legal-content p,
.legal-content li {
  font-size: 15px;
  line-height: 1.7;
  color: #2c3e5d;
}
.legal-content p { margin: 0 0 14px; }
.legal-content ul,
.legal-content ol { padding-left: 22px; margin: 0 0 18px; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--navy); font-weight: 700; }
.legal-content a {
  color: var(--cyan-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: var(--cyan); }

.legal-callout {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFEED4 100%);
  border-left: 4px solid #F5B73E;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  color: #5a3a00;
  font-size: 14px;
  line-height: 1.55;
}
.legal-callout strong { color: var(--navy); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th {
  background: var(--frost);
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-table td:first-child {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--cyan-dark);
  font-size: 12.5px;
  white-space: nowrap;
}

.legal-placeholder {
  display: inline-block;
  background: rgba(245, 183, 62, 0.2);
  border: 1px dashed #F5B73E;
  border-radius: 5px;
  padding: 1px 7px;
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: #5a3a00;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .legal-toc ol { columns: 1; }
}

  .cookie-btn { flex: 1; text-align: center; padding: 12px 16px; }
}



/* === A11y P0.7+P0.8 (audit 2026-05-25): skip-link + focus-visible === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: #1B3A6F;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.18s;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 8px;
  outline: 3px solid #00B0C9;
  outline-offset: 2px;
}
*:focus-visible {
  outline: 2px solid #00B0C9;
  outline-offset: 2px;
  border-radius: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #00B0C9;
  outline-offset: 3px;
}
/* === fine A11y P0 fix === */
