@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/* ═══════════════════════════════════════════════
   ALGORA STUDIO — Design System
   Estetica: Archivio Caldo
   Tipografia: Cormorant Garamond display / Libre Baskerville body
   Palette: Pergamena · Inchiostro · Oro
═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --parchment:    #F4EFE4;
  --parchment-2:  #EDE7D9;
  --cream:        #F9F6EF;
  --ivory:        #FFFDF8;
  --ink:          #1E150A;
  --ink-70:       rgba(30,21,10,.70);
  --ink-40:       rgba(30,21,10,.40);
  --ink-20:       rgba(30,21,10,.20);
  --ink-08:       rgba(30,21,10,.08);
  --mid:          #5A4530;
  --muted:        #8A7868;
  --faint:        #C0B09A;
  --border:       #D8CFC0;
  --gold:         #B8821A;
  --gold-hi:      #D4982A;
  --gold-light:   #F2E3C0;
  --gold-faint:   #FAF3E4;
  --green:        #1A3A28;
  --green-light:  #E6EFE9;
  --radius-sm:    3px;
  --radius:       5px;
  --radius-lg:    8px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Libre Baskerville', Georgia, serif;
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── TIPOGRAFIA ──────────────────────────────── */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
}

h1 { font-size: clamp(52px, 7vw, 88px); }
h2 { font-size: clamp(36px, 5vw, 56px); }
h3 { font-size: clamp(22px, 3vw, 32px); }

.label {
  font-family: 'Trebuchet MS', Calibri, sans-serif;
  font-size: 11px; font-weight: 400;
  letter-spacing: 5px; color: var(--gold);
  text-transform: uppercase;
}

/* ── NAV ─────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 62px;
  background: var(--parchment);
  border-bottom: 2px solid var(--ink);
  display: flex; align-items: center;
  padding: 0 clamp(24px, 5vw, 72px);
  justify-content: space-between;
  transition: box-shadow .3s;
}

#nav.scrolled { box-shadow: 0 4px 24px rgba(30,21,10,.08); }

.nav-logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; gap: 3px; }
.nav-logo .brand {
  font-family: 'Trebuchet MS', Calibri, sans-serif;
  font-size: 17px; font-weight: 700;
  letter-spacing: 5px; color: var(--ink);
}
.nav-logo .sub {
  font-family: 'Trebuchet MS', Calibri, sans-serif;
  font-size: 8px; letter-spacing: 7px;
  color: var(--gold); text-transform: uppercase;
}

.nav-links {
  display: flex; gap: 8px; align-items: center; list-style: none;
}

.nav-links a {
  font-family: 'Libre Baskerville', serif;
  font-size: 14px; font-style: italic;
  color: var(--ink-70); text-decoration: none;
  padding: 6px 14px;
  transition: color .2s;
  position: relative;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
  height: 1px; background: var(--gold);
}

.nav-links .nav-cta {
  font-family: 'Trebuchet MS', Calibri, sans-serif;
  font-size: 11px; font-style: normal;
  letter-spacing: 2px; text-transform: uppercase;
  background: var(--ink); color: var(--ivory) !important;
  padding: 8px 22px; margin-left: 8px;
}
.nav-links .nav-cta:hover { background: var(--green); }
.nav-links .nav-cta.active::after { display: none; }

/* ── PULSANTI ─────────────────────────────────── */
.btn {
  display: inline-block; text-decoration: none;
  font-family: 'Trebuchet MS', Calibri, sans-serif;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 32px; transition: all .2s;
}

.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--green); }

.btn-gold { background: var(--gold); color: var(--ivory); }
.btn-gold:hover { background: var(--gold-hi); }

.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--gold-faint); border-color: var(--gold); }

.btn-outline-light { border: 1px solid rgba(249,246,239,.35); color: rgba(249,246,239,.8); }
.btn-outline-light:hover { border-color: rgba(249,246,239,.65); color: var(--ivory); }

/* ── LAYOUT ──────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 72px); }

section { padding: clamp(64px, 8vw, 112px) clamp(24px, 5vw, 72px); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--border); }

/* ── COMPONENTI COMUNI ────────────────────────── */
.ink-card {
  background: var(--ink); color: var(--ivory);
  padding: clamp(28px, 4vw, 48px);
}

.gold-line { width: 40px; height: 2px; background: var(--gold); margin-bottom: 24px; }

.divider { border: none; border-top: 1px solid var(--border); }

/* ── STRIP ───────────────────────────────────── */
.strip {
  background: var(--ink);
  padding: 18px clamp(24px, 5vw, 72px);
  display: flex; gap: 40px; flex-wrap: wrap; align-items: center;
}

.strip-item {
  font-family: 'Trebuchet MS', Calibri, sans-serif;
  font-size: 11px; letter-spacing: 2px;
  color: rgba(249,246,239,.38); text-transform: uppercase;
}
.strip-item strong { color: var(--gold); }

/* ── STATS ───────────────────────────────────── */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; background: var(--border);
}

.stat-cell { background: var(--parchment); padding: 28px; text-align: center; }
.stat-cell strong {
  display: block; font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 44px); font-weight: 300;
  color: var(--ink); line-height: 1; margin-bottom: 6px;
}
.stat-cell span {
  font-family: 'Trebuchet MS', Calibri, sans-serif;
  font-size: 10px; letter-spacing: 3px;
  color: var(--muted); text-transform: uppercase;
}

/* ── QUOTE ───────────────────────────────────── */
.quote-block {
  border-left: 3px solid var(--gold);
  padding-left: clamp(20px, 3vw, 36px);
}
.quote-block blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.5vw, 28px); font-style: italic;
  color: var(--ink); line-height: 1.5; margin-bottom: 16px;
}
.quote-block cite {
  font-family: 'Trebuchet MS', Calibri, sans-serif;
  font-size: 11px; letter-spacing: 3px;
  color: var(--gold); text-transform: uppercase; font-style: normal;
}

/* ── TIMELINE ────────────────────────────────── */
.timeline { list-style: none; border-left: 1px solid var(--border); padding-left: 32px; }
.timeline li {
  position: relative; padding: 18px 0;
  border-bottom: 1px solid var(--ink-08);
}
.timeline li:last-child { border-bottom: none; }
.timeline li::before {
  content: ''; position: absolute; left: -36px; top: 24px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--parchment);
}
.timeline li .tl-label {
  font-family: 'Trebuchet MS', Calibri, sans-serif;
  font-size: 10px; letter-spacing: 3px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 6px; display: block;
}
.timeline li p { font-size: 15px; color: var(--mid); }

/* ── FEATURE LIST ────────────────────────────── */
.feat-list { list-style: none; }
.feat-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--ink-08);
}
.feat-list li:last-child { border-bottom: none; }
.feat-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0; margin-top: 8px;
}
.feat-list li .ft { }
.feat-list li .ft strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 3px; }
.feat-list li .ft p { font-size: 14px; color: var(--mid); margin: 0; }

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: #0E0A04;
  padding: clamp(20px, 3vw, 32px) clamp(24px, 5vw, 72px);
}

.footer-main {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(249,246,239,.08);
  margin-bottom: 28px;
}

.footer-brand .brand {
  font-family: 'Trebuchet MS', Calibri, sans-serif;
  font-size: 16px; font-weight: 700; letter-spacing: 5px; color: var(--ivory);
}
.footer-brand .sub {
  font-family: 'Trebuchet MS', Calibri, sans-serif;
  font-size: 8px; letter-spacing: 7px; color: var(--gold);
  text-transform: uppercase; display: block; margin: 4px 0 16px;
}
.footer-brand p { font-size: 14px; color: rgba(249,246,239,.4); line-height: 1.7; max-width: 260px; }

.footer-col h4 {
  font-family: 'Trebuchet MS', Calibri, sans-serif;
  font-size: 10px; letter-spacing: 4px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-family: 'Libre Baskerville', serif;
  font-size: 14px; font-style: italic;
  color: rgba(249,246,239,.45); text-decoration: none;
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p {
  font-family: 'Trebuchet MS', Calibri, sans-serif;
  font-size: 11px; color: rgba(249,246,239,.25); letter-spacing: 1px;
}
.footer-bottom a { color: rgba(249,246,239,.25); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ── ANIMAZIONI ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp .6s ease both; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .2s; }
.fade-up-3 { animation-delay: .3s; }
.fade-up-4 { animation-delay: .4s; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4, .stat-grid, .footer-main { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 62px; left: 0; right: 0; bottom: 0;
    background: var(--parchment); padding: 32px;
    border-top: 1px solid var(--border); gap: 4px; z-index: 199;
  }
  .nav-links.open a { font-size: 22px; padding: 12px 0; }
  .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
  .nav-burger span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: all .3s; }
}

@media (min-width: 961px) {
  .nav-burger { display: none; }
}
