/* ============ Token ============ */
:root {
  /* Palette: verde scuro, verde chiaro e bianco (gli stessi di lautari.it) */
  --green-900: #24492a;   /* verde scuro, tono profondo: fasce scure, footer */
  --green-800: #336739;   /* verde scuro */
  --green-700: #336739;
  --lime: #bccf55;        /* verde chiaro */
  --lime-hover: #a9bd3f;
  --lime-light: #d8e596;  /* verde chiaro per testi piccoli su verde scuro */
  --green-100: #eef3d9;   /* verde chiaro molto tenue */
  --cream: #f5f8e8;      /* superfici tenui */
  --sand: #f5f8e8;        /* fondo alternato, verde chiaro tenue */
  --ink: #1d3a20;         /* testo: verde scurissimo */
  --muted: #4a5d4c;
  --line: #dde6c6;
  --white: #fff;
  --on-dark: #e9f1e4;     /* testo chiaro su verde scuro */
  --on-dark-muted: rgba(255, 255, 255, .78);

  --dona: var(--lime);    /* il verde chiaro è riservato ai pulsanti Dona */
  --dona-hover: var(--lime-hover);
  --dona-soft: #f5f8e8;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(29, 58, 32, 0.28);
  --shadow-dona: 0 8px 22px -8px rgba(80, 100, 20, 0.55);

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Figtree", system-ui, -apple-system, sans-serif;

  --header-h: 0px;       /* su desktop c'è la barra laterale, nessun header in alto */
  --sidebar-w: 288px;
  --mobilebar-h: 76px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 72px); -webkit-text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; color: var(--green-900); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green-800); box-shadow: 0 0 0 6px var(--lime); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green-700); margin-bottom: .8em; }
.eyebrow--light { color: var(--lime-light); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
section { padding: 96px 0; }

/* ============ Pulsanti ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 800; font-size: 1rem; text-decoration: none; letter-spacing: .01em;
  transition: background .18s, transform .18s, box-shadow .18s, color .18s;
}
.btn--dona { background: var(--dona); color: var(--ink); box-shadow: var(--shadow-dona); text-transform: uppercase; letter-spacing: .05em; }
.btn--dona:hover { background: var(--dona-hover); transform: translateY(-1px); }
.btn--dona:active { transform: translateY(0); }
.btn--dona:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--green-800); border-color: currentColor; }
.btn--ghost:hover { background: var(--green-100); }
.btn--xl { min-height: 60px; font-size: 1.12rem; padding: 16px 30px; }
.btn--block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--green-700); text-decoration: underline; font-weight: 600; }


.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-900); margin: 0; }
.brand__mark { width: 38px; height: 38px; border-radius: 50%; background: var(--green-800); color: var(--lime); display: grid; place-items: center; }
.brand__text { font-family: var(--f-display); font-size: 1.3rem; line-height: 1; }

/* ============ Hero ============ */
.hero { position: relative; color: var(--white); padding: 72px 0 96px; overflow: hidden; background: var(--green-900); }
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(36, 73, 42, .96) 0%, rgba(36, 73, 42, .86) 45%, rgba(51, 103, 57, .5) 100%),
    url("https://www.lautari.it/wp-content/uploads/2018/09/il-percorso-in-comunita-02.jpg") center / cover;
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: italic; color: var(--lime); }
.hero__lead { font-size: 1.2rem; max-width: 34ch; color: var(--on-dark); }
.hero__facts { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); padding: 8px 16px; border-radius: 999px; font-size: .95rem; }

.quick { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.quick__kicker { display: inline-flex; gap: 6px; align-items: center; color: var(--green-800); font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.quick h2 { font-size: 1.55rem; margin-bottom: 20px; }
.quick__impact { color: var(--green-700); font-weight: 600; min-height: 1.6em; margin: 14px 0 16px; }
.quick__note { font-size: .86rem; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* Chips importo */
.chips { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: grid; place-items: center; min-height: 52px; border-radius: 12px;
  border: 2px solid var(--line); font-weight: 800; font-size: 1.08rem; background: var(--white);
  transition: border-color .15s, background .15s, color .15s;
}
.chip input:hover + span { border-color: var(--green-800); }
.chip input:checked + span { border-color: var(--green-800); background: var(--green-800); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--green-800); outline-offset: 2px; box-shadow: 0 0 0 6px var(--lime); }
.chips--lg .chip span { min-height: 62px; font-size: 1.2rem; }

/* ============ Impatto ============ */
.impact { background: var(--cream); }
.impact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.impact-card {
  position: relative; text-align: left; display: flex; flex-direction: column; gap: 6px;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px;
  color: var(--ink); transition: border-color .18s, transform .18s, box-shadow .18s;
}
.impact-card:hover { border-color: var(--green-800); transform: translateY(-3px); box-shadow: var(--shadow); }
.impact-card--feat { border-color: var(--lime); background: var(--green-100); }
.impact-card__badge { position: absolute; top: -13px; left: 26px; background: var(--lime); color: var(--ink); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.impact-card__amount { font-family: var(--f-display); font-size: 2.6rem; font-weight: 700; color: var(--green-900); line-height: 1.1; }
.impact-card__amount small { font-size: 1rem; color: var(--muted); font-family: var(--f-body); }
.impact-card__what { font-weight: 800; font-size: 1.1rem; }
.impact-card__desc { color: var(--muted); flex: 1; }
.impact-card__cta { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--green-800); font-weight: 800; }

.numbers { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.numbers li { background: var(--white); padding: 24px; }
.numbers strong { display: block; font-family: var(--f-display); font-size: 2rem; color: var(--green-800); }
.numbers span { color: var(--muted); font-size: .94rem; }

/* ============ Percorso ============ */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 28px 24px; border-top: 4px solid var(--green-700); }
.steps span { font-family: var(--f-display); font-size: 1.1rem; color: var(--green-700); font-weight: 700; }
.steps h3 { margin-top: 8px; }
.steps p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ============ Progetti ============ */
.projects { background: var(--white); }
.projects__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project { display: grid; grid-template-columns: 200px 1fr; background: var(--cream); border-radius: var(--radius-lg); overflow: hidden; }
.project img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.project__body { padding: 26px; display: flex; flex-direction: column; align-items: flex-start; }
.project__body p { color: var(--muted); font-size: .98rem; flex: 1; }

/* ============ Come aiutare ============ */
.ways { background: var(--green-100); }
.ways__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.way { background: var(--white); border-radius: var(--radius-lg); padding: 30px 28px; display: flex; flex-direction: column; gap: 4px; }
.way p { color: var(--muted); flex: 1; }
.way--feat { background: var(--green-800); color: var(--white); }
.way--feat h3 { color: var(--white); font-size: 2rem; }
.way--feat p { color: var(--on-dark); }
.way--feat .copybox { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
.way--feat .copybox__label { color: var(--lime-light); }
.way--feat .copybox__value { color: var(--white); }
.way--feat .copybtn { background: var(--white); color: var(--green-900); }
.way .btn { margin-top: 14px; }

.copybox { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--cream); }
.copybox__label { grid-column: 1; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.copybox__value { grid-column: 1; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.02rem; font-weight: 600; color: var(--green-900); word-break: break-all; }
.copybox .copybtn { grid-column: 2; grid-row: 1 / span 2; }
.copybtn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px;
  border: 0; border-radius: 999px; background: var(--green-800); color: var(--white); font-weight: 700; font-size: .88rem;
  transition: background .15s;
}
.copybtn:hover { background: var(--green-900); }
.copybtn.is-copied { background: var(--lime); color: var(--ink); }

.tax { margin-top: 32px; background: var(--white); border-radius: var(--radius); padding: 0 24px; }
.tax summary { cursor: pointer; padding: 20px 0; font-weight: 800; color: var(--green-900); }
.tax__body { padding-bottom: 20px; color: var(--muted); }
.tax__body ul { margin: 0; padding-left: 1.2em; }

/* ============ Team ============ */
.team { background: var(--cream); }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 900px; }
.team figure { margin: 0; }
.team img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); background: var(--sand); }
.team figcaption { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.team figcaption strong { display: block; color: var(--ink); font-size: 1.08rem; }

/* ============ CTA finale ============ */
.final { background: var(--green-800); color: var(--white); padding: 80px 0; }
.final__in { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.final h2 { color: var(--white); margin: 0; max-width: 22ch; }
.final .btn--dona { box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .4); flex: none; }

/* ============ Contatti ============ */
.contacts { background: var(--white); }
.contacts__grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 20px; }
.sede { background: var(--white); border-radius: var(--radius); padding: 24px; font-size: .96rem; color: var(--muted); }
.sede p { margin: 0 0 .4em; }
.sede--main { grid-row: span 2; background: var(--green-800); color: var(--on-dark); }
.sede--main h3 { color: var(--white); }
.sede--main a { color: var(--white); }
.sede--main p { display: flex; gap: 10px; align-items: flex-start; font-size: 1.04rem; margin-bottom: .8em; }
.sede--main .ico { margin-top: .25em; }
.sede__sub { font-size: .9rem !important; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 14px; margin-top: 18px !important; display: block !important; }

/* ============ Footer ============ */
.footer { background: var(--green-900); color: var(--on-dark-muted); padding: 56px 0; font-size: .92rem; }
.footer__in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.brand--footer { color: var(--white); margin-bottom: 16px; }
.footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__links a { color: var(--white); }
.footer__links .btn { margin-top: 8px; }

/* ============ Barra mobile ============ */
.mobilebar { display: none; }

/* ============ Dialog donazione ============ */
.donate {
  width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--white); color: var(--ink);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5); overflow-y: auto; overscroll-behavior: contain;
}
.donate::backdrop { background: rgba(29, 58, 32, .72); backdrop-filter: blur(3px); }
.donate[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.donate__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--white); border-bottom: 1px solid var(--line); }
.iconbtn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); display: grid; place-items: center; flex: none; }
.iconbtn:hover { background: var(--sand); }
.iconbtn[hidden] { display: none; }
.progress { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.progress li { display: flex; align-items: center; gap: 6px; }
.progress li::before { content: ""; width: 22px; height: 6px; border-radius: 3px; background: var(--line); }
.progress li.is-active { color: var(--green-800); }
.progress li.is-active::before, .progress li.is-done::before { background: var(--green-800); }

.dstep { padding: 26px 28px 30px; }
.dstep h2 { font-size: 1.8rem; outline: none; }
#to-step-2 { margin-top: 24px; }
.dstep__summary { background: var(--cream); padding: 12px 16px; border-radius: 12px; font-size: .96rem; }

.freq { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); padding: 5px; border-radius: 999px; margin-bottom: 18px; }
.freq label { position: relative; }
.freq input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.freq span { display: block; text-align: center; padding: 10px; border-radius: 999px; font-weight: 800; transition: background .15s, color .15s; }
.freq input:checked + span { background: var(--green-800); color: var(--white); }
.freq input:focus-visible + span { outline: 3px solid var(--lime); }

.custom, .select { display: block; margin-top: 16px; font-weight: 700; font-size: .92rem; }
.custom > span:first-child, .select > span { display: block; margin-bottom: 6px; color: var(--muted); }
.custom__field { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 0 16px; background: var(--white); }
.custom__field:focus-within { border-color: var(--green-800); }
.custom__field input { flex: 1; border: 0; outline: none; font: inherit; font-size: 1.15rem; font-weight: 700; padding: 14px 0; min-width: 0; background: transparent; }
.custom__field span { font-weight: 800; color: var(--muted); }
.select select { width: 100%; font: inherit; font-weight: 600; padding: 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); }

.impact-line { margin: 18px 0; padding: 14px 16px; border-radius: 12px; background: var(--green-100); color: var(--green-800); font-weight: 700; min-height: 1.6em; }

.methods { display: grid; gap: 12px; margin-top: 8px; }
.method {
  display: flex; align-items: center; gap: 16px; text-align: left; width: 100%;
  padding: 18px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink);
  transition: border-color .15s, background .15s;
}
.method:hover { border-color: var(--green-800); background: var(--sand); }
.method__ico { width: 48px; height: 48px; border-radius: 12px; background: var(--green-100); color: var(--green-800); display: grid; place-items: center; flex: none; }
.method__ico .ico { width: 24px; height: 24px; }
.method__txt { flex: 1; display: flex; flex-direction: column; }
.method__txt span { color: var(--muted); font-size: .92rem; }
.method__go { color: var(--green-800); }

.tip { background: var(--dona-soft); padding: 12px 16px; border-radius: 12px; font-size: .96rem; }
.dbox { border: 1.5px solid var(--line); border-radius: var(--radius); margin: 16px 0 18px; }
.drow { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 16px; }
.drow + .drow { border-top: 1px solid var(--line); }
.drow__label { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.drow__value { grid-column: 1; font-weight: 700; word-break: break-word; }
.drow__value.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.04rem; color: var(--green-900); }
.drow .copybtn { grid-column: 2; grid-row: 1 / span 2; }

.after { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.after strong { color: var(--ink); }
.thanks { margin: 20px 0 0; display: flex; gap: 10px; align-items: center; color: var(--green-800); font-weight: 700; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); z-index: 1000; background: var(--green-900); color: var(--white); padding: 12px 22px; border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .project { grid-template-columns: 1fr; }
  .project img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
}

@media (max-width: 960px) {
  section { padding: 72px 0; }
  .hero__in { grid-template-columns: 1fr; gap: 40px; }
  .impact__grid, .ways__grid { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr 1fr; }
  .sede--main { grid-column: 1 / -1; grid-row: auto; }
  .final__in { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: calc(var(--mobilebar-h) + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .hero__lead { font-size: 1.08rem; }
  .hero { padding: 48px 0 56px; }
  .quick { padding: 24px 20px; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .chips--lg { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .chips--lg .chip span { font-size: 1.02rem; min-height: 56px; }
  .numbers, .steps, .team__grid, .contacts__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .team figure:last-child { grid-column: 1 / -1; max-width: 50%; }
  .final .btn--xl { width: 100%; }
  .toast { bottom: calc(var(--mobilebar-h) + 16px); }

  .mobilebar {
    display: flex; gap: 10px; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .25);
  }
  .mobilebar__call { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); }
  .mobilebar__call .ico { width: 22px; height: 22px; }
  .mobilebar__dona { flex: 1; min-height: 52px; font-size: 1.08rem; }

  /* Il percorso di donazione diventa un foglio a tutto schermo */
  .donate { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .dstep { padding: 22px 16px 32px; }
  .dstep h2 { font-size: 1.55rem; }
  .progress li::before { width: 16px; }
}

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

/* =====================================================================
   PAGINE INTERNE E COMPONENTI CONDIVISI
   ===================================================================== */


/* Footer a 3 colonne */
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { color: var(--on-dark); text-decoration: none; }
.footer__nav a:hover { color: var(--white); text-decoration: underline; }

/* Link con freccia */
.arrowlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--green-700); text-decoration: none; }
.arrowlink:hover { text-decoration: underline; }
.more { margin: 36px 0 0; }
.note { margin-top: 28px; color: var(--muted); font-size: .96rem; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-head--row h2 { margin: 0; }

/* Bottoni chiari su fondo scuro */
.btn--light { background: var(--white); color: var(--green-900); }
.btn--light:hover { background: var(--green-100); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); }

/* Pilastri (home) */
.pillars { background: var(--white); }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: var(--cream); border-radius: var(--radius-lg); padding: 30px 28px; }
.pillar p { color: var(--muted); margin: 0; }
.pillar__ico { width: 52px; height: 52px; border-radius: 14px; background: var(--green-100); color: var(--green-800); display: grid; place-items: center; margin-bottom: 18px; }
.pillar__ico .ico { width: 26px; height: 26px; }

/* Fascia numeri */
.stats { background: var(--green-900); color: var(--white); padding: 72px 0; }
.stats__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stats__grid--3 { grid-template-columns: repeat(3, 1fr); }
.stats__grid strong { display: block; font-family: var(--f-display); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; color: var(--lime); }
.stats__grid span { color: var(--on-dark); }
.stats__more { margin: 36px 0 0; }
.stats__more a { color: var(--white); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }

/* Card iniziative */
.latest { background: var(--white); }
.path, .families, .prevention, .impactbox, .contacts, .collab, .related { background: var(--sand) !important; }
.igrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.icard { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.icard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.icard__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.icard__img { position: relative; aspect-ratio: 16 / 10; background: var(--sand); }
.icard__img img { width: 100%; height: 100%; object-fit: cover; }
.icard__img .tag { position: absolute; top: 14px; left: 14px; }
.icard__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.icard__body h3 { margin-bottom: .4em; }
.icard__body p { color: var(--muted); font-size: .97rem; }
.icard__when { font-size: .85rem !important; font-weight: 700; color: var(--green-700) !important; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.icard__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--green-700); }
.icard--next { border-color: var(--lime); border-width: 2px; }

.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--white); color: var(--green-900); }
.tag--progetto { background: var(--green-800); color: var(--white); }
.tag--iniziativa { background: var(--lime); color: var(--ink); }
.tag--evento { background: var(--white); color: var(--green-800); box-shadow: inset 0 0 0 2px var(--green-800); }
.tag--collaborazione { background: var(--green-100); color: var(--ink); }

/* Hero delle pagine interne */
.phero { position: relative; color: var(--white); padding: 88px 0 80px; background: var(--green-900); overflow: hidden; }
.phero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(36, 73, 42, .96) 10%, rgba(51, 103, 57, .74) 100%), var(--phero-img, none) center / cover; }
.phero--plain::before { background: radial-gradient(circle at 85% 20%, rgba(188, 207, 85, .22), transparent 45%), var(--green-900); }
.phero .wrap { position: relative; }
.phero h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 18ch; }
.phero__lead { font-size: 1.2rem; color: var(--on-dark); max-width: 56ch; margin: 0; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sottomenu della pagina */
.subnav { position: sticky; top: var(--header-h); z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.subnav__in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; background: var(--cream); }
.subnav a:hover { background: var(--green-100); color: var(--green-800); }

/* Testo + immagine */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split--reverse .split__img { order: -1; }
.split__text > p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; }
.split__text p strong { color: var(--ink); }
.split__text .btn, .split__text .arrowlink { margin-top: 8px; }
.split__img { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--sand); }
.split__img img { width: 100%; height: 100%; object-fit: cover; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 22px 36px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 3px solid var(--green-700); }
.timeline li:last-child::before { background: var(--lime); border-color: var(--green-800); }
.timeline strong { display: block; font-family: var(--f-display); font-size: 1.2rem; color: var(--green-900); }
.timeline span { color: var(--muted); }

/* Missione */
.mission { background: var(--green-800); color: var(--white); }
.mission__quote { color: var(--white); font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 500; max-width: 30ch; }
.mission__lead { color: var(--on-dark); margin-top: 28px; }
.values { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.values li { padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); font-weight: 700; }

/* Ruoli équipe */
.roles { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.roles li { padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; }

/* Trasparenza */
.transparency { background: var(--white); }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.doc { display: flex; gap: 14px; align-items: center; padding: 20px; border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.doc:hover { border-color: var(--green-700); }
.doc .ico { width: 30px; height: 30px; color: var(--green-700); }
.doc span { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); }
.doc strong { color: var(--ink); font-size: 1rem; }
.legal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.legal div { background: var(--cream); padding: 16px 18px; }
.legal dt { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal dd { margin: 4px 0 0; font-weight: 600; }

/* Come si accede */
.howto { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.howto li { background: var(--cream); border-radius: var(--radius-lg); padding: 28px; position: relative; }
.howto__n { width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; margin-bottom: 16px; }
.howto p { color: var(--muted); margin: 0; }

.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.infocard { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.infocard--green { background: var(--green-800); border-color: var(--green-800); color: var(--on-dark); }
.infocard--green h3 { color: var(--white); }
.infocard__big { font-family: var(--f-display); font-size: 3rem; font-weight: 700; color: var(--lime); line-height: 1; margin: 8px 0 14px; }
.checklist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--muted); }
.checklist li strong { color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23336739' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.checklist--dot li::before { background: var(--green-100); }
.checklist--dot li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 6px); width: 6px; height: 6px; border-radius: 50%; background: var(--green-800); }

/* Fasi */
.phases { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.phases li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; align-items: start; background: var(--white); border-radius: var(--radius-lg); padding: 26px 28px; }
.phases__n { font-family: var(--f-display); font-size: 2.6rem; font-weight: 700; color: var(--green-100); -webkit-text-stroke: 1.5px var(--green-700); line-height: 1; }
.phases h3 { margin-bottom: .3em; }
.phases p { color: var(--muted); margin: 0; }

/* Strumenti */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tool { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.tool p { color: var(--muted); margin: 0; }
.values-steps { margin: 36px 0 0; padding: 26px 28px 26px 52px; background: var(--green-100); border-radius: var(--radius-lg); display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 36px; font-weight: 600; color: var(--green-900); }

/* Giornata tipo */
.day { background: var(--sand); }
.day__grid { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 22px; align-items: start; }
.schedule { background: var(--white); border-radius: var(--radius-lg); padding: 26px 28px; }
.schedule--alt { background: var(--green-800); color: var(--on-dark); }
.schedule--alt h3 { color: var(--white); }
.schedule ol { list-style: none; padding: 0; margin: 0; }
.schedule li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.schedule--alt li { border-color: rgba(255, 255, 255, .15); }
.schedule time { font-weight: 800; color: var(--green-800); font-variant-numeric: tabular-nums; }
.schedule--alt time { color: var(--lime-light); }
.day__photos { display: grid; gap: 22px; }
.day__photos img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--line); }

/* Famiglie */
.families { background: var(--white); }
.families .btn { margin-top: 6px; }

/* Richiesta di aiuto */
.helpcta { background: var(--green-900); color: var(--white); padding: 72px 0; }
.helpcta__in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.helpcta h2 { color: var(--white); margin-bottom: .3em; }
.helpcta p { color: var(--on-dark); margin: 0; }
.helpcta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Mestieri */
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.job { margin: 0; display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 16px; background: var(--white); border-radius: var(--radius); padding: 14px 16px; border: 1.5px solid var(--line); }
.job img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; }
.job figcaption { display: flex; flex-direction: column; }
.job strong { font-size: 1.08rem; color: var(--green-900); }
.job span { color: var(--muted); font-size: .9rem; }
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.partner { display: flex; flex-direction: column; gap: 6px; padding: 24px 26px; border-radius: var(--radius-lg); background: var(--green-800); color: var(--on-dark); text-decoration: none; transition: background .15s; }
.partner:hover { background: var(--green-900); }
.partner strong { color: var(--white); font-family: var(--f-display); font-size: 1.3rem; }
.partner em { font-style: normal; font-weight: 800; color: var(--lime-light); display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }

/* Prevenzione */
.prevention { background: var(--white); }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--sand); }
.feature div { padding: 22px 24px 26px; }
.feature .tag { margin-bottom: 12px; }
.feature p { color: var(--muted); margin: 0; }

/* Aiuti alimentari */
.food { background: var(--green-900); color: var(--white); }
.food h2 { color: var(--white); }
.food .section-head p:not(.eyebrow) { color: var(--on-dark); }

/* Galleria */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .92); padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .88rem; }

/* Impatto */
.impactbox { background: var(--white); }
.impactbox .numbers { margin-top: 0; grid-template-columns: repeat(3, 1fr); }
.impactbox__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Elenco iniziative */
.listing { padding-top: 48px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); font-weight: 700; color: var(--ink); }
.filter span { font-size: .8rem; background: var(--cream); color: var(--muted); padding: 1px 8px; border-radius: 999px; }
.filter:hover { border-color: var(--green-700); }
.filter[aria-pressed="true"] { background: var(--green-800); border-color: var(--green-800); color: var(--white); }
.filter[aria-pressed="true"] span { background: rgba(255, 255, 255, .2); color: var(--white); }
.empty { grid-column: 1 / -1; background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--radius-lg); padding: 40px; text-align: center; color: var(--muted); }
.empty strong { color: var(--ink); }

.collab { background: var(--white); padding: 64px 0; }
.collab__in { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.collab h2 { font-size: 1.8rem; margin-bottom: .3em; }
.collab p { color: var(--muted); margin: 0; }
.collab__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Dettaglio */
.article__loading, .article__notfound { padding: 96px 24px; }
.article__head { background: var(--green-900); color: var(--white); padding: 56px 0 64px; }
.article__head h1 { color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 22ch; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark); text-decoration: none; font-weight: 700; margin-bottom: 22px; }
.crumb:hover { color: var(--white); }
.article__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--on-dark); font-weight: 600; }
.article__lead { font-size: 1.2rem; color: var(--on-dark); max-width: 60ch; margin: 0; }
.article__in { display: grid; grid-template-columns: 1fr 320px; gap: 56px; padding-top: 48px; padding-bottom: 72px; align-items: start; }
.article__img { width: 100%; border-radius: var(--radius-lg); margin-bottom: 32px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sand); }
.article__body { font-size: 1.08rem; }
.article__body h2 { font-size: 1.6rem; margin-top: 1.4em; }
.article__body ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.article__body li { margin-bottom: .4em; }
.article__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.support { background: var(--sand); border: 2px solid var(--lime); border-radius: var(--radius-lg); padding: 26px; }
.support__kicker { display: inline-flex; gap: 6px; align-items: center; color: var(--green-800); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.support__title { font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; color: var(--green-900); line-height: 1.2; }
.related { background: var(--white); padding: 72px 0; }

/* Contatti: aiuto */
.help { background: var(--white); }
.help__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.helpcard { display: flex; flex-direction: column; gap: 4px; padding: 26px; border-radius: var(--radius-lg); background: var(--cream); color: var(--ink); text-decoration: none; border: 1.5px solid var(--line); }
.helpcard .ico { width: 28px; height: 28px; color: var(--green-700); margin-bottom: 10px; }
.helpcard span { color: var(--muted); font-weight: 600; }
.helpcard strong { font-size: 1.25rem; }
a.helpcard:hover { border-color: var(--green-700); }
.helpcard--main { background: var(--green-800); border-color: var(--green-800); }
.helpcard--main .ico { color: var(--lime); }
.helpcard--main span { color: var(--on-dark); }
.helpcard--main strong { color: var(--white); font-size: 1.7rem; font-family: var(--f-display); }
a.helpcard--main:hover { background: var(--green-900); }

/* Responsive pagine interne */
@media (max-width: 1080px) {
  .jobs { grid-template-columns: repeat(2, 1fr); }
  .day__grid { grid-template-columns: 1fr 1fr; }
  .day__photos { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .pillars__grid, .igrid, .howto, .tools, .feature-list, .docs { grid-template-columns: 1fr; }
  .igrid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .split, .cards2, .partners, .article__in { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__img { order: 0; }
  .legal { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .impactbox .numbers { grid-template-columns: repeat(2, 1fr); }
  .help__grid { grid-template-columns: 1fr; }
  .article__aside { position: static; }
  .values-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .phero { padding: 56px 0 52px; }
  .phero__lead, .article__lead { font-size: 1.06rem; }
  .igrid, .day__grid, .legal, .impactbox .numbers { grid-template-columns: 1fr; }
  .jobs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .job { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; padding: 16px 10px; }
  .job img { width: 72px; height: 72px; }
  .day__photos { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats__grid, .stats__grid--3 { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .stats__grid--3 li:last-child { grid-column: 1 / -1; }
  .stats__grid strong { font-size: 2rem; }
  .stats__grid span { font-size: .92rem; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .phases li { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
  .phases__n { font-size: 2rem; }
  .gallery { gap: 10px; }
  .values-steps { padding: 22px 22px 22px 40px; }
  .footer__in { flex-direction: column; }
  .collab__actions .btn, .impactbox__cta .btn, .helpcta__actions .btn { width: 100%; }
  .subnav { top: var(--header-h); }
}

/* =====================================================================
   BARRA LATERALE
   ===================================================================== */
.topbar { display: none; }
.sidebar-overlay { display: none; }

.sidebar {
  position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: var(--sidebar-w);
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 16px 20px;
  background: var(--green-800); color: var(--white);
  overflow-y: auto; overscroll-behavior: contain;
}
.sidebar__top { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 18px; border-bottom: 1px solid rgba(255, 255, 255, .14); margin-bottom: 10px; }
.brand--side { color: var(--white); }
.brand--side .brand__mark { background: var(--white); color: var(--green-800); }
.sidebar__close { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--white); place-items: center; }

.sidebar__nav { display: flex; flex-direction: column; gap: 6px; }

/* Voci normali: discrete */
.sidebar__link {
  display: flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 7px 12px; border-radius: 14px;
  background: transparent; border: 2px solid transparent;
  color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 700; font-size: 1.06rem;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.sidebar__link .ico {
  width: 38px; height: 38px; padding: 9px; flex: none;
  border-radius: 10px; background: rgba(255, 255, 255, .1); color: var(--lime-light);
  transition: background .15s, color .15s;
}
.sidebar__link:hover { background: rgba(255, 255, 255, .1); color: var(--white); transform: translateX(3px); }

/* Voci in evidenza: Chiedi aiuto, Progetti */
.sidebar__link--key {
  min-height: 62px; font-size: 1.16rem; font-weight: 800; color: var(--white);
  background: rgba(255, 255, 255, .12); border-color: var(--lime-light);
}
.sidebar__link--key .ico { width: 42px; height: 42px; background: var(--lime-light); color: var(--ink); }
.sidebar__link--key:hover { background: rgba(255, 255, 255, .2); }

/* Voce principale: Sostienici */
.sidebar__link--support {
  min-height: 66px; font-size: 1.22rem; font-weight: 800; color: var(--ink);
  background: var(--lime); border-color: var(--lime);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5);
}
.sidebar__link--support .ico { width: 44px; height: 44px; background: var(--ink); color: var(--lime); }
.sidebar__link--support:hover { background: var(--lime-hover); border-color: var(--lime-hover); color: var(--ink); }

/* Pagina attiva */
.sidebar__link[aria-current="page"] { background: var(--white); border-color: var(--white); color: var(--green-800); }
.sidebar__link[aria-current="page"] .ico { background: var(--green-800); color: var(--white); }
.sidebar__link--key[aria-current="page"] { border-color: var(--lime); }
.sidebar__link--key[aria-current="page"] .ico { background: var(--lime); color: var(--ink); }
.sidebar__link--support[aria-current="page"] { background: var(--lime); border-color: var(--white); color: var(--ink); box-shadow: 0 0 0 2px var(--lime); }
.sidebar__link--support[aria-current="page"] .ico { background: var(--ink); color: var(--lime); }
.sidebar__link:focus-visible { outline-color: var(--white); box-shadow: none; }

.sidebar__bottom { margin-top: auto; padding-top: 18px; display: grid; gap: 12px; }
.sidebar__bottom .btn--dona { box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .45); }
.sidebar__tel { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--white); font-weight: 700; text-decoration: none; padding: 6px; }
.sidebar__tel:hover { text-decoration: underline; }

/* Desktop: contenuto spostato a destra della barra */
@media (min-width: 1024px) {
  body { padding-left: var(--sidebar-w); }
  .subnav { top: 0; }
}

/* Tablet e mobile: barra in alto + pannello a scomparsa */
@media (max-width: 1023px) {
  :root { --header-h: 64px; }
  .topbar { display: block; position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .2s; }
  .topbar.is-scrolled { box-shadow: 0 6px 20px -12px rgba(29, 58, 32, .35); }
  .topbar__in { display: flex; align-items: center; gap: 12px; height: var(--header-h); padding: 0 24px; }
  .topbar .brand { margin-right: auto; }
  .topbar__dona { padding: 10px 20px; }
  .menu-toggle { display: grid; place-items: center; background: none; border: 0; width: 44px; height: 44px; color: var(--green-800); border-radius: 10px; }
  .menu-toggle .ico { width: 26px; height: 26px; }

  .sidebar { width: min(320px, 86vw); transform: translateX(-100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; box-shadow: 20px 0 40px -20px rgba(0, 0, 0, .4); }
  .sidebar.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
  .sidebar__close { display: grid; }
  .sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(29, 58, 32, .55); }
  .sidebar-overlay[hidden] { display: none; }
  html.is-menu { overflow: hidden; }
}

@media (max-width: 640px) {
  .topbar__in { padding: 0 16px; }
  .topbar__dona { display: none; } /* c'è la barra fissa in basso */
}

/* =====================================================================
   PAGINE: SEDI, FAQ, SOSTIENICI
   ===================================================================== */
.phero__link { color: var(--white); font-weight: 700; }

/* Sedi */
.contactlist { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.contactlist li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.06rem; }
.contactlist .ico { color: var(--green-800); margin-top: .25em; }
.contactlist a { font-weight: 700; }
.office { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--radius); background: var(--cream); font-size: .96rem; }
.sedi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.sedecard { display: grid; grid-template-columns: 200px 1fr; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--line); }
.sedecard img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; background: var(--cream); }
.sedecard__body { padding: 22px 24px; }
.sedecard__body p { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 .5em; color: var(--muted); font-size: .96rem; }
.sedecard__body .ico { color: var(--green-800); margin-top: .25em; }
.sedecard__body a { font-weight: 700; }

/* FAQ */
.faqs__in { max-width: 860px; }
.faqgroup { padding-top: 8px; margin-bottom: 48px; }
.faqgroup h2 { font-size: 1.7rem; margin-bottom: 18px; }
.faq { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 10px; transition: border-color .15s; }
.faq[open] { border-color: var(--green-800); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 1.06rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23336739' stroke-width='2.5' stroke-linecap='round' d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); background-color: var(--lime); }
.faq__a { padding: 0 20px 18px; color: var(--muted); }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a a { font-weight: 700; }

/* Sostienici: scelta del progetto */
.pickers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.picker { display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: 18px; padding: 12px 20px 12px 12px; text-align: left; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); transition: border-color .15s, background .15s; }
.picker:hover { border-color: var(--green-800); background: var(--cream); }
.picker img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; background: var(--cream); }
.picker span { display: flex; flex-direction: column; color: var(--muted); font-size: .95rem; }
.picker strong { color: var(--ink); font-size: 1.12rem; }
.picker > .ico { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--lime); color: var(--ink); }
.docs--stack { grid-template-columns: 1fr; margin: 20px 0 0; }

@media (max-width: 1180px) {
  .sedecard { grid-template-columns: 1fr; }
  .sedecard img { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
}
@media (max-width: 760px) {
  .sedi, .pickers { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .faq summary { padding: 16px; font-size: 1rem; }
  .faq__a { padding: 0 16px 16px; }
  .picker { grid-template-columns: 64px 1fr auto; gap: 14px; }
  .picker img { width: 64px; height: 64px; }
}

/* =====================================================================
   HOME PIÙ COLORATA (solo verde scuro, verde chiaro e bianco)
   ===================================================================== */
[data-page="home"] .eyebrow {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--lime); color: var(--ink);
}

/* Hero: accento verde chiaro sui fatti */
[data-page="home"] .hero__facts li { background: rgba(188, 207, 85, .18); border-color: var(--lime); }
[data-page="home"] .hero__facts strong { color: var(--lime-light); }

/* Chi siamo in breve: tre card, tre colori */
[data-page="home"] .pillar { position: relative; overflow: hidden; }
[data-page="home"] .pillar:nth-child(1) { background: var(--green-800); color: var(--white); }
[data-page="home"] .pillar:nth-child(1) h3 { color: var(--white); }
[data-page="home"] .pillar:nth-child(1) p { color: var(--on-dark); }
[data-page="home"] .pillar:nth-child(1) .pillar__ico { background: var(--lime); color: var(--ink); }
[data-page="home"] .pillar:nth-child(2) { background: var(--lime); }
[data-page="home"] .pillar:nth-child(2) h3, [data-page="home"] .pillar:nth-child(2) p { color: var(--ink); }
[data-page="home"] .pillar:nth-child(2) .pillar__ico { background: var(--green-800); color: var(--lime); }
[data-page="home"] .pillar:nth-child(3) { background: var(--green-100); }
[data-page="home"] .pillar:nth-child(3) .pillar__ico { background: var(--green-800); color: var(--white); }
[data-page="home"] .pillar::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: currentColor; opacity: .08; pointer-events: none;
}

/* Percorso: fondo verde chiaro tenue, numeri in cerchi */
[data-page="home"] .path { background: var(--green-100) !important; }
[data-page="home"] .steps { position: relative; }
[data-page="home"] .steps li { border-top: 0; box-shadow: 0 10px 24px -18px rgba(29, 58, 32, .5); }
[data-page="home"] .steps span {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--green-800); color: var(--lime); font-size: 1.3rem; margin-bottom: 6px;
}
[data-page="home"] .steps li:nth-child(even) span { background: var(--lime); color: var(--ink); }

/* Numeri: fascia verde chiaro */
[data-page="home"] .stats { background: var(--lime); color: var(--ink); }
[data-page="home"] .stats__grid strong { color: var(--green-900); }
[data-page="home"] .stats__grid span { color: var(--ink); }
[data-page="home"] .stats__grid li { padding-left: 18px; border-left: 4px solid var(--green-800); }
[data-page="home"] .stats__more a { color: var(--ink); }

/* Card donazione */
[data-page="home"] .impact-card { border-color: var(--green-100); border-top: 6px solid var(--green-800); }
[data-page="home"] .impact-card--feat { background: var(--lime); border-color: var(--lime); border-top-color: var(--green-800); }
[data-page="home"] .impact-card--feat .impact-card__desc,
[data-page="home"] .impact-card--feat .impact-card__cta,
[data-page="home"] .impact-card--feat .impact-card__amount small { color: var(--ink); }
[data-page="home"] .impact-card--feat .impact-card__badge { background: var(--green-800); color: var(--white); }
[data-page="home"] .impact-card:hover { border-color: var(--lime); border-top-color: var(--green-800); }

/* Progetti e iniziative: fascia verde scuro */
[data-page="home"] .latest { background: var(--green-800); }
[data-page="home"] .latest h2 { color: var(--white); }
[data-page="home"] .latest .arrowlink { color: var(--lime-light); }
[data-page="home"] .latest .icard { border-color: transparent; }

/* Come aiutare */
[data-page="home"] .ways { background: var(--white); }
[data-page="home"] .way:not(.way--feat) { background: var(--green-100); }
[data-page="home"] .way:not(.way--feat) .copybox { background: var(--white); }

/* Chiusura: verde scuro con cerchi verde chiaro */
[data-page="home"] .final { position: relative; overflow: hidden; background: var(--green-900); }
[data-page="home"] .final::before, [data-page="home"] .final::after {
  content: ""; position: absolute; border-radius: 50%; background: var(--lime); pointer-events: none;
}
[data-page="home"] .final::before { width: 320px; height: 320px; right: -80px; top: -140px; opacity: .22; }
[data-page="home"] .final::after { width: 180px; height: 180px; left: -60px; bottom: -90px; opacity: .14; }
[data-page="home"] .final__in { position: relative; }

/* =====================================================================
   BLOG
   ===================================================================== */
.tag--cat { background: var(--lime); color: var(--ink); text-decoration: none; }
.pmeta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem !important; font-weight: 600; color: var(--muted) !important; margin-bottom: 8px; }

/* Articolo in evidenza */
#articolo-evidenza { margin-bottom: 36px; }
.pfeat__link { display: grid; grid-template-columns: 1.15fr 1fr; border-radius: var(--radius-lg); overflow: hidden; background: var(--green-800); color: var(--white); text-decoration: none; box-shadow: var(--shadow); }
.pfeat__img { min-height: 340px; background: var(--green-900); }
.pfeat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pfeat__link:hover .pfeat__img img { transform: scale(1.03); }
.pfeat__body { padding: 40px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
.pfeat__body h2 { color: var(--white); font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin: 14px 0 10px; }
.pfeat__body > p { color: var(--on-dark); }
.pfeat__body .pmeta { color: var(--lime-light) !important; }
.pfeat__body .btn { margin-top: 12px; }

/* Corpo articolo */
.pquote { margin: 32px 0; padding: 26px 30px; border-radius: var(--radius-lg); background: var(--green-100); border-left: 6px solid var(--lime); }
.pquote p { font-family: var(--f-display); font-size: 1.4rem; line-height: 1.35; color: var(--green-900); margin: 0 0 10px; }
.pquote cite { font-style: normal; font-weight: 700; color: var(--muted); font-size: .92rem; }
.article__meta .pmeta, .article__meta > span:not(.tag) { color: var(--on-dark) !important; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.share > span { font-weight: 800; margin-right: 6px; }
.share__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--green-800); background: var(--white); color: var(--green-800); font-weight: 700; font-size: .92rem; text-decoration: none; }
.share__btn:hover { background: var(--green-100); }
.byline { margin-top: 18px; color: var(--muted); }
.asidehelp { margin-top: 18px; padding: 22px; border-radius: var(--radius-lg); background: var(--green-100); }
.asidehelp p { margin-bottom: .5em; color: var(--muted); }
.asidehelp strong { color: var(--ink); font-size: 1.05rem; }

/* Home: ultimi articoli */
[data-page="home"] .blogpreview { background: var(--green-100); }

@media (max-width: 960px) {
  .pfeat__link { grid-template-columns: 1fr; }
  .pfeat__img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .pfeat__body { padding: 26px 22px; }
  .pquote { padding: 20px; }
  .pquote p { font-size: 1.2rem; }
}

/* =====================================================================
   IL NOSTRO IMPATTO
   ===================================================================== */
.impatto { background: var(--green-800); color: var(--white); position: relative; overflow: hidden; }
.impatto::before { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -160px; border-radius: 50%; background: var(--lime); opacity: .12; pointer-events: none; }
.impatto .wrap { position: relative; container-type: inline-size; }
.impatto .section-head h2 { color: var(--white); }
.impatto .section-head p:not(.eyebrow) { color: var(--on-dark); }
.impatto .eyebrow { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--lime); color: var(--ink); }

.impatto__numeri { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.impatto__numeri li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-top: 5px solid var(--lime); border-radius: var(--radius-lg); padding: 24px 22px; }
.impatto__numeri strong { display: block; font-family: var(--f-display); font-size: clamp(2rem, 2.6vw, 2.8rem); line-height: 1.05; color: var(--lime); margin-bottom: 10px; }
.impatto__numeri span { color: var(--on-dark); font-size: .98rem; }

.impatto__sub { color: var(--white); font-size: 1.5rem; margin: 56px 0 20px; }
.impatto__risultati { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.impatto__risultati li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 22px; }
.impatto__risultati strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.impatto__risultati p { margin: 0; color: var(--muted); font-size: .95rem; }
.impatto__n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 1.1rem; }

.impatto__territorio { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; align-items: center; margin-top: 40px; padding: 28px 30px; border-radius: var(--radius-lg); background: var(--lime); color: var(--ink); }
.impatto__territorio h3 { color: var(--ink); margin-bottom: .3em; }
.impatto__territorio p { margin: 0; }
.impatto__territorio ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.impatto__territorio strong { display: block; font-family: var(--f-display); font-size: 2rem; color: var(--green-900); line-height: 1.1; }
.impatto__territorio span { font-size: .92rem; }

.impatto__dono { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .2); }
.impatto__dono p { margin: 0; max-width: 62ch; color: var(--on-dark); font-size: 1.08rem; }
.impatto__dono strong { color: var(--white); }
.impatto__fonte { margin: 22px 0 0; font-size: .85rem; color: var(--on-dark-muted); }
.impatto__fonte a { color: var(--white); }

/* Variante verde chiaro (home) */
.impatto--lime { background: var(--lime); color: var(--ink); }
.impatto--lime::before { background: var(--green-800); opacity: .08; }
.impatto--lime .section-head h2 { color: var(--ink); }
.impatto--lime .section-head p:not(.eyebrow) { color: var(--ink); }
.impatto--lime .eyebrow { background: var(--green-800); color: var(--white); }
.impatto--lime .impatto__numeri li { background: var(--white); border-color: var(--white); border-top-color: var(--green-800); }
.impatto--lime .impatto__numeri strong { color: var(--green-800); }
.impatto--lime .impatto__numeri span { color: var(--ink); }
.impatto--lime .impatto__dono { border-top-color: rgba(29, 58, 32, .2); }
.impatto--lime .impatto__dono p, .impatto--lime .impatto__dono strong { color: var(--ink); }
.impatto--lime .impatto__dono .btn--dona { background: var(--green-800); color: var(--white); }
.impatto--lime .impatto__dono .btn--dona:hover { background: var(--green-900); }
.impatto--lime .impatto__fonte { color: var(--ink); }
.impatto--lime .impatto__fonte a { color: var(--green-900); }
[data-page="home"] .impatto--lime .eyebrow { background: var(--green-800); color: var(--white); }

/* Colonne in base allo spazio reale (la barra laterale riduce l'area del contenuto) */
@container (max-width: 900px) {
  .impatto__numeri, .impatto__risultati { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 520px) {
  .impatto__risultati { grid-template-columns: 1fr; }
}

/* Durate delle fasi */
.phases h3 small { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); font-family: var(--f-body); font-size: .78rem; font-weight: 800; vertical-align: middle; }

@media (max-width: 1080px) {
}
@media (max-width: 640px) {
  .impatto__numeri { grid-template-columns: 1fr 1fr; gap: 12px; }
  .impatto__numeri li { padding: 18px 16px; }
  .impatto__numeri strong { font-size: 1.7rem; }
  .impatto__numeri span { font-size: .88rem; }
  .impatto__risultati { grid-template-columns: 1fr; }
  .impatto__territorio { padding: 22px; }
  .impatto__territorio ul { grid-template-columns: 1fr; }
  .impatto__dono .btn { width: 100%; }
}

/* =====================================================================
   MEDIA E COMUNICAZIONE
   ===================================================================== */
.tabs { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 30; }
.tabs__in { display: flex; gap: 8px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; }
.tabs a { flex: none; padding: 10px 18px; border-radius: 999px; font-weight: 800; color: var(--green-800); text-decoration: none; border: 2px solid var(--line); }
.tabs a:hover { border-color: var(--green-800); }
.tabs a[aria-current="page"] { background: var(--green-800); border-color: var(--green-800); color: var(--white); }

/* Striscia testate */
.mentions { padding: 28px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.mentions__in { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; }
.mentions h2 { font-family: var(--f-body); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.mentions__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; flex: 1; }
.mentions__list li { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--green-800); }
.mentions .arrowlink { margin-left: auto; }
[data-page="home"] .mentions { background: var(--green-100); border: 0; }

/* Campagne */
.camps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.camp__link { display: grid; grid-template-columns: 42% 1fr; height: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1.5px solid var(--line); color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.camp__link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.camp__img { background: var(--cream); min-height: 220px; }
.camp__img img { width: 100%; height: 100%; object-fit: cover; }
.camp__body { padding: 22px 24px; display: flex; flex-direction: column; }
.camp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--green-800); margin-bottom: 10px; }
.camp__body h3 { font-size: 1.2rem; }
.camp__body p { color: var(--muted); font-size: .96rem; }
.camp__body .icard__more { margin-top: auto; }

/* Rassegna stampa */
.pressbox { background: var(--sand); }
.pressyear + .pressyear { margin-top: 32px; }
.pressyear__title { display: inline-block; font-family: var(--f-body); font-size: .85rem; font-weight: 800; letter-spacing: .1em; padding: 4px 14px; border-radius: 999px; background: var(--green-800); color: var(--white); margin-bottom: 14px; }
.presslist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.press { display: grid; grid-template-columns: 200px 1fr auto; gap: 20px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 18px 20px; border-left: 5px solid var(--lime); }
.press__meta { display: flex; flex-direction: column; gap: 2px; font-size: .88rem; color: var(--muted); }
.press__testata { font-family: var(--f-display); font-size: 1.12rem; color: var(--green-800); }
.press__tipo { align-self: flex-start; margin-top: 4px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; background: var(--green-100); color: var(--ink); }
.press__body h3 { font-family: var(--f-body); font-size: 1.04rem; font-weight: 800; margin: 0 0 4px; line-height: 1.35; }
.press__body h3 a { color: var(--ink); text-decoration: none; }
.press__body h3 a:hover { text-decoration: underline; }
.press__body p { margin: 0; color: var(--muted); font-size: .94rem; }
.press__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); }
.press__go:hover { background: var(--lime); }

/* Social */
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.socialcard { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--green-800); color: var(--white); text-decoration: none; transition: background .15s; }
.socialcard:hover { background: var(--green-900); }
.socialcard > .ico { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--lime); color: var(--ink); }
.socialcard span { display: flex; flex-direction: column; color: var(--on-dark); font-size: .92rem; flex: 1; }
.socialcard strong { color: var(--white); font-size: 1.15rem; }
.socialcard em { font-style: normal; font-weight: 800; color: var(--lime-light); display: inline-flex; align-items: center; gap: 6px; }

/* Diffondi */
.spread { background: var(--lime); }
.spread__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.spread h2, .spread p { color: var(--ink); }
.spread .eyebrow { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--green-800); color: var(--white); }
.spread__box { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.spread__msg { font-size: 1.02rem; padding: 16px 18px; border-radius: var(--radius); background: var(--green-100); margin-bottom: 16px; }
.spread__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer social */
.footer__social { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 1180px) {
  .camps { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .spread__in { grid-template-columns: 1fr; }
  .press { grid-template-columns: 1fr auto; }
  .press__meta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  .press__tipo { margin-top: 0; }
}
@media (max-width: 640px) {
  .camp__link { grid-template-columns: 1fr; }
  .camp__img { min-height: 0; aspect-ratio: 16 / 9; }
  .mentions .arrowlink { margin-left: 0; }
  .mentions__list li { font-size: 1.08rem; }
}

/* =====================================================================
   AREA RISERVATA
   ===================================================================== */
/* Icona omino */
.userbtn { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); border: 2px solid transparent; transition: background .15s, border-color .15s; }
.userbtn .ico { width: 22px; height: 22px; }
.userbtn:hover, .userbtn[aria-current="page"] { border-color: var(--green-800); }
.userbtn--side { margin-left: auto; margin-right: 6px; background: rgba(255, 255, 255, .14); color: var(--white); }
.userbtn--side:hover, .userbtn--side[aria-current="page"] { background: var(--white); color: var(--green-800); border-color: var(--white); }
.sidebar__top { gap: 4px; }

/* Bottoni aggiuntivi */
.btn--primary { background: var(--green-800); color: var(--white); }
.btn--primary:hover { background: var(--green-900); }
.btn--primary:disabled { opacity: .6; cursor: progress; }
.btn--danger { background: transparent; color: #a3261b; border-color: #a3261b; }
.btn--danger:hover { background: #fdecea; }

.area { background: var(--sand); min-height: 70vh; }
.area__panel { padding: 64px 0 96px; }
.area__narrow { max-width: 520px; }
.area__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--green-800); color: var(--lime); margin-bottom: 18px; }
.area__icon .ico { width: 30px; height: 30px; }
.area h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); outline: none; }
.area code { background: var(--green-100); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* Riquadro di accesso */
.authbox { background: var(--white); border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow); }
.authbox__lead { color: var(--muted); margin-bottom: 22px; }
.authbox__forgot { display: block; margin: 16px auto 0; }
.authbox__note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }

/* Campi */
.field { display: block; margin-bottom: 16px; }
.field > span:first-child { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: .94rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green-800); box-shadow: 0 0 0 4px var(--green-100); }
.field input[readonly] { background: var(--cream); color: var(--muted); }
.field small, .field__hint { display: block; margin-top: 6px; color: var(--muted); font-size: .85rem; font-weight: 500; }
.field small code { font-size: .85em; }
.field__pw { position: relative; display: block; }
.field__pw input { padding-right: 96px; }
.field__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--green-100); color: var(--green-800); font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px; }
.field__prefix { display: flex; align-items: stretch; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.field__prefix:focus-within { border-color: var(--green-800); box-shadow: 0 0 0 4px var(--green-100); }
.field__prefix em { font-style: normal; display: flex; align-items: center; padding: 0 10px; background: var(--cream); color: var(--muted); font-size: .85rem; white-space: nowrap; }
.field__prefix input { border: 0; border-radius: 0; box-shadow: none !important; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-row .field[hidden] { display: none; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 10px 0 4px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--green-800); }

.formmsg { min-height: 1.4em; margin: 8px 0 14px; font-weight: 700; font-size: .94rem; }
.formmsg--errore { color: #a3261b; }
.formmsg--ok { color: var(--green-800); }
.formmsg--info { color: var(--muted); }

/* Pannello */
.dash__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.dash__lead { color: var(--muted); max-width: 60ch; margin: 0; }
.dash__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dash__tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash__tools .filters { margin: 0; }
.dash__search input { font: inherit; padding: 10px 16px; border: 2px solid var(--line); border-radius: 999px; min-width: 240px; background: var(--white); }
.dash__search input:focus { outline: none; border-color: var(--green-800); }
.dash__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dash__item { display: grid; grid-template-columns: 140px 1fr auto auto; gap: 16px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 14px 16px; border: 1.5px solid var(--line); }
.dash__item .tag { justify-self: start; }
.dash__info { display: flex; flex-direction: column; min-width: 0; }
.dash__info strong { font-size: 1.04rem; }
.dash__info span { color: var(--muted); font-size: .86rem; }
.dash__edit { min-height: 40px; padding: 8px 18px; }
.stato { font-size: .8rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.stato--on { background: var(--lime); color: var(--ink); }
.stato--off { background: var(--cream); color: var(--muted); border: 1.5px dashed var(--line); }

/* Editor */
.crumb--dark { color: var(--green-800); margin-bottom: 12px; font-weight: 800; text-decoration: none; }
.editor { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; margin-top: 18px; }
.editor__box { border: 0; margin: 0 0 20px; padding: 24px; background: var(--white); border-radius: var(--radius-lg); min-width: 0; }
.editor__box legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--green-900); }
.editor__box legend + * { clear: both; }
.editor__side { position: sticky; top: calc(var(--header-h) + 20px); }
.editor__side .btn { margin-top: 10px; }
.editor__meta { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }
.tipi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tipi label { position: relative; }
.tipi input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tipi span { display: grid; place-items: center; min-height: 48px; padding: 6px; border-radius: 12px; border: 2px solid var(--line); font-weight: 800; text-align: center; }
.tipi input:checked + span { background: var(--green-800); border-color: var(--green-800); color: var(--white); }
.tipi input:focus-visible + span { outline: 3px solid var(--green-800); outline-offset: 2px; }
.imgprev { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--cream); border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.imgprev img { width: 100%; height: 100%; object-fit: cover; }
.upload { position: relative; cursor: pointer; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload:focus-within { outline: 3px solid var(--green-800); outline-offset: 2px; }
.editor__side small { display: block; color: var(--muted); font-size: .84rem; margin: 8px 0 14px; }

@media (max-width: 1100px) {
  .editor { grid-template-columns: 1fr; }
  .editor__side { position: static; }
}
@media (max-width: 760px) {
  .dash__item { grid-template-columns: 1fr auto; }
  .dash__item .tag { grid-column: 1 / -1; }
  .dash__edit { grid-column: 1 / -1; }

  .field-row { grid-template-columns: 1fr; }
  .dash__search input { min-width: 0; width: 100%; }
  .dash__search { flex: 1; }
}
@media (max-width: 640px) {
  .authbox { padding: 26px 20px; }
  .area__panel { padding: 40px 0 72px; }
  .editor__box { padding: 18px; }
  .topbar .userbtn { width: 40px; height: 40px; }
}
.brand--side .brand__text { font-size: 1.1rem; white-space: nowrap; }
.tipi { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
