/*
Theme Name: Aladdin Consulting
Theme URI: https://aladdincons.com/
Author: Aladdin Consulting
Description: Tema WordPress custom convertito dal sito statico Aladdin Consulting. Include homepage, pagina privacy/cookie, asset grafici e form contatto gestito tramite wp_mail().
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: aladdin-consulting
*/

:root {
  --blue: #003988;
  --blue-2: #002d6b;
  --blue-3: #0a4b96;
  --orange: #FC7F00;
  --orange-2: #ff9633;
  --paper: #f4f4f6;
  --white: #ffffff;
  --text: #072a57;
  --muted: #415779;
  --shadow: 0 10px 28px rgba(3, 28, 61, .12);
  --shadow-soft: 0 6px 18px rgba(3, 28, 61, .10);
  --radius: 8px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--blue);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  padding-top: max(22px, env(safe-area-inset-top));
  color: var(--white);
}

.header-inner {
  display: grid;
  grid-template-columns: 260px 1fr 210px;
  align-items: start;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 242px;
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 43px;
  padding-top: 14px;
  font-weight: 700;
  font-size: 14px;
}

.main-nav a {
  position: relative;
  opacity: .96;
  transition: color .18s ease, opacity .18s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--orange-2);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  width: 42px;
  height: 3px;
  margin-inline: auto;
  background: var(--orange);
  border-radius: 20px;
}

.header-cta {
  justify-self: end;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 25px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(255, 115, 0, .22);
  transition: transform .18s ease, background-color .18s ease;
}

.header-cta:hover,
.header-cta:focus-visible,
.button-primary:hover,
.button-primary:focus-visible {
  background: #ff8319;
  transform: translateY(-1px);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.hero {
  min-height: 480px;
  background: radial-gradient(circle at 74% 56%, rgba(62, 111, 159, .44), transparent 27%),
              linear-gradient(90deg, var(--blue) 0%, #07346e 35%, #052754 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  right: 5.5%;
  bottom: -80px;
  width: 300px;
  height: 300px;
  background:
    radial-gradient(circle at 60% 70%, rgba(255, 255, 255, .12) 0 30%, transparent 31%),
    radial-gradient(ellipse at 49% 39%, rgba(255,255,255,.12) 0 22%, transparent 23%),
    radial-gradient(ellipse at 47% 9%, rgba(255,255,255,.12) 0 18%, transparent 19%);
  opacity: .95;
  transform: rotate(-7deg);
  z-index: -1;
}

.hero-visual {
  position: absolute;
  inset: 0 0 0 31%;
  background-image:
    linear-gradient(90deg, rgba(6,55,115,.88) 0%, rgba(6,55,115,.45) 35%, rgba(6,55,115,.20) 64%, rgba(6,55,115,.78) 100%),
    url("assets/hero-business.jpg");
  background-size: cover;
  background-position: center center;
  opacity: .95;
  z-index: -2;
}

.hero-content {
  min-height: 480px;
  display: flex;
  align-items: center;
  padding-top: 82px;
}

.hero-copy {
  width: min(100%, 590px);
  padding-top: 6px;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.35rem, 4.2vw, 3.35rem);
  line-height: .98;
  letter-spacing: -.045em;
  color: var(--white);
}

.hero p {
  width: min(100%, 570px);
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.42;
  color: rgba(255,255,255,.96);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.button-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(255, 115, 0, .18);
}

.button-secondary {
  color: var(--white);
  border: 2px solid rgba(255,255,255,.92);
  background: rgba(255,255,255,.02);
  padding-inline: 28px;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

.section {
  padding-block: 12px 8px;
}

.services-section {
  margin-top: 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 25px;
}

.section-heading h2 {
  display: inline-block;
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--text);
}

.section-heading h2::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 3px;
  background: var(--orange);
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  border-radius: 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.service-card,
.package-card,
.method-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.service-card {
  min-height: 214px;
  padding: 18px 17px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card .icon {
  width: 44px;
  height: 44px;
  color: var(--orange);
  margin-bottom: 10px;
}

.icon svg,
.method-icon svg,
.badge svg {
  width: 100%;
  height: 100%;
}

.icon svg *,
.method-icon svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12.2px;
  font-weight: 700;
  line-height: 1.36;
}

.service-card span {
  display: block;
  width: 58px;
  height: 3px;
  margin-top: auto;
  background: var(--orange);
  border-radius: 20px;
}

.mobile-dots {
  display: none;
}

.packages-section {
  padding-top: 3px;
}

.packages-grid {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(280px, 378px) minmax(230px, 300px);
  justify-content: center;
  align-items: start;
  gap: 62px;
  margin-top: 22px;
}

.package-card {
  min-height: 190px;
  padding: 15px 28px 20px;
  border: 1px solid rgba(10,48,98,.04);
  position: relative;
}

.package-card h3 {
  margin: 0 0 18px;
  text-align: center;
  color: var(--blue);
  font-size: 18px;
  letter-spacing: .04em;
  line-height: 1;
}

.package-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.package-card li {
  position: relative;
  margin: 0 0 5px;
  padding-left: 22px;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.26;
}

.package-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--orange);
  font-weight: 900;
}

.package-card.featured {
  border: 2px solid var(--orange);
  padding-top: 0;
  overflow: visible;
}

.package-card.featured h3 {
  background: var(--blue);
  color: var(--white);
  margin: 0 -28px 16px;
  padding: 8px 10px 7px;
  border-radius: 5px 5px 0 0;
  font-size: 24px;
}

.package-card .badge {
  position: absolute;
  top: 25px;
  right: -16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(255,115,0,.25);
}

.package-card .badge svg {
  width: 19px;
  height: 19px;
}

.package-card .badge svg * {
  fill: currentColor;
}

.method-section {
  padding-top: 4px;
  padding-bottom: 20px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 26px;
}

.method-card {
  min-height: 96px;
  padding: 18px 18px 16px 58px;
  display: grid;
  grid-template-columns: 57px 1fr;
  align-items: center;
  gap: 14px;
  position: relative;
}

.method-card .step {
  position: absolute;
  top: 13px;
  left: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-size: 15px;
}

.method-icon {
  width: 55px;
  height: 55px;
  color: var(--orange);
}

.method-card h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.1;
}

.method-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11.8px;
  font-weight: 700;
  line-height: 1.34;
}

.cta-band {
  background: var(--blue);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  left: 2.5%;
  bottom: -26px;
  width: 100px;
  height: 110px;
  opacity: .26;
  background:
    radial-gradient(ellipse at 40% 90%, rgba(255,255,255,.85) 0 28%, transparent 29%),
    radial-gradient(ellipse at 44% 52%, rgba(255,255,255,.85) 0 18%, transparent 19%),
    radial-gradient(ellipse at 44% 16%, rgba(255,255,255,.85) 0 15%, transparent 16%);
}

.cta-inner {
  min-height: 102px;
  display: grid;
  grid-template-columns: 1.55fr 1fr 260px;
  align-items: center;
  gap: 36px;
  padding-block: 18px;
}

.cta-inner h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.cta-inner p {
  margin: 0;
  color: rgba(255,255,255,.94);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.36;
}

.cta-inner .button {
  justify-self: end;
  min-height: 48px;
  border-radius: 9px;
  padding-inline: 30px;
}

.site-footer {
  background: var(--white);
  color: var(--blue);
}

.footer-grid {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1.35fr 1.75fr 1fr 1fr;
  gap: 35px;
  align-items: center;
  padding-block: 17px;
}

.footer-grid > div:not(:first-child) {
  border-left: 1px solid rgba(6,55,115,.35);
  padding-left: 34px;
}

.footer-grid strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.footer-grid p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

/* Content and discoverability refresh */
.main-nav { gap: 34px; }
.main-nav .language-link { padding: 4px 8px; border: 1px solid rgba(255,255,255,.55); border-radius: 5px; font-size: 12px; }
.main-nav .language-link::after { display: none; }
.hero-eyebrow,.section-kicker { margin: 0 0 10px; color: var(--orange); font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero .hero-eyebrow { color: #ffae57; }
.service-card { min-height: 236px; padding: 22px 16px 14px; }
.service-card-link { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; border: 1px solid transparent; }
.service-card-link:hover,.service-card-link:focus-visible { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(3,28,61,.17); border-color: rgba(252,127,0,.55); outline: none; }
.service-card-link:focus-visible { box-shadow: 0 0 0 4px rgba(252,127,0,.22),0 16px 34px rgba(3,28,61,.17); }
.service-card p,.method-card p { font-size: 14px; line-height: 1.48; font-weight: 600; }
.method-card { min-height: 128px; }
.section { padding-block: 48px; }
.outcomes-section { color: var(--white); background: linear-gradient(120deg,#002d6b,#064a95); }
.outcomes-layout,.faq-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px,7vw,90px); align-items: start; }
.outcomes-copy h2,.trust-layout h2,.faq-intro h2 { margin: 0 0 16px; font-family: var(--serif); font-size: clamp(1.85rem,3vw,2.75rem); line-height: 1.08; letter-spacing: -.035em; }
.outcomes-copy>p:last-child,.trust-layout p,.faq-intro p { margin: 0; font-size: 16px; line-height: 1.65; }
.outcomes-list { margin: 0; padding: 0; list-style: none; }
.outcomes-list li { display: grid; grid-template-columns: minmax(150px,.62fr) 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.22); }
.outcomes-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.22); }
.outcomes-list strong { color: #ffae57; font-family: var(--serif); font-size: 19px; }
.outcomes-list span { color: rgba(255,255,255,.9); line-height: 1.5; }
.trust-section { background: var(--white); }
.trust-layout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
.trust-layout p a { color: var(--blue); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.button-outline { border: 2px solid var(--blue); color: var(--blue); white-space: nowrap; }
.button-outline:hover,.button-outline:focus-visible { background: var(--blue); color: var(--white); }
.faq-section { background: #eef2f7; }
.faq-list { border-top: 1px solid rgba(0,57,136,.22); }
.faq-list details { border-bottom: 1px solid rgba(0,57,136,.22); }
.faq-list summary { position: relative; padding: 21px 42px 21px 0; cursor: pointer; list-style: none; color: var(--blue); font-family: var(--serif); font-size: 18px; font-weight: 700; }
.faq-list summary::after { content: "+"; position: absolute; right: 6px; color: var(--orange); font-family: var(--sans); font-size: 26px; top: 14px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -4px 48px 22px 0; color: var(--muted); line-height: 1.6; }

.service-focus-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.service-focus-links a {
  padding: 10px 14px;
  border: 1px solid rgba(0,57,136,.22);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.service-focus-links a:hover,
.service-focus-links a:focus-visible { border-color: var(--orange); color: #b45300; transform: translateY(-1px); }

/* Autonomous service pages */
.service-page { background: #f5f7fa; }
.service-hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 46%, rgba(252,127,0,.22), transparent 22%),
    linear-gradient(120deg, #002d6b 0%, #003988 55%, #07509d 100%);
  position: relative;
  overflow: hidden;
}
.service-hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -110px;
  bottom: -230px;
  border: 75px solid rgba(255,255,255,.06);
  border-radius: 50%;
}
.service-hero .container { padding-top: 108px; position: relative; z-index: 1; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 38px; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 700; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.service-hero h1 { max-width: 850px; margin: 0 0 22px; font-family: var(--serif); font-size: clamp(2.7rem,6vw,5.25rem); line-height: .96; letter-spacing: -.05em; }
.service-lead { max-width: 760px; margin: 0; color: rgba(255,255,255,.94); font-size: clamp(1.05rem,2vw,1.3rem); line-height: 1.55; font-weight: 600; }
.service-hero .hero-actions { margin-top: 30px; }
.aligned-hero-grid { display: grid; grid-template-columns: 124px 1fr; gap: 38px; align-items: start; }
.service-card-mark {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  padding: 25px;
  border-radius: 10px;
  background: var(--white);
  color: var(--orange);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.service-card-mark svg { width: 100%; height: 100%; }
.service-card-mark svg * { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.service-two-col { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(44px,8vw,110px); align-items: start; }
.service-two-col h2,
.service-process h2,
.related-layout h2 { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(2rem,4vw,3.4rem); line-height: 1.04; letter-spacing: -.04em; }
.service-two-col > div > p:last-child { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.detail-grid { display: grid; gap: 14px; }
.detail-card { padding: 24px 26px; background: var(--white); border-left: 4px solid var(--orange); border-radius: 7px; box-shadow: var(--shadow-soft); }
.detail-card h3 { margin: 0 0 7px; font-family: var(--serif); font-size: 20px; }
.detail-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.service-included { background: var(--white); }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.check-list li { position: relative; min-height: 72px; padding: 17px 18px 17px 48px; border: 1px solid rgba(0,57,136,.12); border-radius: 7px; background: #f8fafc; color: var(--text); font-weight: 700; line-height: 1.45; }
.check-list li::before { content: "✓"; position: absolute; left: 18px; top: 15px; color: var(--orange); font-size: 19px; font-weight: 900; }
.service-process { background: #eef2f7; }
.service-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-top: 30px; }
.service-step { min-height: 210px; padding: 24px; background: var(--white); border-radius: 8px; box-shadow: var(--shadow-soft); }
.service-step > strong { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 32px; border-radius: 50%; background: var(--blue); color: var(--white); }
.service-step h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 20px; }
.service-step p { margin: 0; color: var(--muted); line-height: 1.55; }
.related-section { background: var(--white); }
.related-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; align-items: center; }
.related-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.related-links a { min-height: 92px; display: grid; place-items: center; padding: 18px; border: 1px solid rgba(0,57,136,.16); border-radius: 8px; color: var(--blue); font-family: var(--serif); font-size: 18px; font-weight: 700; text-align: center; }
.related-links a:hover,.related-links a:focus-visible { border-color: var(--orange); box-shadow: var(--shadow-soft); }

@media (max-width: 1120px) {
  .container {
    width: min(100% - 32px, 1040px);
  }

  .header-inner {
    grid-template-columns: 230px 1fr 190px;
  }

  .main-nav {
    gap: 24px;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .packages-grid {
    gap: 28px;
  }

  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid > div:not(:first-child) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 820px) {
  body {
    background: #f7f7f8;
  }

  .container {
    width: min(100% - 30px, 680px);
  }

  .site-header {
    padding-top: max(24px, env(safe-area-inset-top));
  }

  .header-inner {
    grid-template-columns: 196px 1fr;
    align-items: center;
  }

  .brand {
    width: 185px;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    justify-self: end;
    width: 42px;
    height: 42px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 5px;
    background: transparent;
    border: 0;
    color: var(--white);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 29px;
    height: 3px;
    margin-left: auto;
    background: currentColor;
    border-radius: 10px;
  }

  .mobile-menu {
    position: fixed;
    top: max(88px, calc(78px + env(safe-area-inset-top)));
    left: 15px;
    right: 15px;
    z-index: 99;
    display: none;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    background: rgba(0, 57, 136, .97);
    box-shadow: 0 18px 50px rgba(0,0,0,.26);
  }

  .mobile-menu.open {
    display: grid;
    gap: 3px;
  }

  .mobile-menu a {
    padding: 13px 14px;
    border-radius: 10px;
    color: var(--white);
    font-weight: 800;
  }

  .mobile-menu a:hover,
  .mobile-menu a:focus-visible {
    background: rgba(255,255,255,.10);
  }

  .mobile-menu .mobile-cta {
    margin-top: 4px;
    text-align: center;
    border: 2px solid rgba(255,255,255,.92);
  }

  .hero {
    min-height: 615px;
    background: linear-gradient(180deg, #003988 0%, #07356e 100%);
  }

  .hero-visual {
    inset: 0;
    background-image:
      linear-gradient(180deg, rgba(6,55,115,.98) 0%, rgba(6,55,115,.92) 36%, rgba(6,55,115,.80) 100%),
      url("assets/hero-business.jpg");
    background-size: auto 100%;
    background-position: 64% 50%;
    opacity: .96;
  }

  .hero::after {
    width: 248px;
    height: 248px;
    right: -64px;
    bottom: 35px;
    opacity: .88;
  }

  .hero-content {
    min-height: 615px;
    align-items: flex-start;
    padding-top: 180px;
  }

  .hero-copy {
    width: 100%;
    padding-top: 0;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 9.2vw, 3.2rem);
    line-height: 1;
    letter-spacing: -.05em;
    max-width: 520px;
  }

  .hero p {
    font-size: 14.2px;
    max-width: 430px;
    font-weight: 700;
  }

  .hero-actions {
    gap: 14px;
    margin-top: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    min-height: 47px;
    padding-inline: 27px;
  }

  .section {
    padding-block: 30px 5px;
  }
  .services-section,.packages-section,.outcomes-section,.trust-section,.faq-section { padding-block: 46px; }
  .outcomes-layout,.trust-layout,.faq-layout { grid-template-columns: 1fr; gap: 30px; }
  .outcomes-list li { grid-template-columns: 1fr; gap: 6px; }
  .trust-layout .button { justify-self: start; }
  .service-hero { min-height: 590px; }
  .service-hero .container { padding-top: 145px; padding-bottom: 70px; }
  .service-hero h1 { font-size: clamp(2.45rem,12vw,4.1rem); }
  .aligned-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .service-card-mark { width: 82px; height: 82px; padding: 18px; }
  .service-two-col,.related-layout { grid-template-columns: 1fr; gap: 34px; }
  .check-list,.service-steps,.related-links { grid-template-columns: 1fr; }
  .service-step { min-height: 0; }

  .section-heading h2 {
    font-size: 26px;
  }

  .services-grid.snap-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(268px, 82%);
    grid-template-columns: none;
    gap: 15px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 20px 2px 10px;
    scrollbar-width: none;
  }

  .services-grid.snap-row::-webkit-scrollbar {
    display: none;
  }

  .service-card {
    min-height: 162px;
    display: grid;
    grid-template-columns: 44px 1fr;
    align-content: start;
    column-gap: 16px;
    text-align: left;
    scroll-snap-align: center;
    padding: 23px 20px 16px;
  }

  .service-card .icon {
    grid-row: span 3;
    margin-top: 0;
  }

  .service-card h3 {
    font-size: 17px;
    margin-bottom: 9px;
  }

  .service-card p {
    font-size: 12.6px;
    font-weight: 700;
  }

  .service-card span {
    grid-column: 2;
    margin-top: 18px;
    width: 48px;
  }

  .mobile-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin: 4px 0 19px;
  }

  .mobile-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d4d6da;
  }

  .mobile-dots span:first-child {
    background: var(--blue);
  }

  .packages-section {
    padding-top: 34px;
  }

  .packages-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 26px;
  }

  .package-card {
    min-height: 0;
    padding: 23px 28px 25px;
  }

  .package-card h3 {
    font-size: 18px;
  }

  .package-card.featured {
    order: 0;
  }

  .package-card.featured h3 {
    margin: -23px -28px 16px;
    padding-block: 10px 9px;
  }

  .package-card .badge {
    top: -14px;
    right: 12px;
  }

  .method-section {
    padding-top: 32px;
    padding-bottom: 28px;
  }

  .method-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .method-card {
    padding: 17px 18px 17px 58px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    padding-block: 30px 34px;
  }

  .cta-inner h2 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .cta-inner .button {
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-block: 24px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 28px, 390px);
  }

  .brand {
    width: 172px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    min-height: 560px;
    padding-top: 155px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 12.8px;
    line-height: 1.45;
  }

  .button {
    min-height: 43px;
    font-size: 12.8px;
    padding-inline: 24px;
  }

  .services-grid.snap-row {
    grid-auto-columns: minmax(252px, 88%);
  }

  .service-card {
    grid-template-columns: 40px 1fr;
  }

  .cta-inner h2 br {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}


.footer-note {
  margin-top: 6px !important;
  font-size: 12.5px !important;
  line-height: 1.35;
}

.footer-note a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page {
  background: var(--paper);
}

.legal-header {
  position: relative;
  background: var(--blue);
  padding-bottom: 20px;
}

.legal-hero {
  background:
    radial-gradient(circle at 84% 50%, rgba(255,255,255,.11), transparent 26%),
    linear-gradient(120deg, var(--blue) 0%, #062d69 100%);
  color: var(--white);
  padding: 70px 0 64px;
  overflow: hidden;
  position: relative;
}

.legal-hero::after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: -90px;
  width: 260px;
  height: 260px;
  background:
    radial-gradient(circle at 60% 70%, rgba(255, 255, 255, .12) 0 30%, transparent 31%),
    radial-gradient(ellipse at 49% 39%, rgba(255,255,255,.12) 0 22%, transparent 23%),
    radial-gradient(ellipse at 47% 9%, rgba(255,255,255,.12) 0 18%, transparent 19%);
  transform: rotate(-7deg);
}

.legal-hero .container {
  position: relative;
  z-index: 1;
}

.legal-hero .eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

.legal-hero h1 {
  margin: 0 0 18px;
  max-width: 860px;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.legal-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255,255,255,.94);
  font-weight: 700;
  line-height: 1.5;
}

.legal-hero .last-update {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255,255,255,.78);
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding-top: 34px;
  padding-bottom: 48px;
}

.legal-index {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 5px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.legal-index a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.legal-index a:hover,
.legal-index a:focus-visible {
  background: rgba(0,57,136,.07);
}

.legal-card {
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
  padding: clamp(24px, 4.5vw, 52px);
}

.legal-card h2 {
  margin: 34px 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--blue);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  margin: 22px 0 10px;
  color: var(--blue);
  font-size: 1rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-weight: 700;
}

.legal-card a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-card ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-table {
  display: grid;
  margin: 18px 0;
  border: 1px solid rgba(0,57,136,.16);
  border-radius: 8px;
  overflow: hidden;
}

.legal-table > div {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr;
}

.legal-table > div:first-child {
  background: var(--blue);
  color: var(--white);
}

.legal-table span,
.legal-table strong {
  padding: 14px;
  border-right: 1px solid rgba(0,57,136,.12);
  border-bottom: 1px solid rgba(0,57,136,.12);
  font-size: 13px;
  line-height: 1.35;
}

.legal-table > div:first-child strong {
  border-color: rgba(255,255,255,.18);
}

.legal-table span:last-child,
.legal-table strong:last-child {
  border-right: 0;
}

.legal-table > div:last-child span {
  border-bottom: 0;
}

.legal-disclaimer {
  margin-top: 34px;
  padding: 18px 20px;
  border-left: 4px solid var(--orange);
  background: rgba(252,127,0,.08);
  border-radius: 8px;
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 820px) {
  .legal-header {
    padding-bottom: 18px;
  }

  .legal-hero {
    padding: 54px 0 44px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 22px;
  }

  .legal-index {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-table,
  .legal-table > div {
    display: block;
  }

  .legal-table > div:first-child {
    display: none;
  }

  .legal-table span {
    display: block;
    border-right: 0;
  }

  .legal-table span:nth-child(1)::before {
    content: "Finalità: ";
    font-weight: 900;
    color: var(--blue);
  }

  .legal-table span:nth-child(2)::before {
    content: "Base giuridica: ";
    font-weight: 900;
    color: var(--blue);
  }

  .legal-table span:nth-child(3)::before {
    content: "Dati interessati: ";
    font-weight: 900;
    color: var(--blue);
  }
}

@media (max-width: 420px) {
  .legal-index {
    grid-template-columns: 1fr;
  }

  .legal-card {
    padding: 22px 18px;
  }
}

.contact-section {
  background: var(--paper);
  padding-top: 38px;
  padding-bottom: 54px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}

.contact-card,
.location-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 3vw, 36px);
}

.contact-card h3,
.location-card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--blue);
}

.contact-card p,
.location-card p,
.location-card dd {
  color: var(--muted);
  font-weight: 700;
}

.contact-card a,
.location-card a,
.form-note a,
.privacy-field a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-kicker {
  margin: 0 0 8px;
  color: var(--orange) !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-form {
  margin-top: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full,
.privacy-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(0, 57, 136, .20);
  border-radius: 8px;
  background: #fbfcff;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.form-field input,
.form-field select {
  min-height: 46px;
  padding: 0 13px;
}

.form-field textarea {
  min-height: 138px;
  padding: 12px 13px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(252, 127, 0, .14);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}

.privacy-field input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--orange);
  flex: 0 0 auto;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.location-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 20px;
}

.location-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,57,136,.12);
}

.location-list dt {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.location-list dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.38;
}

.map-link {
  display: inline-flex;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 900;
}

.map-consent {
  min-height: 322px;
  border: 1px solid rgba(0,57,136,.14);
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0,57,136,.10), rgba(252,127,0,.08)),
    var(--white);
}

.map-placeholder {
  min-height: 322px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: 28px;
}

.map-placeholder strong {
  font-family: var(--serif);
  color: var(--blue);
  font-size: 1.45rem;
  line-height: 1.1;
}

.map-placeholder p {
  max-width: 360px;
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.45;
}

.map-consent iframe {
  display: block;
  width: 100%;
  height: 322px;
  border: 0;
}

.contact-result {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.form-result {
  max-width: 720px !important;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
}

.form-result.error {
  border-left: 4px solid var(--orange);
}

.result-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px !important;
}

@media (max-width: 1120px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .85fr);
  }
}

@media (max-width: 820px) {
  .contact-section {
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .contact-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .location-card {
    padding: 22px 18px;
  }

  .map-consent,
  .map-placeholder,
  .map-consent iframe {
    min-height: 280px;
    height: 280px;
  }
}


/* WordPress integration */
.form-result.success {
  border-left: 4px solid #ffffff;
}
.wp-site-blocks { min-height: 100%; }
