/* ===========================================================
   Byitalians — Made by Italians
   Modern redesign · plain HTML/CSS
   =========================================================== */

:root {
  --ink:        #15161c;
  --ink-soft:   #3a3c47;
  --muted:      #6b6e7b;
  --line:       #e7e5df;
  --paper:      #ffffff;
  --cream:      #faf8f3;
  --cream-2:    #f3efe6;
  --green:      #1f7a5a;
  --green-dark: #155c43;
  --red:        #c2322c;
  --accent:     var(--green);
  --shadow:     0 1px 2px rgba(20,22,28,.04), 0 8px 30px rgba(20,22,28,.08);
  --radius:     16px;
  --maxw:       1120px;
  --ff-serif:   "Fraunces", Georgia, "Times New Roman", serif;
  --ff-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1.1em; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.section { padding: 84px 0; }
.section--tint { background: var(--cream); }
.section__eyebrow {
  font-family: var(--ff-sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 14px;
}
.section__title { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: .35em; }
.section__lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

/* ---------- Flag accent bar ---------- */
.flag-bar { height: 4px; display: flex; }
.flag-bar i { flex: 1; }
.flag-bar i:nth-child(1) { background: var(--green); }
.flag-bar i:nth-child(2) { background: #fff; }
.flag-bar i:nth-child(3) { background: var(--red); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: baseline; gap: .5ch; font-family: var(--ff-serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand b { color: var(--green); font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: .95rem; font-weight: 500; color: var(--ink-soft); letter-spacing: .01em;
}
.nav__links a:hover { color: var(--green); text-decoration: none; }
.nav__links a.active { color: var(--green); }
.nav__links a.btn.active, .nav__links a.btn--primary:hover { color: #fff; }
/* Language switcher */
.lang { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang__opt { font-size: .78rem; font-weight: 700; letter-spacing: .03em; padding: 4px 9px; border-radius: 999px; color: var(--muted); line-height: 1; }
.lang__opt:hover { color: var(--green); text-decoration: none; }
.lang__opt.active { background: var(--green); color: #fff; }
.lang__opt.active:hover { color: #fff; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5ch;
  font-family: var(--ff-sans); font-weight: 600; font-size: .98rem;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, background .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(31,122,90,.28); }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--light:hover { background: rgba(255,255,255,.24); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 92% -20%, rgba(31,122,90,.07), transparent 60%),
    var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-block: 88px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 700; color: var(--green); margin-bottom: 18px; }
.hero h1 { color: var(--ink); font-size: clamp(2.6rem, 6vw, 4.3rem); margin-bottom: .25em; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero__sub { font-size: 1.22rem; color: var(--muted); max-width: 46ch; margin-bottom: 1.6em; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta { margin-top: 26px; font-size: .9rem; color: var(--muted); }
.hero__art { position: relative; justify-self: center; }
.hero__art img {
  width: min(320px, 72vw); border-radius: 10px;
  box-shadow: 0 24px 48px rgba(20,22,28,.16), 0 4px 12px rgba(20,22,28,.08);
  transform: rotate(-3deg);
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat__num { font-family: var(--ff-serif); font-size: clamp(2.2rem, 5vw, 3rem); color: var(--green); line-height: 1; }
.stat__label { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose p:first-of-type::first-letter { }
.lead { font-size: 1.22rem; color: var(--ink); }

/* ---------- Book feature ---------- */
.feature { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.feature__cover img { width: min(300px, 70vw); border-radius: 10px; box-shadow: var(--shadow); margin-inline: auto; }

/* ---------- Interview cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; transition: transform .16s ease, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9d6cc; }
.card__sector {
  display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--green); background: var(--cream-2); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.card__name { font-family: var(--ff-serif); font-size: 1.22rem; margin-bottom: 2px; }
.card__role { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Authors ---------- */
.author { display: grid; grid-template-columns: 1fr; gap: 10px; }
.author + .author { margin-top: 46px; padding-top: 46px; border-top: 1px solid var(--line); }
.author__name { font-size: 1.5rem; color: var(--green-dark); }

/* ---------- Forms ---------- */
.form { max-width: 620px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream); transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.field .req { color: var(--red); }
.form__note { font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* ---------- Callout ---------- */
.callout {
  background: linear-gradient(135deg, #123b2e, #1f7a5a);
  color: #eafaf3; border-radius: 22px; padding: 48px; text-align: center;
}
.callout h2 { color: #fff; }
.callout p { color: #cfe6dc; max-width: 54ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: #0f2a22; color: #bcd6cb; padding: 56px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-family: var(--ff-sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.site-footer a { color: #bcd6cb; }
.site-footer a:hover { color: #fff; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .95rem; }
.footer__brand { font-family: var(--ff-serif); font-size: 1.4rem; color: #fff; margin-bottom: 8px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .85rem; color: #8fb3a4; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-32 { margin-top: 32px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-row--center { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; padding-block: 64px; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__art { order: -1; }
  .feature { grid-template-columns: 1fr; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .nav__links {
    position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 16px;
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--cream-2); }
  .nav__links li:has(.lang) { padding: 12px 0; }
  .nav__links .lang { display: inline-flex; width: auto; }
  .nav__links .lang a { display: inline-flex; width: auto; padding: 4px 11px; border: 0; }
  .nav__toggle { display: block; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .callout { padding: 32px 22px; }
}
