/* =========================================================
   Ponte Vecchio Firenze — landing page
   Palette: warm Florentine stone, Arno dusk, old gold,
   parchment, deep umber. WCAG AA verified.
   ========================================================= */

:root {
  /* Palette */
  --parchment:   #f5ecdc;   /* page background */
  --parchment-2: #efe3cd;   /* alt section */
  --stone:       #e6d3b3;   /* warm stone */
  --terracotta:  #b2532a;   /* primary accent — brick/terracotta */
  --terracotta-deep: #8a3a18;
  --arno-dusk:   #6b2f14;   /* deep warm brown */
  --umber:       #3d1f12;   /* primary text — deep umber */
  --umber-soft:  #5a3422;
  --umber-faint: #8a6850;
  --gold:        #a8761b;   /* old gold (used sparingly) */
  --rule:        #d8c4a0;   /* dividers */
  --rule-soft:   #e3d2b3;

  /* Type */
  --display: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --body:    "Satoshi", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Scale */
  --text-xs:   0.8125rem;     /* 13px */
  --text-sm:   0.9375rem;     /* 15px */
  --text-base: 1rem;          /* 16px */
  --text-lg:   1.125rem;      /* 18px */
  --text-xl:   clamp(1.35rem, 1.05rem + 1.3vw, 1.85rem);
  --text-2xl:  clamp(1.75rem, 1.2rem + 2.3vw, 2.6rem);
  --text-hero: clamp(2.4rem, 1.3rem + 4.8vw, 4.5rem);

  /* Space */
  --wrap: 72rem;
  --wrap-narrow: 44rem;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --pad-y: clamp(3.5rem, 7vw, 6.5rem);

  --radius: 4px;
  --radius-lg: 8px;
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--parchment);
  color: var(--umber);
  font-family: var(--body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: rgba(178, 83, 42, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--terracotta); }
p { margin: 0 0 1em; }

::selection { background: var(--terracotta); color: var(--parchment); }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ----------------------------- Skip link ----------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--umber);
  color: var(--parchment);
  padding: 0.75rem 1rem;
  font-size: var(--text-sm);
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ----------------------------- Wrap ----------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.section--narrow .wrap,
.section--cta .wrap { max-width: var(--wrap-narrow); }

/* ----------------------------- Root redirect page ----------------------------- */
.redirect-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--pad-x);
  background:
    radial-gradient(circle at 50% 20%, rgba(178, 83, 42, 0.16), transparent 34rem),
    var(--parchment);
}
.redirect-box {
  width: min(100%, 42rem);
  text-align: center;
}
.redirect-box .brand-mark {
  width: 76px;
  height: auto;
  margin: 0 auto 1.25rem;
  color: var(--arno-dusk);
}
.redirect-box h1 {
  font-family: var(--display);
  font-size: var(--text-2xl);
  line-height: 1.1;
  margin: 0 0 1rem;
}
.redirect-box p:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 236, 220, 0.88);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}
.header-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--umber);
  margin-right: auto;
}
.brand-mark {
  width: 44px;
  height: 30px;
  color: var(--arno-dusk);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.005em;
}
.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--umber-faint);
  margin-top: 0.15rem;
}

.primary-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-size: var(--text-sm);
  color: var(--umber-soft);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms, border-color 160ms;
}
.primary-nav a:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lang-link {
  text-decoration: none;
  color: var(--umber-faint);
  padding: 0.25rem 0.1rem;
}
.lang-link:hover { color: var(--terracotta); }
.lang-link.is-active { color: var(--umber); font-weight: 700; }
.lang-sep { color: var(--rule); }

@media (max-width: 760px) {
  .primary-nav { display: none; }
  .header-wrap { gap: 1rem; }
}

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 0;
  overflow: hidden;
}
.hero-wrap { max-width: 60rem; }

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 1.5rem;
  font-weight: 500;
}

h1, .hero-h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--text-hero);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--umber);
  margin: 0 0 1.5rem;
}
.hero-line { display: block; }
.hero-line--accent {
  font-style: italic;
  font-weight: 400;
  color: var(--arno-dusk);
}

.lede {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  max-width: 38em;
  color: var(--umber-soft);
  margin: 0 0 1rem;
}
.lede--it {
  font-style: italic;
  color: var(--umber-faint);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-top: 1.75rem;
}

/* Hero art panel — pure SVG */
.hero-art {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  width: 100%;
  line-height: 0;
}
.hero-art svg {
  width: 100%;
  height: clamp(180px, 28vw, 320px);
  display: block;
}

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms, color 160ms, border-color 160ms, transform 160ms;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--terracotta);
  color: var(--parchment);
}
.btn-primary:hover { background: var(--terracotta-deep); color: var(--parchment); }
.btn-ghost {
  background: transparent;
  color: var(--umber);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn-lg { padding: 1rem 1.75rem; font-size: var(--text-base); }

/* ----------------------------- Sections ----------------------------- */
.section {
  padding-block: var(--pad-y);
}
.section--alt {
  background: var(--parchment-2);
  border-block: 1px solid var(--rule-soft);
}
.section--cta {
  background: var(--umber);
  color: var(--parchment);
  text-align: left;
}
.section--cta h2 {
  color: var(--parchment);
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--text-2xl);
  margin: 0 0 1rem;
  line-height: 1.1;
}
.section--cta p {
  color: #e9d9bf;
  max-width: 40em;
  margin-bottom: 2rem;
}
.section--cta .btn-primary {
  background: var(--parchment);
  color: var(--umber);
}
.section--cta .btn-primary:hover {
  background: var(--stone);
  color: var(--umber);
}

.kicker {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.85rem;
  font-weight: 500;
}
h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--umber);
  margin: 0 0 2rem;
  max-width: 22ch;
}
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--text-xl);
  line-height: 1.2;
  color: var(--umber);
  margin: 0 0 0.5rem;
}

.section-lede {
  font-size: var(--text-lg);
  color: var(--umber-soft);
  max-width: 38em;
  margin-bottom: 2.5rem;
}

/* Two-column intro */
.two-col {
  display: grid;
  gap: 1.5rem 3rem;
  grid-template-columns: 1fr;
}
.two-col p { font-size: var(--text-lg); line-height: 1.65; max-width: 38em; }
@media (min-width: 760px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

/* Numbered list */
.numbered {
  list-style: none;
  counter-reset: n;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.numbered > li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 4rem 1fr;
  column-gap: 1.5rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--rule);
}
.numbered > li:first-child { padding-top: 0; }
.numbered > li:last-child { border-bottom: none; padding-bottom: 0; }
.numbered > li::before {
  content: counter(n, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--terracotta);
  line-height: 1;
  padding-top: 0.45rem;
}
.numbered h3 { grid-column: 2; margin: 0 0 0.4rem; }
.numbered p { grid-column: 2; color: var(--umber-soft); max-width: 38em; margin: 0; }
@media (min-width: 900px) {
  .numbered > li { grid-template-columns: 5rem 18rem 1fr; }
  .numbered h3 { grid-column: 2; grid-row: 1; margin-top: 0.1rem; }
  .numbered p { grid-column: 3; grid-row: 1; }
}

/* Cards */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .cards { grid-template-columns: 1fr 1.3fr 1fr; align-items: stretch; }
}
.card {
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.section--alt .card { background: var(--parchment); }
.section:not(.section--alt) .card { background: #fbf5e8; }
.card--feature {
  background: var(--umber) !important;
  color: var(--parchment);
  border-color: var(--umber);
}
.card--feature h3 { color: var(--parchment); }
.card--feature p { color: #e9d9bf; }
.card--feature .card-tag { color: #e9b574; }
.card-tag {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.85rem;
  font-weight: 500;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--umber-soft); margin: 0; }

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}
.timeline li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem 1.75rem;
  align-items: baseline;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.timeline li:last-child { border-bottom: none; }
.timeline .year {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--terracotta);
  line-height: 1.1;
}
.timeline .event {
  color: var(--umber-soft);
  font-size: var(--text-base);
  line-height: 1.55;
}
@media (max-width: 600px) {
  .timeline li { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* Notes list */
.notes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.1rem;
}
.notes li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--umber-soft);
  max-width: 42em;
}
.notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--terracotta);
  border-radius: 50%;
}
.notes strong { color: var(--umber); font-weight: 700; }

/* Route */
.route {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}
.route > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.route > li:last-child { border-bottom: none; padding-bottom: 0; }
.route-step {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--parchment);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.route h3 { margin-bottom: 0.25rem; font-size: var(--text-lg); }
.route p { color: var(--umber-soft); margin: 0; max-width: 38em; }

/* FAQ */
.faq {
  display: grid;
  gap: 0;
  max-width: 48rem;
  border-top: 1px solid var(--rule);
}
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 1.2rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--umber);
  padding-right: 2rem;
  position: relative;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-55%);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--terracotta);
  transition: transform 200ms;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin-top: 0.85rem;
  margin-bottom: 0;
  color: var(--umber-soft);
  max-width: 40em;
  line-height: 1.6;
}

.cta-wrap { max-width: 38rem; }

/* ----------------------------- Italian divider ----------------------------- */
.section--divider {
  padding-block: clamp(3rem, 5vw, 4.5rem) 0;
}
.divider-rule {
  width: 100%;
  height: 1px;
  background: var(--rule);
}
.divider-label {
  text-align: center;
  margin: 1.5rem 0 0;
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
}

.lang-it .hero { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.lang-it h1, .lang-it .hero-h2 { font-size: clamp(2rem, 1.1rem + 4vw, 3.6rem); }

/* ----------------------------- Footer ----------------------------- */
.site-footer {
  background: var(--umber);
  color: #d8c4a0;
  padding-block: 3.5rem 2.5rem;
  margin-top: 0;
}
.footer-wrap {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-wrap {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.foot-brand .brand-mark { color: var(--stone); width: 48px; height: 32px; }
.foot-brand p { margin: 0; font-size: var(--text-sm); color: #c9b692; max-width: 32em; }
.foot-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: flex-start;
}
@media (min-width: 720px) {
  .foot-nav { justify-content: flex-end; }
}
.foot-nav a {
  font-size: var(--text-sm);
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.foot-nav a:hover { border-bottom-color: var(--terracotta); color: var(--parchment); }
.colophon {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(216, 196, 160, 0.18);
  font-size: var(--text-xs);
  color: #a8916b;
  letter-spacing: 0.01em;
}

/* ----------------------------- Mobile tweaks ----------------------------- */
@media (max-width: 480px) {
  .brand-sub { display: none; }
  .lang-switch { font-size: 0.75rem; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  h2 { max-width: none; }
  .timeline .year { font-size: 1.2rem; }
}
