/* ============================================================
   MG — Mirco Gnoli · Consulenza
   Stylesheet — sobrio / corporate
   FONTE UNICA DI VERITÀ per i token colore del brand.
   tool.css (hub clienti) legge questi valori — modificare qui.
   ============================================================ */

/* ============================================================
   TOKEN COLORE BRAND — modificare solo qui
   ============================================================ */
:root {
  /* Blu navy */
  --brand-navy:       #1B3A6B;
  --brand-navy-deep:  #142a52;

  /* Verde accento */
  --brand-green:      #20a565;
  --brand-green-deep: #178a52;
  --brand-green-soft: #c8efd9;

  /* Neutri */
  --brand-white:      #ffffff;
  --brand-bg:         #f3f5f9;
  --brand-border:     #e6e8ec;
  --brand-ink:        #0f1115;
  --brand-ink-soft:   #3a3f48;
  --brand-ink-mute:   #6b7280;
}

:root {
  /* Brand */
  --navy: var(--brand-navy);
  --navy-deep: var(--brand-navy-deep);
  --navy-ink: var(--brand-navy-ink);
  --green: var(--brand-green);
  --green-deep: var(--brand-green-deep);
  --green-soft: var(--brand-green-soft);

  /* Neutrals */
  --paper: var(--brand-white);
  --paper-warm: #f8f6f1;
  --paper-cool: var(--brand-bg);
  --ink: var(--brand-ink);
  --ink-soft: var(--brand-ink-soft);
  --ink-mute: var(--brand-ink-mute);
  --line: var(--brand-border);
  --line-soft: #eef0f4;

  /* Theme tokens */
  --bg: var(--paper);
  --bg-alt: var(--paper-cool);
  --bg-strong: var(--navy);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --fg-mute: var(--ink-mute);
  --accent: var(--navy);
  --accent-2: var(--green);
  --rule: var(--line);
  --card: #fff;
  --card-fg: var(--ink);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15,17,21,.04), 0 12px 32px -16px rgba(15,17,21,.12);
  --font-display: "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --display-tracking: -0.02em;
  --display-weight: 600;

  /* Footer — condivisi tra .footer (home) e .tool-footer (tool) */
  --footer-fg:         #f6f7fa;
  --footer-link:       #c8cdd6;
  --footer-link-hover: #ffffff;
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent-2); color: #fff; }

.container { width: min(1240px, 100% - 48px); margin: 0 auto; }
.container-narrow { width: min(880px, 100% - 48px); margin: 0 auto; }

/* ============================================================
   Typography helpers
   ============================================================ */
.display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.05;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 500;
}
.lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 60ch;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-logo img { height: 32px; width: auto; }
.nav-logo-name { font-size: 15px; }
.nav-logo-sub { font-size: 12px; color: var(--fg-mute); font-weight: 400; }
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 14px;
}
.nav-links a { color: var(--fg-soft); transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 500;
  font-size: 14px;
}
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============================================================
   Header unificato — usato sia dalla home (.header--glass)
   sia dai tool (.mg-header, sfondo bianco solido)
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: var(--brand-white);
  border-bottom: 1px solid var(--brand-border);
}
.header--glass {
  background: color-mix(in srgb, var(--brand-white) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: color-mix(in srgb, var(--brand-border) 60%, transparent);
}
.header__inner {
  width: min(1240px, 100% - 48px);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo + nome */
.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand-ink);
  text-decoration: none;
  flex-shrink: 0;
}
.header__logo img   { height: 32px; width: auto; }
.header__logo-name  { font-size: 15px; }
.header__logo-sub   { font-size: 12px; color: var(--brand-ink-mute); font-weight: 400; }

/* Nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-ink-soft);
  padding: 6px 14px;
  border-radius: 999px;
  transition: color .15s, background .15s;
  white-space: nowrap;
  text-decoration: none;
}
.header__nav a:hover,
.header__nav a.active {
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand-ink) 6%, transparent);
  text-decoration: none;
}
.header__nav a.active {
  border: 1px solid var(--brand-border);
}

/* Bottone CTA (Prenota / link primario) */
.header__cta {
  padding: 8px 18px !important;
  border-radius: 999px !important;
  background: var(--brand-navy) !important;
  color: #fff !important;
  font-weight: 500 !important;
}
.header__cta:hover {
  background: var(--brand-navy-deep) !important;
  color: #fff !important;
}

/* Separatore verticale */
.header__sep {
  width: 1px;
  height: 18px;
  background: var(--brand-border);
  margin: 0 4px;
  flex-shrink: 0;
}

/* Homepage: nasconde le voci nav eccetto il CTA Prenota */
@media (max-width: 900px) {
  .header__nav a:not(.header__cta) { display: none; }
  .header__sep { display: none; }
}

/* Mobile: nasconde il testo logo per far stare logo + CTA senza scroll orizzontale */
@media (max-width: 520px) {
  .header__logo-name,
  .header__logo-sub { display: none; }
  .header__inner { width: calc(100% - 32px); }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 15px;
  transition: transform .15s ease, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, black); }
.btn-ghost {
  background: transparent;
  border-color: var(--rule);
  color: var(--fg);
}
.btn-ghost:hover { border-color: var(--fg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(16px, 2vw, 28px) 0 clamp(64px, 9vw, 110px);
  position: relative;
}
.hero-content {
  max-width: 980px;
}
.hero-title {
  font-size: clamp(36px, 5.6vw, 76px);
  margin: 4px 0 28px;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 16ch;
}
.hero-title .accent { color: var(--accent-2); }
.hero-title-main  { color: var(--navy); }
.hero-title-green { color: var(--green); }
.hero-lead {
  max-width: 62ch;
  margin-bottom: 36px;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 36px;
  margin-top: 64px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 800px) {
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.hero-meta-item .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 8px;
}
.hero-meta-item .v {
  font-size: 15px;
  color: var(--fg);
  line-height: 1.4;
}

/* ============================================================
   Section frame
   ============================================================ */
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--bg-strong);
  color: #f6f7fa;
  --fg: #f6f7fa;
  --fg-soft: #c8cdd6;
  --fg-mute: #8b93a1;
  --rule: rgba(255,255,255,.12);
  --card: rgba(255,255,255,.04);
  --card-fg: #f6f7fa;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 56px);
  margin: 0;
  line-height: 1.05;
}
.section-head .lead { margin: 0; }

/* ============================================================
   Servizi (two pillars)
   ============================================================ */
.servizi-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 880px) {
  .servizi-pillars { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 24px;
  position: relative;
  overflow: hidden;
}
.pillar--blue  { border-left: 3px solid var(--accent); }
.pillar--green { border-left: 3px solid var(--accent-2); }
.pillar-head { display: flex; align-items: center; gap: 16px; }
.pillar-tag {
  position: absolute;
  top: clamp(20px, 2vw, 28px);
  right: clamp(20px, 2vw, 28px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.pillar--blue  .pillar-tag { color: var(--accent);   border: 1px solid color-mix(in srgb, var(--accent)   40%, transparent); }
.pillar--green .pillar-tag { color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent); }
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.5vw, 32px);
  margin: 0;
  margin-top: 32px;
  letter-spacing: var(--display-tracking);
  line-height: 1.1;
}
.pillar-target { font-size: 14px; color: var(--fg-mute); }
.pillar-desc { color: var(--fg-soft); font-size: 16px; }
.pillar-services { list-style: none; padding: 0; margin: 0; }
.pillar-services li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pillar-services .pillar-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--accent);
}
.pillar-services .name { font-size: 16px; font-weight: 500; }
.pillar-cta { display: flex; justify-content: flex-end; margin-top: auto; }
.link-arrow {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { text-decoration: underline; }

/* ============================================================
   Vantaggi
   ============================================================ */
.vantaggi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.vantaggi-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .vantaggi-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 980px) { .vantaggi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .vantaggi-grid,
  .vantaggi-grid--4 { grid-template-columns: 1fr; }
}
.vantaggio {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .25s, transform .25s;
}
.vantaggio:hover {
  border-color: color-mix(in srgb, var(--accent-2) 45%, var(--rule));
  transform: translateY(-2px);
}
.vantaggio-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent-2) 14%, transparent);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.vantaggio-icon svg { width: 24px; height: 24px; }
.vantaggio h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 20px;
  margin: 0;
  letter-spacing: var(--display-tracking);
  line-height: 1.2;
}
.vantaggio p {
  margin: 0;
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ============================================================
   Processo — timeline orizzontale
   ============================================================ */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.timeline-step {
  position: relative;
  padding: 0 32px 0 0;
}
.timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 50px;
  right: 0;
  height: 2px;
  background: var(--rule);
  z-index: 0;
}
.timeline-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 19px;
  right: 0;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid color-mix(in srgb, var(--accent-2) 60%, var(--rule));
  z-index: 1;
}
.timeline-dot {
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-2);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .04em;
  margin-bottom: 24px;
  box-shadow: 0 0 0 8px var(--bg-alt);
}
.section .timeline-dot { box-shadow: 0 0 0 8px var(--bg); }
.section-alt .timeline-dot { box-shadow: 0 0 0 8px var(--bg-alt); }
.timeline-content { padding-right: 8px; }
.timeline-content h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 20px;
  margin: 0 0 10px;
  letter-spacing: var(--display-tracking);
  line-height: 1.2;
}
.timeline-content p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-soft);
  line-height: 1.55;
}

@media (max-width: 880px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .timeline-step {
    padding: 0 0 0 64px;
    min-height: 60px;
  }
  .timeline-step:not(:last-child)::after {
    top: 46px;
    left: 23px;
    right: auto;
    bottom: -32px;
    width: 2px;
    height: auto;
  }
  .timeline-step:not(:last-child)::before { display: none; }
  .timeline-dot {
    position: absolute;
    top: 0;
    left: 0;
    margin-bottom: 0;
  }
}

/* ============================================================
   Casi studio — carosello (3 card per pagina, subgrid alignment)
   ============================================================ */
.cases-carousel {
  position: relative;
  margin-top: -8px;
}
.cases-carousel-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}
.cases-nav { display: flex; gap: 8px; }
.cases-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--fg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.cases-nav button:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

/* Track is a grid that supplies aligned rows to all card subgrids */
.cases-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(340px, calc((min(100vw, 1240px) - 96px) / 3));
  grid-template-rows: auto auto auto;
  row-gap: 0;
  column-gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 16px;
  padding-left: max(24px, calc((100vw - 1240px) / 2));
  padding-right: max(24px, calc((100vw - 1240px) / 2));
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cases-track::-webkit-scrollbar { display: none; }

.case {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.case:hover {
  border-color: color-mix(in srgb, var(--accent-2) 40%, var(--rule));
  box-shadow: 0 12px 32px -16px rgba(15,17,21,.18);
  transform: translateY(-3px);
}

/* ---- Review (row 1) ---- */
.case-review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
}
.case-review-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.case-review-stars {
  display: flex;
  gap: 3px;
  color: var(--accent-2);
  font-size: 15px;
  line-height: 1;
}
.case-review-author { text-align: right; }
.case-review-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.2;
}
.case-review-role {
  font-size: 11px;
  color: var(--fg-mute);
  margin-top: 3px;
  line-height: 1.3;
}
.case-review-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: var(--display-tracking);
  color: var(--fg);
  margin: 0;
}

/* ---- Project info (row 2) ---- */
.case-project-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.case-project-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 19px;
  margin: 0;
  letter-spacing: var(--display-tracking);
  line-height: 1.25;
  color: var(--fg);
}
.case-project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.case-project-summary {
  color: var(--fg-soft);
  font-size: 14px;
  line-height: 1.55;
  margin: 4px 0 0;
}

/* ---- Stats (row 3) ---- */
.case-stats {
  display: flex;
  gap: 32px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
}
.case-stat .n {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--display-weight);
  color: var(--accent-2);
  letter-spacing: -0.02em;
  line-height: 1;
}
.case-stat .l { font-size: 11px; color: var(--fg-mute); margin-top: 6px; line-height: 1.3; }

/* ============================================================
   Chi sono
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; }
}
.about-photo {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  position: relative;
  overflow: visible;
}
.about-photo figure {
  margin: 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  width: 100%;
}
.about-photo figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.about-photo figcaption {
  display: block;
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-soft);
  font-style: italic;
  background: var(--bg);
}
.about-photo-dot {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1b2a4a;
  z-index: 2;
}
.about-photo-label {
  position: absolute; bottom: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: #fff;
  padding: 6px 12px;
  background: rgba(0,0,0,.55);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.about-photo-mark {
  font-family: var(--font-display);
  font-size: clamp(96px, 18vw, 220px);
  font-weight: var(--display-weight);
  color: rgba(255,255,255,.4);
  letter-spacing: -0.04em;
  line-height: 1;
}
.about-body h2 { font-size: clamp(32px, 4vw, 56px); margin: 0 0 24px; line-height: 1.05; }
.about-body p { color: var(--fg-soft); font-size: 17px; max-width: 56ch; }
.about-creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.about-cred .l {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 6px;
}
.about-cred .v { font-size: 15px; color: var(--fg); }

/* ============================================================
   Recensioni
   ============================================================ */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reviews { grid-template-columns: 1fr; } }
.review {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.review-stars { display: flex; gap: 3px; color: var(--accent-2); font-size: 14px; }
.review-quote {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.3vw, 19px);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.4;
  color: var(--fg);
  flex: 1;
}
.review-author { display: flex; gap: 12px; align-items: center; padding-top: 20px; border-top: 1px solid var(--rule); }
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.01em;
}
.review-author .name { font-size: 14px; font-weight: 500; }
.review-author .role { font-size: 12px; color: var(--fg-mute); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: var(--display-tracking);
  color: var(--fg);
  line-height: 1.3;
}
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .3s, background .2s, border-color .2s;
  color: var(--fg-soft);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  color: var(--fg-soft);
  font-size: 16px;
  max-width: 70ch;
}
.faq-item.open .faq-a { max-height: 320px; padding-top: 16px; }

/* ============================================================
   Inline CTA (riga d'aggancio dentro le sezioni)
   ============================================================ */
.inline-cta {
  margin-top: 40px;
  padding: 18px 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.inline-cta-text {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(17px, 1.4vw, 20px);
  letter-spacing: var(--display-tracking);
  color: var(--fg);
}
.inline-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-2);
  border-bottom: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent);
  padding-bottom: 3px;
  transition: color .15s, border-color .15s, gap .15s;
}
.inline-cta-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 14px;
}

/* ============================================================
   CTA (Prenota → Calendly)
   ============================================================ */
.cta { padding: clamp(72px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 30%, color-mix(in srgb, var(--accent-2) 28%, transparent), transparent 50%),
    radial-gradient(ellipse at 90% 80%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 55%);
  opacity: .7;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 880px) {
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
}
.cta-title {
  font-size: clamp(36px, 5vw, 60px) !important;
  margin: 16px 0 20px !important;
  max-width: 16ch;
  line-height: 1.05;
}
.cta-lead {
  margin: 0 0 28px;
  max-width: 52ch;
}
.cta-meta {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.cta-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--fg-mute);
}
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
@media (max-width: 880px) {
  .cta-actions { align-items: stretch; }
}
.cta-btn {
  padding: 18px 28px;
  font-size: 16px;
  font-weight: 500;
}
.cta-link {
  font-size: 14px;
  color: var(--fg-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--fg-soft) 30%, transparent);
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.cta-link:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg-strong);
  color: #f6f7fa;
  padding: 80px 0 32px;
  --rule: rgba(255,255,255,.1);
  --fg: #f6f7fa;
  --fg-soft: #c8cdd6;
  --fg-mute: #8c93a1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--display-weight);
  margin: 0 0 12px;
  letter-spacing: var(--display-tracking);
  color: #fff;
  line-height: 1.1;
}
.footer-brand p { color: var(--fg-soft); font-size: 15px; max-width: 40ch; margin: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer li { color: var(--fg-soft); font-size: 14px; }
.footer a { color: var(--fg-soft); font-size: 14px; }
.footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: 12px;
  color: var(--fg-mute);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Animazioni — Hero entrata + Scroll reveal
   ============================================================ */

/* Hero: entrata al caricamento pagina */
@keyframes mg-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  animation: mg-fade-up .55s cubic-bezier(.22,.68,0,1.2) both;
}
.hero-lead {
  animation: mg-fade-up .55s cubic-bezier(.22,.68,0,1.2) .12s both;
}
.hero-cta-row {
  animation: mg-fade-up .45s ease .24s both;
}

/* Scroll reveal: stato iniziale (hidden) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay sfalsato per griglie di card */
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* Nav: shadow al scroll */
.header--scrolled {
  box-shadow: 0 2px 16px -4px rgba(15,17,21,.10);
  border-bottom-color: color-mix(in srgb, var(--brand-border) 90%, transparent);
}

/* Rispetta preferenze utente: niente movimento */
@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-lead,
  .hero-cta-row { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
