:root {
  --ink: #182024;
  --muted: #5b676d;
  --paper: #f4f1eb;
  --surface: #fbfaf7;
  --line: rgba(24, 32, 36, 0.14);
  --green: #18463a;
  --green-deep: #0d2d27;
  --copper: #b7653b;
  --blue: #244b6f;
  --cream: #fffdf8;
  --shadow: 0 22px 80px rgba(19, 30, 36, 0.14);
  --radius: 8px;
  --container: 1180px;
  font-family: "Manrope", "Aptos", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(24, 70, 58, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 70, 58, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
}

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

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

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
}

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
}

h1 {
  font-size: clamp(4rem, 11vw, 10.5rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 5.25rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.05rem;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(calc(100% - 32px), var(--container));
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 14px 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 20px 70px rgba(13, 45, 39, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.mobile-menu-button {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(24, 70, 58, 0.18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 253, 248, 0.82);
  cursor: pointer;
}

.mobile-menu-line {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.brand img {
  width: 142px;
  height: auto;
}

.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.main-nav a,
.header-cta,
.button,
.text-link {
  font-size: 0.82rem;
  font-weight: 800;
}

.main-nav a {
  padding: 11px 13px;
  color: #29363b;
  border-radius: 999px;
}

.main-nav a:hover {
  background: rgba(24, 70, 58, 0.08);
}

.header-cta,
.button.primary,
.contact-form button {
  color: #fff;
  background: var(--green);
}

.header-cta {
  padding: 14px 18px;
  border-radius: 999px;
}

.section-pad {
  padding: clamp(86px, 9vw, 120px) max(22px, calc((100vw - var(--container)) / 2));
}

.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: end;
  padding: 180px max(22px, calc((100vw - var(--container)) / 2)) 42px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 28, 25, 0.88), rgba(10, 28, 25, 0.56) 43%, rgba(10, 28, 25, 0.16)),
    linear-gradient(180deg, rgba(10, 28, 25, 0.18), rgba(10, 28, 25, 0.64));
}

.hero-content {
  max-width: 990px;
  color: #fff;
}

.eyebrow,
.section-kicker,
.service-breadcrumb {
  margin: 0 0 20px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: #f0b58e;
}

.hero-copy {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.36rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.hero-proof {
  width: min(100%, 760px);
  display: flex;
  gap: 1px;
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.hero-proof div {
  flex: 1 1 0;
  padding: 22px;
}

.hero-proof strong {
  display: block;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
}

.home-lead {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 42px;
  padding-top: 180px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(13, 45, 39, 0.94), rgba(36, 75, 111, 0.76)),
    url("https://studiodonati.it/wp-content/uploads/2026/04/EV_0339-1024x683.jpg") center / cover;
}

.home-lead-copy {
  max-width: 1060px;
}

.home-lead-copy .eyebrow {
  color: #f0b58e;
}

.home-lead-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.home-proof {
  margin-top: 0;
}

.intro-section {
  background: var(--surface);
}

.intro-grid {
  display: flex;
  gap: clamp(40px, 7vw, 108px);
}

.intro-grid > h2 {
  flex: 0.95 1 0;
}

.intro-grid > .copy-stack {
  flex: 0.8 1 320px;
}

.copy-stack p:first-child {
  margin-top: 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: clamp(22px, 4vw, 42px);
  align-items: end;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.section-heading.compact {
  align-items: start;
}

.section-heading.compact > *:first-child {
  flex: 0.85 1 0;
}

.section-heading.compact > *:last-child {
  flex: 0.55 1 280px;
}

.text-link {
  color: var(--green);
  border-bottom: 2px solid rgba(24, 70, 58, 0.24);
  padding-bottom: 6px;
}

.section-note {
  max-width: 350px;
  margin: 0;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.service-card {
  flex: 1 1 calc(33.333% - 14px);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(183, 101, 59, 0.48);
  background: #fff;
}

.service-card span {
  color: var(--copper);
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.3rem;
}

.service-card h3 {
  margin-top: auto;
  font-size: 1.3rem;
}

.service-card p {
  max-width: 33rem;
  margin-bottom: 0;
}

.feature-card {
  color: #fff;
  background: var(--green);
}

.feature-card p,
.feature-card span {
  color: rgba(255, 255, 255, 0.82);
}

.method-section {
  background: var(--surface);
}

.method-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.method-card {
  flex: 1 1 calc(25% - 1px);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(183, 101, 59, 0.08), transparent 42%),
    var(--cream);
}

.method-card span {
  color: var(--copper);
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.6rem;
  line-height: 1;
}

.method-card h3 {
  margin-top: auto;
  font-size: 1.3rem;
}

.method-card p {
  margin-bottom: 0;
}

.technology-band {
  color: #fff;
  background:
    radial-gradient(circle at 15% 18%, rgba(183, 101, 59, 0.24), transparent 33%),
    linear-gradient(135deg, var(--green-deep), #182f43);
}

.technology-band p {
  color: rgba(255, 255, 255, 0.78);
}

.split-layout {
  display: flex;
  gap: clamp(40px, 7vw, 110px);
}

.split-layout > *:first-child {
  flex: 0.85 1 0;
}

.split-layout > *:last-child {
  flex: 0.9 1 320px;
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-list article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.tech-list p {
  margin-bottom: 0;
}

.clients-section {
  background: var(--surface);
}

.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.logo-cloud span {
  flex: 1 1 calc(20% - 1px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 94px;
  padding: 18px;
  color: #344146;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  background: #fffdf8;
}

.event-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.event-grid .event-card {
  flex: 1 1 calc(33.333% - 16px);
}

.event-grid.four-up .event-card {
  flex-basis: calc(25% - 16px);
}

.event-grid.single-feature .event-card {
  flex-basis: 100%;
}

.current-order {
  background: var(--paper);
}

.alt-band {
  background: var(--surface);
}

.event-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 16px 50px rgba(24, 32, 36, 0.08);
}

.event-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.event-card div {
  padding: clamp(22px, 3vw, 30px);
}

.event-card span {
  color: var(--copper);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-card h3 {
  margin-top: 12px;
  font-size: 1.22rem;
  line-height: 1.22;
}

.event-grid.single-feature .event-card {
  display: flex;
  align-items: stretch;
}

.event-grid.single-feature .event-card img {
  flex: 0 0 48%;
  height: 100%;
  min-height: 320px;
  aspect-ratio: auto;
}

.event-grid.single-feature .event-card div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 54px);
}

.event-grid.single-feature .event-card h3 {
  max-width: 820px;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1.02;
}

.event-grid.single-feature .event-card p {
  max-width: 620px;
  font-size: 1.05rem;
}

.quick-links-section {
  padding-top: 48px;
  padding-bottom: 48px;
  background: var(--green-deep);
}

.quick-links {
  display: flex;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
}

.quick-links a {
  flex: 1 1 0;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.quick-links span {
  color: #f0b58e;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-links strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.contact-section {
  background: var(--green-deep);
}

.contact-panel {
  display: flex;
  gap: clamp(34px, 7vw, 96px);
  color: #fff;
}

.contact-panel > *:first-child {
  flex: 0.7 1 0;
}

.contact-panel > *:last-child {
  flex: 0.9 1 320px;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-form label {
  flex: 1 1 calc(50% - 14px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-form label:nth-child(5) {
  flex-basis: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 15px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
}

.contact-form button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  padding: 58px 22px;
  text-align: center;
  background: #10191c;
}

.site-footer img {
  width: 132px;
  filter: brightness(0) invert(1);
}

.site-footer p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 800;
}

.service-page {
  background: var(--surface);
}

.service-hero {
  padding-top: 190px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(13, 45, 39, 0.95), rgba(36, 75, 111, 0.92)),
    url("https://studiodonati.it/wp-content/uploads/2024/05/IMG-20240606-WA0020.jpg") center / cover;
}

.service-breadcrumb {
  color: rgba(255, 255, 255, 0.68);
}

.service-hero-grid {
  display: flex;
  gap: 42px;
  align-items: end;
}

.service-hero-grid > *:first-child {
  flex: 0.9 1 0;
}

.service-hero-grid > *:last-child {
  flex: 0.38 1 260px;
}

.service-hero p {
  max-width: 790px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.16rem;
}

.service-summary {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.service-summary span {
  color: #f0b58e;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-summary p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.service-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 52px;
}

.content-index {
  flex: 0 0 260px;
  position: sticky;
  top: 120px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-index a {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  font-size: 0.86rem;
  font-weight: 800;
}

.service-block {
  flex: 1 1 calc(100% - 312px);
  padding-bottom: 82px;
}

.service-block + .service-block {
  margin-left: 312px;
  border-top: 1px solid var(--line);
  padding-top: 82px;
}

.benefit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.benefit-grid div {
  flex: 1 1 calc(50% - 14px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 34px;
}

.accordion-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.accordion-list summary {
  cursor: pointer;
  padding: 22px 24px;
  font-weight: 900;
}

.accordion-list ul {
  margin: 0;
  padding: 0 28px 24px 44px;
  color: var(--muted);
  line-height: 1.72;
}

@media (max-width: 980px) {
  .site-header {
    gap: 18px;
  }

  .main-nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .intro-grid,
  .section-heading,
  .section-heading.compact,
  .split-layout,
  .contact-panel,
  .service-hero-grid,
  .service-content {
    flex-direction: column;
  }

  .service-card,
  .event-grid .event-card,
  .event-grid.four-up .event-card,
  .event-grid.single-feature .event-card,
  .method-card,
  .logo-cloud span,
  .benefit-grid div,
  .quick-links a {
    flex-basis: calc(50% - 14px);
  }

  .event-grid.single-feature .event-card {
    flex-basis: 100%;
  }

  .content-index {
    flex-basis: auto;
    position: static;
  }

  .service-block,
  .service-block + .service-block {
    flex-basis: 100%;
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }

  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), var(--container));
    min-height: 62px;
    padding: 10px 10px 10px 14px;
  }

  .brand img {
    width: 112px;
  }

  .header-cta {
    padding: 12px 13px;
    font-size: 0.74rem;
  }

  .hero-section {
    min-height: 96vh;
    padding-top: 148px;
  }

  .hero-proof,
  .service-grid,
  .event-grid,
  .method-grid,
  .logo-cloud,
  .benefit-grid,
  .contact-form,
  .quick-links {
    flex-direction: column;
  }

  .hero-proof div,
  .service-card,
  .event-grid .event-card,
  .event-grid.four-up .event-card,
  .event-grid.single-feature .event-card,
  .method-card,
  .logo-cloud span,
  .benefit-grid div,
  .contact-form label,
  .quick-links a {
    flex-basis: auto;
  }

  .hero-proof div {
    padding: 18px;
  }

  .section-pad {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .event-grid.single-feature .event-card {
    flex-direction: column;
  }

  .event-grid.single-feature .event-card img {
    flex-basis: auto;
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .service-card {
    min-height: 220px;
  }

  .contact-form label:nth-child(5) {
    flex-basis: auto;
  }
}

/* Multi-page prototype navigation and inner-page components */
.nav-group {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-trigger {
  cursor: pointer;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  min-width: 240px;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 20px 70px rgba(13, 45, 39, 0.14);
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  display: flex;
}

.nav-dropdown a {
  justify-content: flex-start;
  padding: 10px 12px;
  white-space: nowrap;
}

.main-nav a.is-active,
.nav-trigger:hover {
  color: var(--green);
  background: rgba(24, 70, 58, 0.08);
}

.page-hero {
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding-top: clamp(146px, 16vw, 180px);
  padding-bottom: clamp(64px, 7vw, 96px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(13, 45, 39, 0.94), rgba(36, 75, 111, 0.78)),
    url("https://studiodonati.it/wp-content/uploads/2026/04/EV_0339-1024x683.jpg") center / cover;
}

.page-hero-copy {
  max-width: 980px;
}

.page-hero-copy h1 {
  max-width: 1080px;
  font-size: clamp(2.45rem, 5.4vw, 5.8rem);
  line-height: 1;
}

.page-hero-copy .eyebrow {
  color: #f0b58e;
}

.page-hero-copy p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.page-section,
.legal-section {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 4vw, 38px);
  background: var(--surface);
}

.content-flow {
  flex: 1 1 620px;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 30px);
}

.content-card {
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 16px 50px rgba(24, 32, 36, 0.06);
  overflow-wrap: break-word;
}

.content-card h2 {
  max-width: 900px;
  font-size: clamp(1.9rem, 3.4vw, 3.7rem);
}

.source-content {
  color: var(--muted);
}

.source-content section {
  display: block;
}

.source-content section + section {
  margin-top: clamp(30px, 4vw, 54px);
}

.source-content h2 {
  max-width: 900px;
  margin: clamp(36px, 5vw, 62px) 0 18px;
  color: var(--ink);
  font-size: clamp(1.65rem, 2.7vw, 3rem);
  line-height: 1.08;
}

.source-content h2:first-child {
  margin-top: 0;
}

.source-content p,
.source-content li {
  max-width: 920px;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.78;
}

.source-content p {
  margin: 0 0 18px;
}

.source-content p:last-child {
  margin-bottom: 0;
}

.source-content ul,
.source-content ol {
  max-width: 900px;
  margin: 18px 0 30px;
  padding-left: 1.25rem;
}

.source-content li + li {
  margin-top: 12px;
}

.source-content strong {
  color: var(--ink);
  font-weight: 900;
}

.source-content a {
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(24, 70, 58, 0.24);
  text-underline-offset: 4px;
}

.content-card h2 + p {
  margin-top: 20px;
}

.clean-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.clean-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

.clean-list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--copper);
}

.ordered-list {
  counter-reset: service-step;
}

.ordered-list li {
  counter-increment: service-step;
  padding-left: 42px;
}

.ordered-list li::before {
  content: counter(service-step);
  top: 13px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.info-cards,
.metric-cards,
.app-cards,
.language-list,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.info-card {
  flex: 1 1 calc(33.333% - 14px);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 12px 42px rgba(24, 32, 36, 0.06);
}

.info-card h3 {
  font-size: 1.28rem;
}

.info-card p {
  margin-bottom: 0;
}

.metric-cards .info-card {
  min-height: 160px;
  color: #fff;
  background: var(--green);
}

.metric-cards .info-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.metric-cards .info-card p {
  color: rgba(255, 255, 255, 0.78);
}

.app-cards .info-card {
  min-height: 180px;
}

.side-nav {
  flex: 0 0 260px;
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-self: flex-start;
}

.side-nav a {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.side-nav a:hover {
  border-color: rgba(183, 101, 59, 0.5);
}

.page-section.with-sidebar {
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(28px, 4.5vw, 58px);
}

.filter-row {
  margin-bottom: 30px;
}

.filter-row a,
.language-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.language-list a {
  color: var(--ink);
}

.consent-line {
  flex-basis: 100%;
  flex-direction: row;
  align-items: center;
  font-size: 0.76rem;
}

.consent-line input {
  width: auto;
}

.contact-choice,
.form-note {
  flex-basis: 100%;
}

.contact-choice span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 14px;
  font-weight: 700;
}

.contact-choice input {
  width: auto;
}

.form-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.form-note a {
  color: #f0b58e;
  font-weight: 900;
}

.site-footer {
  align-items: stretch;
  text-align: left;
}

.footer-inner {
  width: min(100%, var(--container));
  display: flex;
  gap: clamp(30px, 6vw, 90px);
  justify-content: space-between;
}

.footer-brand {
  flex: 0 1 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav {
  flex: 1 1 640px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-end;
}

.footer-nav div {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav h3 {
  color: #fff;
  font-size: 0.9rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    align-items: center;
  }

  .main-nav {
    display: none;
  }

  .page-section.with-sidebar,
  .footer-inner {
    flex-direction: column;
  }

  .side-nav {
    position: static;
    flex-basis: auto;
    width: 100%;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .page-hero {
    min-height: 68vh;
    padding-top: 140px;
  }

  .info-cards,
  .metric-cards,
  .app-cards,
  .language-list,
  .filter-row {
    flex-direction: column;
  }

  .info-card,
  .metric-cards .info-card,
  .app-cards .info-card {
    flex-basis: auto;
    min-height: auto;
  }

  .footer-inner,
  .footer-nav {
    gap: 24px;
  }
}

/* Import-friendly tablet/mobile navigation for Figma and Webflow handoff */
@media (max-width: 980px) {
  body.is-menu-locked {
    overflow: hidden;
  }

  .site-header {
    min-height: 66px;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .site-header.is-menu-open .mobile-menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-menu-open .mobile-menu-line:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .mobile-menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    overflow: hidden;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 24px 80px rgba(13, 45, 39, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 220ms ease, padding 220ms ease, opacity 180ms ease, transform 180ms ease;
  }

  .site-header.is-menu-open .main-nav {
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    padding: 12px;
    border-color: var(--line);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header .main-nav > a,
  .site-header .nav-trigger {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--radius);
  }

  .site-header .nav-group {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header .nav-dropdown {
    position: static;
    width: 100%;
    min-width: 0;
    display: flex;
    gap: 2px;
    padding: 0 0 8px 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-header .nav-dropdown a {
    padding: 9px 12px;
    color: var(--muted);
    white-space: normal;
  }

  .page-hero-copy h1,
  .content-card h2,
  .source-content h2 {
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .header-cta {
    display: none;
  }

  .mobile-menu-button {
    width: 44px;
    height: 44px;
    margin-left: auto;
  }

  .page-hero {
    min-height: 60vh;
    padding-top: 128px;
    padding-bottom: 64px;
  }

  .page-hero-copy h1 {
    font-size: clamp(2.25rem, 12vw, 4.3rem);
  }

  .content-card {
    padding: 24px 20px;
  }

  .source-content p,
  .source-content li {
    line-height: 1.68;
  }

  .source-content ul,
  .source-content ol {
    padding-left: 1.1rem;
  }
}


/* WordPress theme extras */
.custom-logo-link,
.brand {
  display: inline-flex;
  align-items: center;
}

.page-hero {
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding-top: clamp(146px, 16vw, 180px);
  padding-bottom: clamp(64px, 7vw, 96px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(13, 45, 39, 0.94), rgba(36, 75, 111, 0.78)),
    url("https://studiodonati.it/wp-content/uploads/2026/04/EV_0339-1024x683.jpg") center / cover;
}

.page-hero-copy {
  max-width: 980px;
}

.page-hero-copy p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.page-section,
.legal-section {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 4vw, 38px);
  background: var(--surface);
}

.content-card {
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 16px 50px rgba(24, 32, 36, 0.06);
}

.source-content h2 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3.4vw, 3.7rem);
}

.source-content p,
.source-content li {
  max-width: 920px;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.78;
}

.source-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-notice {
  flex-basis: 100%;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.5;
}

.form-notice-success {
  color: #fff;
  background: rgba(28, 122, 87, 0.42);
}

.form-notice-error,
.form-notice-missing,
.form-notice-invalid {
  color: #fff;
  background: rgba(183, 101, 59, 0.42);
}

.post-navigation,
.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 32px;
}

.footer-widget-area {
  width: min(100%, var(--container));
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
}

.footer-widget-area .widget {
  margin: 0;
}

.footer-widget-area .widgettitle {
  margin: 0 0 10px;
  color: #fff;
  font-size: 0.9rem;
}

.footer-widget-area a {
  color: #f0b58e;
  font-weight: 800;
}

@media (max-width: 980px) {
  .page-section,
  .footer-inner {
    flex-direction: column;
  }
}
