:root {
  --bg: #f8faff;
  --panel: #ffffff;
  --panel2: #f1f5ff;
  --text: #17233f;
  --muted: #64748b;
  --border: #e2e8f4;
  --accent: #3569ed;
  --accent2: #7955ed;
}

body {
  background: var(--bg) !important;
  color: var(--text) !important;
}

.sg-card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 35px rgba(39,72,135,.07) !important;
}

.sg-header {
  background: rgba(255,255,255,.94) !important;
  border-bottom: 1px solid var(--border) !important;
}

.sg-btn {
  background: #fff !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

.sg-btn-primary,
.sg-nav-cta {
  background: linear-gradient(135deg,#3569ed,#7955ed) !important;
  color: #fff !important;
  border: 0 !important;
}

.sg-footer {
  background: #fff !important;
  border-top: 1px solid var(--border) !important;
}

.sg-divider {
  border-color: var(--border) !important;
}

.sg-pill {
  background: #eef3ff !important;
  color: #3569ed !important;
}

.progress {
  background: #e8eefb !important;
}

/* DESIGN V2 */
.v2-hero { min-height: 570px; }
.v2-eyebrow {
  color: #4268dd; font-size: .76rem; font-weight: 800;
  letter-spacing: .13em;
}
.v2-heading {
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800; letter-spacing: -.075em;
  line-height: .96; color: #17233f;
}
.v2-subtitle {
  color: #263e74; font-size: 1.35rem; font-weight: 650;
}
.v2-description {
  color: #64748b; font-size: 1.08rem;
  line-height: 1.85; max-width: 560px;
}
.v2-keywords { display: flex; flex-wrap: wrap; gap: 9px; }
.v2-keywords span {
  padding: 8px 13px; background: #edf2ff;
  color: #47629b; border-radius: 50px;
  font-size: .78rem; font-weight: 600;
}
.v2-visual {
  height: 430px; position: relative; display: grid;
  place-items: center; overflow: hidden;
}
.v2-globe {
  position: relative; width: min(340px, 80vw);
  aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse at 28% 22%, #bdeeff 0%, transparent 32%),
    radial-gradient(ellipse at 75% 72%, #4436b8 0%, transparent 42%),
    radial-gradient(circle at 42% 38%, #399cfa 0%, #2858d3 45%, #101c69 100%);
  box-shadow: inset -28px -20px 55px #0b174e,
    0 0 85px #5274ed50, 0 30px 70px #243b8550;
  overflow: hidden;
}
.v2-globe-grid {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, transparent 0 30px, #ffffff20 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 38px, #ffffff15 39px 40px);
  transform: rotate(-20deg);
}
.v2-lambda {
  position: relative; color: #fff;
  font-size: 12rem; font-weight: 700; line-height: 1;
  text-shadow: 0 0 35px #a8ddff;
}
.v2-orbit {
  position: absolute; width: 390px; height: 390px;
  border: 1px solid #6484df55; border-radius: 50%;
}
.v2-orbit-one { transform: rotateX(65deg) rotate(-25deg); }
.v2-orbit-two { transform: rotateY(65deg) rotate(35deg); }
.v2-visual-label {
  position: absolute; bottom: 4px; font-size: .7rem;
  letter-spacing: .25em; font-weight: 800; color: #7b8ba9;
}
.v2-section { margin-top: 80px; }
.v2-section-top {
  display: flex; justify-content: space-between;
  align-items: end; gap: 30px; margin-bottom: 25px;
}
.v2-section-top h2 {
  margin: 12px 0 0; font-size: 2.2rem;
  font-weight: 800; color: #17233f;
}
.v2-section-top p { color: #64748b; max-width: 390px; }
.v2-project {
  display: block; height: 100%; padding: 30px;
  background: #fff; border: 1px solid #e2e8f4;
  border-radius: 22px; text-decoration: none;
  box-shadow: 0 10px 35px #2947820b;
  transition: transform .2s, box-shadow .2s;
}
.v2-project:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px #29478220;
}
.v2-project-icon {
  display: grid; place-items: center;
  width: 55px; height: 55px; border-radius: 15px;
  background: linear-gradient(135deg,#3569ed,#7955ed);
  color: #fff; font-size: 1.8rem; font-weight: 800;
  margin-bottom: 28px;
}
.v2-project h3 {
  font-size: 1.3rem; font-weight: 800; color: #17233f;
}
.v2-project p { color: #64748b; line-height: 1.7; }
.v2-project-link { color: #3569ed; font-weight: 700; }
@media(max-width:767px) {
  .v2-hero { min-height: auto; }
  .v2-visual { height: 350px; }
  .v2-globe { width: 275px; }
  .v2-lambda { font-size: 9rem; }
  .v2-section-top { display: block; }
  .v2-section { margin-top: 55px; }
}

/* Blog: copertine reali */
.v2-blog-image {
    display: block;
    width: 100%;
    height: 185px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
}

/* HERO 2026 */
.v3-hero {
  position: relative;
  margin-bottom: 42px;
  color: #101a36;
}

.v3-hero-main {
  position: relative;
  min-height: 425px;
  display: grid;
  grid-template-columns: 42% 25% 33%;
  align-items: start;
  isolation: isolate;
}

.v3-hero-copy {
  position: relative;
  z-index: 3;
  padding-top: 58px;
}

.v3-title {
  font-size: clamp(38px, 4.2vw, 68px);
  font-weight: 850;
  letter-spacing: -2.5px;
  line-height: 1.08;
  white-space: nowrap;
  margin: 20px 0 4px;
}

.v3-title span {
  color: #1260ff;
}

.v3-role {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 800;
  margin: 0 0 18px;
}

.v3-intro {
  max-width: 520px;
  padding-left: 17px;
  border-left: 5px solid #1260ff;
  font-size: 15px;
  line-height: 1.7;
}

.v3-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.v3-earth {
  position: absolute;
  z-index: 1;
  width: 690px;
  height: 410px;
  left: 30%;
  bottom: -10px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 80%,
      rgba(17,102,255,.28), transparent 67%);
}

.v3-earth::after {
  content: "";
  position: absolute;
  width: 630px;
  height: 330px;
  left: 25px;
  bottom: -95px;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at 50% 80%,
      #082f88 0%, #0754c7 45%, #18aaff 70%, transparent 74%);
  box-shadow: 0 -12px 50px rgba(0,125,255,.24);
  opacity: .85;
}

.v3-earth-lambda {
  position: absolute;
  z-index: 2;
  top: -55px;
  left: 205px;
  font-family: Georgia, serif;
  font-size: 340px;
  font-weight: bold;
  line-height: 1;
  background: linear-gradient(130deg,#00ddf9,#1463ff 48%,#c42bff 80%,#ff8de8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 22px rgba(80,75,255,.3));
}

.v3-focus {
  position: relative;
  z-index: 4;
  grid-column: 3;
  margin-top: 25px;
  padding: 24px;
  border: 1px solid #e3eaff;
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 15px 45px rgba(32,79,164,.13);
}

.v3-focus h3 {
  font-size: 23px;
  font-weight: 800;
  margin-bottom: 18px;
}

.v3-focus-item {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #e7edff;
}

.v3-focus-item:last-child {
  border-bottom: 0;
}

.v3-focus-icon {
  font-size: 28px;
  color: #1260ff;
  min-width: 35px;
}

.v3-focus-item strong {
  font-size: 16px;
}

.v3-focus-item p {
  font-size: 13px;
  line-height: 1.5;
  margin: 5px 0 0;
}

.v3-stats {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  padding: 25px 0;
  background: rgba(255,255,255,.8);
}

.v3-stats > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 8px;
  padding: 0 18px;
  border-right: 1px solid #dce6fb;
}

.v3-stats > div:last-child {
  border-right: 0;
}

.v3-stats span {
  grid-row: span 2;
  font-size: 30px;
  color: #1260ff;
}

.v3-stats strong {
  font-size: 23px;
  line-height: 1.1;
}

.v3-stats small {
  font-size: 12px;
}

@media (max-width: 991px) {
  .v3-hero-main {
    display: flex;
    flex-direction: column;
    min-height: auto;
    gap: 24px;
  }

  .v3-hero-copy {
    padding-top: 20px;
  }

  .v3-title {
    white-space: normal;
  }

  .v3-earth {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    height: 270px;
    overflow: hidden;
  }

  .v3-earth::after {
    width: 100%;
    left: 0;
  }

  .v3-earth-lambda {
    font-size: 250px;
    top: -30px;
    left: 35%;
  }

  .v3-focus {
    width: 100%;
    margin-top: 0;
  }

  .v3-stats {
    grid-template-columns: repeat(2,1fr);
    row-gap: 24px;
  }
}

@media (max-width: 540px) {
  .v3-title {
    font-size: 40px;
    letter-spacing: -1.5px;
  }

  .v3-stats > div {
    padding: 0 8px;
  }
}

/* HERO EARTH — photographic version */
.v3-hero-main {
  min-height: 390px;
}

.v3-earth {
  left: 30%;
  bottom: -25px;
  width: 690px;
  height: 390px;
  background: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 20%,
    #000 73%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 20%,
    #000 73%,
    transparent 100%
  );
}

.v3-earth::after {
  content: "";
  position: absolute;
  width: 610px;
  height: 610px;
  left: 40px;
  bottom: -390px;
  border-radius: 50%;
  background:
    url('/design-v2/images/earth.jpg') center center / cover no-repeat;
  box-shadow:
    0 0 32px rgba(35,150,255,.5),
    0 -10px 35px rgba(0,130,255,.3);
  opacity: 1;
}

.v3-earth-lambda {
  top: -10px;
  left: 205px;
  font-size: 270px;
  z-index: 2;
  filter: drop-shadow(0 8px 18px rgba(73,80,255,.35));
}

.v3-focus {
  padding: 20px;
  margin-top: 18px;
}

.v3-stats {
  padding: 18px 0;
}

@media (max-width: 991px) {
  .v3-earth {
    left: auto;
    bottom: auto;
    width: 100%;
    height: 300px;
  }

  .v3-earth::after {
    width: 520px;
    height: 520px;
    left: calc(50% - 260px);
    bottom: -330px;
  }

  .v3-earth-lambda {
    top: 0;
    left: 40%;
    font-size: 220px;
  }
}

/* HERO 2026 — visual refinement */
@media (min-width: 992px) {
  .v3-hero-main {
    min-height: 355px;
  }

  .v3-hero-copy {
    padding-top: 35px;
  }

  .v3-earth {
    left: 32%;
    bottom: -16px;
    width: 650px;
    height: 350px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      #000 12%,
      #000 60%,
      transparent 96%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      #000 12%,
      #000 60%,
      transparent 96%
    );
  }

  .v3-earth::after {
    width: 620px;
    height: 620px;
    left: 15px;
    bottom: -425px;
    background:
      url('/design-v2/images/earth.jpg')
      center center / cover no-repeat;
    box-shadow: 0 -8px 35px rgba(40,135,255,.18);
  }

  .v3-earth-lambda {
    top: -5px;
    left: 215px;
    font-size: 245px;
  }

  .v3-focus {
    margin-top: 12px;
    padding: 18px 20px;
  }

  .v3-focus-item {
    padding: 10px 0;
  }

  .v3-hero {
    margin-bottom: 12px;
  }
}

/* Tighter spacing before projects */
.v3-hero + .v2-section {
  margin-top: 8px;
}

.v3-stats {
  border-radius: 14px;
  background: rgba(255,255,255,.88);
}

/* Terra: elimina il bordo nero superiore */
.v3-earth::after {
  -webkit-mask-image: radial-gradient(
    ellipse at 50% 60%,
    #000 35%,
    rgba(0,0,0,.85) 48%,
    transparent 72%
  );
  mask-image: radial-gradient(
    ellipse at 50% 60%,
    #000 35%,
    rgba(0,0,0,.85) 48%,
    transparent 72%
  );
}

/* Terra: recupero colore e contrasto */
.v3-earth::after {
  filter: saturate(1.45) contrast(1.18) brightness(1.12);

  -webkit-mask-image: radial-gradient(
    ellipse at 50% 57%,
    #000 0%,
    #000 52%,
    rgba(0,0,0,.65) 65%,
    transparent 82%
  );

  mask-image: radial-gradient(
    ellipse at 50% 57%,
    #000 0%,
    #000 52%,
    rgba(0,0,0,.65) 65%,
    transparent 82%
  );
}

/* Terra notturna trasparente */
.v3-earth {
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

.v3-earth::after {
  width: 750px;
  height: 375px;
  left: -30px;
  bottom: -35px;
  border-radius: 0;
  background: url('/design-v2/images/earth-europa-hero.webp')
              center bottom / contain no-repeat;
  box-shadow: none;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
}

@media (max-width: 991px) {
  .v3-earth {
    overflow: hidden;
  }

  .v3-earth::after {
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
  }
}

/* EDUCATION */
.sg-education {
  color: #101a36;
}

.sg-education h1 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -1.5px;
}

.sg-education .text-muted {
  color: #64748b !important;
}

.sg-education-timeline {
  position: relative;
  padding-left: 35px;
  border-left: 3px solid #dbe6ff;
}

.sg-education-entry {
  position: relative;
  margin-bottom: 22px;
}

.sg-education-dot {
  position: absolute;
  top: 26px;
  left: -44px;
  width: 15px !important;
  height: 15px !important;
  background: #3266ff;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #dbe6ff;
}

.sg-education-card {
  padding: 26px 30px;
  background: #fff;
  border: 1px solid #dce5f8;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(30,65,130,.05);
  transition: transform .2s, box-shadow .2s;
}

.sg-education-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(30,65,130,.1);
}

.sg-education-card h5 {
  color: #101a36;
  font-size: 20px;
  font-weight: 750;
}

.sg-education-source {
  color: #3266ff;
}

@media (max-width: 600px) {
  .sg-education-timeline {
    padding-left: 22px;
  }

  .sg-education-dot {
    left: -31px;
  }

  .sg-education-card {
    padding: 20px;
  }
}

/* CONTACT PAGE */
.sg-contact {
  min-height: 75vh;
  padding: 90px 20px 100px;
  background: #f7f9ff;
  color: #101a36;
}

.sg-contact .container {
  max-width: 960px;
}

.sg-contact-header {
  text-align: center;
  margin-bottom: 48px;
}

.sg-contact-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: #3266ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.sg-contact-header h1 {
  color: #101a36;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.12;
  margin-bottom: 22px;
}

.sg-contact-header p {
  max-width: 650px;
  margin: auto;
  color: #64748b;
  font-size: 18px;
  line-height: 1.8;
}

.sg-contact-card {
  padding: 55px 40px;
  background: #fff;
  border: 1px solid #dce5f8;
  border-radius: 26px;
  box-shadow: 0 20px 60px rgba(35,70,130,.07);
  text-align: center;
}

.sg-contact-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 20px;
  background: #eaf0ff;
  color: #3266ff;
  font-size: 35px;
}

.sg-contact-label {
  color: #3266ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.sg-contact-card h2 {
  color: #101a36;
  margin: 15px 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
}

.sg-contact-card p {
  max-width: 520px;
  margin: 0 auto 25px;
  color: #64748b;
  line-height: 1.8;
}

.sg-contact-email {
  display: block;
  margin-bottom: 30px;
  color: #3266ff;
  font-size: clamp(16px, 2.5vw, 23px);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.sg-contact-email:hover {
  color: #1748d8;
}

.sg-contact-button {
  display: inline-block;
  padding: 16px 30px;
  background: #3266ff;
  color: #fff !important;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.sg-contact-button:hover {
  background: #1748d8;
  transform: translateY(-2px);
}

.sg-contact-footer {
  margin-top: 35px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 600px) {
  .sg-contact {
    padding: 60px 12px 70px;
  }
  .sg-contact-card {
    padding: 35px 20px;
  }
}

/* CONTACT - FULL PAGE LIGHT LAYOUT */
body:has(.sg-contact) {
  background: #f7f9ff !important;
  color: #101a36;
}

body:has(.sg-contact) .sg-contact-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body:has(.sg-contact) .sg-contact {
  width: 100%;
}

body:has(.sg-contact) footer {
  background: #f7f9ff;
  color: #64748b;
}

body:has(.sg-contact) footer a,
body:has(.sg-contact) footer p {
  color: #64748b;
}

/* CONTACT IT - LIGHT THEME FIX */
body:has(.sg-contact) {
    background: #f7f9ff !important;
    background-image: none !important;
    color: #101a36 !important;
}

body:has(.sg-contact) main.sg-contact-main {
    background: #f7f9ff !important;
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
}

body:has(.sg-contact) .sg-contact {
    background: #f7f9ff !important;
}

body:has(.sg-contact) .sg-contact-header h1,
body:has(.sg-contact) .sg-contact-card h2 {
    color: #101a36 !important;
}

body:has(.sg-contact) .sg-contact-header p,
body:has(.sg-contact) .sg-contact-card p {
    color: #64748b !important;
}


/* CURRICULUM IT - LIGHT DESIGN */
body:has(a[href*="cv-galloni-it"]) {
  background: #f7f9ff !important;
  background-image: none !important;
  color: #17233d !important;
}

body:has(a[href*="cv-galloni-it"]) main {
  color: #17233d;
}

body:has(a[href*="cv-galloni-it"]) main h1,
body:has(a[href*="cv-galloni-it"]) main h2,
body:has(a[href*="cv-galloni-it"]) main h3,
body:has(a[href*="cv-galloni-it"]) main h4 {
  color: #14213d;
}

body:has(a[href*="cv-galloni-it"]) main h1 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
}

body:has(a[href*="cv-galloni-it"]) main .lead {
  color: #52627b;
  line-height: 1.75;
}

body:has(a[href*="cv-galloni-it"]) main .card,
body:has(a[href*="cv-galloni-it"]) main .alert,
body:has(a[href*="cv-galloni-it"]) main .accordion-item {
  background: #fff !important;
  color: #17233d !important;
  border: 1px solid #dce5f8 !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 28px rgba(30,65,130,.05);
}

body:has(a[href*="cv-galloni-it"]) main .card-body {
  color: #17233d;
}

body:has(a[href*="cv-galloni-it"]) main .text-muted {
  color: #64748b !important;
}

body:has(a[href*="cv-galloni-it"]) main a {
  color: #3266ff;
}

body:has(a[href*="cv-galloni-it"]) main .badge.bg-dark {
  background: #eaf0ff !important;
  color: #3266ff !important;
  border: 1px solid #d6e2ff;
  padding: 9px 13px;
  border-radius: 9px;
}

body:has(a[href*="cv-galloni-it"]) main .btn-outline-dark {
  border-color: #3266ff;
  color: #3266ff;
  background: #fff;
}

body:has(a[href*="cv-galloni-it"]) main .btn-outline-dark:hover {
  background: #3266ff;
  color: #fff;
}

body:has(a[href*="cv-galloni-it"]) main .accordion-button {
  background: #fff;
  color: #14213d;
  font-weight: 700;
}

body:has(a[href*="cv-galloni-it"]) main .accordion-button:not(.collapsed) {
  background: #eaf0ff;
  color: #2454db;
}

body:has(a[href*="cv-galloni-it"]) main .accordion-body {
  color: #334155;
}

body:has(a[href*="cv-galloni-it"]) main hr {
  border-color: #dce5f8;
  opacity: 1;
}


/* CURRICULUM - CV BUTTONS */
.sg-cv-actions {
  margin-top: 18px;
}

.sg-cv-actions .sg-cv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none !important;
  transition: background .2s, transform .2s;
}

.sg-cv-actions .sg-cv-primary {
  background: #3266ff;
  color: #fff !important;
  border: 1px solid #3266ff;
}

.sg-cv-actions .sg-cv-primary:hover {
  background: #1748d8;
  transform: translateY(-2px);
}

.sg-cv-actions .sg-cv-secondary {
  background: #fff;
  color: #2454db !important;
  border: 1px solid #3266ff;
}

.sg-cv-actions .sg-cv-secondary:hover {
  background: #eaf0ff;
  transform: translateY(-2px);
}

/* CURRICULUM - HR SECTION */
body:has(.sg-cv-actions) main .card-header.bg-primary {
  background: #183b83 !important;
  color: #fff !important;
  border-radius: 14px 14px 0 0;
}

body:has(.sg-cv-actions) main .card-header.bg-primary *,
body:has(.sg-cv-actions) main .card-header.bg-primary h3 {
  color: #fff !important;
}

/* CURRICULUM - CONTACT BUTTONS */
.sg-cv-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  background: #eef3ff;
  border: 1px solid #d5e2ff;
  border-radius: 10px;
  color: #2454db !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .2s, transform .2s;
}

.sg-cv-contact-btn:hover {
  background: #dce7ff;
  transform: translateY(-2px);
}

/* ENTITY PAGES IT + EN */
.sg-entity {
  max-width: 1050px;
  margin: 35px auto 70px;
  color: #172b4d;
}
.sg-entity h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  color: #10244c;
  margin-bottom: 25px;
}
.sg-entity h2 {
  color: #1745b8;
  font-weight: 750;
  margin: 35px 0 18px;
}
.sg-entity p { line-height: 1.85; }
.sg-entity a { color: #2454db; }
.sg-entity li { margin-bottom: 12px; }

.sg-entity-projects {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.sg-entity-projects li {
  background: #fff;
  border: 1px solid #dce6fb;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 6px 22px rgba(20,60,130,.05);
}
.sg-entity-projects a {
  font-weight: 750;
  text-decoration: none;
}
.sg-entity-projects a:hover {
  text-decoration: underline;
}
