/* ==========================================================================
   ACM CAPITAL PARTNERS — One-pager  v3.1 — angoli squadrati, tono istituzionale
   Direzione: "quiet capital, modern surface".
   Fondo chiaro con velo verde, card morbide, pannello CTA verde profondo,
   glow ambientale derivato dal verde del logo (#87C232).
   Type: Sora (display) + Inter (testo).
   ========================================================================== */

:root {
  --bg: #F7F8F4;
  --surface: #FFFFFF;
  --ink: #101509;
  --muted: #4F584A;
  --faint: #8A9184;
  --line: #E4E8DE;
  --accent: #3E6B21;          /* verde profondo: testo/bottoni */
  --accent-dark: #2F5218;
  --logo-green: #87C232;      /* verde logo: grafica, glow, dot */
  --panel: #17240E;           /* pannello CTA scuro */
  --font-display: 'Sora', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --r: 2px;
  --r-lg: 3px;
  --r-pill: 2px;
  --shadow: 0 1px 2px rgba(16, 21, 9, 0.04), 0 8px 24px -14px rgba(16, 21, 9, 0.10);
  --ease: 0.3s ease;
}

/* Reset minimo */
.acm-page *,
.acm-page *::before,
.acm-page *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.acm-page {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.acm-page a {
  text-decoration: none;
  color: inherit;
}

.acm-page h1,
.acm-page h2,
.acm-page h3 {
  font-family: var(--font-display);
}

/* Skip link */
.acm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  border-radius: 0;
}

.acm-skip:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Header — vetro fisso
   -------------------------------------------------------------------------- */
.acm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 244, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.acm-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 24px;
}

.acm-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.acm-brand__img {
  height: 30px;
  width: auto;
  display: block;
}

.acm-brand__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.acm-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.acm-nav a {
  transition: color var(--ease);
}

.acm-nav a:hover,
.acm-nav a:focus-visible {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Bottoni — pillole
   -------------------------------------------------------------------------- */
.acm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.acm-btn--fill {
  background: var(--accent);
  color: #fff;

}

.acm-btn--fill:hover,
.acm-btn--fill:focus-visible {
  background: var(--accent-dark);
}

.acm-btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.acm-btn--ghost:hover,
.acm-btn--ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.acm-btn--ink {
  background: var(--ink);
  color: #fff;
}

.acm-btn--ink:hover,
.acm-btn--ink:focus-visible {
  background: var(--accent-dark);
}

.acm-btn--bright {
  background: var(--logo-green);
  color: var(--panel);
}

.acm-btn--bright:hover,
.acm-btn--bright:focus-visible {
  background: #9AD54A;
}

.acm-btn--small {
  padding: 9px 20px;
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   Hero — glow ambientale
   -------------------------------------------------------------------------- */
.acm-hero {
  position: relative;
  isolation: isolate;
}

.acm-hero::before,
.acm-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
}

.acm-hero::before {
  width: 560px;
  height: 560px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(135, 194, 50, 0.55), transparent 65%);
}

.acm-hero::after {
  width: 420px;
  height: 420px;
  bottom: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(62, 107, 33, 0.28), transparent 65%);
}

.acm-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(80px, 14vh, 150px) 24px clamp(60px, 9vh, 110px);
  animation: acm-rise 0.7s ease both;
}

@keyframes acm-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.acm-hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -1.5px;
  max-width: 15ch;
  margin-bottom: 26px;
}

.acm-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.acm-hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 36px;
}

.acm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}

/* Focus areas — riga tipografica, non bottoni */
.acm-focus {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.acm-focus li {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Strategia — card
   -------------------------------------------------------------------------- */
.acm-strategy {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 80px) 24px;
}

.acm-strategy__head {
  max-width: 640px;
  margin-bottom: 44px;
}

.acm-strategy__head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.acm-strategy__head p {
  font-size: 16.5px;
  color: var(--muted);
}

.acm-strategy__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.acm-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px 38px;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.acm-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 2px 4px rgba(16, 21, 9, 0.04), 0 14px 32px -16px rgba(16, 21, 9, 0.14);
}

.acm-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r);
  background: rgba(135, 194, 50, 0.16);
  color: var(--accent);
  margin-bottom: 22px;
}

.acm-card__icon svg {
  width: 24px;
  height: 24px;
}

.acm-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.acm-card p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Banda CTA — pannello scuro
   -------------------------------------------------------------------------- */
.acm-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px clamp(40px, 7vh, 80px);
}

.acm-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  background: var(--panel);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(36px, 5vw, 56px);
}

.acm-panel::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  top: -220px;
  right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(135, 194, 50, 0.35), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}

.acm-panel__title {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}

.acm-panel__sub {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.72);
}

.acm-panel__address {
  font-style: normal;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}

.acm-panel__mail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.acm-panel__email {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: color var(--ease);
}

.acm-panel__email:hover,
.acm-panel__email:focus-visible {
  color: var(--logo-green);
}

@media (max-width: 720px) {
  .acm-panel__mail {
    align-items: flex-start;
  }
}


/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.acm-footer {
  border-top: 1px solid var(--line);
}

.acm-footer__disclaimer,
.acm-footer__copy {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--faint);
}

.acm-footer__disclaimer {
  padding-top: 26px;
  padding-bottom: 12px;
}

.acm-footer__disclaimer > * { max-width: 760px; }

.acm-footer__copy {
  padding-bottom: 26px;
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.acm-strategy__grid .acm-card:nth-child(2) { transition-delay: 0.08s; }
.acm-strategy__grid .acm-card:nth-child(3) { transition-delay: 0.16s; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .acm-strategy__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .acm-nav {
    gap: 16px;
    font-size: 13px;
  }

  .acm-hero__inner {
    padding-top: 64px;
    padding-bottom: 48px;
  }

  .acm-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Accessibilità
   -------------------------------------------------------------------------- */
.acm-page :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

  .acm-page * {
    transition: none !important;
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Neutralizza margini/admin-bar del tema sulla one-page */
body.acm-onepager-body {
  margin: 0;
  background: #F7F8F4;
}
