/* Identità visiva FOC · campagna Natale 2026 "A Natale, la cura è un dono"
   Palette e caratteri ripresi dal materiale di campagna e da fondazioneospedalecuneo.it
   (DM Sans per testi e titoli di campagna, Bricolage Grotesque per i titoli di sezione). */

@font-face {
  font-family: "Autography";
  src: url("../fonts/Autography.otf") format("opentype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #f5e9da;
  --cream-soft: #fbf5ec;
  --paper: #fffdf9;
  --green: #054a3c;
  --green-mid: #1c6a58;
  --green-ink: #043b30;
  --red: #df1231;
  --red-deep: #b30d27;
  --yellow: #f8bf1a;
  --yellow-soft: #f1d27a;
  --blue: #4a5fb0;
  --blue-site: #2d54de;
  --pink: #e6909b;
  --ink: #191919;
  --muted: #5c6b66;
  --line: #e4d6c1;
  --ok: #1f7a4d;
  --err: #b42318;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgba(5, 74, 60, .06), 0 12px 32px rgba(5, 74, 60, .08);
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --script: "Autography", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--green); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-site); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 15px 28px; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; transition: transform .18s, background .18s, box-shadow .18s; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(25, 25, 25, .16); }
.btn-red:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-green { background: var(--green); color: var(--cream); }
.btn-green:hover { background: var(--green-ink); transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn-line:hover { background: var(--green); color: var(--cream); }
.btn:active { transform: translateY(0) scale(.98); }

/* ---------- etichette e titoli */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 700 .84rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--red-deep); }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.h2 { font: 700 clamp(2rem, 4.4vw, 3.1rem)/1.04 var(--display); color: var(--green); }
.h2 em { font-style: normal; color: var(--red-deep); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head .h2 { margin: 14px 0 12px; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(245, 233, 218, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(5, 74, 60, .06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.logo { display: block; flex: none; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; font-weight: 500; font-size: .98rem; }
.nav a { text-decoration: none; position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .22s; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { padding: 11px 22px; font-size: .95rem; }

/* ---------- footer */
.site-footer { background: var(--green); color: var(--cream); padding: 64px 0 120px; position: relative; overflow: hidden; }
.site-footer .grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; position: relative; z-index: 1; }
.site-footer img.f-logo { height: 58px; width: auto; filter: brightness(0) invert(1) sepia(.15); opacity: .95; }
.site-footer h3 { font: 700 .8rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.site-footer p, .site-footer li { margin: 0 0 6px; font-size: .96rem; color: rgba(245, 233, 218, .86); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a, .site-footer .legal a { display: inline-block; padding: 8px 0; }
.site-footer a { text-decoration-color: rgba(245, 233, 218, .4); text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; text-decoration-color: var(--yellow); }
.site-footer .motto { font: 700 .86rem/1 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--yellow); margin-top: 20px; display: flex; align-items: center; gap: 14px; }
.site-footer .motto::before, .site-footer .motto::after { content: ""; height: 2px; width: 28px; background: currentColor; opacity: .7; }
.site-footer .legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(245, 233, 218, .18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .86rem; color: rgba(245, 233, 218, .7); position: relative; z-index: 1; }
.site-footer .deco { position: absolute; right: -40px; top: -50px; width: 220px; opacity: .9; pointer-events: none; }

@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
  .site-header .wrap { height: 72px; }
  .logo img { height: 44px; }
  .site-footer .grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
