/* ============================================================
   Like Health Marketing — stile condiviso
   Palette derivata dal logo: navy #012943, gradiente turchese.
   Nessun servizio esterno, nessun cookie, font self-hosted.
   ============================================================ */

@font-face {
  font-family: "Manrope";
  src: url("manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  font-style: normal;
}

:root {
  --navy:        #012943;
  --navy-deep:   #011c30;
  --navy-soft:   #0a3a58;
  --ink:         #122c3c;
  --muted:       #5a7382;
  --paper:       #f3f7fa;
  --card:        #ffffff;
  --line:        #e0eaf0;
  --teal-light:  #6df2e4;
  --teal:        #43cfe4;
  --blue:        #2fa8de;
  --accent-ink:  #0e6c9c; /* accento leggibile su fondo chiaro (AA) */
  --grad:        linear-gradient(130deg, #6df2e4 0%, #3ec7e6 45%, #2fa8de 100%);
  --grad-soft:   linear-gradient(130deg, rgba(109,242,228,.16), rgba(47,168,222,.16));

  --wrap: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px -28px rgba(1, 41, 67, .45);
  --shadow-soft: 0 10px 30px -22px rgba(1, 41, 67, .35);

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

/* ---------- Accessibilità ---------- */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip {
  position: absolute; left: -999px; top: 0;
  background: #fff; color: var(--navy); padding: 10px 16px; z-index: 100;
  border-radius: 0 0 10px 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(1, 41, 67, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-block: 14px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: #dfeaf1; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 9px; text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.nav a.cta {
  background: var(--grad); color: var(--navy-deep); font-weight: 800;
  box-shadow: 0 8px 22px -12px rgba(47,168,222,.9);
}
.nav a.cta:hover { filter: brightness(1.05); }

/* ============================================================
   HERO (solo home)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 130% at 88% -10%, rgba(67,207,228,.28), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #eaf3f8;
  padding-block: clamp(56px, 9vw, 104px);
}
.hero .wrap { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--teal-light); }
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.85rem);
  line-height: 1.04; letter-spacing: -.02em;
  margin: 14px 0 0; color: #fff; font-weight: 800;
  max-width: 15ch;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  margin: 22px 0 0; max-width: 52ch;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: #c7dbe6;
}
.hero .actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* anello turchese — elemento firma del brand (eco del marchio) */
.hero .ring {
  position: absolute; z-index: 1; pointer-events: none;
  right: -110px; top: 50%; transform: translateY(-50%);
  width: min(46vw, 460px); aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, transparent 63%, rgba(67,207,228,.9) 64%, rgba(47,168,222,.65) 74%, transparent 78%);
  opacity: .55;
}
@media (max-width: 720px){ .hero .ring { opacity: .3; right: -40%; } }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-weight: 800;
  font-size: 1rem; cursor: pointer; border: 0; text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.btn-primary { background: var(--grad); color: var(--navy-deep); box-shadow: 0 14px 30px -14px rgba(47,168,222,.85); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.04); text-decoration: none; }
.btn-ghost { background: transparent; color: #eaf3f8; border: 1.5px solid rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.08); text-decoration: none; }

/* divisore a "sorriso" — richiama la bocca del marchio */
.smile-divider { line-height: 0; background: var(--navy-deep); }
.smile-divider svg { width: 100%; height: 54px; display: block; }
.smile-divider svg path { fill: var(--paper); }

/* ============================================================
   SEZIONI GENERICHE
   ============================================================ */
.section { padding-block: clamp(52px, 8vw, 90px); }
.section.alt { background: #fff; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink);
  margin: 0 0 10px;
}
.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1;
  letter-spacing: -.02em; color: var(--navy); margin: 0 0 6px; font-weight: 800;
}
.section .intro { max-width: 62ch; color: var(--muted); font-size: 1.08rem; margin-top: 12px; }

.lead-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
@media (max-width: 860px){ .lead-grid { grid-template-columns: 1fr; gap: 30px; } }
.lead-grid p { color: var(--ink); font-size: 1.06rem; }
.lead-grid .aside {
  background: var(--grad-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 30px;
}
.lead-grid .aside p { margin: 0; color: var(--navy); font-weight: 600; font-size: 1.12rem; }
.lead-grid .aside .sign { margin-top: 14px; color: var(--muted); font-weight: 700; font-size: .9rem; letter-spacing: .04em; }

/* card servizi */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 38px; }
@media (max-width: 900px){ .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe6ef; }
.card .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad); color: var(--navy-deep); margin-bottom: 16px;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 8px; font-size: 1.16rem; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .tag {
  display: inline-block; margin-top: 14px; font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink);
  background: var(--grad-soft); padding: 5px 10px; border-radius: 999px;
}

/* strip "perché noi" */
.why { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 36px; }
@media (max-width: 760px){ .why { grid-template-columns: 1fr; } }
.why .item h3 { color: var(--navy); font-size: 1.08rem; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.why .item h3 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); flex: none; }
.why .item p { color: var(--muted); margin: 0; font-size: .98rem; }

/* CTA finale */
.cta-band {
  background: linear-gradient(130deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #eaf3f8; border-radius: 24px; padding: clamp(34px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; }
.cta-band p { margin: 0; color: #bcd5e2; max-width: 46ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-deep); color: #b9d0dd;
  padding-block: 52px 30px; margin-top: 4px;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
@media (max-width: 820px){ .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-top { grid-template-columns: 1fr; } }
.site-footer .logo img { height: 40px; margin-bottom: 14px; }
.site-footer p.small { font-size: .9rem; line-height: 1.6; color: #90adbc; margin: 0; }
.site-footer h4 { color: #eaf3f8; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 4px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #cfe1eb; font-size: .96rem; }
.site-footer a:hover { color: #fff; }
.legal-id {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem; color: #7f9dac; line-height: 1.7;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ============================================================
   PAGINE LEGALI
   ============================================================ */
.doc-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #eaf3f8; padding-block: clamp(44px, 6vw, 72px);
}
.doc-hero .eyebrow { color: var(--teal-light); }
.doc-hero h1 { margin: 10px 0 0; font-size: clamp(1.9rem, 4vw, 2.8rem); color: #fff; letter-spacing: -.02em; font-weight: 800; }
.doc-hero .updated { margin: 14px 0 0; color: #a9c6d4; font-size: .92rem; }

.doc { padding-block: clamp(40px, 6vw, 68px); }
.doc .wrap { max-width: 780px; }
.doc h2 {
  position: relative;
  font-size: 1.3rem; color: var(--navy); margin: 40px 0 14px; font-weight: 800;
  letter-spacing: -.01em; padding-bottom: 12px;
}
.doc h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 46px; height: 3px; border-radius: 3px; background: var(--grad);
}
.doc h2:first-of-type { margin-top: 6px; }
.doc h3 { font-size: 1.05rem; color: var(--navy); margin: 24px 0 8px; font-weight: 800; }
.doc p, .doc li { color: var(--ink); font-size: 1.02rem; line-height: 1.78; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent-ink); font-weight: 600; }

.toc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 34px; box-shadow: var(--shadow-soft);
}
.toc strong { display: block; color: var(--navy); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
@media (max-width: 620px){ .toc ol { columns: 1; } }
.toc li { margin-bottom: 7px; font-size: .95rem; }

.callout {
  background: var(--grad-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px; margin: 24px 0;
}
.callout p { margin: 0; color: var(--navy); }

.identity-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin: 8px 0 24px; box-shadow: var(--shadow-soft);
  line-height: 1.9;
}
.identity-box .k { color: var(--muted); font-weight: 600; }

.step-list { counter-reset: step; list-style: none; padding: 0; margin: 8px 0; }
.step-list li {
  position: relative; padding: 18px 20px 18px 62px; margin-bottom: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.step-list li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 18px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: var(--navy-deep); font-weight: 800; font-size: .95rem;
}
.step-list li strong { color: var(--navy); }

.back-home { display: inline-flex; align-items: center; gap: 8px; margin-top: 34px; font-weight: 700; }
