/* =========================================================================
   Gli Amici di Eleonora Onlus ATS — style.css
   Design system Royaletiger · livello "grande associazione"
   CSS puro, zero framework
   ========================================================================= */

:root {
  /* palette brand */
  --brand: #E85D6C;
  --brand-dark: #C23E52;
  --brand-deep: #A32E40;
  --brand-soft: #FBEDEF;
  --accent: #2E5F7E;

  --ink: #14202E;
  --navy: #1B2A3D;
  --text: #46505E;
  --muted: #7C8695;

  --bg: #FFFFFF;
  --bg-alt: #FAF5F4;
  --bg-dark: #14202E;
  --line: #ECE4E3;

  /* tipografia */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* sistema */
  --shadow-sm: 0 2px 10px rgba(20, 32, 46, .06);
  --shadow-md: 0 16px 40px rgba(20, 32, 46, .11);
  --shadow-lg: 0 32px 80px rgba(20, 32, 46, .18);
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1240px;
  --nav-h: 92px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* pattern decorativi */
  --dots-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='2' cy='2' r='1.6' fill='%23ffffff' fill-opacity='0.10'/%3E%3C/svg%3E");
  --dots-brand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='2' cy='2' r='1.6' fill='%23C23E52' fill-opacity='0.08'/%3E%3C/svg%3E");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 1.03rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  font-weight: 620;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.6rem, 5.8vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.05rem; }
p { max-width: 68ch; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 28px; }
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(150deg, var(--navy), var(--bg-dark) 70%); color: #D6DCE4; position: relative; }
.section-dark::before { content: ""; position: absolute; inset: 0; background-image: var(--dots-light); pointer-events: none; }
.section-dark > * { position: relative; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-dark);
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--brand); border-radius: 2px; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after { content: ""; width: 30px; height: 2px; background: var(--brand); border-radius: 2px; }
.section-dark .eyebrow { color: #F0A9B2; }

.lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--text); max-width: 62ch; line-height: 1.65; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 5.5vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 18px; }
.section-head.center p { margin-inline: auto; }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 16px 34px; border-radius: 11px;
  font-weight: 650; font-size: .98rem; letter-spacing: .015em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap; cursor: pointer; border: 1.5px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 12px 28px rgba(194, 62, 82, .35);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-dark), var(--brand-deep)); transform: translateY(-2px); box-shadow: 0 18px 36px rgba(194, 62, 82, .42); }
.btn-outline { border-color: #D8CFCE; color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.section-dark .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.38); }
.section-dark .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-lg { padding: 18px 42px; font-size: 1.02rem; }

/* ---------- topbar ---------- */
.topbar { background: var(--ink); color: #C4CCD7; font-size: .84rem; position: relative; z-index: 101; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 18px; }
.tb-left { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.tb-item { display: inline-flex; align-items: center; gap: 8px; }
.tb-item svg { width: 14px; height: 14px; color: var(--brand); flex: none; }
.tb-item a:hover { color: #fff; }
.tb-badge { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8E99A8; white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.97); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 62px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li > a:not(.btn) {
  position: relative;
  display: inline-block; padding: 12px 16px; border-radius: 9px;
  font-weight: 600; font-size: .99rem; color: var(--ink);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-links > li > a:not(.btn)::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 7px;
  height: 2px; background: var(--brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links > li > a:not(.btn):hover { color: var(--brand-dark); }
.nav-links > li > a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links > li > a[aria-current="page"]:not(.btn) { color: var(--brand-dark); }
.nav-links > li > a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.nav-cta { margin-left: 10px; padding: 13px 28px !important; }

.nav-toggle { display: none; width: 46px; height: 46px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 11px; }
.nav-toggle span { width: 25px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-bg-tint {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58% 78% at 90% 4%, rgba(232, 93, 108, .11), transparent 62%),
    radial-gradient(46% 60% at 3% 96%, rgba(46, 95, 126, .08), transparent 60%);
}
.hero-bg-tint::after { content: ""; position: absolute; inset: 0; background-image: var(--dots-brand); mask-image: radial-gradient(60% 60% at 85% 20%, #000, transparent 70%); -webkit-mask-image: radial-gradient(60% 60% at 85% 20%, #000, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(44px, 5.5vw, 84px); align-items: center; }
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-copy h1 { margin-bottom: 26px; }
.hero-copy h1 .accent { color: var(--brand-dark); font-style: italic; font-weight: 560; }
.hero-copy .lead { margin-bottom: 38px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.hero-stats { display: flex; flex-wrap: wrap; }
.hero-stat { padding-right: clamp(20px, 2.6vw, 36px); margin-right: clamp(20px, 2.6vw, 36px); border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: 0; padding-right: 0; margin-right: 0; }
.hero-stat .num { font-family: var(--font-display); font-size: clamp(1.9rem, 2.4vw, 2.5rem); font-weight: 620; color: var(--ink); line-height: 1; white-space: nowrap; }
.hero-stat .lbl { font-size: .85rem; color: var(--muted); margin-top: 8px; font-weight: 500; }

.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: 0;
  transform: translate(22px, 22px);
  border: 2px solid var(--brand); border-radius: var(--radius-lg);
  opacity: .35; z-index: -1;
}
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-badge {
  position: absolute; left: -28px; bottom: 40px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius); padding: 20px 24px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 15px; max-width: 280px;
  border-left: 4px solid var(--brand);
}
.hero-badge .ico { width: 48px; height: 48px; flex: none; border-radius: 13px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; }
.hero-badge .ico svg { width: 25px; height: 25px; }
.hero-badge strong { display: block; color: var(--ink); font-size: .98rem; }
.hero-badge span { font-size: .84rem; color: var(--muted); }

/* ---------- trust strip (istituzioni) ---------- */
.trust-strip { background: #fff; border-block: 1px solid var(--line); padding: 34px 0; }
.trust-label { text-align: center; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 56px; }
.trust-item { text-align: center; }
.trust-item strong { display: block; font-family: var(--font-display); font-size: 1.12rem; font-weight: 620; color: var(--ink); line-height: 1.2; }
.trust-item span { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }

/* ---------- feature cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px 34px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .ico {
  width: 60px; height: 60px; border-radius: 16px; margin-bottom: 24px;
  background: linear-gradient(140deg, var(--brand-soft), #F7DDE1);
  color: var(--brand-dark); display: grid; place-items: center;
}
.card .ico svg { width: 29px; height: 29px; }
.card h3 { margin-bottom: 13px; }
.card p { font-size: .98rem; color: var(--text); }
.card .card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--brand-dark); font-weight: 650; font-size: .93rem; }
.card .card-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card:hover .card-link svg { transform: translateX(5px); }

/* ---------- split (about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 5.5vw, 84px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media::before {
  content: ""; position: absolute; inset: 0;
  transform: translate(-18px, 18px);
  background: var(--brand-soft); border-radius: var(--radius-lg);
  z-index: -1;
}
.split.reverse .split-media::before { transform: translate(18px, 18px); }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.split-copy h2 { margin-bottom: 22px; }
.split-copy p + p { margin-top: 18px; }
.split-copy .eyebrow { margin-bottom: 20px; }
.check-list { margin-top: 30px; display: grid; gap: 16px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; color: var(--ink); font-weight: 550; }
.check-list .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin-top: 2px; box-shadow: 0 4px 10px rgba(232,93,108,.3); }
.check-list .tick svg { width: 14px; height: 14px; }

/* ---------- servizi list ---------- */
.service-row {
  display: grid; grid-template-columns: 68px 1fr auto; gap: 26px; align-items: center;
  padding: 32px 0; border-top: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}
.service-row:hover { padding-left: 10px; }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .ico { width: 64px; height: 64px; border-radius: 17px; background: linear-gradient(140deg, var(--brand-soft), #F7DDE1); color: var(--brand-dark); display: grid; place-items: center; }
.service-row .ico svg { width: 31px; height: 31px; }
.service-row h3 { margin-bottom: 7px; }
.service-row p { font-size: .98rem; margin: 0; }
.service-row .num { font-family: var(--font-display); font-size: 1.6rem; color: #DCD2D1; font-weight: 620; }

/* ---------- numeri ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: center; }
.stat-item { padding: 10px clamp(12px, 2vw, 32px); }
.stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,.13); }
.stat-item .num { font-family: var(--font-display); font-size: clamp(2.8rem, 5.5vw, 4.4rem); font-weight: 620; color: #fff; line-height: 1; }
.stat-item .num span { background: linear-gradient(120deg, #fff, #F0A9B2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-item .lbl { margin-top: 14px; font-size: .93rem; color: #A7B2C0; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; margin: 0; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 20px 16px;
  background: linear-gradient(to top, rgba(20,32,46,.88), transparent);
  color: #fff; font-size: .9rem; font-weight: 600; letter-spacing: .02em;
}

/* ---------- quote ---------- */
.quote { max-width: 900px; margin-inline: auto; text-align: center; position: relative; }
.quote .mark { font-family: var(--font-display); font-size: 6rem; color: var(--brand); line-height: .3; display: block; margin-bottom: 14px; opacity: .85; }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.32; color: var(--ink); font-weight: 540; letter-spacing: -.01em; }
.quote cite { display: inline-flex; flex-direction: column; align-items: center; margin-top: 32px; font-style: normal; font-weight: 650; color: var(--brand-dark); }
.quote cite::before { content: ""; width: 44px; height: 3px; background: var(--brand); border-radius: 2px; margin-bottom: 16px; }
.quote cite span { font-weight: 400; color: var(--muted); font-size: .92rem; margin-top: 3px; }

/* ---------- blog cards ---------- */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card .body { padding: 30px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.post-card .tag { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-dark); }
.post-card h3 { margin: 14px 0 12px; font-size: 1.32rem; }
.post-card h3 a:hover { color: var(--brand-dark); }
.post-card p { font-size: .97rem; flex: 1; }
.post-card .card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--brand-dark); font-weight: 650; font-size: .93rem; }
.post-card .card-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.post-card:hover .card-link svg { transform: translateX(5px); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-dark) 45%, var(--brand));
  border-radius: var(--radius-lg);
  padding: clamp(52px, 7vw, 88px) clamp(28px, 5vw, 72px);
  text-align: center; color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-banner::before { content: ""; position: absolute; inset: 0; background-image: var(--dots-light); }
.cta-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(46% 110% at 100% 0, rgba(255,255,255,.16), transparent 58%); }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: 18px; }
.cta-banner p { color: rgba(255,255,255,.92); max-width: 62ch; margin: 0 auto 36px; font-size: 1.05rem; }
.cta-banner .btn-primary { background: #fff; color: var(--brand-deep); box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.cta-banner .btn-primary:hover { background: var(--ink); color: #fff; }
.cta-banner .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; box-shadow: none; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- page hero (interne) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--bg-alt), #fff 75%);
  padding: clamp(56px, 8vw, 96px) 0 clamp(44px, 5.5vw, 68px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--dots-brand); mask-image: radial-gradient(50% 90% at 92% 10%, #000, transparent 70%); -webkit-mask-image: radial-gradient(50% 90% at 92% 10%, #000, transparent 70%); pointer-events: none; }
.page-hero > * { position: relative; }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { margin-bottom: 20px; }
.page-hero p { max-width: 64ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 30px; }
.breadcrumb a:hover { color: var(--brand-dark); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 550; }

/* ---------- contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 5.5vw, 72px); align-items: start; }
.contact-info .info-item { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item:first-of-type { padding-top: 0; }
.contact-info .ico { width: 52px; height: 52px; flex: none; border-radius: 14px; background: linear-gradient(140deg, var(--brand-soft), #F7DDE1); color: var(--brand-dark); display: grid; place-items: center; }
.contact-info .ico svg { width: 25px; height: 25px; }
.contact-info h4 { margin-bottom: 4px; color: var(--ink); }
.contact-info a, .contact-info p { color: var(--text); font-size: 1rem; }
.contact-info a:hover { color: var(--brand-dark); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(30px, 4.5vw, 48px); box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--brand), var(--brand-dark)); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .89rem; font-weight: 650; color: var(--ink); margin-bottom: 9px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 15px 17px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: .98rem; color: var(--ink); background: var(--bg-alt);
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(232,93,108,.13); }
.field textarea { resize: vertical; min-height: 140px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field-check { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 24px; font-size: .87rem; color: var(--muted); }
.field-check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--brand); }
.field-check a { color: var(--brand-dark); text-decoration: underline; }
.form-status { margin-top: 16px; font-size: .92rem; color: var(--brand-dark); font-weight: 550; min-height: 1.2em; }

/* ---------- map link ---------- */
.map-link { display: block; margin-top: 30px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.map-link:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.map-link .map-strip { display: flex; align-items: center; gap: 15px; padding: 20px 24px; background: var(--bg-alt); }
.map-link .map-strip svg { width: 27px; height: 27px; color: var(--brand-dark); flex: none; }
.map-link .map-strip strong { color: var(--ink); display: block; font-size: .98rem; }
.map-link .map-strip span { font-size: .86rem; color: var(--muted); }
.map-link:hover .map-strip { background: var(--brand-soft); }

/* ---------- timeline storia ---------- */
.timeline { position: relative; max-width: 800px; margin-inline: auto; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(to bottom, var(--brand), var(--line)); border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 42px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -37px; top: 7px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3.5px solid var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.timeline-item .year { font-family: var(--font-display); font-size: 1.55rem; font-weight: 620; color: var(--brand-dark); line-height: 1; margin-bottom: 10px; }
.timeline-item h3 { margin-bottom: 7px; font-size: 1.2rem; }
.timeline-item p { font-size: .98rem; }

/* ---------- progetti ---------- */
.project-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.project-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.project-item .ico { width: 50px; height: 50px; flex: none; border-radius: 13px; background: linear-gradient(140deg, var(--brand-soft), #F7DDE1); color: var(--brand-dark); display: grid; place-items: center; }
.project-item .ico svg { width: 24px; height: 24px; }
.project-item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.project-item p { font-size: .93rem; margin: 0; }

/* ---------- article ---------- */
.article { max-width: 780px; margin-inline: auto; }
.article > * { margin-bottom: 24px; }
.article img { border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 38px 0; }
.article h2 { margin-top: 48px; margin-bottom: 6px; font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.article h3 { margin-top: 32px; }
.article p { color: var(--text); }
.article ul.dotted { padding-left: 4px; display: grid; gap: 13px; margin: 8px 0 24px; }
.article ul.dotted li { display: flex; gap: 13px; align-items: flex-start; color: var(--text); }
.article ul.dotted li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 11px; }
.article .lead { color: var(--ink); font-weight: 500; }
.article a:not(.btn) { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--muted); font-size: .87rem; margin-bottom: 8px; }
.article-meta .tag { color: var(--brand-dark); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .74rem; }
.article-cta { margin-top: 44px; padding: 38px 32px; background: linear-gradient(140deg, var(--brand-soft), #FDF6F5); border-radius: var(--radius-lg); text-align: center; border: 1px solid #F4DCE0; }
.article-cta h3 { margin-bottom: 10px; }
.article-cta p { margin: 0 auto 22px; }

/* ---------- legal pages ---------- */
.legal { max-width: 840px; margin-inline: auto; }
.legal h2 { margin: 42px 0 14px; font-size: 1.55rem; }
.legal h3 { margin: 26px 0 8px; font-size: 1.18rem; }
.legal p, .legal li { color: var(--text); font-size: .99rem; }
.legal ul { padding-left: 22px; margin: 10px 0 20px; list-style: disc; display: grid; gap: 9px; }
.legal a { color: var(--brand-dark); text-decoration: underline; }
.legal .updated { color: var(--muted); font-size: .88rem; margin-bottom: 30px; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(160deg, var(--navy), var(--bg-dark) 60%);
  color: #AEB8C4;
  padding: 0 0 32px;
}
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--brand-deep), var(--brand), var(--brand-soft)); }
.site-footer::after { content: ""; position: absolute; inset: 0; background-image: var(--dots-light); pointer-events: none; }
.site-footer > * { position: relative; z-index: 1; }

.footer-mission {
  display: grid; grid-template-columns: 1.5fr auto; gap: 28px 48px; align-items: center;
  padding: clamp(48px, 6vw, 72px) 0 clamp(40px, 5vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: clamp(44px, 5vw, 64px);
}
.footer-mission p.footer-mission-title { font-family: var(--font-display); font-weight: 620; letter-spacing: -.01em; line-height: 1.15; color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-bottom: 12px; max-width: none; }
.footer-mission p { color: #97A2B0; font-size: .99rem; max-width: 56ch; }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; }
.footer-brand-img { margin-bottom: 22px; background: #fff; padding: 12px 18px; border-radius: 11px; display: inline-block; }
.footer-brand-img img { height: 46px; width: auto; }
.footer-col p { font-size: .94rem; color: #97A2B0; max-width: 36ch; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col ul a { font-size: .94rem; color: #AEB8C4; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer-col ul a:hover { color: var(--brand); padding-left: 4px; }
.footer-contact li { font-size: .94rem; color: #AEB8C4; display: flex; gap: 11px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 4px; }
.footer-contact a:hover { color: var(--brand); }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.07); display: grid; place-items: center; transition: background .25s var(--ease), transform .25s var(--ease); }
.footer-social a:hover { background: var(--brand); transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; color: #fff; }
.footer-bottom { margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; align-items: center; font-size: .85rem; color: #8A94A2; }
.footer-bottom a:hover { color: var(--brand); }
.footer-bottom .footer-credit a { color: #AEB8C4; }
.footer-bottom .footer-credit a:hover { color: var(--brand); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

/* ---------- mobile menu / responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-media { max-width: 520px; }
  .hero-media img { aspect-ratio: 5/4; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .footer-mission { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 22px 26px 30px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > li > a:not(.btn) { padding: 14px 16px; font-size: 1.04rem; }
  .nav-links > li > a:not(.btn)::after { display: none; }
  .nav-cta { margin: 10px 0 0; text-align: center; }
  body.menu-open { overflow: hidden; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .stat-item:nth-child(3) { border-left: 0; }
  .tb-badge { display: none; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-badge { left: 0; }
  .hero-media::before { display: none; }
  .split-media::before { display: none; }
  .service-row { grid-template-columns: 52px 1fr; }
  .service-row .num { display: none; }
  .service-row .ico { width: 52px; height: 52px; }
  .nav-brand img { height: 48px; }
  .tb-address { display: none; }
  .hero-stat { padding-right: 20px; margin-right: 20px; }
  .trust-inner { gap: 16px 32px; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-cta, .cta-actions { flex-direction: column; }
  .tb-mail { display: none; }
  .stats-band { grid-template-columns: 1fr; gap: 28px; }
  .stat-item + .stat-item { border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
