/* ==========================================================================
   MMit di Marco Marzolla – foglio di stile del sito
   Regole visive: design/brand/Linee-guida-marchio-MMit.pdf (palette Argento,
   carattere Nunito Sans). Nessuna risorsa esterna, nessun cookie.
   ========================================================================== */

/* ---------- Carattere: Nunito Sans (SIL OFL), ospitato sul sito ---------- */
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/nunito-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/nunito-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/nunito-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Colori del marchio (palette Argento) ---------- */
:root {
  --fondo: #EEF0F1;
  --superficie: #F8F9FA;
  --bordo: #D5D9DC;
  --argento: #8F969B;
  --grafite: #2A2F33;
  --grafite-profonda: #111417;
  --testo: #23282C;
  --testo-2: #626A70;
  --testo-su-scuro: #F1F3F4;
  --testo-2-su-scuro: #B4B9BD;
  --verde: #22A060;
  --verde-testo: #1B7A49;          /* verde per testi piccoli su chiaro (contrasto AA) */
  --verde-pulsante: #1B7A49;
  --verde-pulsante-hover: #166640;
  --verde-luce: #4CC285;
  --bagliore: #2FB36B;

  --raggio: 12px;
  --ombra-foto: 0 28px 56px rgba(17, 20, 23, .22);  /* ombra comune delle tre foto */
  --raggio-btn: 8px;
  --gutter: 20px;
  --larghezza: 1200px;
  --header-h: 76px;
  color-scheme: light;
}
@media (min-width: 960px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 1.0625rem;           /* 17 px */
  line-height: 1.55;
  color: var(--testo);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--verde-testo); text-underline-offset: 3px; }
a:hover { color: var(--testo); }
:focus-visible { outline: 3px solid var(--verde-testo); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible, .site-footer :focus-visible { outline-color: var(--verde-luce); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

h1, h2, h3 { margin: 0 0 .5em; color: var(--testo); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.12; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); line-height: 1.18; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 600; }

.container { width: 100%; max-width: calc(var(--larghezza) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--grafite); color: #fff; border-radius: var(--raggio-btn); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Occhiello con filo di luce ---------- */
.eyebrow {
  display: block;
  margin: 0 0 14px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--verde-testo);
}
.eyebrow::before { content: ""; display: block; width: 56px; height: 3px; margin-bottom: 14px; background: var(--verde); border-radius: 2px; }

/* ---------- Sezioni ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--alt { background: var(--superficie); border-block: 1px solid var(--bordo); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--testo-2); font-size: 1.125rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--testo-2); }

/* Fascia grafite sfumata con bagliore verde */
.band {
  color: var(--testo-su-scuro);
  background:
    radial-gradient(60% 140% at 5% 110%, rgba(47, 179, 107, .22), transparent 70%),
    linear-gradient(135deg, var(--grafite-profonda), var(--grafite));
  border-top: 1px solid var(--verde-luce);
}
.band h2, .band h3, .band strong { color: var(--testo-su-scuro); }
.band p, .band .muted { color: var(--testo-2-su-scuro); }
.band a:not(.btn) { color: var(--verde-luce); }
.band a:not(.btn):hover { color: #fff; }
.band .eyebrow { color: var(--verde-luce); }
.band .eyebrow::before { background: var(--verde-luce); }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 24px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  border-radius: var(--raggio-btn); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--verde-pulsante); color: #fff; }
.btn--primary:hover { background: var(--verde-pulsante-hover); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--bordo); color: var(--testo); background: transparent; }
.btn--ghost:hover { border-color: var(--grafite); color: var(--testo); }
.btn--ghost-light { border-color: rgba(241, 243, 244, .35); color: var(--testo-su-scuro); background: transparent; }
.btn--ghost-light:hover { border-color: var(--testo-su-scuro); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mail-note { margin: 14px 0 0; font-size: .95rem; color: var(--testo-2); }
.mail-note a { font-weight: 600; }
.band .mail-note { color: var(--testo-2-su-scuro); }

/* ---------- Card ---------- */
.grid-cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--superficie);
  border: 1px solid var(--bordo);
  border-radius: var(--raggio);
}
.section--alt .card { background: #fff; }
.card::before { content: ""; position: absolute; top: 0; left: 24px; width: 32px; height: 3px; background: var(--verde); border-radius: 0 0 2px 2px; }
.card--highlight { border-color: var(--verde); box-shadow: 0 0 0 1px var(--verde) inset; }
/* La card in evidenza chiude la griglia senza lasciare spazi vuoti (5 card) */
@media (min-width: 640px) { .grid-cards .card--highlight { grid-column: span 2; } }
@media (min-width: 1024px) { .grid-cards .card--highlight { grid-column: span 2; } }
@media (min-width: 640px) and (max-width: 1023px) { .grid-cards .card--highlight { grid-column: 1 / -1; } }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--testo-2); font-size: 1rem; }
.card ul { list-style: none; display: grid; gap: 6px; font-size: .95rem; color: var(--testo-2); }
.card li { position: relative; padding-left: 18px; }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--verde); }
.card-tag { display: inline-block; margin-bottom: 10px; padding: 3px 10px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--verde-testo); background: rgba(34, 160, 96, .1); border-radius: 999px; }
.icon { width: 40px; height: 40px; margin-bottom: 14px; color: var(--verde-testo); }
.icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Intestazione e menu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 240, 241, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--bordo); box-shadow: 0 6px 24px rgba(17, 20, 23, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); padding-block: 8px; }
.logo { display: inline-flex; flex: none; }
.logo img { width: 128px; height: auto; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--testo-2); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--testo); }
.nav .btn { color: #fff; min-height: 42px; padding: 9px 18px; }
.nav-toggle { display: none; }

@media (max-width: 859px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; padding: 0;
    background: transparent; border: 1.5px solid var(--bordo); border-radius: var(--raggio-btn);
    color: var(--testo); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-toggle .icon-close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 8px var(--gutter) 24px;
    background: var(--fondo);
    border-bottom: 1px solid var(--bordo);
    box-shadow: 0 16px 32px rgba(17, 20, 23, .08);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--bordo); font-size: 1.05rem; }
  .nav li:last-child { padding-top: 16px; }
  .nav .btn { width: 100%; min-height: 48px; }

  /* Senza JavaScript il menu resta visibile come elenco sotto il logo */
  .no-js .site-header { position: static; }
  .no-js .nav-toggle { display: none; }
  .no-js .nav { display: block; position: static; padding: 0 0 16px; box-shadow: none; border: 0; background: transparent; }
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .nav { flex-basis: 100%; }
}

/* ---------- Apertura (hero) ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; } }
.hero h1 { max-width: 15em; }
.hero .lead { max-width: 36em; margin-bottom: 28px; }
.hero-media { margin: 0; position: relative; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--raggio); box-shadow: var(--ombra-foto); }
.hero-media::after { content: ""; position: absolute; left: 24px; bottom: -10px; width: 64px; height: 3px; background: var(--verde); border-radius: 2px; }

/* ---------- Immagini nelle sezioni ---------- */
.method-head { display: grid; gap: 32px; align-items: center; margin-bottom: clamp(40px, 6vw, 64px); }
.method-head .section-head { margin-bottom: 0; }
@media (min-width: 900px) { .method-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.method-media { margin: 0; }
.method-media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--raggio); box-shadow: var(--ombra-foto); }
/* Ritratto: angoli arrotondati, ombra leggera, etichetta sovrapposta */
.about-photo { margin: 0 0 16px; max-width: 400px; position: relative; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--raggio); box-shadow: var(--ombra-foto); }
.about-badge {
  position: absolute; left: -16px; bottom: 28px; display: grid; gap: 2px;
  padding: 12px 18px; background: #fff; border-left: 3px solid var(--verde); border-radius: var(--raggio-btn);
  box-shadow: 0 12px 28px rgba(17, 20, 23, .16); font-size: .95rem; line-height: 1.35;
}
.about-badge span { color: var(--testo-2); font-size: .88rem; }
@media (max-width: 899px) { .about-photo { max-width: 300px; margin-left: 16px; } }

/* ---------- Fascia punti di forza ---------- */
.strengths { padding-block: 36px; }
.strengths ul { list-style: none; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .strengths ul { grid-template-columns: repeat(3, 1fr); } }
.strengths strong { display: block; font-size: 1.3rem; line-height: 1.2; }
.strengths span { color: var(--testo-2-su-scuro); font-size: .98rem; }

/* ---------- Servizi: invito sotto le card ---------- */
.cta-inline {
  display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between;
  margin-top: 32px; padding: 24px 28px;
  background: var(--superficie); border: 1px solid var(--bordo); border-radius: var(--raggio);
}
.cta-inline p { margin: 0; font-size: 1.1rem; font-weight: 600; }
.cta-inline .mail-note { margin: 6px 0 0; font-weight: 400; font-size: .95rem; }

/* ---------- Con chi lavoro ---------- */
.audience { display: grid; gap: 20px; grid-template-columns: 1fr; list-style: none; }
@media (min-width: 640px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .audience { grid-template-columns: repeat(4, 1fr); } }
.audience li { padding: 24px; background: #fff; border: 1px solid var(--bordo); border-radius: var(--raggio); }
.audience h3 { margin-bottom: .3em; }
.audience p { margin: 0; color: var(--testo-2); font-size: .98rem; }

/* ---------- Come lavoro ---------- */
.steps { list-style: none; display: grid; gap: 28px; grid-template-columns: 1fr; counter-reset: passo; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { counter-increment: passo; position: relative; padding-top: 56px; }
.steps li::before {
  content: counter(passo, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-size: 2rem; font-weight: 700; line-height: 1; color: var(--argento);
}
.steps li::after { content: ""; position: absolute; top: 44px; left: 0; width: 40px; height: 3px; background: var(--verde); border-radius: 2px; }
.steps p { color: var(--testo-2); margin: 0; }
.values { margin-top: 48px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .values { grid-template-columns: repeat(2, 1fr); } }
.values .card { background: #fff; }

/* ---------- Chi sono ---------- */
.about { display: grid; gap: 32px; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 64px; align-items: start; } }
.about-facts { list-style: none; display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 1100px) { .about-facts { grid-template-columns: repeat(3, 1fr); } }
.about-facts li { padding: 16px 20px; background: #fff; border: 1px solid var(--bordo); border-left: 3px solid var(--verde); border-radius: var(--raggio-btn); }
.about-facts strong { display: block; }
.about-facts span { color: var(--testo-2); font-size: .97rem; }
.about-text p { color: var(--testo-2); }
.about-text p:first-child { color: var(--testo); font-size: 1.15rem; }

/* ---------- Contatto finale ---------- */
.contact {
  padding-block: clamp(72px, 10vw, 128px);
  background:
    linear-gradient(90deg, rgba(17, 20, 23, .96) 0%, rgba(17, 20, 23, .82) 45%, rgba(17, 20, 23, .15) 100%),
    url("../img/contatti-1600.webp") right center / cover no-repeat,
    var(--grafite-profonda);
}
@media (max-width: 799px) {
  .contact { background:
    linear-gradient(180deg, rgba(17, 20, 23, .92) 0%, rgba(17, 20, 23, .78) 100%),
    url("../img/contatti-800.webp") 70% center / cover no-repeat,
    var(--grafite-profonda); }
}
.contact-inner { max-width: calc(var(--larghezza) + 2 * var(--gutter)); }
.contact-inner > div { max-width: 640px; }
.contact h2 { max-width: 16em; }
.contact .lead { color: var(--testo-2-su-scuro); max-width: 34em; }

/* ---------- Piè di pagina ---------- */
.site-footer { padding-block: 48px 32px; background: var(--grafite-profonda); color: var(--testo-2-su-scuro); font-size: .95rem; }
.site-footer a { color: var(--testo-su-scuro); text-decoration: none; }
.site-footer a:hover { color: var(--verde-luce); text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { width: 120px; margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 26em; }
.site-footer h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--testo-su-scuro); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(241, 243, 244, .12); font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Testi lunghi (privacy) ---------- */
.page-head { padding-block: clamp(40px, 6vw, 72px) 24px; }
.prose { max-width: 760px; padding-bottom: clamp(56px, 8vw, 96px); }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 2em; }
.prose p, .prose li { color: var(--testo); }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; display: grid; gap: 6px; }
.notice { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; margin: 8px 0 8px; background: #fff; border: 1px solid var(--bordo); border-left: 3px solid var(--verde); border-radius: var(--raggio-btn); }
.notice p { margin: 0; }
.updated { color: var(--testo-2); font-size: .95rem; }

/* ---------- Pagina 404 ---------- */
.not-found { min-height: 55vh; display: grid; align-content: center; }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
