/* AMC Consults — visual refresh */
:root {
  --ink: #0c1f1a;
  --ink-soft: #2a4038;
  --muted: #5a6f66;
  --paper: #ffffff;
  --paper-2: #f3f5f4;
  --white: #ffffff;
  --accent: #0b5c45;
  --accent-deep: #084536;
  --accent-soft: #e3f0eb;
  --coral: #e85a4f;
  --coral-deep: #d4453a;
  --line: rgba(12, 31, 26, 0.1);
  --line-strong: rgba(12, 31, 26, 0.16);
  --shadow: 0 14px 40px rgba(12, 31, 26, 0.1);
  --radius: 12px;
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 78px;
  --dark: #0a2e24;
  --dark-2: #0d3d30;
  --motion-dist: 28px;
  --motion-dur: 0.55s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--coral);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.7rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 1.35rem;
}

.section {
  padding: clamp(3.75rem, 8vw, 5.75rem) 0;
}

.section--light {
  background: var(--paper);
  color: var(--ink);
}

.section--muted {
  background: var(--paper-2);
  color: var(--ink);
}

.section--dark {
  background: linear-gradient(165deg, var(--dark) 0%, var(--dark-2) 55%, #0a3328 100%);
  color: #fff;
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark .lede,
.section--dark p {
  color: rgba(255, 255, 255, 0.82);
}

.section--dark .eyebrow {
  color: #7fd4b8;
}

.section--dark a:not(.btn) {
  color: #9fe0c9;
}

.section--dark a:not(.btn):hover {
  color: #fff;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid transparent;
  transition: min-height 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--coral));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(12, 31, 26, 0.08);
  border-bottom-color: var(--line);
}

.site-header.is-scrolled::after {
  transform: scaleX(1);
}

.site-header.is-scrolled .header-inner {
  min-height: 64px;
}

.site-header.is-scrolled .brand-logo {
  height: 42px;
}

.site-header.is-scrolled .brand-name {
  font-size: 1.1rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  transition: min-height 0.25s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
  transition: transform 0.25s ease;
}

.brand-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(110px, 28vw);
  object-fit: contain;
  flex-shrink: 0;
  transition: height 0.25s ease;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.15;
  transition: font-size 0.25s ease;
}

.brand-logo--sm {
  height: 46px;
}

.brand-logo--footer {
  height: 56px;
  max-width: 130px;
}

.footer-brand .brand-name {
  display: none;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.15rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav a:hover {
  color: var(--accent-deep);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.burger {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  padding: 0.75rem 0 1rem;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.7rem 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 92, 69, 0.28);
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 16px 34px rgba(11, 92, 69, 0.35);
}

.btn-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 28px rgba(232, 90, 79, 0.3);
}

.btn-coral:hover {
  background: var(--coral-deep);
  color: #fff;
}

.section--dark .btn-primary,
.cta-band .btn-coral {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(232, 90, 79, 0.35);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--accent);
}

.section--dark .btn-ghost,
.cta-band .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.section--dark .btn-ghost:hover,
.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 30, 24, 0.4) 0%, rgba(8, 30, 24, 0.58) 40%, rgba(8, 30, 24, 0.92) 100%),
    linear-gradient(90deg, rgba(8, 30, 24, 0.65) 0%, rgba(8, 30, 24, 0.2) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 10vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  max-width: 42rem;
}

.hero .eyebrow {
  color: #9fe0c9;
}

.hero h1 {
  color: #fff;
}

.hero .lede {
  color: rgba(255, 255, 255, 0.88);
}

.hero-anim {
  opacity: 0;
  transform: translateY(var(--motion-dist));
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.hero-points li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}

.hero-note {
  margin-top: 1.35rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 36rem;
}

/* Dark band: stats + quote */
.band-dark {
  background: var(--dark);
  color: #fff;
  padding: 0;
}

.stats {
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
  display: grid;
  gap: 1.25rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.stat span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.quote-bar {
  padding: 1.5rem 0 1.75rem;
  background: transparent;
  border: 0;
}

.quote-bar p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  color: #fff;
  text-align: center;
  letter-spacing: -0.02em;
}

.quote-bar .meta {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Principles — lined, not cards */
.grid-3 {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.principle {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.principle h3 {
  margin-top: 0;
}

.principle p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* Ambiti — air + lines */
.ambiti-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.ambito {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.45rem 0.35rem 1.45rem 0;
  opacity: 0;
  transition: background 0.22s ease, padding-left 0.22s ease, transform 0.22s ease;
}

.ambito.in {
  opacity: 1;
}

.ambito:hover {
  background: rgba(11, 92, 69, 0.04);
  padding-left: 0.65rem;
  transform: none;
  box-shadow: none;
}

.section--dark .ambito:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ambito p {
  margin: 0;
  color: var(--ink-soft);
}

.section--dark .ambito p {
  color: rgba(255, 255, 255, 0.78);
}

.ambito a.more {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
  position: relative;
}

.ambito a.more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.ambito:hover a.more::after {
  transform: scaleX(1);
}

.section--dark .ambito a.more {
  color: #9fe0c9;
}

.cta-band {
  margin-top: 2.25rem;
  padding: 1.65rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #083528 0%, #0b5c45 50%, #0a4738 100%);
  color: #fff;
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-band h3,
.cta-band p {
  color: #fff;
  margin: 0;
}

.cta-band p {
  opacity: 0.88;
}

.phone-link {
  color: inherit;
  font-weight: 700;
}

/* Audience */
.audience-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.audience-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  padding: 1.2rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.audience-item .num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--coral);
  line-height: 1;
  min-width: 2rem;
  font-weight: 700;
}

.audience-item p {
  margin: 0;
  color: var(--ink-soft);
}

.audience-note {
  margin-top: 1.75rem;
  padding: 1.35rem 0 0;
  border-radius: 0;
  border: 0;
  border-top: 2px solid var(--accent);
  background: transparent;
}

.audience-note h3 {
  margin-bottom: 0.4rem;
}

.audience-note p {
  margin: 0;
  color: var(--ink-soft);
}

/* Steps — timeline */
.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  border-left: 2px solid var(--line-strong);
  margin-left: 1.1rem;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 0 0 1.5rem 1.75rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  position: relative;
  opacity: 0;
}

.step.is-inview {
  opacity: 1;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: -1.2rem;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-display);
  box-shadow: 0 0 0 4px var(--paper-2);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.step.is-inview::before {
  background: var(--accent);
  transform: scale(1.08);
  box-shadow: 0 0 0 4px var(--paper-2), 0 0 0 8px rgba(11, 92, 69, 0.15);
}

.step p {
  margin: 0;
  color: var(--ink-soft);
}

/* Vantaggi — lined */
.vantaggi-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.vantaggio {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.vantaggio p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.section--dark .vantaggio {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.section--dark .vantaggi-grid {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.section--dark .vantaggio p {
  color: rgba(255, 255, 255, 0.78);
}

/* FAQ */
.faq-groups {
  display: grid;
  gap: 2rem;
}

.faq-group h3 {
  margin-bottom: 0.85rem;
  color: var(--accent);
}

.section--dark .faq-group h3 {
  color: #7fd4b8;
}

.faq details {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1rem 0;
  margin-bottom: 0;
}

.section--dark .faq details {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--coral);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.75rem 0 0.15rem;
  color: var(--ink-soft);
}

.section--dark .faq details p {
  color: rgba(255, 255, 255, 0.78);
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 1.75rem;
}

.contact-aside {
  padding: 0;
  background: transparent;
  border: 0;
}

.contact-aside h3 {
  margin-top: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-list li {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-list strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.15rem;
}

.after-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
}

.form-card {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: none;
  color: var(--ink);
}

.form-card h2 {
  font-size: 1.55rem;
  color: var(--ink);
}

.form-card .lede {
  color: var(--ink-soft);
}

.form-grid {
  display: grid;
  gap: 0.95rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--ink);
}

label .hint {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.82rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper-2);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 92, 69, 0.15);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.section--dark > .wrap > .contact-layout > .contact-aside .form-note {
  color: rgba(255, 255, 255, 0.55);
}

.form-card .form-note a {
  color: var(--accent);
}

.form-error {
  display: none;
  margin: 0.5rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #fde8e8;
  color: #8a1f1f;
  font-size: 0.9rem;
}

.form-error.show {
  display: block;
}

.form-status {
  display: none;
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 650;
}

.form-status.show {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(11, 92, 69, 0.25);
  border-top-color: var(--accent-deep);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--coral);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-brand .brand {
  display: inline-flex;
  background: #fff;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  max-width: 28rem;
  font-size: 0.94rem;
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.62);
}

.footer-bottom {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Legal / thank you */
.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.prose {
  max-width: 48rem;
  padding-bottom: 3.5rem;
}

.prose h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.thank-card {
  max-width: 36rem;
  margin: 2rem auto 4rem;
  text-align: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  box-shadow: none;
}

.thank-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
}

/* Motion helpers */
.reveal {
  opacity: 0;
  transform: translateY(var(--motion-dist));
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.2%, -1%, 0);
  }
}

@media (min-width: 720px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2rem;
    border-top: 0;
  }

  .principle {
    border-top: 1px solid var(--line-strong);
    border-bottom: 0;
    padding-top: 1.5rem;
  }

  .ambiti-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2.5rem;
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2.5rem;
  }

  .vantaggi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2.5rem;
  }

  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .cta-band {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

@media (min-width: 980px) {
  .nav {
    display: flex;
  }

  .burger {
    display: none;
  }

  .vantaggi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 719px) {
  :root {
    --motion-dist: 18px;
    --motion-dur: 0.4s;
  }
}

/* Media layouts */
.media-split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.media-split__visual {
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

.media-split__visual img {
  width: 100%;
  height: clamp(220px, 40vw, 360px);
  object-fit: cover;
  object-position: center;
}

.media-split__body .lede:last-child {
  margin-bottom: 0;
}

.media-band {
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.media-band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 30, 24, 0.25) 0%, rgba(8, 30, 24, 0.82) 100%);
}

.media-band__content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 6vw, 3.25rem) 0;
  max-width: 38rem;
}

.media-band .eyebrow {
  color: #9fe0c9;
}

.media-band h2 {
  color: #fff;
}

.media-band p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.15rem;
}

.page-hero-media {
  position: relative;
  min-height: clamp(280px, 48vw, 420px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.page-hero-media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 30, 24, 0.35) 0%, rgba(8, 30, 24, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 30, 24, 0.55) 0%, rgba(8, 30, 24, 0.2) 70%);
}

.page-hero-media .wrap {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 8vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
  max-width: min(100% - 2rem, 40rem);
  margin-inline: auto;
  width: min(100% - 2rem, var(--max));
}

.page-hero-media .eyebrow {
  color: #9fe0c9;
}

.page-hero-media h1 {
  color: #fff;
}

.page-hero-media .lede {
  color: rgba(255, 255, 255, 0.88);
}

.prose-media {
  margin: 1.75rem 0 2rem;
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.prose-media img {
  width: 100%;
  height: clamp(200px, 36vw, 340px);
  object-fit: cover;
}

.prose-media figcaption {
  padding: 0.65rem 0 1rem;
  font-size: 0.86rem;
  color: var(--muted);
}

@media (min-width: 860px) {
  .media-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }

  .media-split--rev {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .media-split--rev .media-split__visual {
    order: 2;
  }

  .media-split__visual {
    border-bottom: 0;
    border-left: 1px solid var(--line);
    padding-left: 0;
  }

  .media-split__visual img {
    height: 100%;
    min-height: 320px;
    max-height: 420px;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 520px;
  margin-inline: auto;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(12, 31, 26, 0.18);
  padding: 1.15rem 1.2rem 1.2rem;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner h2 {
  font-size: 1.1rem;
  margin: 0 0 0.45rem;
}

.cookie-banner p {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--accent);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions .btn {
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  font-size: 0.86rem;
}

.cookie-panel {
  display: none;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.cookie-panel.open {
  display: block;
}

.cookie-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.cookie-opt input {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.cookie-opt strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}

.footer-cookie-btn {
  font: inherit;
  color: rgba(255, 255, 255, 0.82);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.footer-cookie-btn:hover {
  color: var(--coral);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .reveal,
  .btn,
  .ambito,
  .brand,
  .brand-logo,
  .brand-name,
  .site-header,
  .header-inner,
  .nav a::after,
  .ambito a.more::after,
  .step::before {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .hero-anim,
  .ambito,
  .step {
    opacity: 1;
    transform: none;
  }
}
