/* ==========================================================================
   Prostalis — biosima.shop
   Foglio di stile principale. Palette: chiara, satura, argento, grafite,
   azzurra, ghiaccio, blu notte.
   ========================================================================== */

:root {
  /* colori */
  --navy-900: #071a34;
  --navy-800: #0b2545;
  --navy-700: #12355e;
  --blue-700: #0f4a8a;
  --blue-500: #207cc8;
  --blue-400: #3d94db;
  --blue-300: #7cbdec;
  --ice-300: #cfe6f4;
  --ice-200: #e3f0f9;
  --ice-100: #f1f7fc;
  --paper: #f8fbfd;
  --white: #ffffff;
  --silver-500: #8b9aaa;
  --silver-400: #b7c3cf;
  --silver-300: #d6dee6;
  --graphite: #2c3743;
  --graphite-soft: #4a586a;

  /* tipografia */
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Palatino Linotype", serif;
  --mono: "Consolas", "SFMono-Regular", "Courier New", monospace;

  /* scala di spazio */
  --s-1: 6px;
  --s-2: 12px;
  --s-3: 20px;
  --s-4: 30px;
  --s-5: 44px;
  --s-6: 64px;
  --s-7: 92px;
  --s-8: 124px;

  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 26px;
  --shell: 1200px;

  --shadow-soft: 0 18px 44px -28px rgba(7, 26, 52, 0.55);
  --shadow-card: 0 26px 60px -36px rgba(7, 26, 52, 0.6);
  --shadow-lift: 0 34px 70px -34px rgba(7, 26, 52, 0.5);
  --ring: 0 0 0 3px rgba(32, 124, 200, 0.35);
}

/* --------------------------------------------------------------- reset -- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  color: var(--graphite);
  background: var(--paper);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-500); }

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--navy-800);
  line-height: 1.16;
  letter-spacing: -0.022em;
  margin: 0 0 var(--s-3);
  font-weight: 700;
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.65rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.42rem); }
p { margin: 0 0 var(--s-3); }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* ------------------------------------------------------------- layout -- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 22px;
}
.shell--tight { max-width: 880px; }

.band { padding-block: var(--s-7); position: relative; }
.band--pad-s { padding-block: var(--s-6); }
.band--ice { background: linear-gradient(180deg, var(--ice-100) 0%, var(--white) 100%); }
.band--frost { background: linear-gradient(160deg, var(--ice-200) 0%, var(--paper) 70%); }
.band--deep {
  background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--blue-700) 100%);
  color: #dbe7f2;
}
.band--deep h2, .band--deep h3 { color: var(--white); }
.band--deep a { color: var(--blue-300); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: var(--s-2);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--ice-300));
  border-radius: 2px;
}
.band--deep .eyebrow { color: var(--blue-300); }
.band--deep .eyebrow::before { background: linear-gradient(90deg, var(--blue-300), rgba(255,255,255,.15)); }

.lede {
  font-size: 1.08rem;
  color: var(--graphite-soft);
  max-width: 62ch;
}
.band--deep .lede { color: #c3d6e6; }

.head-block { max-width: 720px; margin-bottom: var(--s-5); }
.head-block--center { margin-inline: auto; text-align: center; }

/* firma visiva: cresta di ghiaccio */
.ridge {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--navy-800) 0%, var(--blue-500) 32%, var(--blue-300) 58%, rgba(207, 230, 244, 0) 100%);
  margin-bottom: var(--s-4);
  max-width: 220px;
}
.ridge--center { margin-inline: auto; }

/* ------------------------------------------------------------ bottoni -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 15px 30px;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease;
  text-align: center;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow: 0 16px 30px -18px rgba(15, 74, 138, .95);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 22px 38px -18px rgba(15, 74, 138, .95); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  border-color: rgba(139, 154, 170, .55);
  color: var(--navy-800);
}
.btn--ghost:hover { border-color: var(--blue-500); color: var(--blue-700); background: rgba(32,124,200,.06); }
.band--deep .btn--ghost,
.hero .btn--ghost { color: #eaf3fa; border-color: rgba(255, 255, 255, .38); }
.band--deep .btn--ghost:hover,
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--light { background: var(--white); color: var(--navy-800); }
.btn--light:hover { background: var(--ice-200); color: var(--navy-800); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--s { padding: 11px 22px; font-size: .9rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------------------------------- intestazione -- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 251, 253, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(183, 195, 207, .45);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 74px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}
.brand-mark:hover { color: var(--navy-800); }
.brand-mark__glyph {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--navy-800), var(--blue-500));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  flex: 0 0 auto;
}
.brand-mark__sub {
  display: block;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--silver-500);
  margin-top: 1px;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav__list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  color: var(--graphite);
  font-size: .95rem;
  font-weight: 600;
  position: relative;
  padding-block: 6px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue-500);
  transition: width .22s ease;
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 46px; height: 42px;
  border: 1px solid var(--silver-400);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px; height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  margin-inline: auto;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  color: #e6f0f8;
  background: var(--navy-900);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .95;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(7,26,52,.94) 0%, rgba(11,37,69,.82) 46%, rgba(11,37,69,.35) 100%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: var(--s-6);
  padding-block: var(--s-8) var(--s-7);
}
.hero__inner--solo { grid-template-columns: 1fr; padding-block: var(--s-8) var(--s-7); }
.hero__inner--solo .hero__text { max-width: 780px; }
.hero__inner--solo h1 { max-width: 15ch; }
.hero h1 { color: #fff; }
.hero__text p { color: #c9dcec; font-size: 1.1rem; max-width: 54ch; }
.hero .eyebrow { color: var(--blue-300); }
.hero .eyebrow::before { background: linear-gradient(90deg, var(--blue-300), rgba(255,255,255,.15)); }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--s-4);
  padding: 0;
  list-style: none;
}
.hero__badges li {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #d9e8f4;
  border: 1px solid rgba(207, 230, 244, .28);
  background: rgba(255, 255, 255, .07);
  border-radius: 999px;
  padding: 8px 16px;
}


.trust-strip {
  position: relative;
  border-top: 1px solid rgba(207, 230, 244, .18);
  background: rgba(7, 26, 52, .55);
}
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  padding-block: var(--s-4);
}
.trust-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #cfe0ee;
  font-size: .92rem;
  line-height: 1.45;
}
.trust-strip__item strong { display: block; color: #fff; font-size: .98rem; }

.i-badge {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(124, 189, 236, .16);
  border: 1px solid rgba(124, 189, 236, .3);
}
.i-badge svg { width: 18px; height: 18px; }

/* --------------------------------------------------------- due colonne -- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: center;
}
.split--wide-text { grid-template-columns: 1.15fr .85fr; }
.split--reverse .split__media { order: 2; }

.split__media { position: relative; }
.frame {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--ice-200);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--3x2 { aspect-ratio: 3 / 2; }
.frame--1x1 { aspect-ratio: 1 / 1; }
.frame--edge { border: 1px solid rgba(255, 255, 255, .5); }

.note-chip {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  background: rgba(255, 255, 255, .93);
  border-radius: var(--radius-m);
  padding: 16px 20px;
  box-shadow: var(--shadow-soft);
  font-size: .9rem;
  color: var(--graphite-soft);
  line-height: 1.5;
}
.note-chip strong { color: var(--navy-800); display: block; margin-bottom: 3px; }

.bullet-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.bullet-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--graphite-soft);
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--blue-500), var(--blue-300));
  box-shadow: 0 0 0 4px rgba(32, 124, 200, .13);
}
.band--deep .bullet-list li { color: #c9dcec; }

/* ------------------------------------------------------------- schede -- */
.grid { display: grid; gap: var(--s-4); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--silver-300);
  border-radius: var(--radius-m);
  padding: var(--s-4);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .24s ease, border-color .24s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--ice-300); }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; color: var(--graphite-soft); font-size: .96rem; }
.card__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: var(--s-3);
  background: linear-gradient(140deg, var(--ice-200), var(--white));
  border: 1px solid var(--ice-300);
}
.card__icon svg { width: 22px; height: 22px; }
.card__tag {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--silver-500);
  font-weight: 700;
  margin-bottom: 8px;
}

.card--glass {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(207, 230, 244, .22);
  color: #c9dcec;
  box-shadow: none;
}
.card--glass:hover { background: rgba(255, 255, 255, .11); border-color: rgba(207,230,244,.4); }
.card--glass p { color: #bed3e4; }

/* ------------------------------------------------------------ formula -- */
.formula-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.formula-item {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(207, 230, 244, .2);
  border-radius: var(--radius-m);
  padding: 22px 24px;
}
.formula-item__name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.formula-item__name span:first-child { font-weight: 700; color: #fff; font-size: 1.04rem; }
.formula-item__name span:last-child {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--blue-300);
  letter-spacing: .04em;
  white-space: nowrap;
}
.formula-item p { font-size: .92rem; color: #bad0e2; margin: 0; }

.fineprint {
  font-size: .84rem;
  color: var(--silver-500);
  line-height: 1.6;
}
.band--deep .fineprint { color: #93aec6; }

/* -------------------------------------------------------------- passi -- */
.steps { counter-reset: step; display: grid; gap: 2px; }
.step {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: var(--s-3);
  padding: 26px 0;
  border-bottom: 1px solid var(--silver-300);
  align-items: start;
}
.step:last-child { border-bottom: 0; }
.step__num {
  counter-increment: step;
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-500);
  position: relative;
}
.step__num::before { content: "0" counter(step); }
.step__num::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--blue-300), rgba(207,230,244,0));
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--graphite-soft); }

/* ---------------------------------------------------------- pacchetti -- */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); align-items: stretch; }
.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--silver-300);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .24s ease, border-color .2s ease;
}
.pack:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.pack--featured { border-color: var(--blue-400); box-shadow: 0 30px 66px -34px rgba(15, 74, 138, .7); }
.pack__flag {
  position: absolute;
  top: 16px; right: 16px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  z-index: 2;
}
.pack__media {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: linear-gradient(165deg, var(--ice-200), var(--white) 75%);
  border-bottom: 1px solid var(--silver-300);
}
.pack__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  flex: 0 1 auto;
  filter: drop-shadow(0 16px 22px rgba(7, 26, 52, .22));
}
.pack__body { padding: var(--s-4); display: flex; flex-direction: column; flex: 1; }
.pack__units {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--silver-500);
  margin-bottom: 6px;
}
.pack h3 { margin-bottom: 10px; }
.pack__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.pack__price b { font-size: 2rem; color: var(--navy-800); letter-spacing: -.03em; }
.pack__price span { font-size: .9rem; color: var(--silver-500); }
.pack__unitprice { font-size: .88rem; color: var(--graphite-soft); margin-bottom: var(--s-3); }
.pack__list { list-style: none; margin: 0 0 var(--s-4); padding: 0; }
.pack__list li {
  position: relative;
  padding-left: 24px;
  font-size: .93rem;
  color: var(--graphite-soft);
  margin-bottom: 9px;
}
.pack__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--blue-400);
}
.pack .btn { margin-top: auto; }

/* ---------------------------------------------------- testimonianze --- */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.voice {
  background: var(--white);
  border: 1px solid var(--silver-300);
  border-radius: var(--radius-m);
  padding: var(--s-4);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.voice__quote {
  font-family: var(--serif);
  font-size: 1.03rem;
  line-height: 1.66;
  color: var(--graphite);
  margin: 0 0 var(--s-3);
}
.voice__quote::before { content: "“"; color: var(--blue-400); font-size: 2rem; line-height: 0; vertical-align: -6px; margin-right: 4px; }
.voice__person { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.voice__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--silver-300);
}
.voice__meta { font-size: .88rem; color: var(--silver-500); line-height: 1.35; }
.voice__meta strong { display: block; color: var(--navy-800); font-size: .96rem; }

/* ---------------------------------------------------------------- faq -- */
.faq { border-top: 1px solid var(--silver-300); }
.faq__item { border-bottom: 1px solid var(--silver-300); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  background: none;
  border: 0;
  padding: 24px 4px;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-800);
  text-align: left;
  cursor: pointer;
}
.faq__q:hover { color: var(--blue-700); }
.faq__sign {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--silver-400);
  position: relative;
  transition: background-color .2s ease, border-color .2s ease, transform .25s ease;
}
.faq__sign::before, .faq__sign::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--navy-800);
  transform: translate(-50%, -50%);
  transition: opacity .2s ease, background-color .2s ease;
}
.faq__sign::before { width: 12px; height: 2px; }
.faq__sign::after { width: 2px; height: 12px; }
.faq__q[aria-expanded="true"] .faq__sign { background: var(--blue-500); border-color: var(--blue-500); transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__sign::before { background: #fff; }
.faq__q[aria-expanded="true"] .faq__sign::after { opacity: 0; }
.faq__a { display: none; padding: 0 60px 26px 4px; color: var(--graphite-soft); }
.faq__a.is-open { display: block; }
.faq__a p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- form -- */
.lead {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: var(--s-6);
  align-items: start;
}
.form-card {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: var(--s-5);
  box-shadow: 0 36px 80px -44px rgba(7, 26, 52, .8);
  border: 1px solid var(--silver-300);
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 700; color: var(--navy-800); }
.field .req { color: var(--blue-500); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: .97rem;
  color: var(--graphite);
  background: var(--ice-100);
  border: 1px solid var(--silver-300);
  border-radius: var(--radius-s);
  padding: 13px 15px;
  width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.field textarea { min-height: 108px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--silver-500) 50%), linear-gradient(135deg, var(--silver-500) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue-400);
  box-shadow: var(--ring);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b23c3c; background: #fdf5f5; }
.field__err { font-size: .82rem; color: #b23c3c; min-height: 0; display: none; }
.field.has-error .field__err { display: block; }
.field__hint { font-size: .8rem; color: var(--silver-500); }

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: .87rem;
  color: var(--graphite-soft);
  line-height: 1.55;
}
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue-500); }
.check.has-error { color: #b23c3c; }

.form-foot { margin-top: var(--s-4); display: grid; gap: 16px; }
.form-note {
  font-size: .82rem;
  color: var(--silver-500);
  border-left: 3px solid var(--ice-300);
  padding-left: 14px;
  line-height: 1.6;
}

.lead__aside .card--glass { margin-bottom: 16px; }
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-lines li { display: flex; gap: 14px; align-items: flex-start; }
.contact-lines .lbl {
  display: block;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue-300);
  font-weight: 700;
  margin-bottom: 2px;
}
.contact-lines a { color: #eaf3fa; }
.contact-lines a:hover { color: var(--blue-300); }

/* ------------------------------------------------------------ contatti -- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.contact-card {
  background: var(--white);
  border: 1px solid var(--silver-300);
  border-radius: var(--radius-m);
  padding: var(--s-4);
  box-shadow: var(--shadow-soft);
}
.contact-card h3 { font-size: 1.08rem; }
.contact-card p { color: var(--graphite-soft); font-size: .95rem; margin-bottom: 0; }
.contact-card a { font-weight: 600; }

/* ------------------------------------------------------------- footer -- */
.site-foot {
  background: linear-gradient(180deg, var(--navy-900), #05121f);
  color: #a9c1d6;
  padding-block: var(--s-6) var(--s-4);
  font-size: .93rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid rgba(169, 193, 214, .18);
}
.site-foot h4 {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.site-foot a { color: #cfe0ee; }
.site-foot a:hover { color: var(--blue-300); }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-foot .brand-mark { color: #fff; }
.site-foot .brand-mark__sub { color: var(--silver-500); }
.foot-about p { color: #9db6cc; margin-top: var(--s-3); max-width: 38ch; }
.foot-bottom {
  padding-top: var(--s-4);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  color: #8aa4bc;
  font-size: .85rem;
}
.foot-disclosure {
  font-size: .82rem;
  color: #8aa4bc;
  line-height: 1.65;
  margin-top: var(--s-4);
  max-width: 96ch;
}
.linkbtn {
  background: none;
  border: 1px solid rgba(169, 193, 214, .35);
  color: #cfe0ee;
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.linkbtn:hover { border-color: var(--blue-300); color: #fff; background: rgba(124, 189, 236, .12); }

/* ------------------------------------------------- pagine editoriali --- */
.page-head {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700) 70%, var(--blue-700));
  color: #d7e6f2;
  padding-block: var(--s-7) var(--s-6);
}
.page-head h1 { color: #fff; margin-bottom: var(--s-2); }
.page-head p { color: #b9d0e3; max-width: 62ch; margin-bottom: 0; }
.crumbs { font-size: .84rem; color: #8fadc7; margin-bottom: var(--s-3); }
.crumbs a { color: #b9d0e3; }
.crumbs span { margin-inline: 8px; }

.doc { padding-block: var(--s-6); }
.doc h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: var(--s-5); }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 1.1rem; margin-top: var(--s-4); }
.doc p, .doc li { color: var(--graphite-soft); }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: var(--s-3); }
.doc li { margin-bottom: 9px; }
.doc__meta {
  font-size: .85rem;
  color: var(--silver-500);
  border: 1px solid var(--silver-300);
  background: var(--ice-100);
  border-radius: var(--radius-m);
  padding: 18px 22px;
  margin-bottom: var(--s-5);
}
.doc__meta p:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; margin-block: var(--s-3) var(--s-4); font-size: .93rem; }
.doc th, .doc td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--silver-300); vertical-align: top; }
.doc th { color: var(--navy-800); background: var(--ice-100); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.doc td { color: var(--graphite-soft); }

.callout {
  border-radius: var(--radius-m);
  border: 1px solid var(--ice-300);
  background: linear-gradient(140deg, var(--ice-200), var(--white));
  padding: var(--s-4);
  margin-block: var(--s-4);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--navy-800); }

/* ------------------------------------------------------------ successo -- */
.success-wrap {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--s-7);
}
.success-card {
  max-width: 660px;
  background: var(--white);
  border: 1px solid var(--silver-300);
  border-radius: var(--radius-l);
  padding: var(--s-6) var(--s-5);
  box-shadow: var(--shadow-card);
}
.success-seal {
  width: 78px; height: 78px;
  margin: 0 auto var(--s-4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--blue-500), var(--navy-800));
  box-shadow: 0 20px 40px -22px rgba(15, 74, 138, .9);
}
.success-seal svg { width: 34px; height: 34px; }
.success-next {
  text-align: left;
  margin-top: var(--s-5);
  border-top: 1px solid var(--silver-300);
  padding-top: var(--s-4);
  display: grid;
  gap: 16px;
}

/* ------------------------------------------------------- pagina guida -- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.article-card {
  background: var(--white);
  border: 1px solid var(--silver-300);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .24s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.article-card__media { aspect-ratio: 11 / 8; overflow: hidden; background: var(--ice-200); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: var(--s-4); }
.article-card__body p { margin-bottom: 0; color: var(--graphite-soft); font-size: .95rem; }
.article-card__body h3 { font-size: 1.12rem; }

.reading { max-width: 74ch; }
.reading h2 { margin-top: var(--s-5); }
.reading p { color: var(--graphite-soft); }
.pull {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--navy-800);
  border-left: 3px solid var(--blue-400);
  padding-left: var(--s-3);
  margin-block: var(--s-4);
}

/* ------------------------------------------------------------- cookie -- */
.cookie-bar {
  position: fixed;
  left: 18px; right: 18px; bottom: 18px;
  z-index: 90;
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--silver-300);
  border-radius: var(--radius-l);
  box-shadow: 0 36px 70px -28px rgba(7, 26, 52, .55);
  padding: var(--s-4);
  max-width: 1160px;
  margin-inline: auto;
  display: none;
  backdrop-filter: blur(8px);
}
.cookie-bar.is-visible { display: block; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.cookie-bar__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s-4); align-items: center; }
.cookie-bar h2 { font-size: 1.12rem; margin-bottom: 6px; }
.cookie-bar p { font-size: .9rem; color: var(--graphite-soft); margin-bottom: 0; }
.cookie-bar__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cookie-bar__actions .btn { width: 100%; padding-inline: 14px; }
.cookie-bar__actions .btn--wide { grid-column: 1 / -1; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__scrim { position: absolute; inset: 0; background: rgba(7, 26, 52, .62); backdrop-filter: blur(3px); }
.modal__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-l);
  padding: var(--s-5);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .7);
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--silver-300);
  background: var(--white);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--graphite);
}
.modal__close:hover { background: var(--ice-200); }

.consent-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-3);
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--silver-300);
}
.consent-row:last-of-type { border-bottom: 0; }
.consent-row h3 { font-size: 1.02rem; margin-bottom: 5px; }
.consent-row p { font-size: .89rem; color: var(--graphite-soft); margin: 0; }
.consent-row__lock { font-size: .78rem; color: var(--silver-500); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding-top: 6px; }

.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__track {
  position: absolute;
  inset: 0;
  background: var(--silver-400);
  border-radius: 999px;
  transition: background-color .2s ease;
  cursor: pointer;
}
.switch__track::before {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 2px 6px rgba(7, 26, 52, .3);
}
.switch input:checked + .switch__track { background: var(--blue-500); }
.switch input:checked + .switch__track::before { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { box-shadow: var(--ring); }

.modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-4); }

/* ---------------------------------------------------------- animazioni -- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1040px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
  .formula-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { gap: var(--s-5); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 74px 0 auto;
    background: var(--white);
    border-bottom: 1px solid var(--silver-300);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-3) 22px var(--s-4);
    box-shadow: var(--shadow-card);
    transform: translateY(-130%);
    transition: transform .28s ease;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--silver-300); }
  .nav__link { display: block; padding: 15px 0; }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: var(--s-3); }

  .hero__inner, .hero__inner--solo { grid-template-columns: 1fr; padding-block: var(--s-6); }
  .split, .split--wide-text, .lead { grid-template-columns: 1fr; gap: var(--s-5); }
  .split--reverse .split__media { order: 0; }
  .grid--3, .packs, .voices, .contact-grid, .article-grid { grid-template-columns: 1fr; }
  .cookie-bar__grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .band { padding-block: var(--s-6); }
  .grid--2, .grid--4, .formula-grid, .field-grid { grid-template-columns: 1fr; }
  .trust-strip__grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .form-card, .modal__panel { padding: var(--s-4); }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .step__num::after { display: none; }
  .faq__a { padding-right: 10px; }
  .pack__media { height: 220px; }
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; }
  .cookie-bar__actions { grid-template-columns: 1fr; }
  .consent-row { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
