/* ---------- Tokens ---------- */
:root {
  --paper: #F6F3EC;
  --paper-2: #EEEADF;
  --surface: #FFFDF8;
  --ink: #15241F;
  --ink-soft: #4E5C56;
  --line: rgba(21, 36, 31, 0.12);

  --teal-900: #0C3B37;
  --teal-700: #0B5F5A;
  --teal-500: #12857C;
  --teal-100: #D9EAE2;
  --teal-50: #E9F2EC;

  --wa-700: #157F45;
  --wa-900: #0F6636;
  --wa-50: #E3F3E8;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 32px;

  --shadow-soft: 0 1px 2px rgba(12, 59, 55, 0.06), 0 12px 32px -12px rgba(12, 59, 55, 0.18);
  --shadow-lift: 0 2px 4px rgba(12, 59, 55, 0.08), 0 24px 48px -16px rgba(12, 59, 55, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  --z-header: 50;
  --z-skip: 100;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: var(--z-skip);
  padding: 10px 16px;
  background: var(--teal-700);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main, .site-footer { position: relative; z-index: 2; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
}
.eyebrow-light { color: var(--teal-100); }
h1 .eyebrow, h2 .eyebrow { font-family: var(--font-body); line-height: 1.4; }

.section-title {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  max-width: 18ch;
}

.section { padding-block: clamp(80px, 11vw, 144px) clamp(88px, 12vw, 160px); }

.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px 64px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-intro { color: var(--ink-soft); max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn i { font-size: 1.1em; transition: transform 0.25s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--teal-700);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(11, 95, 90, 0.6);
}
.btn-primary:hover { background: var(--teal-900); box-shadow: 0 14px 28px -10px rgba(11, 95, 90, 0.7); }

.btn-light { background: var(--paper); color: var(--teal-900); }
.btn-light:hover { background: #fff; }

.btn-block { width: 100%; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-link:hover { text-decoration-color: currentColor; color: var(--teal-700); }
.btn-link-light { color: var(--teal-100); text-decoration-color: rgba(217, 234, 226, 0.35); }
.btn-link-light:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(246, 243, 236, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(21, 36, 31, 0.05); }
.nav a.is-active { color: var(--teal-700); }
.nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.nav .nav-cta:hover { background: var(--teal-700); color: #fff; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu-bar {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-bar:first-of-type { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-nav {
  display: grid;
  gap: 4px;
  padding: 8px var(--gutter) 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) {
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(32px, 5vw, 64px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hero-heading { margin: 0; }
.hero-heading .eyebrow { display: flex; width: fit-content; }
.hero-title {
  display: block;
  font-size: clamp(2.75rem, 6.4vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.hero-title em {
  font-style: italic;
  color: var(--teal-700);
}

.hero-lead {
  margin-top: 28px;
  max-width: 44ch;
  font-size: 1.1875rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 40px;
}

.hero-media {
  position: relative;
  margin: 0;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 40% 30%;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 120px;
  box-shadow: var(--shadow-lift);
}

.hero-badge {
  position: absolute;
  left: -48px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 290px;
  padding: 18px 22px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.hero-badge-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--teal-700);
  letter-spacing: -0.03em;
}

.hero-facts {
  list-style: none;
  margin: clamp(56px, 8vw, 96px) 0 0;
  padding: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.hero-facts i {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 1.25rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--teal-500) 0%, var(--teal-700) 55%, var(--teal-900) 100%);
}
.portrait-frame img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 92%;
  transform: translateX(-50%);
}

.portrait-caption {
  margin-top: 18px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.portrait-caption strong { color: var(--ink); font-weight: 600; }

.prose { display: grid; gap: 18px; margin-top: 28px; max-width: 58ch; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 48px;
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stats dt { font-size: 0.8125rem; color: var(--ink-soft); }
.stats dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--teal-700);
}

/* ---------- Linea Pharmabio ---------- */
.linea-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 7vw, 104px);
  align-items: start;
}
.linea-media { position: relative; padding-bottom: 72px; }
.linea-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.linea-secondary {
  position: absolute;
  right: -28px;
  bottom: 0;
  width: 46%;
  aspect-ratio: 740 / 860;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-lift);
}

.linea-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.prodotto {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.prodotto::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--label);
}
.prodotto:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.prodotto h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--label);
  filter: brightness(0.82);
}
.prodotto h3 strong { font-weight: 600; }
.prodotto p { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-soft); }
.prodotto-formato {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.linea-actions { display: grid; justify-items: start; gap: 16px; margin-top: 32px; }
.nowrap { white-space: nowrap; }
.linea-note { font-size: 0.8125rem; color: var(--ink-soft); max-width: 52ch; }

/* ---------- Reparti ---------- */
.reparti { background: var(--paper-2); }

.reparti-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.reparto {
  position: relative;
  padding: 32px 28px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease);
}
.reparto:hover { background: var(--surface); }

.reparto-num {
  position: absolute;
  top: 28px;
  right: 24px;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  opacity: 0.7;
}

.reparto i {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--teal-100);
  color: var(--teal-900);
  font-size: 1.75rem;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.reparto:hover i { background: var(--teal-700); color: #fff; transform: rotate(-6deg); }

.reparto h3 {
  margin-top: 40px;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
}
.reparto p {
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Consulenze ---------- */
.consulenze { padding-block: clamp(24px, 4vw, 48px); }

.consulenze-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 88px);
  border-radius: var(--radius-lg);
  color: var(--teal-50);
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(18, 133, 124, 0.55) 0%, transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(18, 133, 124, 0.3) 0%, transparent 70%),
    var(--teal-900);
  max-width: calc(var(--container) - 2 * var(--gutter));
  box-shadow: var(--shadow-lift);
}
@media (max-width: 1240px) {
  .consulenze-grid { max-width: none; margin-inline: var(--gutter); width: auto; }
}

.consulenze-copy > p { margin-top: 24px; max-width: 54ch; color: rgba(233, 242, 236, 0.82); }
.consulenze-copy strong { color: #fff; font-weight: 600; }
.consulenze .section-title { color: #fff; }

.pro-tags {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pro-tags li {
  padding: 8px 16px;
  border: 1px solid rgba(217, 234, 226, 0.25);
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--teal-50);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.pro-tags li:hover { background: rgba(217, 234, 226, 0.1); border-color: rgba(217, 234, 226, 0.5); }

.consulenze-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 40px;
}

.target-card {
  padding: clamp(28px, 3.5vw, 40px);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(217, 234, 226, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.target-card h3 { font-size: 1.5rem; color: #fff; }

.target-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; }
.target-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(217, 234, 226, 0.14);
  line-height: 1.5;
}
.target-list i {
  flex: none;
  font-size: 1.375rem;
  color: #9FD4C1;
  margin-top: 1px;
}

/* ---------- Recensioni ---------- */
.reviews {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.review {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 3.5vw, 40px);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.review blockquote { margin: 0; color: var(--ink-soft); }

.review-feature {
  grid-row: span 2;
  background: var(--teal-50);
  box-shadow: none;
}
.review-feature blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.review-mark { font-size: 3rem; color: var(--teal-500); }

.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.avatar {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--teal-700);
  color: #fff;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px clamp(48px, 7vw, 112px);
  align-items: start;
}
.faq-head { position: sticky; top: 108px; }
.faq-head > p:not(.eyebrow) { margin-top: 24px; color: var(--ink-soft); }
.faq-head a { color: var(--teal-700); font-weight: 600; }

.faq-list { display: grid; border-top: 1px solid var(--line); }
.faq-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.25; letter-spacing: -0.01em; }
.faq-item p { margin-top: 10px; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Contatti ---------- */
.contatti { padding-top: 0; }

.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contatti-info > p { margin-top: 24px; max-width: 46ch; color: var(--ink-soft); }

.contact-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 24px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list i {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 1.25rem;
}
.contact-label { display: block; font-size: 0.8125rem; color: var(--ink-soft); }
.contact-list a {
  font-weight: 500;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s var(--ease);
}
.contact-list a:hover { color: var(--teal-700); }

.map {
  margin-top: 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
}
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.6) contrast(1.02); }
.map-placeholder {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(21, 36, 31, 0.05) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(21, 36, 31, 0.05) 38px 39px),
    var(--teal-50);
}
.map-placeholder > i { font-size: 2rem; color: var(--teal-700); }
.map-placeholder > p:first-of-type { font-weight: 600; }
.map-placeholder .btn-light { background: var(--surface); box-shadow: var(--shadow-soft); }
.map-note { max-width: 36ch; font-size: 0.8125rem; color: var(--ink-soft); }
.map-note a { color: var(--teal-700); }

.contact-form {
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  position: sticky;
  top: 100px;
}
.contact-form h3 { font-size: 1.875rem; }
.form-note { margin-top: 8px; color: var(--ink-soft); font-size: 0.9375rem; }

.field { display: grid; gap: 8px; margin-top: 20px; }
.field label { font-size: 0.875rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-soft); }

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(18, 133, 124, 0.15);
}
.field.has-error input { border-color: #B4442E; background: #FBF1EE; }

.field-error {
  display: none;
  font-size: 0.8125rem;
  color: #B4442E;
}
.has-error > .field-error,
.field-error.is-visible { display: block; }

.contact-form .btn { margin-top: 28px; }

.wa-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--wa-50);
  color: var(--wa-700);
  font-size: 0.8125rem;
  font-weight: 600;
}
.wa-chip i { font-size: 1.05rem; }

.topics { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.topics legend { padding: 0; margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; }
.topic-options { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { position: relative; cursor: pointer; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.topic:hover span { border-color: var(--line); }
.topic input:checked + span { background: var(--teal-700); color: #fff; }
.topic input:focus-visible + span { outline: 2px solid var(--teal-500); outline-offset: 3px; }

.btn-wa {
  background: var(--wa-700);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(21, 127, 69, 0.6);
}
.btn-wa:hover { background: var(--wa-900); }
.btn-wa:hover i { transform: none; }

.form-fine { margin-top: 16px; font-size: 0.875rem; color: var(--ink-soft); text-align: center; }
.form-fine a { color: var(--teal-700); }

/* ---------- Orari ---------- */
.hours {
  margin-top: 40px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.hours-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.hours-head h3 { font-size: 1.375rem; }

.hours-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #F6E9E5;
  color: #9A3B27;
  font-size: 0.8125rem;
  font-weight: 600;
}
.hours-status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.hours-status.is-open { background: var(--wa-50); color: var(--wa-700); }
.hours-status[hidden] { display: none; }

.hours-list { margin: 0; display: grid; }
.hours-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.hours-list dt { color: var(--ink-soft); }
.hours-list dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.hours-list .is-today dt, .hours-list .is-today dd { color: var(--teal-700); font-weight: 600; }
.today-tag {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--teal-50);
  font-size: 0.75rem;
  font-weight: 600;
}
.hours-tbd { color: var(--ink-soft); font-weight: 400; font-style: italic; }

/* ---------- Marchi ---------- */
.marchi {
  margin-top: clamp(64px, 8vw, 104px);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px clamp(40px, 6vw, 80px);
  align-items: start;
}
.marchi-title { font-size: clamp(1.5rem, 2.4vw, 2rem); max-width: 16ch; }
.marchi-head p { margin-top: 16px; color: var(--ink-soft); max-width: 40ch; font-size: 0.9375rem; }

.marchi-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.marchio {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 1.125rem;
  text-align: center;
  color: var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.marchio:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.marchio img { max-height: 44px; max-width: 150px; width: auto; mix-blend-mode: multiply; filter: grayscale(1); opacity: 0.8; transition: filter 0.3s var(--ease), opacity 0.3s var(--ease); }
.marchio:hover img { filter: none; opacity: 1; }
.marchio.is-placeholder {
  background: transparent;
  border: 1px dashed rgba(21, 36, 31, 0.2);
  color: rgba(21, 36, 31, 0.3);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marchio.is-placeholder:hover { transform: none; box-shadow: none; }

/* ---------- WhatsApp floating ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: var(--z-header);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--wa-700);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 16px 32px -12px rgba(21, 127, 69, 0.65);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.wa-float i { font-size: 1.6rem; }
.wa-float:hover { background: var(--wa-900); transform: translateY(-2px); }
.wa-float:active { transform: scale(0.97); }

/* ---------- Test teaser (home) ---------- */
.test-teaser { padding-block: clamp(80px, 10vw, 128px) 0; }

.teaser-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 80% at 100% 100%, rgba(18, 133, 124, 0.14) 0%, transparent 70%),
    var(--teal-50);
}
.teaser-copy > p:not(.eyebrow) { margin-top: 20px; max-width: 48ch; color: var(--ink-soft); }
.teaser-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

.teaser-mock {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  transform: rotate(1.5deg);
  transition: transform 0.5s var(--ease);
}
.teaser-mock:hover { transform: rotate(0deg) translateY(-4px); }
.teaser-mock .quiz-progress { margin-top: 12px; }
.teaser-mock .quiz-bar { transform: scaleX(0.35); }
.teaser-mock .quiz-question { margin: 20px 0 16px; min-height: 0; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.015em; }
.teaser-mock .quiz-answer { padding: 12px 14px; font-size: 0.9375rem; pointer-events: none; }

/* ---------- Test page ---------- */
.test-page { padding-block: clamp(32px, 5vw, 72px) clamp(72px, 9vw, 128px); }
.test-container { max-width: 860px; }

.test-screen {
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  animation: screen-in 0.5s var(--ease);
}
.test-screen[hidden] { display: none; }
@keyframes screen-in { from { opacity: 0; transform: translateY(12px); } }

.test-title { font-size: clamp(2.4rem, 5.4vw, 3.9rem); letter-spacing: -0.03em; }
.test-title em { font-style: italic; color: var(--teal-700); }
.test-title:focus { outline: none; }
.test-lead { margin-top: 20px; max-width: 54ch; font-size: 1.1875rem; color: var(--ink-soft); }

.test-meta {
  list-style: none;
  margin: 32px 0 36px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.test-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-900);
  font-size: 0.9375rem;
  font-weight: 500;
}
.test-meta i { font-size: 1.1rem; color: var(--teal-700); }

.test-disclaimer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.quiz-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.quiz-area {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.quiz-count { font-size: 0.875rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.quiz-progress {
  height: 6px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--teal-50);
  overflow: hidden;
}
.quiz-bar {
  display: block;
  height: 100%;
  background: var(--teal-700);
  border-radius: inherit;
  transform-origin: left;
  transform: scaleX(0.05);
  transition: transform 0.4s var(--ease);
}

.quiz-question {
  margin: clamp(28px, 4vw, 44px) 0 28px;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.15;
  min-height: 2.3em;
}
.quiz-question:focus { outline: none; }

.quiz-answers { display: grid; gap: 10px; }
.quiz-answer {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: 500 1.0625rem/1.3 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.quiz-answer:hover { border-color: var(--teal-500); background: #fff; }
.quiz-answer:active { transform: scale(0.99); }
.quiz-answer[aria-checked="true"] { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }

.quiz-key {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  transition: inherit;
}
.quiz-answer[aria-checked="true"] .quiz-key { border-color: rgba(255, 255, 255, 0.35); color: #fff; }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; }
.quiz-hint { font-size: 0.8125rem; color: var(--ink-soft); }
@media (hover: none) { .quiz-hint { display: none; } }

button.btn-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button.btn-link:disabled { opacity: 0.35; cursor: default; text-decoration-color: transparent; color: var(--ink); }

.result-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-top: 36px;
}
.result-card { padding: clamp(22px, 3vw, 30px); border-radius: var(--radius-md); background: var(--paper); }
.result-card h3 { font-size: 1.375rem; margin-bottom: 18px; }

.area-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.area-bars li {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
}
.area-name { color: var(--ink-soft); }
.area-track { height: 8px; border-radius: 999px; background: rgba(21, 36, 31, 0.08); overflow: hidden; }
.area-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal-500);
  opacity: 0.55;
  transform-origin: left;
  transform: scaleX(var(--fill));
  animation: fill-in 0.9s var(--ease) both;
}
@keyframes fill-in { from { transform: scaleX(0); } }
.area-score { font-size: 0.8125rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.area-bars .is-top .area-name { color: var(--ink); font-weight: 600; }
.area-bars .is-top .area-fill { background: var(--teal-700); opacity: 1; }

.result-card[hidden] { display: none; }
.result-grid:has(.result-second[hidden]) { grid-template-columns: 1fr; }
.result-second { background: var(--teal-900); color: rgba(233, 242, 236, 0.82); }
.result-second h3 { color: #fff; margin: 10px 0 12px; }
.result-second p { font-size: 0.9375rem; }
.result-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9FD4C1;
}

.result-next { display: grid; gap: 16px; margin-top: 36px; color: var(--ink-soft); max-width: 62ch; }
.result-next strong { color: var(--ink); font-weight: 600; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.result-next button.btn-link { justify-self: start; margin-top: 8px; }

/* ---------- Landing Reset Cortisolo ---------- */
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 0.9375rem; }

.lp-hero { padding-block: clamp(32px, 5vw, 72px) clamp(64px, 8vw, 112px); }
.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.lp-title {
  display: block;
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.lp-title em { font-style: italic; color: var(--teal-700); }
.lp-hero .test-meta { margin: 32px 0 0; }

.lp-hero-visual { position: relative; justify-self: center; width: min(100%, 380px); }

.book {
  position: relative;
  border-radius: 4px 10px 10px 4px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(12, 59, 55, 0.12),
    0 30px 60px -20px rgba(12, 59, 55, 0.45),
    0 60px 90px -40px rgba(12, 59, 55, 0.35);
  transform: perspective(1400px) rotateY(-10deg) rotateZ(1deg);
  transition: transform 0.6s var(--ease);
}
.book::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(255, 255, 255, 0.18) 45%, rgba(0, 0, 0, 0.06));
  z-index: 1;
}
.book:hover { transform: perspective(1400px) rotateY(-4deg) rotateZ(0deg) translateY(-4px); }
.book img { width: 100%; }

.lp-author-chip {
  position: absolute;
  left: -32px;
  top: 58%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.lp-author-chip img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
  background: var(--teal-700);
}
.lp-author-chip strong { display: block; color: var(--ink); font-size: 0.875rem; }

.lp-signals { background: var(--paper-2); }
.signals-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.signals-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  font-weight: 500;
  line-height: 1.4;
}
.signals-list i {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 1.5rem;
}

.lp-explain { padding-block: clamp(24px, 4vw, 48px); }
.lp-explain-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 88px);
  padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 88px);
  border-radius: var(--radius-lg);
  color: rgba(233, 242, 236, 0.82);
  background:
    radial-gradient(60% 70% at 0% 0%, rgba(18, 133, 124, 0.45) 0%, transparent 70%),
    var(--teal-900);
  box-shadow: var(--shadow-lift);
  max-width: calc(var(--container) - 2 * var(--gutter));
}
@media (max-width: 1240px) { .lp-explain-grid { max-width: none; width: auto; margin-inline: var(--gutter); } }
.lp-explain .section-title { color: #fff; }
.lp-explain-copy { display: grid; gap: 18px; align-content: start; }
.lp-quote {
  margin: 12px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(217, 234, 226, 0.18);
}
.lp-quote p { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; color: #fff; font-style: italic; }
.lp-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.875rem; color: #9FD4C1; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: none;
}
.step { padding: 32px 28px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.step-num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.step h3 { margin-top: 28px; font-size: 1.5rem; }
.step p { margin-top: 10px; color: var(--ink-soft); }

.areas {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}
.areas li { display: grid; gap: 4px; padding: 24px 20px 0 0; }
.areas i { font-size: 1.75rem; color: var(--teal-700); margin-bottom: 8px; }
.areas strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.areas span { font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.45; }
.steps-cta { margin-top: 48px; }

.lp-book { background: var(--teal-50); }
.lp-book-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}
.lp-book-visual { justify-self: center; width: min(100%, 360px); }
.lp-book-copy > p:not(.eyebrow) { margin-top: 24px; color: var(--ink-soft); max-width: 56ch; }
.book-sub { margin-top: 36px; font-size: 1.25rem; }
.checklist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.checklist i {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  font-size: 0.875rem;
}
.book-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.book-facts dt { font-size: 0.8125rem; color: var(--ink-soft); }
.book-facts dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.5rem; color: var(--teal-900); }
.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.book-note { font-size: 0.875rem; color: var(--ink-soft); }

.lp-author-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}
.lp-author-photo { max-width: 380px; }
.lp-author-role { margin-top: 12px; font-weight: 600; color: var(--teal-700); }
.lp-author .prose { margin-bottom: 28px; }

.lp-faq { padding-top: 0; }

.lp-final { padding-bottom: clamp(48px, 6vw, 80px); }
.lp-final-box {
  padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 88px);
  border-radius: var(--radius-lg);
  text-align: center;
  color: rgba(233, 242, 236, 0.82);
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(18, 133, 124, 0.55) 0%, transparent 70%),
    var(--teal-900);
}
.lp-final-box .section-title { color: #fff; margin-inline: auto; }
.lp-final-box > p { margin: 20px auto 0; max-width: 46ch; }
.lp-final-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 36px; }
.lp-disclaimer { text-align: center; max-width: 72ch; margin-inline: auto; border-top: 0; }

.lp-footer { margin-top: 0; }
.lp-footer .footer-legal { border-top: 0; padding-block: 28px; }

.lp-sticky {
  position: fixed;
  left: 16px;
  right: 88px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: var(--z-header);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  border-radius: 999px;
  background: var(--teal-700);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 16px 32px -12px rgba(11, 95, 90, 0.65);
  transform: translateY(140%);
  transition: transform 0.4s var(--ease);
}
.lp-sticky.is-visible { transform: none; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--teal-900);
  color: rgba(233, 242, 236, 0.75);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-block: clamp(56px, 7vw, 88px) 48px;
}
.footer-brand p { margin-top: 20px; max-width: 36ch; }
.brand-light { color: #fff; }

.footer-title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9FD4C1;
  margin-bottom: 16px;
}
.footer-col p + p { margin-top: 12px; }
.site-footer a { text-decoration: none; transition: color 0.2s var(--ease); }
.site-footer a:hover { color: #fff; }

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.socials { list-style: none; margin: 24px 0 0; padding: 0; display: flex; gap: 8px; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(217, 234, 226, 0.2);
  font-size: 1.25rem;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.socials a:hover { background: rgba(217, 234, 226, 0.12); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px 32px;
  border-top: 1px solid rgba(217, 234, 226, 0.14);
  font-size: 0.8125rem;
  color: rgba(233, 242, 236, 0.55);
}
.footer-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.footer-credit { display: inline-flex; align-items: center; gap: 8px; }
.footer-credit img { display: block; height: 16px; width: auto; opacity: 0.85; transition: opacity 0.2s var(--ease); }
.footer-credit:hover img { opacity: 1; }

/* ---------- Reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .reparti-list { grid-template-columns: repeat(2, 1fr); }
  .hero-badge { left: -24px; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }

  .hero-grid,
  .about-grid,
  .consulenze-grid,
  .contatti-grid,
  .section-head { grid-template-columns: 1fr; }

  .hero-media { max-width: 520px; }
  .hero-badge { left: 16px; bottom: 16px; }

  .about-portrait { max-width: 440px; }

  .reviews { grid-template-columns: 1fr; }
  .review-feature { grid-row: auto; }

  .contact-form { position: static; }

  .marchi { grid-template-columns: 1fr; }
  .linea-grid { grid-template-columns: 1fr; }
  .linea-media { max-width: 440px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }

  .lp-hero-grid, .lp-explain-grid, .lp-book-grid, .lp-author-grid { grid-template-columns: 1fr; }
  .lp-hero-visual { width: min(100%, 320px); margin-top: 8px; }
  .signals-list { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .areas { grid-template-columns: repeat(3, 1fr); row-gap: 8px; }
  .lp-book-visual { width: min(100%, 300px); }
  .lp-author-photo { max-width: 320px; }
  .teaser-grid { grid-template-columns: 1fr; }
  .teaser-mock { max-width: 460px; }
  .result-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-facts { grid-template-columns: 1fr; gap: 16px; }
  .reparti-list { grid-template-columns: 1fr; }
  .reparto { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding: 24px 20px; }
  .reparto i { grid-row: span 2; }
  .reparto h3 { margin-top: 2px; font-size: 1.25rem; }
  .reparto p { margin-top: 4px; }
  .reparto-num { top: 24px; right: 20px; }
  .stats { gap: 28px; }
  .stats dd { font-size: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; }

  .marchi-list { grid-template-columns: repeat(2, 1fr); }
  .linea-list { grid-template-columns: 1fr; }
  .linea-secondary { right: 0; }
  .teaser-mock { transform: none; padding: 22px; }
  .quiz-answer { padding: 16px; }
  .result-actions .btn { width: 100%; }
  .hours { padding: 22px 20px; }
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .hide-xs { display: none; }
  .signals-list { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr 1fr; }
  .lp-author-chip { left: -12px; }
  .lp-sticky { display: flex; left: 66px; right: 16px; } /* lascia spazio al pulsante iubenda in basso a sinistra */
  .landing .site-footer { padding-bottom: 88px; }
  .wa-float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .site-footer { padding-bottom: 72px; }
}

.hours-list .slot { white-space: nowrap; }
