:root {
  --verde: #70a288;
  --blu-scuro: #00387c;
  --blu-chiaro: #193f92;

  --text: #0b1220;
  --ink: #0e1626;
  --muted: #556070;

  --bg: #ffffff;
  --surface: #f6f7fb;
  --card: #ffffff;
  --line: rgba(0, 0, 0, .08);

  --primary: #173e8a;
  --primary-2: #0f2f6a;
  --accent: #7bb08f;
  --accent-2: #5b9b78;
  --warning: #ffd84d;

  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 14px 30px rgba(0, 0, 0, .10);
  --shadow-soft: 0 10px 22px rgba(0, 0, 0, .08);
  --max: 1120px;
  --max-narrow: 920px;
}


* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden
}

a {
  color: inherit;
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px
}

.pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(112, 162, 136, .12);
  color: var(--blu-scuro);
  border: 1px solid rgba(112, 162, 136, .28);
  font-weight: 600;
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
  white-space: normal;
}

.page-home .btn:active {
  transform: translateY(1px)
}

.btn.primary {
  background: var(--blu-scuro);
  color: white;
  box-shadow: 0 10px 20px rgba(0, 56, 124, .22);
}

.page-home .btn.primary:hover {
  box-shadow: 0 14px 26px rgba(0, 56, 124, .28)
}

.btn.ghost {
  background: rgba(255, 255, 255, .62);
  border-color: rgba(0, 56, 124, .10);
  color: var(--blu-scuro);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(12px);
}

.page-home .btn.ghost:hover {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(0, 56, 124, .14);
}

.link {
  color: var(--blu-chiaro);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(25, 63, 146, .18);
}

.link:hover {
  border-bottom-color: rgba(25, 63, 146, .45)
}

.page-home .section {
  padding: 84px 0
}

.page-home .section.tight {
  padding: 62px 0
}

.page-home .kicker {
  color: var(--blu-chiaro);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 18px;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  margin: 0 0 12px
}

.page-home h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--blu-scuro);
}

.page-home h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--blu-scuro);
}

.page-home h3 {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  color: var(--ink);
}

.page-home p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px
}

.page-home .lead {
  font-size: 18px;
  color: #334055
}

/* =========================
       HEADER — etereo (sfuma ai lati)
       ========================= */
.page-home header {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, .78) 14%,
      rgba(255, 255, 255, .88) 50%,
      rgba(255, 255, 255, .78) 86%,
      rgba(255, 255, 255, 0) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


.page-home .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.page-home .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--blu-scuro);
  text-decoration: none;
}

.page-home .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-image: url("emanuela_calvino_116x116.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 18px rgba(0, 56, 124, .25);
  border: 2px solid rgba(255, 255, 255, .6);
}

.page-home nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.page-home nav a {
  text-decoration: none;
  color: #21304a;
  font-weight: 700;
  font-size: 14px;
  opacity: .9;
}

.page-home nav a:hover {
  opacity: 1;
  color: var(--blu-chiaro)
}

.page-home .nav-cta {
  display: flex;
  gap: 10px;
  align-items: center
}

.page-home .menu-btn {
  display: none
}

@media (max-width: 900px) {
  .page-home nav ul {
    display: none
  }

  .page-home .menu-btn {
    display: inline-flex
  }
}

/* =========================
       HERO — sfumature reali ai bordi (top/bottom + left/right)
       ========================= */
.page-home .hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

.page-home .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}

.page-home .hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 25%,
      rgba(112, 162, 136, .18),
      rgba(255, 255, 255, 0) 55%);
  opacity: .65;
  z-index: 2;
}



/* SFUMA SOPRA/SOTTO per evitare stacco netto (soprattutto con header) */
.page-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, .88) 0%,
      rgba(255, 255, 255, 0) 18%,
      rgba(255, 255, 255, 0) 82%,
      rgba(255, 255, 255, .92) 100%);
  opacity: .55;
  z-index: 3;
}

/* leggero velo blu per far risaltare testo (senza “taglio”) */
.page-home .hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(0, 56, 124, .66) 0%, rgba(0, 56, 124, .30) 42%, rgba(0, 56, 124, .08) 74%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .06) 40%, rgba(0, 0, 0, .14) 100%);
}

.page-home .hero-content {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  align-items: end;
  padding: 72px 0 56px;
}

.page-home .hero-copy {
  max-width: 680px;
  color: white;
}

.page-home .hero-copy .pill {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .22);
  color: white;
}

.page-home .hero-copy h1 {
  color: white
}

.page-home .hero-copy .lead {
  color: rgba(255, 255, 255, .86);
  font-size: 18px
}

.page-home .hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px
}

/* Card “Cosa trovi qui” — vetro coerente con sfera */
.page-home .hero-card {
  align-self: end;
  background: rgba(255, 255, 255, .46);
  border: 1px solid rgba(0, 56, 124, .12);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.page-home .hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, .72) 0%,
      rgba(255, 255, 255, .16) 48%,
      rgba(255, 255, 255, 0) 100%);
  opacity: .95;
}

.page-home .hero-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(25, 63, 146, .16), rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 85% 85%, rgba(112, 162, 136, .14), rgba(255, 255, 255, 0) 55%);
  opacity: .95;
}

.page-home .hero-card h3 {
  margin: 0 0 8px;
  color: var(--blu-scuro);
  position: relative
}

.page-home .bullets {
  margin: 0;
  padding-left: 18px;
  color: #334055;
  position: relative
}

.page-home .bullets li {
  margin: 6px 0
}

.page-home .hero-card .bullets {
  color: rgba(20, 34, 58, .82);
}

@media (max-width: 900px) {
  .page-home .hero-content {
    grid-template-columns: 1fr;
    padding: 54px 0 36px
  }

  .page-home .hero-card {
    max-width: 520px
  }

  .page-home .hero {
    min-height: 92vh
  }
}

.page-home .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

@media (max-width: 900px) {
  .page-home .grid-2 {
    grid-template-columns: 1fr
  }
}

.page-home .soft {
  background: linear-gradient(180deg, rgba(112, 162, 136, .10), rgba(112, 162, 136, .04));
  border-top: 1px solid rgba(112, 162, 136, .20);
  border-bottom: 1px solid rgba(112, 162, 136, .20);
}

.page-home .profile-wrap {
  position: relative;
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.page-home .profile-blob {
  position: absolute;
  inset: auto auto 12% 10%;
  width: 70%;
  height: 70%;
  border-radius: 36px;
  background: radial-gradient(circle at 30% 30%, rgba(112, 162, 136, .55), rgba(25, 63, 146, .18));
  transform: rotate(-6deg);
  z-index: 0;
  opacity: .55;
}

.page-home .profile-img {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(0, 0, 0, .06);
}

.page-home .cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .page-home .cards {
    grid-template-columns: 1fr
  }
}

.page-home .card {
  background: white;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.page-home .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .08);
  border-color: rgba(25, 63, 146, .22);
}

.page-home .badge {
  display: inline-flex;
  text-align: center;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 800;
  background: rgba(25, 63, 146, .10);
  color: var(--blu-chiaro);
  border: 1px solid rgba(25, 63, 146, .16);
  margin-bottom: 10px;
}

.page-home .quote {
  border-radius: 28px;
  padding: 28px 22px;
  background: linear-gradient(135deg, rgba(0, 56, 124, .92), rgba(25, 63, 146, .78));
  color: white;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.page-home .quote::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 30% 30%, rgba(112, 162, 136, .55), rgba(255, 255, 255, 0) 62%);
  transform: rotate(12deg);
  opacity: .7;
  pointer-events: none;
}

.page-home .quote p {
  color: rgba(255, 255, 255, .90);
  font-size: 18px;
  margin: 0
}

.page-home .cta {
  background: linear-gradient(180deg, rgba(0, 56, 124, .06), rgba(112, 162, 136, .10));
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.page-home .cta-box {
  border-radius: 28px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-home .cta-box p {
  margin: 0;
  max-width: 70ch
}

.page-home footer {
  padding: 34px 0;
  color: #556070;
  border-top: 1px solid rgba(0, 0, 0, .06);
  background: #fff;
}

.page-home .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px) {
  .page-home .footer-grid {
    grid-template-columns: 1fr
  }
}

.page-home .muted {
  color: var(--muted)
}

/* Immagine quadrata nei Servizi */
.page-home .percorso-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* quadrata */
  object-fit: cover;
  border-radius: 18px;
  /* coerente con il sito */
  margin: 12px 0 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
}

/* Micro “patina vetro” sopra l’immagine */
.page-home .percorso-img-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  /* importantissimo */
}

.page-home .percorso-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0));
  pointer-events: none;
  opacity: .55;
}


/* ====== BOX SFERA (vetro) ====== */
.page-home .sphere-frame {
  border-radius: 28px;
  border: 1px solid rgba(0, 56, 124, .10);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .08);
  overflow: hidden;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  min-height: 320px;
}

.page-home .sphere-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .18) 55%, rgba(255, 255, 255, 0));
  pointer-events: none;
  opacity: .9;
  z-index: 1;
}

.page-home .sphere-frame::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 12%, rgba(25, 63, 146, .14), rgba(255, 255, 255, 0) 46%),
    radial-gradient(circle at 85% 85%, rgba(112, 162, 136, .12), rgba(255, 255, 255, 0) 58%);
  pointer-events: none;
  opacity: .95;
  z-index: 1;
}

.page-home #sphereMount {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  min-height: 320px;
}

.page-home #sphereMount canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
  touch-action: none
}

.page-home .sphere-hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  color: rgba(0, 0, 0, .55);
  font: 13px system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(0, 56, 124, .10);
  padding: 9px 11px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-home .profile-glass {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  padding: 42px;
  border-radius: 36px;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, .75),
      rgba(255, 255, 255, .55));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, .08),
    inset 0 1px 0 rgba(255, 255, 255, .6);
}

@media (max-width: 900px) {
  .page-home .profile-glass {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

/* IMMAGINE */
.page-home .profile-image {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, .18);
}

.page-home .profile-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%,
      rgba(112, 162, 136, .25),
      transparent 60%);
}

.page-home .profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* TESTO */
.page-home .profile-content p {
  margin-bottom: 14px;
  color: #445064;
  line-height: 1.65;
}

.page-home .profile-content h2 {
  margin-bottom: 14px;
}

/* BOX EVIDENZA */
.page-home .focus-box {
  margin: 20px 0;
  padding: 18px 22px;
  border-radius: 20px;
  background:
    linear-gradient(135deg,
      rgba(112, 162, 136, .14),
      rgba(25, 63, 146, .10));
  border: 1px solid rgba(25, 63, 146, .18);
}

.page-home .focus-box ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.page-home .focus-box li {
  margin: 6px 0;
}

/* =========================
      TIMELINE (Roadmap vetro)
      ========================= */

.page-home .timeline {
  position: relative;
  margin-top: 26px;
  padding: 12px 0 44px;
}

/* linea centrale + glow */
.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
      rgba(25, 63, 146, 0) 0%,
      rgba(25, 63, 146, .35) 14%,
      rgba(25, 63, 146, .55) 50%,
      rgba(25, 63, 146, .35) 86%,
      rgba(25, 63, 146, 0) 100%);
  filter: drop-shadow(0 0 10px rgba(25, 63, 146, .25));
}

/* item */
.page-home .t-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
}

/* alternanza */
.page-home .t-left .t-card {
  grid-column: 1;
  justify-self: end;
}

.page-home .t-left .t-node {
  grid-column: 2;
}

.page-home .t-left::after {
  content: "";
  grid-column: 3;
}

.page-home .t-right .t-card {
  grid-column: 3;
  justify-self: start;
}

.page-home .t-right .t-node {
  grid-column: 2;
}

.page-home .t-right::before {
  content: "";
  grid-column: 1;
}

/* nodo (pallino vetro + glow) */
.page-home .t-node {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  position: relative;
  justify-self: center;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(25, 63, 146, .20);
  box-shadow:
    0 0 0 6px rgba(25, 63, 146, .07),
    0 12px 30px rgba(0, 0, 0, .10),
    0 0 20px rgba(25, 63, 146, .18);
  backdrop-filter: blur(10px);
}

.page-home .t-node::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(25, 63, 146, .18), rgba(25, 63, 146, 0) 62%);
  opacity: .7;
  pointer-events: none;
}

/* card vetro coerente con sfera */
.page-home .t-card {
  width: min(520px, 100%);
  border-radius: 26px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, .65);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .58));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, .08),
    inset 0 1px 0 rgba(255, 255, 255, .75);
  position: relative;
  overflow: hidden;
}

/* luce interna soft */
.page-home .t-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -40% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle,
      rgba(25, 63, 146, .12),
      rgba(255, 255, 255, 0) 70%);
  opacity: .45;
  pointer-events: none;
}


/* titoli un filo più compatti */
.page-home .t-card h3 {
  margin: 0 0 8px;
}

.page-home .t-card p {
  margin: 0 0 10px;
}

/* fine timeline (freccia) */
.page-home .t-end {
  position: relative;
  height: 18px;
  margin-top: 8px;
}

.page-home .t-end-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 14px solid rgba(25, 63, 146, .35);
  filter: drop-shadow(0 6px 10px rgba(25, 63, 146, .18));
}

/* animazione in ingresso */
.page-home .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.page-home .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* mobile: colonna singola + linea a sinistra */
/* mobile: colonna singola + linea a sinistra (FIX) */
@media (max-width: 900px) {

  .page-home .timeline {
    padding: 12px 0 28px;
  }

  .page-home .timeline::before {
    left: 18px;
    transform: none;
  }

  .page-home .t-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: start;
    gap: 14px;
    padding: 14px 0;
  }

  /* il pallino sta sempre nella colonna 1 */
  .page-home .t-node {
    grid-column: 1 !important;
    justify-self: start;
    margin-top: 14px;
    /* allinealo visivamente con l’inizio card */
  }

  /* la card sta sempre nella colonna 2 */
  .page-home .t-card {
    grid-column: 2 !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* annulla COMPLETAMENTE l’alternanza desktop */
  .page-home .t-left .t-card,
  .page-home .t-right .t-card {
    grid-column: 2 !important;
    justify-self: stretch !important;
  }

  .page-home .t-left .t-node,
  .page-home .t-right .t-node {
    grid-column: 1 !important;
    justify-self: start !important;
  }

  /* elimina i “finti spacer” desktop */
  .page-home .t-left::after,
  .page-home .t-right::before {
    content: none !important;
    display: none !important;
  }

  /* freccia finale agganciata alla linea */
  .page-home .t-end-arrow {
    left: 18px;
    transform: none;
  }
}


/* Wrapper section (puoi togliere se già hai .section / .soft) */
.page-home .pub-section {
  position: relative;
}

/* Titoli/intro */
.page-home .pub-head {
  max-width: 72ch;
  margin-bottom: 18px;
}

/* Grid */
.page-home .pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
  margin-top: 18px;
}

/* Card vetro */
.page-home .pub-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .06);
  backdrop-filter: blur(12px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  min-height: 140px;
}

.page-home .pub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(0, 56, 124, .12);
  border-color: rgba(25, 63, 146, .18);
}

/* Alone etereo (molto leggero, non deve fare “macchia”) */
.page-home .pub-card::after {
  content: "";
  position: absolute;
  inset: auto -35% -35% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle,
      rgba(25, 63, 146, .12),
      rgba(255, 255, 255, 0) 70%);
  opacity: .42;
  pointer-events: none;
}

/* Riga top soft (micro richiamo palette) */
.page-home .pub-card::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg,
      rgba(112, 162, 136, .55),
      rgba(25, 63, 146, .45),
      rgba(0, 56, 124, .35));
  opacity: .35;
  pointer-events: none;
}

/* Header piccolo: anno + tipo opzionale */
.page-home .pub-metaTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  /* lascia respiro dalla riga sopra */
  margin-bottom: 10px;
}

.page-home .pub-year {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(0, 56, 124, .70);
  text-transform: uppercase;
}

.page-home .pub-year .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(112, 162, 136, .85);
  box-shadow: 0 0 0 4px rgba(112, 162, 136, .16);
}

/* Tipo (opzionale): Articolo/Libro/Capitolo */
.page-home .pub-type {
  font-weight: 800;
  font-size: 12px;
  color: rgba(25, 63, 146, .70);
  background: rgba(25, 63, 146, .08);
  border: 1px solid rgba(25, 63, 146, .12);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Testo */
.page-home .pub-cite {
  margin: 0;
  color: #3f4a5a;
  font-size: 15px;
  line-height: 1.55;
}

.page-home .pub-cite strong {
  color: #1e2a3f;
}

.page-home .pub-cite em {
  font-style: italic;
  color: #2f3b52;
}

/* Footer piccolino (editore/luogo) */
.page-home .pub-foot {
  margin-top: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.page-home .pub-place {
  font-size: 13px;
  color: rgba(85, 96, 112, .90);
}

/* Responsive */
@media (max-width: 560px) {
  .page-home .pub-grid {
    gap: 16px;
  }

  .page-home .pub-card {
    padding: 16px;
  }

  .page-home .pub-card::before {
    left: 12px;
    right: 12px;
  }

  .page-home .pub-metaTop {
    margin-bottom: 8px;
  }
}



/* ===== Pagina: Comunica in inglese ===== */

* {
  box-sizing: border-box;
}

body.page-course {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1000px 600px at 80% -10%, rgba(23, 62, 138, .15), transparent 60%),
    radial-gradient(900px 600px at 0% 20%, rgba(123, 176, 143, .18), transparent 55%),
    var(--bg);
  line-height: 1.45;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.page-course .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.page-course .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--blu-scuro);
  text-decoration: none;
}

.page-course .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-image: url("emanuela_calvino_116x116.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 18px rgba(0, 56, 124, .25);
  border: 2px solid rgba(255, 255, 255, .6);
}

.page-course .avatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(123, 176, 143, .55), rgba(23, 62, 138, .45));
  border: 4px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow);
  overflow: hidden;
  flex: 0 0 auto;
}

.page-course .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-course .brand h1 {
  font-size: 16px;
  margin: 0;
  letter-spacing: .4px;
}

.page-course .brand p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.page-course .top-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(10, 25, 60, .08);
  box-shadow: 0 6px 18px rgba(10, 25, 60, .08);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.pill b {
  color: var(--text);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 10px 24px rgba(23, 62, 138, .18);
}

.page-course .btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  color: #fff;
}

.page-course .btn-primary:hover {
  box-shadow: 0 14px 30px rgba(23, 62, 138, .26);
}

.btn-ghost {
  background: rgba(255, 255, 255, .85);
  color: var(--primary);
  border: 1px solid rgba(23, 62, 138, .18);
  box-shadow: 0 10px 24px rgba(10, 25, 60, .08);
}

.page-course .hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 14px;
}

.page-course .hero-left {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(10, 25, 60, .08);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.page-course .hero-left:before {
  content: "";
  position: absolute;
  inset: -80px -120px auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, rgba(123, 176, 143, .55), rgba(123, 176, 143, 0) 60%);
  transform: rotate(12deg);
  pointer-events: none;
}

.page-course .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(123, 176, 143, .16);
  color: var(--accent-2);
  font-weight: 800;
  letter-spacing: .4px;
  font-size: 12px;
  text-transform: uppercase;
}

.page-course .hero h2 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1.02;
  letter-spacing: .2px;
  color: var(--primary);
}

.page-course .hero .sub {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--muted);
  max-width: 56ch;
}

.page-course .bullets {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.page-course .bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 18px;
  color: var(--accent-2);
  font-weight: 800;
}

.page-course .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 8px;
  flex: 0 0 auto;
  box-shadow: 0 6px 14px rgba(123, 176, 143, .35);
}

.page-course .hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.page-course .deadline {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 216, 77, .22);
  border: 1px solid rgba(255, 216, 77, .4);
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #584400;
}

.page-course .deadline b {
  font-weight: 900;
}

.page-course .hero-right {
  display: grid;
  gap: 14px;
}

.page-course .card {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(10, 25, 60, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.page-course .course-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(123, 176, 143, .18);
  color: var(--accent-2);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
}

.page-course .details {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.page-course .detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.page-course .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(23, 62, 138, .10);
  display: grid;
  place-items: center;
  color: var(--primary);
  flex: 0 0 auto;
}

.page-course .detail b {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.page-course .detail span {
  color: var(--muted);
  font-size: 14px;
}

.page-course .price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(10, 25, 60, .08);
}

.page-course .price .amount {
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: .2px;
  color: var(--primary);
}

.page-course .price .per {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.page-course .photo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.page-course .photo {
  border-radius: 22px;
  border: 6px solid rgba(255, 255, 255, .9);
  box-shadow: 0 14px 30px rgba(10, 25, 60, .14);
  overflow: hidden;
  min-height: 180px;
  background: linear-gradient(135deg, rgba(23, 62, 138, .18), rgba(123, 176, 143, .14));
  position: relative;
}

.page-course .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-course .photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .35), transparent 55%);
  pointer-events: none;
}

.page-course section {
  margin-top: 34px;
}

.page-course .section-title {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: .2px;
}

.page-course .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.page-course .feature {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(10, 25, 60, .08);
  box-shadow: 0 10px 26px rgba(10, 25, 60, .08);
  min-height: 132px;
}

.page-course .feature h4 {
  margin: 8px 0 6px;
}

.page-course .feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-course .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.page-course .cta {
  display: flex;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  align-items: stretch;
}

.page-course .cta .card {
  padding: 22px;
}

.page-course .qr {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px dashed rgba(23, 62, 138, .25);
  background: rgba(23, 62, 138, .06);
  min-height: 240px;
  text-align: center;
  padding: 18px;
  color: var(--muted);
}

.page-course .qr strong {
  color: var(--primary);
  font-size: 16px;
}

.page-course .qr small {
  display: block;
  margin-top: 6px;
}

.page-course .qr a {
  font-weight: 800;
}

img[src="qr_code.png"] {
  display: block;
  margin: 20px auto;
}

footer {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(10, 25, 60, .08);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 980px) {
  .page-course .hero {
    grid-template-columns: 1fr;
  }

  .page-course .cta {
    grid-template-columns: 1fr;
  }

  .page-course .grid-3 {
    grid-template-columns: 1fr;
  }

  .page-course .split {
    grid-template-columns: 1fr;
  }

  .page-course .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-course .top-cta {
    justify-content: flex-start;
  }
}

.link {
  color: var(--blu-chiaro);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(25, 63, 146, .18);
}

.link:hover {
  border-bottom-color: rgba(25, 63, 146, .45)
}

.page-course .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px) {
  .page-course .footer-grid {
    grid-template-columns: 1fr
  }
}


/* ===== Pagina: Privacy ===== */

* {
  box-sizing: border-box
}

.page-privacy body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

a {
  color: inherit
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px
}

.page-privacy header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.page-privacy .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--blu-scuro);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-image: url("emanuela_calvino_116x116.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 18px rgba(0, 56, 124, .25);
  border: 2px solid rgba(255, 255, 255, .6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--blu-scuro);
  color: white;
  box-shadow: 0 10px 20px rgba(0, 56, 124, .18);
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

.page-privacy .btn:active {
  transform: translateY(1px)
}

.page-privacy .btn:hover {
  box-shadow: 0 14px 26px rgba(0, 56, 124, .22)
}

.page-privacy main {
  padding: 46px 0 70px
}

.page-privacy .kicker {
  color: var(--blu-chiaro);
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 10px;
}

.page-privacy h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--blu-scuro);
}

.page-privacy h2 {
  margin: 34px 0 10px;
  font-size: 20px;
  color: var(--blu-scuro);
  letter-spacing: -.01em;
}

.page-privacy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px
}

.page-privacy ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--muted)
}

.page-privacy li {
  margin: 6px 0
}

.page-privacy .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  margin-top: 18px;
}

.page-privacy .note {
  font-size: 14px;
  color: var(--muted);
  border-left: 4px solid rgba(112, 162, 136, .55);
  padding-left: 12px;
  margin-top: 16px;
}

.link {
  color: var(--blu-chiaro);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid rgba(25, 63, 146, .18);
}

.link:hover {
  border-bottom-color: rgba(25, 63, 146, .45)
}

footer {
  border-top: 1px solid rgba(0, 0, 0, .06);
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
  background: #fff;
}

.page-privacy .footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.page-privacy .container {
  max-width: var(--max-narrow)
}

/* =========================
   FIX MOBILE: wrap testi + nascondi "Contatti"
   ========================= */
@media (max-width: 520px) {

  /* 1) Le pill lunghe devono andare a capo */
  .page-home .pill {
    display: block;
    /* invece di inline-flex */
    max-width: 100%;
    white-space: normal;
    /* permette a capo */
    line-height: 1.35;
  }

  /* =========================
   Header HOME — fix avatar, titolo su 1 riga, CTA più stretta
   ========================= */

  /* 1) Foto perfettamente rotonda (evita effetto ovale se qualche regola la “stira”) */
  .page-home .brand-mark {
    flex: 0 0 34px;
    /* non farla crescere o restringere */
    width: 34px;
    height: 34px;
    aspect-ratio: 1 / 1;
    /* forza quadrato */
    border-radius: 50%;
  }

  /* Se in HOME la foto è un <img> (anziché background), rendila rotonda */
  .page-home .brand img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 34px;
  }

  /* 2) Nome “Emanuela Calvino” su UNA riga */
  .page-home .brand {
    flex: 1 1 auto;
    /* lascia spazio al nome */
    min-width: 0;
    /* necessario per evitare stranezze in flex */
  }

  .page-home .brand span,
  .page-home .brand strong,
  .page-home .brand b {
    white-space: nowrap;
    /* non andare a capo */
  }

  /* 3) Bottone “Prenota una call” meno largo, così resta spazio a “Calvino” */
  .page-home .nav-cta {
    flex: 0 0 auto;
    /* non farla prendere tutta la riga */
    width: auto;
  }

  .page-home .nav-cta .btn {
    padding: 12px 16px;
    /* un filo più compatto */
    max-width: 240px;
    /* evita bottoni “chilometrici” */
  }
}

/* Mobile: sotto una certa larghezza torna pure in colonna (se vuoi) */
@media (max-width: 420px) {
  .page-home .nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .page-home .nav-cta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .page-home .nav-cta .btn {
    width: 100%;
    max-width: none;
  }
}



* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden
}

a {
  color: inherit;
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px
}

.pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(112, 162, 136, .12);
  color: var(--blu-scuro);
  border: 1px solid rgba(112, 162, 136, .28);
  font-weight: 600;
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.page-home .btn:active {
  transform: translateY(1px)
}

.btn.primary {
  background: var(--blu-scuro);
  color: white;
  box-shadow: 0 10px 20px rgba(0, 56, 124, .22);
}

.page-home .btn.primary:hover {
  box-shadow: 0 14px 26px rgba(0, 56, 124, .28)
}

.btn.ghost {
  background: rgba(255, 255, 255, .62);
  border-color: rgba(0, 56, 124, .10);
  color: var(--blu-scuro);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(12px);
}

.page-home .btn.ghost:hover {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(0, 56, 124, .14);
}

.link {
  color: var(--blu-chiaro);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(25, 63, 146, .18);
}

.link:hover {
  border-bottom-color: rgba(25, 63, 146, .45)
}

.page-home .section {
  padding: 84px 0
}

.page-home .section.tight {
  padding: 62px 0
}

.page-home .kicker {
  color: var(--blu-chiaro);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 18px;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  margin: 0 0 12px
}

.page-home h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--blu-scuro);
}

.page-home h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--blu-scuro);
}

.page-home h3 {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  color: var(--ink);
}

.page-home p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px
}

.page-home .lead {
  font-size: 18px;
  color: #334055
}

/* =========================
       HEADER — etereo (sfuma ai lati)
       ========================= */
.page-home header {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, .78) 14%,
      rgba(255, 255, 255, .88) 50%,
      rgba(255, 255, 255, .78) 86%,
      rgba(255, 255, 255, 0) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


.page-home .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.page-home .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--blu-scuro);
  text-decoration: none;
}

.page-home .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-image: url("emanuela_calvino_116x116.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 18px rgba(0, 56, 124, .25);
  border: 2px solid rgba(255, 255, 255, .6);
}

.page-home nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.page-home nav a {
  text-decoration: none;
  color: #21304a;
  font-weight: 700;
  font-size: 14px;
  opacity: .9;
}

.page-home nav a:hover {
  opacity: 1;
  color: var(--blu-chiaro)
}

.page-home .nav-cta {
  display: flex;
  gap: 10px;
  align-items: center
}

.page-home .menu-btn {
  display: none
}

@media (max-width: 900px) {
  .page-home nav ul {
    display: none
  }

  .page-home .menu-btn {
    display: inline-flex
  }
}

/* =========================
       HERO — sfumature reali ai bordi (top/bottom + left/right)
  ========================= */
.page-home .hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

.page-home .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}

.page-home .hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 25%,
      rgba(112, 162, 136, .18),
      rgba(255, 255, 255, 0) 55%);
  opacity: .65;
  z-index: 2;
}



/* SFUMA SOPRA/SOTTO per evitare stacco netto (soprattutto con header) */
.page-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, .88) 0%,
      rgba(255, 255, 255, 0) 18%,
      rgba(255, 255, 255, 0) 82%,
      rgba(255, 255, 255, .92) 100%);
  opacity: .55;
  z-index: 3;
}

/* leggero velo blu per far risaltare testo (senza “taglio”) */
.page-home .hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(0, 56, 124, .66) 0%, rgba(0, 56, 124, .30) 42%, rgba(0, 56, 124, .08) 74%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .06) 40%, rgba(0, 0, 0, .14) 100%);
}

.page-home .hero-content {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  align-items: end;
  padding: 72px 0 56px;
}

.page-home .hero-copy {
  max-width: 680px;
  color: white;
}

.page-home .hero-copy .pill {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .22);
  color: white;
}

.page-home .hero-copy h1 {
  color: white
}

.page-home .hero-copy .lead {
  color: rgba(255, 255, 255, .86);
  font-size: 18px
}

.page-home .hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px
}

/* Card “Cosa trovi qui” — vetro coerente con sfera */
.page-home .hero-card {
  align-self: end;
  background: rgba(255, 255, 255, .46);
  border: 1px solid rgba(0, 56, 124, .12);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.page-home .hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, .72) 0%,
      rgba(255, 255, 255, .16) 48%,
      rgba(255, 255, 255, 0) 100%);
  opacity: .95;
}

.page-home .hero-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(25, 63, 146, .16), rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 85% 85%, rgba(112, 162, 136, .14), rgba(255, 255, 255, 0) 55%);
  opacity: .95;
}

.page-home .hero-card h3 {
  margin: 0 0 8px;
  color: var(--blu-scuro);
  position: relative
}

.page-home .bullets {
  margin: 0;
  padding-left: 18px;
  color: #334055;
  position: relative
}

.page-home .bullets li {
  margin: 6px 0
}

.page-home .hero-card .bullets {
  color: rgba(20, 34, 58, .82);
}

@media (max-width: 900px) {
  .page-home .hero-content {
    grid-template-columns: 1fr;
    padding: 54px 0 36px
  }

  .page-home .hero-card {
    max-width: 520px
  }

  .page-home .hero {
    min-height: 92vh
  }
}

.page-home .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

@media (max-width: 900px) {
  .page-home .grid-2 {
    grid-template-columns: 1fr
  }
}

.page-home .soft {
  background: linear-gradient(180deg, rgba(112, 162, 136, .10), rgba(112, 162, 136, .04));
  border-top: 1px solid rgba(112, 162, 136, .20);
  border-bottom: 1px solid rgba(112, 162, 136, .20);
}

.page-home .profile-wrap {
  position: relative;
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.page-home .profile-blob {
  position: absolute;
  inset: auto auto 12% 10%;
  width: 70%;
  height: 70%;
  border-radius: 36px;
  background: radial-gradient(circle at 30% 30%, rgba(112, 162, 136, .55), rgba(25, 63, 146, .18));
  transform: rotate(-6deg);
  z-index: 0;
  opacity: .55;
}

.page-home .profile-img {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(0, 0, 0, .06);
}

.page-home .cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .page-home .cards {
    grid-template-columns: 1fr
  }
}

.page-home .card {
  background: white;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.page-home .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .08);
  border-color: rgba(25, 63, 146, .22);
}

.page-home .badge {
  display: inline-flex;
  text-align: center;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 800;
  background: rgba(25, 63, 146, .10);
  color: var(--blu-chiaro);
  border: 1px solid rgba(25, 63, 146, .16);
  margin-bottom: 10px;
}

.page-home .quote {
  border-radius: 28px;
  padding: 28px 22px;
  background: linear-gradient(135deg, rgba(0, 56, 124, .92), rgba(25, 63, 146, .78));
  color: white;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.page-home .quote::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 30% 30%, rgba(112, 162, 136, .55), rgba(255, 255, 255, 0) 62%);
  transform: rotate(12deg);
  opacity: .7;
  pointer-events: none;
}

.page-home .quote p {
  color: rgba(255, 255, 255, .90);
  font-size: 18px;
  margin: 0
}

.page-home .cta {
  background: linear-gradient(180deg, rgba(0, 56, 124, .06), rgba(112, 162, 136, .10));
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.page-home .cta-box {
  border-radius: 28px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-home .cta-box p {
  margin: 0;
  max-width: 70ch
}

.page-home footer {
  padding: 34px 0;
  color: #556070;
  border-top: 1px solid rgba(0, 0, 0, .06);
  background: #fff;
}

.page-home .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px) {
  .page-home .footer-grid {
    grid-template-columns: 1fr
  }
}

.page-home .muted {
  color: var(--muted)
}

/* Immagine quadrata nei Servizi */
.page-home .percorso-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* quadrata */
  object-fit: cover;
  border-radius: 18px;
  /* coerente con il sito */
  margin: 12px 0 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
}

/* Micro “patina vetro” sopra l’immagine */
.page-home .percorso-img-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  /* importantissimo */
}

.page-home .percorso-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0));
  pointer-events: none;
  opacity: .55;
}


/* ====== BOX SFERA (vetro) ====== */
.page-home .sphere-frame {
  border-radius: 28px;
  border: 1px solid rgba(0, 56, 124, .10);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .08);
  overflow: hidden;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  min-height: 320px;
}

.page-home .sphere-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .18) 55%, rgba(255, 255, 255, 0));
  pointer-events: none;
  opacity: .9;
  z-index: 1;
}

.page-home .sphere-frame::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 12%, rgba(25, 63, 146, .14), rgba(255, 255, 255, 0) 46%),
    radial-gradient(circle at 85% 85%, rgba(112, 162, 136, .12), rgba(255, 255, 255, 0) 58%);
  pointer-events: none;
  opacity: .95;
  z-index: 1;
}

.page-home #sphereMount {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  min-height: 320px;
}

.page-home #sphereMount canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
  touch-action: none
}

.page-home .sphere-hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  color: rgba(0, 0, 0, .55);
  font: 13px system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(0, 56, 124, .10);
  padding: 9px 11px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-home .profile-glass {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  padding: 42px;
  border-radius: 36px;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, .75),
      rgba(255, 255, 255, .55));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, .08),
    inset 0 1px 0 rgba(255, 255, 255, .6);
}

@media (max-width: 900px) {
  .page-home .profile-glass {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

/* IMMAGINE */
.page-home .profile-image {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, .18);
}

.page-home .profile-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%,
      rgba(112, 162, 136, .25),
      transparent 60%);
}

.page-home .profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* TESTO */
.page-home .profile-content p {
  margin-bottom: 14px;
  color: #445064;
  line-height: 1.65;
}

.page-home .profile-content h2 {
  margin-bottom: 14px;
}

/* BOX EVIDENZA */
.page-home .focus-box {
  margin: 20px 0;
  padding: 18px 22px;
  border-radius: 20px;
  background:
    linear-gradient(135deg,
      rgba(112, 162, 136, .14),
      rgba(25, 63, 146, .10));
  border: 1px solid rgba(25, 63, 146, .18);
}

.page-home .focus-box ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.page-home .focus-box li {
  margin: 6px 0;
}

/* =========================
      TIMELINE (Roadmap vetro)
      ========================= */

.page-home .timeline {
  position: relative;
  margin-top: 26px;
  padding: 12px 0 44px;
}

/* linea centrale + glow */
.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
      rgba(25, 63, 146, 0) 0%,
      rgba(25, 63, 146, .35) 14%,
      rgba(25, 63, 146, .55) 50%,
      rgba(25, 63, 146, .35) 86%,
      rgba(25, 63, 146, 0) 100%);
  filter: drop-shadow(0 0 10px rgba(25, 63, 146, .25));
}

/* item */
.page-home .t-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
}

/* alternanza */
.page-home .t-left .t-card {
  grid-column: 1;
  justify-self: end;
}

.page-home .t-left .t-node {
  grid-column: 2;
}

.page-home .t-left::after {
  content: "";
  grid-column: 3;
}

.page-home .t-right .t-card {
  grid-column: 3;
  justify-self: start;
}

.page-home .t-right .t-node {
  grid-column: 2;
}

.page-home .t-right::before {
  content: "";
  grid-column: 1;
}

/* nodo (pallino vetro + glow) */
.page-home .t-node {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  position: relative;
  justify-self: center;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(25, 63, 146, .20);
  box-shadow:
    0 0 0 6px rgba(25, 63, 146, .07),
    0 12px 30px rgba(0, 0, 0, .10),
    0 0 20px rgba(25, 63, 146, .18);
  backdrop-filter: blur(10px);
}

.page-home .t-node::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(25, 63, 146, .18), rgba(25, 63, 146, 0) 62%);
  opacity: .7;
  pointer-events: none;
}

/* card vetro coerente con sfera */
.page-home .t-card {
  width: min(520px, 100%);
  border-radius: 26px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, .65);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .58));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, .08),
    inset 0 1px 0 rgba(255, 255, 255, .75);
  position: relative;
  overflow: hidden;
}

/* luce interna soft */
.page-home .t-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -40% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle,
      rgba(25, 63, 146, .12),
      rgba(255, 255, 255, 0) 70%);
  opacity: .45;
  pointer-events: none;
}


/* titoli un filo più compatti */
.page-home .t-card h3 {
  margin: 0 0 8px;
}

.page-home .t-card p {
  margin: 0 0 10px;
}

/* fine timeline (freccia) */
.page-home .t-end {
  position: relative;
  height: 18px;
  margin-top: 8px;
}

.page-home .t-end-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 14px solid rgba(25, 63, 146, .35);
  filter: drop-shadow(0 6px 10px rgba(25, 63, 146, .18));
}

/* animazione in ingresso */
.page-home .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.page-home .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* mobile: colonna singola + linea a sinistra */
/* mobile: colonna singola + linea a sinistra (FIX) */
@media (max-width: 900px) {

  .page-home .timeline {
    padding: 12px 0 28px;
  }

  .page-home .timeline::before {
    left: 18px;
    transform: none;
  }

  .page-home .t-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: start;
    gap: 14px;
    padding: 14px 0;
  }

  /* il pallino sta sempre nella colonna 1 */
  .page-home .t-node {
    grid-column: 1 !important;
    justify-self: start;
    margin-top: 14px;
    /* allinealo visivamente con l’inizio card */
  }

  /* la card sta sempre nella colonna 2 */
  .page-home .t-card {
    grid-column: 2 !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* annulla COMPLETAMENTE l’alternanza desktop */
  .page-home .t-left .t-card,
  .page-home .t-right .t-card {
    grid-column: 2 !important;
    justify-self: stretch !important;
  }

  .page-home .t-left .t-node,
  .page-home .t-right .t-node {
    grid-column: 1 !important;
    justify-self: start !important;
  }

  /* elimina i “finti spacer” desktop */
  .page-home .t-left::after,
  .page-home .t-right::before {
    content: none !important;
    display: none !important;
  }

  /* freccia finale agganciata alla linea */
  .page-home .t-end-arrow {
    left: 18px;
    transform: none;
  }
}


/* Wrapper section (puoi togliere se già hai .section / .soft) */
.page-home .pub-section {
  position: relative;
}

/* Titoli/intro */
.page-home .pub-head {
  max-width: 72ch;
  margin-bottom: 18px;
}

/* Grid */
.page-home .pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
  margin-top: 18px;
}

/* Card vetro */
.page-home .pub-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .06);
  backdrop-filter: blur(12px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  min-height: 140px;
}

.page-home .pub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(0, 56, 124, .12);
  border-color: rgba(25, 63, 146, .18);
}

/* Alone etereo (molto leggero, non deve fare “macchia”) */
.page-home .pub-card::after {
  content: "";
  position: absolute;
  inset: auto -35% -35% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle,
      rgba(25, 63, 146, .12),
      rgba(255, 255, 255, 0) 70%);
  opacity: .42;
  pointer-events: none;
}

/* Riga top soft (micro richiamo palette) */
.page-home .pub-card::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg,
      rgba(112, 162, 136, .55),
      rgba(25, 63, 146, .45),
      rgba(0, 56, 124, .35));
  opacity: .35;
  pointer-events: none;
}

/* Header piccolo: anno + tipo opzionale */
.page-home .pub-metaTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  /* lascia respiro dalla riga sopra */
  margin-bottom: 10px;
}

.page-home .pub-year {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(0, 56, 124, .70);
  text-transform: uppercase;
}

.page-home .pub-year .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(112, 162, 136, .85);
  box-shadow: 0 0 0 4px rgba(112, 162, 136, .16);
}

/* Tipo (opzionale): Articolo/Libro/Capitolo */
.page-home .pub-type {
  font-weight: 800;
  font-size: 12px;
  color: rgba(25, 63, 146, .70);
  background: rgba(25, 63, 146, .08);
  border: 1px solid rgba(25, 63, 146, .12);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Testo */
.page-home .pub-cite {
  margin: 0;
  color: #3f4a5a;
  font-size: 15px;
  line-height: 1.55;
}

.page-home .pub-cite strong {
  color: #1e2a3f;
}

.page-home .pub-cite em {
  font-style: italic;
  color: #2f3b52;
}

/* Footer piccolino (editore/luogo) */
.page-home .pub-foot {
  margin-top: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.page-home .pub-place {
  font-size: 13px;
  color: rgba(85, 96, 112, .90);
}

/* Responsive */
@media (max-width: 560px) {
  .page-home .pub-grid {
    gap: 16px;
  }

  .page-home .pub-card {
    padding: 16px;
  }

  .page-home .pub-card::before {
    left: 12px;
    right: 12px;
  }

  .page-home .pub-metaTop {
    margin-bottom: 8px;
  }
}



/* ===== Pagina: Comunica in inglese ===== */

* {
  box-sizing: border-box;
}

body.page-course {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1000px 600px at 80% -10%, rgba(23, 62, 138, .15), transparent 60%),
    radial-gradient(900px 600px at 0% 20%, rgba(123, 176, 143, .18), transparent 55%),
    var(--bg);
  line-height: 1.45;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.page-course .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.page-course .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--blu-scuro);
  text-decoration: none;
}

.page-course .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-image: url("emanuela_calvino_116x116.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 18px rgba(0, 56, 124, .25);
  border: 2px solid rgba(255, 255, 255, .6);
}

.page-course .avatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(123, 176, 143, .55), rgba(23, 62, 138, .45));
  border: 4px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow);
  overflow: hidden;
  flex: 0 0 auto;
}

.page-course .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-course .brand h1 {
  font-size: 16px;
  margin: 0;
  letter-spacing: .4px;
}

.page-course .brand p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.page-course .top-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(10, 25, 60, .08);
  box-shadow: 0 6px 18px rgba(10, 25, 60, .08);
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.pill b {
  color: var(--text);
  font-weight: 700;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 10px 24px rgba(23, 62, 138, .18);
}

.page-course .btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  color: #fff;
}

.page-course .btn-primary:hover {
  box-shadow: 0 14px 30px rgba(23, 62, 138, .26);
}

.btn-ghost {
  background: rgba(255, 255, 255, .85);
  color: var(--primary);
  border: 1px solid rgba(23, 62, 138, .18);
  box-shadow: 0 10px 24px rgba(10, 25, 60, .08);
}

.page-course .hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 14px;
}

.page-course .hero-left {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(10, 25, 60, .08);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.page-course .hero-left:before {
  content: "";
  position: absolute;
  inset: -80px -120px auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, rgba(123, 176, 143, .55), rgba(123, 176, 143, 0) 60%);
  transform: rotate(12deg);
  pointer-events: none;
}

.page-course .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(123, 176, 143, .16);
  color: var(--accent-2);
  font-weight: 800;
  letter-spacing: .4px;
  font-size: 12px;
  text-transform: uppercase;
}

.page-course .hero h2 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1.02;
  letter-spacing: .2px;
  color: var(--primary);
}

.page-course .hero .sub {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--muted);
  max-width: 56ch;
}

.page-course .bullets {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.page-course .bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 18px;
  color: var(--accent-2);
  font-weight: 800;
}

.page-course .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 8px;
  flex: 0 0 auto;
  box-shadow: 0 6px 14px rgba(123, 176, 143, .35);
}

.page-course .hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.page-course .deadline {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 216, 77, .22);
  border: 1px solid rgba(255, 216, 77, .4);
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #584400;
}

.page-course .deadline b {
  font-weight: 900;
}

.page-course .hero-right {
  display: grid;
  gap: 14px;
}

.page-course .card {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(10, 25, 60, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.page-course .course-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(123, 176, 143, .18);
  color: var(--accent-2);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
}

.page-course .details {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.page-course .detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.page-course .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(23, 62, 138, .10);
  display: grid;
  place-items: center;
  color: var(--primary);
  flex: 0 0 auto;
}

.page-course .detail b {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.page-course .detail span {
  color: var(--muted);
  font-size: 14px;
}

.page-course .price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(10, 25, 60, .08);
}

.page-course .price .amount {
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: .2px;
  color: var(--primary);
}

.page-course .price .per {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.page-course .photo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.page-course .photo {
  border-radius: 22px;
  border: 6px solid rgba(255, 255, 255, .9);
  box-shadow: 0 14px 30px rgba(10, 25, 60, .14);
  overflow: hidden;
  min-height: 180px;
  background: linear-gradient(135deg, rgba(23, 62, 138, .18), rgba(123, 176, 143, .14));
  position: relative;
}

.page-course .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-course .photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .35), transparent 55%);
  pointer-events: none;
}

.page-course section {
  margin-top: 34px;
}

.page-course .section-title {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: .2px;
}

.page-course .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.page-course .feature {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(10, 25, 60, .08);
  box-shadow: 0 10px 26px rgba(10, 25, 60, .08);
  min-height: 132px;
}

.page-course .feature h4 {
  margin: 8px 0 6px;
}

.page-course .feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-course .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.page-course .cta {
  display: flex;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  align-items: stretch;
}

.page-course .cta .card {
  padding: 22px;
}

.page-course .qr {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px dashed rgba(23, 62, 138, .25);
  background: rgba(23, 62, 138, .06);
  min-height: 240px;
  text-align: center;
  padding: 18px;
  color: var(--muted);
}

.page-course .qr strong {
  color: var(--primary);
  font-size: 16px;
}

.page-course .qr small {
  display: block;
  margin-top: 6px;
}

.page-course .qr a {
  font-weight: 800;
}

img[src="qr_code.png"] {
  display: block;
  margin: 20px auto;
}

footer {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(10, 25, 60, .08);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 980px) {
  .page-course .hero {
    grid-template-columns: 1fr;
  }

  .page-course .cta {
    grid-template-columns: 1fr;
  }

  .page-course .grid-3 {
    grid-template-columns: 1fr;
  }

  .page-course .split {
    grid-template-columns: 1fr;
  }

  .page-course .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-course .top-cta {
    justify-content: flex-start;
  }
}

.link {
  color: var(--blu-chiaro);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(25, 63, 146, .18);
}

.link:hover {
  border-bottom-color: rgba(25, 63, 146, .45)
}

.page-course .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px) {
  .page-course .footer-grid {
    grid-template-columns: 1fr
  }
}


/* ===== Pagina: Privacy ===== */

* {
  box-sizing: border-box
}

.page-privacy body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

a {
  color: inherit
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px
}

.page-privacy header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.page-privacy .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--blu-scuro);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-image: url("emanuela_calvino_116x116.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 18px rgba(0, 56, 124, .25);
  border: 2px solid rgba(255, 255, 255, .6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--blu-scuro);
  color: white;
  box-shadow: 0 10px 20px rgba(0, 56, 124, .18);
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

.page-privacy .btn:active {
  transform: translateY(1px)
}

.page-privacy .btn:hover {
  box-shadow: 0 14px 26px rgba(0, 56, 124, .22)
}

.page-privacy main {
  padding: 46px 0 70px
}

.page-privacy .kicker {
  color: var(--blu-chiaro);
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 10px;
}

.page-privacy h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--blu-scuro);
}

.page-privacy h2 {
  margin: 34px 0 10px;
  font-size: 20px;
  color: var(--blu-scuro);
  letter-spacing: -.01em;
}

.page-privacy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px
}

.page-privacy ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--muted)
}

.page-privacy li {
  margin: 6px 0
}

.page-privacy .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  margin-top: 18px;
}

.page-privacy .note {
  font-size: 14px;
  color: var(--muted);
  border-left: 4px solid rgba(112, 162, 136, .55);
  padding-left: 12px;
  margin-top: 16px;
}

.link {
  color: var(--blu-chiaro);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid rgba(25, 63, 146, .18);
}

.link:hover {
  border-bottom-color: rgba(25, 63, 146, .45)
}

footer {
  border-top: 1px solid rgba(0, 0, 0, .06);
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
  background: #fff;
}

.page-privacy .footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.page-privacy .container {
  max-width: var(--max-narrow)
}

/* =========================
   FIX MOBILE: wrap testi + nascondi "Contatti"
   ========================= */
@media (max-width: 520px) {

  /* 1) Le pill lunghe devono andare a capo */
  .page-home .pill {
    display: block;
    /* invece di inline-flex */
    max-width: 100%;
    white-space: normal;
    /* permette a capo */
    line-height: 1.35;
  }
}

/* iPhone: tieni brand + CTA sulla stessa riga */
@media (max-width: 520px) {
  .page-home .nav {
    flex-wrap: nowrap;
    /* niente wrap */
    gap: 12px;
  }

  .page-home .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .page-home .brand span {
    white-space: nowrap;
    overflow: hidden;
    /* se proprio non entra, taglia con puntini */
    text-overflow: ellipsis;
  }

  .page-home .nav-cta {
    flex: 0 0 auto;
    width: auto;
    /* NON 100% */
  }

  .page-home .nav-cta .btn {
    padding: 8px 12px;
    /* bottone più piccolo */
    font-size: 14px;
    max-width: none;
    white-space: normal;
  }
}


/* =========================
   iPhone/Safari: header stabile
   ========================= */
@media (max-width: 520px) {

  /* header su una riga */
  .page-home .nav {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  /* foto sempre tonda e non si schiaccia */
  .page-home .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex: 0 0 34px;
  }

  /* nome NON deve andare a capo */
  .page-home .brand {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    /* << questo è il punto chiave */
  }

  /* CTA non prende tutta la riga */
  .page-home .nav-cta {
    flex: 0 0 auto;
    width: auto;
  }

  /* bottone più compatto (così ci sta tutto) */
  .page-home .nav-cta .btn {
    padding: 10px 14px;
    font-size: 14px;
    white-space: normal;
  }
}

/* Desktop: nome su una riga */
.brand-name {
  white-space: nowrap;
}

/* Mobile: permetti a Calvino di andare a capo */
@media (max-width: 520px) {

  .brand-name {
    white-space: normal;
    line-height: 1.1;
  }

  .mobile-break {
    display: block;
  }

}

/* ===== Fix testi troncati su mobile (Safari iPhone) ===== */
@media (max-width: 520px) {

  /* Pill in hero: deve andare a capo */
  .page-home .pill {
    display: block;
    max-width: 100%;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  /* Titolo e testi: evita qualsiasi nowrap/hidden che li taglia */
  .page-home h1,
  .page-home h2,
  .page-home p {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

.br-mobile {
  display: none;
}

.hero-copy,
.hero-copy p,
.hero-copy h1 {
  word-break: break-word;
  overflow-wrap: break-word;
}


/* ===== HERO MOBILE FIX (iPhone) ===== */
@media (max-width: 520px) {

  /* respiro laterale e meno altezza */
  .page-home .hero-content {
    padding: 28px 0 18px !important;
  }

  /* blocco testo: mai “attaccato” ai bordi */
  .page-home .hero-copy {
    padding: 0 14px !important;
    max-width: 100% !important;
  }

  /* pill: più piccola, wrappa bene */
  .page-home .pill {
    display: inline-block !important;
    max-width: 100% !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    padding: 10px 12px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  /* titolo: molto più mobile-friendly */
  .page-home .hero-copy h1 {
    margin: 14px 0 10px !important;
    font-size: 38px !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    hyphens: none !important;
  }

  /* paragrafi: più piccoli */
  .page-home .hero-copy .lead,
  .page-home .hero-copy p {
    font-size: 16px !important;
    line-height: 1.45 !important;
    margin: 0 0 12px !important;
    hyphens: none !important;
  }

  /* bottoni: compatti e centrati */
  .page-home .hero-actions {
    padding: 0 14px !important;
    gap: 10px !important;
    justify-content: flex-start !important;
  }

  .page-home .hero-actions .btn {
    padding: 12px 14px !important;
    font-size: 14px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }

  /* card sotto: piena larghezza e con margine */
  .page-home .hero-card {
    margin: 14px 14px 0 !important;
    width: calc(100% - 28px) !important;
    max-width: none !important;
  }
}