/* =========================================================================
   Voice of Customer — voiceofcustomer.it
   Design system locale (analytics / data platform). Palette teal + navy.
   NON è una ricolorazione di altri siti del gruppo.
   ========================================================================= */

:root {
  /* Brand (dal logo) */
  --navy-900: #16263F;
  --navy-800: #1B2E4C;
  --navy-700: #1E3354;
  --teal-500: #16BEBA;
  --teal-400: #21CDC6;
  --teal-300: #2FD7CE;
  --coral-500: #FF6B5C;

  /* Neutri */
  --ink-900: #0F1B2D;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-400: #94A3B8;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;
  --line: #E2E8F0;

  /* Token semantici */
  --bg: var(--white);
  --bg-alt: var(--slate-50);
  --text: var(--ink-900);
  --text-soft: var(--ink-600);
  --accent: var(--teal-500);
  --accent-ink: #0E8B88;
  --dark: var(--navy-900);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15,27,45,.06), 0 1px 3px rgba(15,27,45,.08);
  --shadow-md: 0 10px 30px -12px rgba(15,27,45,.18);
  --shadow-lg: 0 30px 60px -24px rgba(15,27,45,.30);

  --maxw: 1160px;
  --gut: clamp(20px, 5vw, 40px);

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, serif; /* solo lockup Mebius */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--navy-900); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-900); line-height: 1.15; font-weight: 700; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2em; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy-900); color: #DCE6F2; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow { font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 .8rem; }
.section--dark .eyebrow { color: var(--teal-300); }
.lead { font-size: 1.15rem; color: var(--text-soft); max-width: 60ch; }
.section--dark .lead { color: #B6C4D8; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-head); font-weight: 600; font-size: .98rem; padding: .85em 1.5em; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal-500); color: var(--navy-900); box-shadow: 0 8px 22px -8px rgba(22,190,186,.6); }
.btn--primary:hover { background: var(--teal-400); color: var(--navy-900); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: var(--teal-300); color: var(--teal-300); }
.btn--outline { border-color: var(--line); color: var(--navy-900); background: #fff; }
.btn--outline:hover { border-color: var(--teal-500); color: var(--accent-ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .85rem; }
.brand-lockup { display: flex; align-items: center; gap: .8rem; }

/* wordmark VoC (testo, separato dal lockup Mebius) */
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 800; font-size: 1.18rem; letter-spacing: -.03em; color: var(--navy-900); }
.wordmark .w-icon { width: 30px; height: 30px; flex: none; }
.wordmark .w-accent { color: var(--teal-500); }
.wordmark .w-tld { color: var(--accent-ink); font-weight: 700; }

/* lockup endorsement Mebius (header) */
.brand-by { display: inline-flex; flex-direction: column; line-height: 1; padding-left: .85rem; margin-left: .2rem; border-left: 1px solid var(--line); }
.brand-by .by-k { font-family: var(--font-head); font-size: .54rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 2px; }
.brand-by .by-v { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; color: var(--accent-ink); }

.nav-links { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; list-style: none; padding: 0; }
.nav-links a { font-family: var(--font-head); font-weight: 500; font-size: .94rem; color: var(--navy-800); }
.nav-links a:hover { color: var(--accent-ink); }
/* sottomenu a tendina */
.nav-links .has-sub { position: relative; }
.nav-links .has-sub > a::after { content: "▾"; font-size: .7em; margin-left: .35em; color: var(--ink-400); }
.subnav { position: absolute; top: 100%; left: -10px; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 8px; list-style: none; margin: 0; display: none; }
.nav-links .has-sub:hover > .subnav, .nav-links .has-sub:focus-within > .subnav { display: block; }
.subnav li { width: 100%; }
.subnav a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .9rem; white-space: nowrap; color: var(--navy-800); }
.subnav a:hover { background: var(--slate-50); color: var(--accent-ink); }
.nav-cta { display: flex; align-items: center; gap: .9rem; }
.lang-switch { font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--ink-600); display: inline-flex; gap: .35rem; align-items: center; }
.lang-switch a.is-active { color: var(--navy-900); }
.lang-switch span { color: var(--ink-400); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* logo reale del sito (header) */
.brand { flex: 0 0 auto; }
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { height: 52px; width: auto; display: block; }
@media (max-width: 600px) { .brand-logo img { height: 40px; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 80% -10%, var(--teal-500) 0%, var(--navy-800) 42%, var(--navy-900) 100%); color: #fff; }
.hero .container { position: relative; z-index: 2; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: #C9D6E8; font-size: 1.22rem; max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-payoff { display: inline-flex; gap: .55rem; flex-wrap: wrap; margin-top: 2.2rem; font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-300); }
.hero-payoff span::after { content: "·"; margin-left: .55rem; color: rgba(255,255,255,.3); }
.hero-payoff span:last-child::after { content: ""; }

/* mock dashboard */
.hero-visual { position: relative; }
.mock { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 18px; color: var(--navy-900); }
.mock-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar i:first-child { background: var(--coral-500); }
.mock-bar i:nth-child(2){ background: #FFC24B; }
.mock-bar i:nth-child(3){ background: var(--teal-500); }
.mock-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.mock-kpi { background: var(--slate-50); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mock-kpi b { font-family: var(--font-head); font-size: 1.5rem; display: block; color: var(--navy-900); }
.mock-kpi small { color: var(--ink-600); font-size: .72rem; }
.mock-kpi.up b { color: var(--accent-ink); }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; background: var(--slate-50); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.mock-chart i { flex: 1; background: linear-gradient(var(--teal-400), var(--teal-500)); border-radius: 6px 6px 0 0; opacity: .9; }

/* ---------- page hero (pagine interne) ---------- */
.hero--page .container { padding-top: clamp(44px, 6vw, 68px); padding-bottom: clamp(44px, 6vw, 68px); }
.hero--page h1 { max-width: 20ch; }
/* page hero con immagine (due colonne) */
.hero--split .hero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 56px); align-items: center; margin-top: 1rem; }
.hero--split .hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; }
@media (max-width: 920px) { .hero--split .hero-split { grid-template-columns: 1fr; } .hero--split .hero-figure { max-width: 540px; } }
.breadcrumb { font-family: var(--font-head); font-size: .82rem; color: #9FB6D0; margin-bottom: 1rem; }
.breadcrumb a { color: #9FB6D0; }
.breadcrumb a:hover { color: var(--teal-300); }
.breadcrumb span { color: rgba(255,255,255,.35); margin: 0 .4rem; }

/* ---------- prose (testi lunghi: privacy, articoli) ---------- */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; font-size: 1.15rem; }
.prose p, .prose li { color: var(--ink-700); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 22px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.section--dark .stat { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); color: var(--accent-ink); line-height: 1; letter-spacing: -.02em; }
.section--dark .stat b { color: var(--teal-300); }
.stat span { font-size: .9rem; color: var(--text-soft); }
.section--dark .stat span { color: #B6C4D8; }

/* ---------- case study card ---------- */
.case { display: grid; grid-template-columns: 1fr; gap: 10px; }
.case .case-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .2rem; }
.case .pill { font-family: var(--font-head); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: rgba(22,190,186,.12); padding: .3em .7em; border-radius: 999px; }
.case .scale { font-size: .85rem; color: var(--ink-400); }
.case h3 { margin: 0; }
.case-res { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .4rem; }
.case-res li { position: relative; padding-left: 1.4em; font-size: .95rem; color: var(--text-soft); }
.case-res li::before { content: "▸"; position: absolute; left: 0; color: var(--teal-500); }
.quote { border-left: 3px solid var(--teal-500); padding: .2rem 0 .2rem 1rem; margin: 1rem 0 0; font-style: italic; color: var(--ink-700); }

/* ---------- tiers (pacchetti) ---------- */
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: stretch; }
.tier { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.tier.is-featured { border-color: var(--teal-500); box-shadow: var(--shadow-md); position: relative; }
.tier.is-featured::before { content: "Più scelto"; position: absolute; top: -12px; left: 28px; background: var(--teal-500); color: var(--navy-900); font-family: var(--font-head); font-weight: 600; font-size: .72rem; padding: .25em .8em; border-radius: 999px; }
.tier .tier-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--navy-900); }
.tier ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .55rem; }
.tier li { position: relative; padding-left: 1.5em; font-size: .95rem; color: var(--text-soft); }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; }
.tier .btn { margin-top: auto; }

/* ---------- steps (numerati) ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: s; }
.step { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.step::before { content: counter(s, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--teal-500); display: block; margin-bottom: .6rem; }
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--text-soft); font-size: .95rem; margin: 0; }

/* ---------- contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-info dl { margin: 1.2rem 0 0; display: grid; gap: 1rem; }
.contact-info dt { font-family: var(--font-head); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); }
.contact-info dd { margin: .15rem 0 0; font-size: 1.05rem; color: var(--navy-900); }
.ac-embed { background: var(--slate-50); border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px; min-height: 320px; display: grid; place-items: center; text-align: center; color: var(--ink-400); }

/* ---------- two-column intro ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.split .lead { color: var(--text-soft); }

@media (max-width: 920px) {
  .stats { grid-template-columns: repeat(2,1fr); }
  .tiers, .steps { grid-template-columns: 1fr; }
  .contact-grid, .split { grid-template-columns: 1fr; }
}

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; overflow: hidden; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d4dde7; }
.card-media { margin: -28px -28px 18px; background: var(--slate-100); }
.card-media img { width: 100%; height: 188px; object-fit: cover; display: block; }
.post-card .card-media { margin-bottom: 18px; }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(22,190,186,.12); color: var(--accent-ink); margin-bottom: 16px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--text-soft); font-size: .97rem; margin: 0; }

/* sources (3 fonti) */
.source { border-top: 3px solid var(--teal-500); }
.source.s2 { border-top-color: var(--coral-500); }
.source.s3 { border-top-color: var(--navy-700); }
.source .tag { font-family: var(--font-head); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); }

/* advantages list */
.adv { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px 28px; list-style: none; padding: 0; margin: 0; }
.adv li { padding-left: 0; }
.adv b { display: block; font-family: var(--font-head); color: var(--navy-900); margin-bottom: 2px; }
.adv span { color: var(--text-soft); font-size: .95rem; }

/* settori (home) */
.sector-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.sector-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.sector-card img { width: 100%; height: 168px; object-fit: cover; display: block; transition: transform .35s ease; }
.sector-card:hover img { transform: scale(1.06); }
.sector-card span { position: absolute; inset: auto 0 0 0; padding: 26px 14px 13px; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .92rem; background: linear-gradient(transparent, rgba(15,27,45,.9)); }
@media (max-width: 760px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }

/* immagine in sezione split */
.split-img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); background: #fff; }

/* logos strip */
.logos { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center; opacity: .85; }
.logos span { font-family: var(--font-head); font-weight: 600; color: var(--ink-600); font-size: 1.05rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); text-align: center; color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #B6C4D8; margin-inline: auto; margin-bottom: 1.8rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #9FB1C9; padding: 64px 0 28px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; font-family: var(--font-head); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer a { color: #9FB1C9; }
.site-footer a:hover { color: var(--teal-300); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .94rem; }
.footer-brand .wordmark { color: #fff; }
.footer-brand .wordmark .w-accent { color: var(--teal-300); }
.footer-brand .wordmark .w-tld { color: var(--teal-300); }
.footer-brand p { font-size: .92rem; color: #8FA2BC; max-width: 34ch; }
.footer-by { display: flex; align-items: center; gap: .7rem; margin-top: 18px; }
.footer-by .by-k { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #7E92AE; }
.footer-by img { height: 26px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: .85rem; color: #7E92AE; }
.footer-bottom a { color: #7E92AE; }

/* ---------- blog ---------- */
.post-card { display: flex; flex-direction: column; }
.post-card .post-date { font-family: var(--font-head); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); margin-bottom: .5rem; }
.post-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.post-card h3 a { color: var(--navy-900); }
.post-card h3 a:hover { color: var(--accent-ink); }
.post-card p { color: var(--text-soft); font-size: .95rem; flex: 1; }
.post-card .more { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--accent-ink); margin-top: .8rem; }
.post-meta { color: #9FB6D0; font-family: var(--font-head); font-size: .9rem; margin-top: .6rem; }
.post-meta span { color: rgba(255,255,255,.3); margin: 0 .5rem; }
.back-link { font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.post-hero-img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0; }
.sec-head { max-width: 62ch; margin-bottom: 2.6rem; }
.sec-head.center { margin-inline: auto; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .adv { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gut) 18px; box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .28s ease; margin: 0; }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--slate-100); }
  .nav-links .has-sub > a::after { display: none; }
  .subnav { position: static; display: block; box-shadow: none; border: none; border-radius: 0; padding: 0 0 8px 14px; min-width: 0; }
  .subnav a { padding: 10px 0; font-size: .88rem; color: var(--ink-600); }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta .btn { display: none; }
}
@media (max-width: 560px) {
  .brand-by { display: none; } /* sotto ~560px resta solo il wordmark del sito */
  .grid-3, .grid-2, .adv, .mock-kpis { grid-template-columns: 1fr; }
  .mock-kpis { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
