/* ==========================================================
   Traiettorie&Prospettive — foglio di stile del sito
   Stessa palette e stesse font dei caroselli social.
   ========================================================== */

:root {
  --paper: #fcf5ea;
  --paper-2: #efe6d6;
  --card: #fffdf9;
  --ink: #1e1b17;
  --muted: #6e6559;
  --blue: #2e49e6;
  --coral: #f2553c;
  --yellow: #f4b02a;
  --green: #12a57b;
  --font-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --border: 2.5px solid var(--ink);
  --shadow: 5px 6px 0 var(--ink);
  --shadow-sm: 3px 4px 0 var(--ink);
  --max: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
mark {
  background: var(--yellow); color: var(--ink); padding: 0 .15em; border-radius: 3px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-stretto { max-width: 780px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap, .wrap-stretto { padding: 0 16px; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper-2); border-bottom: var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; white-space: nowrap;
}
.logo-img { width: 42px; height: 42px; flex-shrink: 0; }
.logo .amp { color: var(--yellow); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 7px 12px; border-radius: 999px; border: 2px solid transparent; white-space: nowrap;
}
.nav a:hover { border-color: var(--ink); }
.nav a.attivo { background: var(--ink); color: var(--paper); }
.nav a.nav-cta { background: var(--coral); color: var(--card); border: var(--border); box-shadow: var(--shadow-sm); margin-left: 8px; }
.nav a.nav-cta:hover { transform: translate(-1px, -1px); }

.menu-btn {
  display: none; width: 44px; height: 44px; border: var(--border); border-radius: 12px; background: var(--card);
  box-shadow: var(--shadow-sm); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0;
}
.menu-btn span { display: block; width: 18px; height: 2.5px; background: var(--ink); border-radius: 2px; }

@media (max-width: 1040px) {
  .menu-btn { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper-2);
    border-bottom: var(--border); flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 4px;
  }
  .nav.aperto { display: flex; }
  .nav a { font-size: 18px; padding: 10px 14px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 400px) { .logo { font-size: 18px; } }

/* ---------- Intro home ---------- */
.intro { padding-top: 56px; padding-bottom: 40px; }
.kicker {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.intro h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 7vw, 84px);
  line-height: .98; letter-spacing: -.035em; margin: 14px 0 0; max-width: 15ch; text-wrap: balance;
}
.intro p { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 620px; margin: 20px 0 0; }

/* ---------- Etichetta categoria ---------- */
.tag {
  display: inline-block; align-self: flex-start; color: var(--accent-text, var(--coral));
  font-family: var(--font-display); font-size: 12.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; line-height: 1.5; text-decoration: none;
}

/* ---------- Illustrazioni ---------- */
.arte { position: relative; background: var(--paper); overflow: hidden; }
.arte > svg, .arte > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Articolo in evidenza ---------- */
.evidenza {
  display: grid; grid-template-columns: 1.15fr 1fr; background: var(--paper); border: var(--border);
  border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.evidenza:hover, .card:hover { transform: translate(-2px, -2px); box-shadow: 7px 8px 0 var(--ink); }
.evidenza .arte { border-right: var(--border); min-height: 360px; }
.evidenza-body { padding: 40px 40px 36px; display: flex; flex-direction: column; align-items: flex-start; }
.evidenza-body .kicker { margin-bottom: 8px; }
.evidenza h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.04; letter-spacing: -.025em; margin: 10px 0 0; text-wrap: balance;
}
.evidenza p { color: var(--muted); font-size: 18px; margin: 14px 0 0; }
.leggi { margin-top: auto; padding-top: 26px; font-family: var(--font-display); font-weight: 700; color: var(--blue); font-size: 16px; }
@media (max-width: 820px) {
  .evidenza { grid-template-columns: 1fr; }
  .evidenza .arte { border-right: 0; border-bottom: var(--border); min-height: 0; aspect-ratio: 16 / 10; }
  .evidenza-body { padding: 26px 22px 24px; }
}

/* ---------- Elenco articoli ---------- */
.sezione { padding-top: 64px; }
.sezione-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.sezione-head h2 { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -.02em; margin: 0; }

.barra { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.filtri { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px; padding: 8px 15px; border-radius: 999px;
  border: var(--border); background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 2px 3px 0 var(--ink);
}
.chip:hover { transform: translate(-1px, -1px); }
.chip.attivo { background: var(--ink); color: var(--paper); }
.cerca {
  font: inherit; font-size: 15px; padding: 9px 16px; border: var(--border); border-radius: 999px;
  background: var(--paper); color: var(--ink); min-width: 240px;
}
@media (max-width: 640px) { .cerca { width: 100%; min-width: 0; } }

.griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.card {
  background: var(--paper); border: var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.card .arte { aspect-ratio: 16 / 10; border-bottom: var(--border); }
.card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 {
  font-family: var(--font-display); font-weight: 800; font-size: 23px; line-height: 1.12;
  letter-spacing: -.02em; margin: 8px 0 0; text-wrap: balance;
}
.card p { color: var(--muted); font-size: 15.5px; margin: 10px 0 0; }
.meta { margin-top: auto; padding-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.vuoto { font-size: 18px; color: var(--muted); padding: 30px 0; }

/* ---------- Newsletter ---------- */
.cta {
  margin-top: 88px; background: var(--ink); color: var(--paper); border: var(--border); border-radius: 22px;
  box-shadow: var(--shadow); padding: 48px; display: grid; grid-template-columns: 1.4fr auto;
  gap: 32px; align-items: center; position: relative; overflow: hidden;
}
.cta .kicker { color: #ffb199; }
.cta h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 46px); line-height: 1.02; letter-spacing: -.03em; margin: 10px 0 0; }
.cta p { color: #cfc6ac; font-size: 18px; margin: 14px 0 0; max-width: 520px; }
.cta-pill {
  display: inline-flex; align-items: center; gap: 6px; background: var(--coral); color: var(--card);
  font-family: var(--font-display); font-weight: 700; font-size: 17px; padding: 15px 28px; border-radius: 999px;
  border: 2.5px solid var(--paper); box-shadow: 3px 4px 0 var(--paper); text-decoration: none; white-space: nowrap;
}
.cta-pill:hover { transform: translate(-1px, -1px); }
.cta-deco { position: absolute; top: 22px; right: 26px; display: grid; grid-template-columns: repeat(3, 16px); gap: 6px; opacity: .95; }
.cta-deco span { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--paper); }
@media (max-width: 760px) {
  .cta { grid-template-columns: 1fr; padding: 34px 24px; }
  .cta-pill { justify-self: start; }
  .cta-deco { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; border-top: var(--border); background: var(--paper); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer p { color: var(--muted); max-width: 360px; font-size: 15.5px; }
.site-footer h4 {
  font-family: var(--font-display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 6px 0 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; font-weight: 600; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1.5px solid #d8cbac; font-size: 13.5px; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- Pagina articolo ---------- */
.art-head { padding-top: 56px; }
.art-head h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5.6vw, 62px);
  line-height: 1.02; letter-spacing: -.03em; margin: 18px 0 0; text-wrap: balance;
}
.art-sub { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); margin: 18px 0 0; line-height: 1.45; }
.art-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 26px; font-size: 15px; color: var(--muted); }
.art-meta strong { color: var(--ink); }
.avatar-mini { width: 30px; height: 30px; border-radius: 50%; border: var(--border); flex-shrink: 0; }

.art-cover { max-width: 1040px; margin: 40px auto 0; padding: 0 24px; }
.art-cover .arte { aspect-ratio: 2 / 1; border: var(--border); border-radius: 20px; box-shadow: var(--shadow); }
@media (max-width: 640px) {
  .art-cover { padding: 0 16px; }
  .art-cover .arte { aspect-ratio: 16 / 10; }
}

.prose { max-width: 700px; margin: 52px auto 0; padding: 0 24px; font-size: 19px; line-height: 1.72; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.12; letter-spacing: -.02em; margin: 1.8em 0 .5em; }
.prose h3 { font-family: var(--font-display); font-weight: 800; font-size: 23px; line-height: 1.2; margin: 1.6em 0 .4em; }
.prose a { color: var(--blue); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose ul li::marker { color: var(--coral); }
.prose ol li::marker { font-family: var(--font-display); font-weight: 800; color: var(--blue); }
.prose blockquote {
  margin: 1.8em 0; padding: 22px 26px; background: var(--paper); border: var(--border); border-radius: 16px;
  box-shadow: var(--shadow-sm); font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.28; letter-spacing: -.01em;
}
.prose blockquote p { margin: 0; }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border: var(--border); border-radius: 14px; }
.prose figcaption { font-size: 14.5px; color: var(--muted); margin-top: 10px; }
.prose hr {
  border: 0; height: 10px; margin: 2.4em 0;
  background: radial-gradient(circle, var(--ink) 2.5px, transparent 3px) center / 22px 10px repeat-x;
}
.prose iframe { max-width: 100%; border: var(--border); border-radius: 14px; }
@media (max-width: 640px) {
  .prose { font-size: 18px; padding: 0 16px; }
  .prose h2 { font-size: 26px; }
  .prose blockquote { font-size: 21px; padding: 18px 20px; }
}

.art-fine { max-width: 700px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .art-fine { padding: 0 16px; } }
.condividi { margin-top: 44px; padding-top: 24px; border-top: var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.condividi strong { font-family: var(--font-display); margin-right: 6px; }
.btn-sm {
  font-family: var(--font-display); font-weight: 700; font-size: 14px; padding: 8px 14px; border: var(--border);
  border-radius: 999px; background: var(--card); color: var(--ink); box-shadow: 2px 3px 0 var(--ink); text-decoration: none; cursor: pointer;
}
.btn-sm:hover { transform: translate(-1px, -1px); }

.btn {
  display: inline-flex; align-items: center; gap: 6px; background: var(--coral); color: var(--card);
  font-family: var(--font-display); font-weight: 700; font-size: 16px; padding: 13px 26px; border-radius: 999px;
  border: var(--border); box-shadow: var(--shadow-sm); text-decoration: none;
}

/* ---------- Pagine semplici (chi siamo, 404) ---------- */
.principi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.box { background: var(--paper); border: var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 28px 26px; }
.box .num {
  width: 44px; height: 44px; border-radius: 12px; border: var(--border); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 20px; background: var(--accent, var(--yellow)); color: var(--on-accent, var(--ink));
}
.box h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin: 16px 0 0; letter-spacing: -.01em; }
.box p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }

.non-trovato { padding: 90px 0 20px; text-align: center; }
.non-trovato .qmark {
  width: 110px; height: 110px; border-radius: 50%; background: var(--yellow); border: var(--border); box-shadow: var(--shadow);
  display: grid; place-items: center; margin: 0 auto 28px; font-family: var(--font-display); font-weight: 800; font-size: 54px;
}
.non-trovato h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.03em; margin: 0; }
.non-trovato p { color: var(--muted); font-size: 18px; margin: 12px auto 28px; max-width: 480px; }
