/* ==============================================================
   PRESTAZIONE — new-version shared design system
   Clean white + green palette (Royal Group inspired)
   ============================================================== */

:root {
  --green:        #1f3528;
  --green-deep:   #122017;
  --green-soft:   #f1efe9;
  --gold:         #b89a63;
  --ink:          #0a1410;
  --ink-mute:     rgba(10, 20, 16, 0.62);
  --ink-soft:     rgba(10, 20, 16, 0.40);
  --line:         rgba(10, 20, 16, 0.10);
  --line-strong:  rgba(10, 20, 16, 0.20);
  --cream:        #f6f4ee;
  --cream-mute:   rgba(246, 244, 238, 0.65);
  --cream-soft:   rgba(246, 244, 238, 0.40);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  letter-spacing: 0.38em; color: var(--green);
}
.brand .dot { color: var(--gold); }
.nav-mid { display: flex; gap: 36px; align-items: center; }
.nav-mid a {
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-mute);
  font-weight: 500;
  transition: color .25s var(--ease);
}
.nav-mid a:hover, .nav-mid a.active { color: var(--green); }
.nav-right { display: flex; gap: 20px; align-items: center; }
.nav-lang {
  display: flex; gap: 8px; align-items: center;
  font-size: 11px; letter-spacing: 0.18em; color: var(--ink-soft);
  text-transform: uppercase;
}
.nav-lang a { transition: color .2s; }
.nav-lang a.active { color: var(--green); font-weight: 600; }
.nav-lang a:hover { color: var(--green); }
.nav-cta {
  border: 1px solid var(--green); padding: 11px 24px;
  color: var(--green);
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  background: transparent;
  transition: all .25s var(--ease);
  font-weight: 600;
  display: inline-block;
}
.nav-cta:hover { background: var(--green); color: #fff; }
.nav-burger { display: none; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  font-weight: 600;
  transition: all .25s var(--ease);
  font-family: var(--sans);
}
.btn svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn.ghost { color: var(--green); border: 1px solid var(--green); }
.btn.ghost:hover { background: var(--green); color: #fff; }
.btn.cream { background: #fff; color: var(--green); }
.btn.cream:hover { background: var(--cream); transform: translateY(-2px); }

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--green); display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px; font-weight: 600;
}
.eyebrow::before { content: ''; display: block; width: 36px; height: 1px; background: var(--green); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
h2 em, h3 em { font-style: italic; color: var(--green); font-weight: 500; }

/* ---------- SECTION SHELLS ---------- */
section.band { padding: 140px 48px; position: relative; }
section.band.green { background: var(--green); color: var(--cream); }
section.band.green h2, section.band.green h3 { color: var(--cream); }
section.band.green h2 em { color: var(--gold); }
section.band.soft { background: var(--green-soft); }

.container { max-width: 1240px; margin: 0 auto; }
.container.narrow { max-width: 880px; margin: 0 auto; }
.container.text { max-width: 720px; margin: 0 auto; }

.section-head { text-align: center; margin-bottom: 80px; }
.section-head .icon-mark {
  width: 56px; height: 56px;
  border: 1.5px solid currentColor; opacity: 0.9;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 32px; color: var(--green);
  transform: rotate(45deg);
}
section.band.green .section-head .icon-mark { color: var(--gold); border-color: var(--gold); }
.section-head .icon-mark svg { width: 22px; height: 22px; transform: rotate(-45deg); }
.section-head .eyebrow-c {
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--green); margin-bottom: 18px; font-weight: 600;
}
section.band.green .section-head .eyebrow-c { color: var(--gold); }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.1; font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 820px; margin: 0 auto;
}
.section-head h2 em { font-style: italic; color: var(--green); font-weight: 500; }
section.band.green .section-head h2 em { color: var(--gold); }
.section-head .lede {
  margin-top: 28px; max-width: 640px; margin-left: auto; margin-right: auto;
  color: var(--ink-mute); font-size: 17px; line-height: 1.7;
}
section.band.green .section-head .lede { color: var(--cream-mute); }

/* ---------- BREADCRUMB ---------- */
.crumbs {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 28px;
}
.crumbs a { color: var(--green); transition: color .2s; }
.crumbs a:hover { color: var(--green-deep); }
.crumbs span { margin: 0 10px; color: var(--ink-soft); }

/* ---------- FOOTER ---------- */
footer.foot {
  background: var(--green-deep);
  color: var(--cream-mute);
  padding: 100px 48px 40px;
}
.foot-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(246, 244, 238, 0.1);
  margin-bottom: 36px;
}
.foot-brand .brand { font-size: 26px; color: var(--cream); letter-spacing: 0.4em; }
.foot-brand .brand .dot { color: var(--gold); }
.foot-brand p { color: var(--cream-mute); font-size: 14px; line-height: 1.7; margin-top: 20px; max-width: 360px; }
.foot-col h5 {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; font-weight: 600;
}
.foot-col a, .foot-col p {
  display: block; color: var(--cream-mute); font-size: 13px;
  padding: 5px 0; line-height: 1.6;
  transition: color .2s;
}
.foot-col a { cursor: pointer; }
.foot-col a:hover { color: var(--cream); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--cream-soft); font-size: 11px;
  letter-spacing: 0.25em; text-transform: uppercase;
}
.foot-bottom .lang a { color: var(--cream-soft); margin: 0 6px; transition: color .2s; }
.foot-bottom .lang a:hover, .foot-bottom .lang a.active { color: var(--gold); }

/* ---------- MODAL ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 20, 16, 0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 32px;
}
.modal.open { display: flex; }
.modal-card {
  background: #fff;
  width: 100%; max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  position: relative;
}
.modal-card.wide { max-width: 980px; }
.modal-card.narrow { max-width: 540px; }
.modal-header {
  padding: 32px 40px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px;
}
.modal-header .sub {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 8px;
}
.modal-header h2 {
  font-family: var(--serif); font-size: 32px; font-weight: 500;
  color: var(--ink); line-height: 1.1;
}
.modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-mute);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all .2s;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--green); color: #fff; border-color: var(--green); }
.modal-body { padding: 40px; }

.prose p { font-size: 15px; color: var(--ink-mute); line-height: 1.75; margin-bottom: 14px; }
.prose strong { color: var(--ink); font-weight: 600; }

.info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.info-item {
  background: #fff; padding: 28px 24px;
  transition: background .2s; cursor: pointer;
}
.info-item:hover { background: var(--green-soft); }
.info-item h4 { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.info-item p { font-size: 13px; color: var(--ink-mute); line-height: 1.6; }
.info-item .v { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--green); }

/* Toast */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translate(-50%, 20px);
  background: var(--green); color: #fff;
  padding: 14px 24px; font-size: 13px; letter-spacing: 0.1em;
  opacity: 0; pointer-events: none; transition: all .3s var(--ease);
  z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- COMPASS CARD with photo background ---------- */
.compass-card .imgbox.has-photo {
  background-size: cover !important;
  background-position: center !important;
}
.compass-card .imgbox.has-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,16,0.05) 0%, rgba(10,20,16,0.65) 100%);
  z-index: 1;
}
.compass-card .imgbox.has-photo svg {
  color: rgba(246, 244, 238, 0.85);
  opacity: 0.45;
  z-index: 2;
  width: 28%;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.compass-card .label-block { z-index: 3; }

/* ---------- ARTICLE PAGE ---------- */
.article-hero {
  padding: 160px 20px 80px;
  text-align: center;
  background: #fff;
}
.article-hero .category {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--green); color: var(--green);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 36px; font-weight: 600;
}
.article-hero h1 {
  max-width: 880px; margin: 0 auto 28px;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05; font-weight: 500;
}
.article-hero h1 em { font-style: italic; color: var(--green); font-weight: 500; }
.article-hero .standfirst {
  max-width: 620px; margin: 0 auto 44px;
  font-size: 19px; line-height: 1.6;
  color: var(--ink-mute); font-weight: 400;
}
.article-meta {
  display: flex; justify-content: center; gap: 24px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-soft); flex-wrap: wrap;
}
.article-meta span { color: var(--green); font-weight: 600; }

.article-cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  position: relative; overflow: hidden;
}
.article-cover::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(184, 154, 99, 0.25), transparent 60%);
}
.article-cover .stamp {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(36px, 5vw, 80px);
  color: rgba(246, 244, 238, 0.35);
  text-align: center;
}

.article-body { padding: 100px 20px; background: #fff; }
.article-body .container.text { max-width: 720px; }
.article-body p {
  font-size: 18px; line-height: 1.85;
  color: var(--ink); margin-bottom: 28px;
}
.article-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 84px; float: left; line-height: 0.85;
  padding: 10px 16px 0 0;
  color: var(--green); font-weight: 600;
}
.article-body h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin: 60px 0 24px;
  color: var(--ink);
}
.article-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.4;
  color: var(--green);
  margin: 48px 0;
  padding: 0 40px;
  border-left: 2px solid var(--green);
}
.article-divider { width: 60px; height: 1px; background: var(--green); margin: 60px auto; }

.author-box {
  display: flex; gap: 24px; align-items: center;
  margin: 60px 0 40px;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--green-soft);
}
.author-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 24px; font-weight: 600;
  flex-shrink: 0;
}
.author-box h5 { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-bottom: 4px; font-weight: 600; }
.author-box p { font-size: 13px; color: var(--ink-mute); margin: 0; }

.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }

/* ---------- JOURNAL INDEX ---------- */
.j-card {
  display: block; background: #fff;
  border: 1px solid var(--line); overflow: hidden;
  transition: all .3s var(--ease);
}
.j-card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: 0 24px 48px rgba(10, 20, 16, 0.08); }
.j-card .image {
  aspect-ratio: 16/10;
  background-color: var(--green-deep);
  background-image: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  background-size: cover;
  background-position: center;
  position: relative; overflow: hidden;
  transition: background-size .6s var(--ease);
}
.j-card:hover .image { background-size: 108% auto; }
.j-card .image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,16,0) 40%, rgba(10,20,16,0.55) 100%);
  z-index: 1;
}
.j-card .image .label {
  position: absolute; bottom: 20px; left: 22px;
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: #fff; letter-spacing: 0.04em;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.j-card .body { padding: 32px 28px; }
.j-card .meta {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--green); font-weight: 600; margin-bottom: 14px;
}
.j-card h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  margin-bottom: 10px; line-height: 1.25; color: var(--ink);
}
.j-card p { font-size: 13px; color: var(--ink-mute); line-height: 1.6; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .nav { padding: 14px 20px; }
  .nav-mid { display: none; }
  .nav-burger { display: block; color: var(--green); padding: 8px; font-size: 22px; }
  .nav-lang { display: none; }
  .nav-cta { padding: 9px 16px; font-size: 10px; letter-spacing: 0.18em; }
  .brand { font-size: 14px; letter-spacing: 0.3em; }

  section.band { padding: 80px 20px; }
  .section-head { margin-bottom: 50px; }

  footer.foot { padding: 60px 20px 30px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot-bottom { flex-direction: column; gap: 14px; text-align: center; }

  .modal { padding: 16px; }
  .modal-header { padding: 24px; }
  .modal-header h2 { font-size: 24px; }
  .modal-body { padding: 24px; }
  .info-grid { grid-template-columns: 1fr; }

  .article-body { padding: 60px 20px; }
  .article-body p:first-of-type::first-letter { font-size: 56px; }
  .article-body blockquote { padding: 0 20px; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .foot-top { grid-template-columns: 1fr; }
}
