:root {
  --font-display: "Cormorant Garamond";
  --font-sans: "Manrope";
  --ink: #18231d;
  --forest: #183e2d;
  --forest-deep: #0c2c20;
  --cream: #f3eee3;
  --paper: #fbf8f1;
  --red: #9d2d2a;
  --gold: #b99b62;
  --line: rgba(24, 35, 29, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans), sans-serif;
}
a { color: inherit; text-decoration: none; }
img { object-fit: cover; }

.nav {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 96px;
  padding: 0 clamp(24px, 6vw, 96px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.26);
}
.brand { display: flex; align-items: center; gap: 14px; font-weight: 600; letter-spacing: -.02em; }
.brand i { font-family: var(--font-display); font-weight: 400; opacity: .62; }
.brandMark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid currentColor; border-radius: 50%;
  font: italic 600 24px/1 var(--font-display);
}
.navLinks { display: flex; align-items: center; gap: 36px; font-size: 13px; }
.navLinks a { opacity: .82; transition: opacity .2s; }
.navLinks a:hover { opacity: 1; }

.hero {
  min-height: 780px; height: 100vh; position: relative; color: white;
  display: flex; align-items: flex-end; overflow: hidden;
}
.heroImage { position: absolute; inset: 0; width: 100%; height: 100%; object-position: center 46%; }
.heroShade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,25,18,.86) 0%, rgba(9,30,22,.5) 45%, rgba(0,0,0,.12) 78%),
              linear-gradient(0deg, rgba(7,21,15,.48), transparent 55%);
}
.heroContent { position: relative; z-index: 2; max-width: 880px; padding: 0 7vw 11vh; }
.eyebrow {
  margin: 0 0 26px; text-transform: uppercase; letter-spacing: .19em;
  font-size: 11px; font-weight: 700; color: #e3c995;
}
.eyebrow.dark { color: var(--red); }
h1, h2, h3, blockquote { font-family: var(--font-display), serif; }
h1 { margin: 0; font-size: clamp(66px, 8vw, 118px); line-height: .84; letter-spacing: -.055em; font-weight: 500; }
h1 em, h2 em { color: #e6cf9e; font-weight: 400; }
.heroLead { max-width: 620px; font: 400 clamp(18px, 2vw, 23px)/1.55 var(--font-display); margin: 36px 0 30px; color: rgba(255,255,255,.83); }
.heroCta { display: inline-flex; align-items: center; gap: 42px; padding: 15px 20px; border: 1px solid rgba(255,255,255,.55); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; transition: .2s; }
.heroCta:hover { background: white; color: var(--forest-deep); }
.heroCaption { position: absolute; right: 30px; bottom: 26px; z-index: 2; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; opacity: .72; writing-mode: vertical-rl; }

.section { padding: 130px clamp(24px, 7vw, 112px); }
.sectionNumber { padding-top: 8px; font: 600 12px/1 var(--font-sans); color: var(--red); letter-spacing: .15em; }
.intro { display: grid; grid-template-columns: 70px minmax(300px, .9fr) minmax(340px, 1fr); gap: clamp(30px, 5vw, 90px); }
h2 { margin: 0; font-size: clamp(54px, 6.2vw, 88px); line-height: .88; letter-spacing: -.045em; font-weight: 500; }
.introTitle h2 em, .journeyHeader h2 em, .placesHeading h2 em { color: var(--red); }
.introCopy { padding-top: 34px; max-width: 660px; }
.introCopy p { font-size: 15px; line-height: 1.9; color: #4f5a54; }
.introCopy .large { margin-top: 0; font: 400 24px/1.5 var(--font-display); color: var(--ink); }
.note { border-left: 2px solid var(--red); margin-top: 40px; padding: 4px 0 4px 24px; font-size: 12px; line-height: 1.7; color: #657069; }
.note span { display: block; color: var(--red); text-transform: uppercase; font-size: 9px; font-weight: 700; letter-spacing: .17em; margin-bottom: 7px; }

.documentSection { display: grid; grid-template-columns: 1fr 1fr; min-height: 660px; background: var(--forest); color: white; }
.documentImage { position: relative; min-height: 520px; overflow: hidden; }
.documentImage > a { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(22px, 5vw, 70px); background: #e9e5dc; }
.documentImage img { width: 100%; height: 100%; filter: saturate(.65) sepia(.16); }
.documentImage .documentExcerptImage { object-fit: contain; filter: saturate(.78) contrast(1.06); }
.documentOpen { position: absolute; right: 18px; bottom: 18px; padding: 10px 12px; background: rgba(12,44,32,.92); color: white; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.documentText { display: flex; flex-direction: column; justify-content: center; padding: 80px clamp(34px, 7vw, 110px); }
blockquote { margin: 0 0 38px; max-width: 680px; font-size: clamp(37px, 4vw, 61px); line-height: 1.08; letter-spacing: -.025em; font-style: italic; color: #f4ead6; }
.documentText > p:not(.eyebrow):not(.sourceLine) { max-width: 580px; font-size: 15px; line-height: 1.85; color: rgba(255,255,255,.73); }
.sourceLine { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.45); }

.journey { background: var(--cream); }
.journey { display: grid; grid-template-columns: 70px 1fr; column-gap: clamp(30px, 5vw, 90px); }
.journeyHeader { max-width: 860px; }
.route { grid-column: 2; margin: 90px 0 110px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.routeStop { position: relative; min-width: 180px; }
.routeStop.right { text-align: right; }
.routeStop small { display: block; color: var(--red); text-transform: uppercase; letter-spacing: .15em; font-size: 9px; margin-bottom: 9px; }
.routeStop strong { display: block; font: 500 32px/1 var(--font-display); }
.routeStop p { font-size: 11px; color: #6d756f; }
.dot { position: absolute; top: 31px; right: -24px; width: 9px; height: 9px; background: var(--red); border-radius: 50%; z-index: 2; }
.right .dot { left: -24px; right: auto; }
.routeLine { height: 1px; background: var(--red); position: relative; margin: 0 26px; }
.routeLine:after { content: ""; position: absolute; width: 100%; height: 24px; top: -12px; border-top: 1px dashed rgba(157,45,42,.25); border-radius: 50%; }
.routeLine span { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); text-transform: uppercase; letter-spacing: .15em; font-size: 8px; color: #8b8d87; }
.arrivalCard { grid-column: 2; display: grid; grid-template-columns: 1.1fr .9fr; background: var(--paper); box-shadow: 0 22px 70px rgba(46,37,24,.12); }
.arrivalCard img { width: 100%; height: 100%; min-height: 370px; filter: sepia(.3) contrast(.95); }
.arrivalCard div { padding: clamp(38px, 6vw, 82px); align-self: center; }
.archiveTag { color: var(--red); font-size: 10px; letter-spacing: .16em; font-weight: 700; }
.arrivalCard h3 { font-size: 40px; margin: 14px 0 18px; font-weight: 500; }
.arrivalCard p { font-size: 13px; line-height: 1.8; color: #667069; }

.lineage { background: var(--forest-deep); color: white; padding-bottom: 80px; }
.lineageHeading { display: grid; grid-template-columns: 70px 1fr; column-gap: clamp(30px, 5vw, 90px); }
.lineageHeading .eyebrow, .lineageHeading h2, .lineageHeading > p:last-child { grid-column: 2; }
.sectionNumber.light { color: #d6b97c; grid-row: 1 / span 3; }
.lineageHeading h2 { color: #f7f1e5; }
.lineageHeading > p:last-child { max-width: 500px; color: rgba(255,255,255,.55); font-size: 13px; margin-top: 28px; }
.generations { margin: 0 clamp(24px, 7vw, 112px); border-top: 1px solid rgba(255,255,255,.15); }
.lineageCta { margin: 50px clamp(24px, 7vw, 112px) 0; display: flex; justify-content: flex-end; }
.lineageCta a { display: inline-flex; gap: 50px; padding: 17px 20px; border: 1px solid rgba(255,255,255,.35); color: white; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; transition: .2s; }
.lineageCta a:hover { background: white; color: var(--forest-deep); }
.generation { display: grid; grid-template-columns: 70px 1fr; gap: clamp(30px, 5vw, 90px); padding: 48px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.generationIndex { font: italic 400 28px/1 var(--font-display); color: #d7bd87; }
.generationBody { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(260px, 1fr) minmax(220px, .8fr); align-items: start; column-gap: 40px; }
.generationBody > span { grid-column: 1; font-size: 10px; letter-spacing: .14em; color: #d7bd87; }
.generationBody h3 { grid-column: 1; font-size: clamp(29px, 3vw, 42px); line-height: 1; margin: 10px 0 0; font-weight: 500; }
.generationBody > p:not(.spouse) { grid-column: 2; grid-row: 1 / span 2; margin: 0; color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.75; }
.generationBody .spouse { grid-column: 3; grid-row: 1; margin: 0; font: italic 400 18px/1.35 var(--font-display); color: #f2e5cd; }
.generationBody a { grid-column: 3; margin-top: 38px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.58); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }

.places { display: grid; grid-template-columns: 70px 1fr; gap: clamp(30px, 5vw, 90px); }
.placesHeading { grid-column: 2; max-width: 850px; }
.placesHeading > p:last-child { color: #6f7772; font-size: 13px; margin-top: 24px; }
.gallery { grid-column: 2; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 80px; gap: 18px; margin-top: 70px; }
.galleryItem { position: relative; margin: 0; overflow: hidden; background: #ddd5c7; }
.galleryItem img { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .7s ease; }
.galleryItem:hover img { transform: scale(1.025); }
.galleryItem figcaption { position: absolute; inset: auto 0 0; padding: 38px 18px 16px; color: white; font-size: 9px; text-transform: uppercase; letter-spacing: .13em; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.item1 { grid-column: 1 / 8; grid-row: span 6; }
.item2 { grid-column: 8 / 13; grid-row: span 4; }
.item3 { grid-column: 8 / 13; grid-row: span 5; }
.item4 { grid-column: 1 / 5; grid-row: span 5; }
.item5 { grid-column: 5 / 9; grid-row: span 5; }
.item6 { grid-column: 9 / 13; grid-row: span 5; }
.item7 { grid-column: 1 / 13; grid-row: span 7; }

.closing { background: var(--red); color: white; padding: 110px clamp(24px, 7vw, 112px); display: grid; grid-template-columns: 1.4fr .6fr; gap: 80px; align-items: end; }
.closing .eyebrow { color: #f0cfa5; }
.closing h2 { color: white; }
.closing h2 em { color: #f0d4aa; }
.closing > p { max-width: 430px; font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.7); }
footer { background: #081d15; color: rgba(255,255,255,.7); padding: 46px clamp(24px, 7vw, 112px); display: flex; align-items: center; justify-content: space-between; gap: 30px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.footerBrand { color: white; text-transform: none; letter-spacing: normal; font-size: 14px; }
.footerBrand .brandMark { width: 34px; height: 34px; font-size: 20px; }
footer a { border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 5px; }

@media (max-width: 900px) {
  .nav { height: 76px; }
  .navLinks { display: none; }
  .hero { min-height: 700px; }
  .heroContent { padding-bottom: 10vh; }
  .heroCaption { display: none; }
  .section { padding: 90px 24px; }
  .intro, .journey, .places { grid-template-columns: 1fr; }
  .sectionNumber { margin-bottom: 24px; }
  .introTitle, .introCopy, .journeyHeader, .route, .arrivalCard, .placesHeading, .gallery { grid-column: 1; }
  .documentSection { grid-template-columns: 1fr; }
  .documentImage { min-height: 440px; }
  .route { grid-template-columns: 1fr; gap: 35px; margin: 70px 0; }
  .routeLine { height: 90px; width: 1px; margin-left: 4px; }
  .routeLine:after, .routeLine span { display: none; }
  .routeStop.right { text-align: left; }
  .dot, .right .dot { left: 0; right: auto; top: auto; bottom: -23px; }
  .arrivalCard { grid-template-columns: 1fr; }
  .arrivalCard img { min-height: 270px; }
  .lineageHeading { grid-template-columns: 1fr; padding: 90px 24px 60px; }
  .lineageHeading .eyebrow, .lineageHeading h2, .lineageHeading > p:last-child { grid-column: 1; }
  .sectionNumber.light { grid-row: auto; }
  .generations { margin: 0 24px; }
  .generation { grid-template-columns: 38px 1fr; gap: 18px; }
  .generationBody { grid-template-columns: 1fr; gap: 16px; }
  .generationBody > span, .generationBody h3, .generationBody > p:not(.spouse), .generationBody .spouse, .generationBody a { grid-column: 1; grid-row: auto; }
  .generationBody a { margin-top: 8px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; margin-top: 50px; }
  .galleryItem { grid-column: auto !important; grid-row: auto !important; }
  .item1 { grid-column: 1 / -1 !important; }
  .closing { grid-template-columns: 1fr; gap: 40px; padding: 85px 24px; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .brand { font-size: 13px; }
  h1 { font-size: 58px; }
  h2 { font-size: 50px; }
  .heroLead { font-size: 18px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 340px; }
  .documentImage { min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .galleryItem img { transition: none; }
}

/* Página da linhagem */
.detailPage { background: var(--cream); }
.detailNav {
  min-height: 86px; padding: 18px clamp(24px, 6vw, 96px);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--forest-deep); color: white;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.detailNavLinks { display: flex; align-items: center; gap: 28px; }
.detailNavLinks > a { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.7); }
.backLink { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.7); }
.detailHero {
  min-height: 690px; display: grid; grid-template-columns: 1.1fr .9fr;
  background: var(--forest-deep); color: white;
}
.detailHeroText { padding: 100px clamp(30px, 7vw, 110px); align-self: center; }
.detailHeroText h1 { font-size: clamp(62px, 7vw, 105px); }
.detailHeroText > p:last-child { max-width: 610px; margin-top: 38px; color: rgba(255,255,255,.65); font: 400 20px/1.6 var(--font-display); }
.detailHeroImage { position: relative; min-height: 560px; overflow: hidden; }
.detailHeroImage:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--forest-deep), transparent 45%); }
.detailHeroImage img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); }
.detailHeroImage span { position: absolute; z-index: 2; right: 25px; bottom: 25px; color: white; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; }
.treeIntro {
  padding: 120px clamp(24px, 8vw, 130px) 80px;
  display: grid; grid-template-columns: 1fr .8fr; gap: 10vw; align-items: end;
}
.treeIntro h2 em, .documentsHeading h2 em { color: var(--red); }
.treeIntro > p { max-width: 620px; font-size: 14px; line-height: 1.9; color: #5f6963; }
.familyTree { padding: 0 clamp(24px, 8vw, 130px) 130px; }
.treeGeneration, .currentGeneration { position: relative; max-width: 1050px; margin: 0 auto; text-align: center; }
.treeEra {
  display: inline-block; margin-bottom: 22px; color: var(--red);
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
}
.couple { display: grid; grid-template-columns: 1fr 52px 1fr; align-items: stretch; }
.personCard {
  min-height: 176px; padding: 30px; text-align: left; background: var(--paper);
  border: 1px solid rgba(24,35,29,.12); box-shadow: 0 14px 42px rgba(36,31,23,.07);
}
.personCard.primary { border-top: 3px solid var(--red); }
.personCard small { color: #7c837e; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.personCard h3 { margin: 12px 0 10px; font-size: clamp(28px, 3vw, 40px); line-height: 1; font-weight: 500; }
.personCard p { margin: 12px 0 0; font-size: 11px; line-height: 1.7; color: #69716c; }
.personCard a { display: inline-block; margin-top: 18px; padding-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--red); }
.union { align-self: center; color: var(--gold); font: italic 400 28px/1 var(--font-display); }
.treeConnector { height: 88px; display: flex; justify-content: center; }
.treeConnector span { width: 1px; height: 100%; background: var(--red); position: relative; }
.treeConnector span:after { content: ""; position: absolute; bottom: -4px; left: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.familyContext { max-width: 730px; margin: 28px auto 0; font-size: 12px; line-height: 1.8; color: #68716b; }
.familyContext.strong { color: var(--ink); font: italic 500 22px/1.4 var(--font-display); }
.siblings { margin: 24px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.siblings span { padding: 9px 14px; border: 1px solid var(--line); color: #67716b; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.siblings .active { background: var(--forest); border-color: var(--forest); color: white; }
.featuredGeneration .personCard { background: #efe4cf; }
.childrenConnector { height: 70px; }
.childrenCards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.childrenCards article { padding: 30px 18px; background: var(--forest); color: white; }
.childrenCards article > span {
  width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto 16px;
  border: 1px solid #d9bd84; border-radius: 50%; color: #e1c78f;
  font: italic 500 22px/1 var(--font-display);
}
.childrenCards h3 { margin: 0; font-size: 30px; font-weight: 500; }
.warMemorial { display: grid; grid-template-columns: 1fr 1fr; min-height: 760px; background: #e8e0d2; }
.warMemorialImage { position: relative; min-height: 650px; overflow: hidden; background: #d7d0c4; }
.warMemorialImage img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; filter: saturate(.72) contrast(.98); }
.warMemorialImage > span { position: absolute; left: 20px; bottom: 20px; padding: 9px 11px; background: rgba(12,44,32,.9); color: white; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.warMemorialText { align-self: center; padding: 85px clamp(34px, 7vw, 110px); }
.warMemorialText h2 { font-size: clamp(52px, 5.8vw, 82px); }
.warMemorialText h2 em { color: var(--red); }
.warMemorialText > p:not(.eyebrow) { max-width: 590px; margin-top: 34px; color: #5e6861; font-size: 14px; line-height: 1.9; }
.memorialNames { margin-top: 34px; border-top: 1px solid rgba(24,35,29,.18); }
.memorialNames article { padding: 20px 0; display: grid; grid-template-columns: 1fr 1.2fr; gap: 5px 24px; border-bottom: 1px solid rgba(24,35,29,.18); }
.memorialNames small { grid-column: 1; color: var(--red); font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.memorialNames strong { grid-column: 1; font: 500 24px/1.1 var(--font-display); }
.memorialNames span { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #69716c; font-size: 11px; }
.heraldry { display: grid; grid-template-columns: 1fr 1fr; min-height: 740px; background: var(--red); color: white; }
.crestFrame { background: #e9dec9; padding: clamp(35px, 6vw, 90px); display: grid; place-items: center; }
.crestFrame img { width: min(100%, 570px); height: auto; mix-blend-mode: multiply; }
.heraldryText { padding: 90px clamp(34px, 7vw, 115px); align-self: center; }
.heraldryText h2 { font-size: clamp(52px, 5.7vw, 82px); }
.heraldryText h2 em { color: #f0d0a4; }
.heraldryText > p:not(.eyebrow) { margin-top: 35px; max-width: 570px; font-size: 14px; line-height: 1.9; color: rgba(255,255,255,.74); }
.heraldryText aside { margin-top: 32px; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.25); font-size: 11px; line-height: 1.7; color: rgba(255,255,255,.58); }
.documentsSection { padding: 130px clamp(24px, 7vw, 112px); background: var(--paper); }
.documentsHeading { max-width: 900px; }
.documentsHeading > p:last-child { max-width: 600px; margin-top: 28px; color: #657069; font-size: 13px; line-height: 1.8; }
.documentsGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 70px; align-items: start; }
.documentCard { background: var(--cream); }
.documentCard > a { height: 460px; position: relative; display: block; overflow: hidden; background: #ded8ca; }
.documentCard img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.documentCard:hover img { transform: scale(1.018); }
.documentZoom { position: absolute; right: 14px; bottom: 14px; padding: 9px 11px; background: rgba(12,44,32,.9); color: white; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.documentCard > div { padding: 28px; }
.documentCard small { color: var(--red); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.documentCard h3 { margin: 10px 0 12px; font-size: 29px; line-height: 1.05; font-weight: 500; }
.documentCard p { margin: 0; color: #657069; font-size: 11px; line-height: 1.75; }
.detailClosing { padding: 120px clamp(24px, 8vw, 130px); background: var(--forest); color: white; text-align: center; }
.detailClosing h2 { color: #f5eee1; }
.detailClosing h2 em { color: #e4c689; }
.detailClosing > p:not(.eyebrow) { max-width: 620px; margin: 35px auto; color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.9; }
.detailClosing > a { display: inline-block; padding: 15px 18px; border: 1px solid rgba(255,255,255,.35); font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }

@media (max-width: 900px) {
  .detailNav { min-height: 76px; }
  .backLink { font-size: 0; }
  .backLink:after { content: "← Voltar"; font-size: 9px; }
  .detailHero { grid-template-columns: 1fr; }
  .detailHeroText { padding: 80px 24px; }
  .detailHeroImage { min-height: 440px; }
  .treeIntro { grid-template-columns: 1fr; padding: 90px 24px 60px; gap: 35px; }
  .familyTree { padding: 0 24px 90px; }
  .couple { grid-template-columns: 1fr; gap: 10px; }
  .union { padding: 3px; }
  .personCard { text-align: center; }
  .childrenCards { grid-template-columns: 1fr; }
  .warMemorial { grid-template-columns: 1fr; }
  .warMemorialImage { min-height: 580px; }
  .heraldry { grid-template-columns: 1fr; }
  .crestFrame { min-height: 540px; }
  .documentsSection { padding: 90px 24px; }
  .documentsGrid { grid-template-columns: 1fr; }
  .documentCard > a { height: 600px; }
}

@media (max-width: 560px) {
  .detailNav .brand > span:last-child { display: none; }
  .detailHeroText h1 { font-size: 56px; }
  .detailHeroImage { min-height: 360px; }
  .personCard { min-height: 150px; padding: 25px 20px; }
  .documentCard > a { height: 440px; }
  .crestFrame { min-height: 420px; }
}

/* Página dedicada a Gallio */
.cityPage { background: var(--paper); }
.cityNav {
  min-height: 86px; padding: 18px clamp(24px, 6vw, 96px);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--forest-deep); color: white;
}
.cityNav > div { display: flex; gap: 30px; }
.cityNav > div a { color: rgba(255,255,255,.7); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.cityHero { height: calc(100vh - 86px); min-height: 700px; position: relative; display: flex; align-items: flex-end; overflow: hidden; color: white; }
.cityHero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.cityHeroShade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,26,18,.85), rgba(5,26,18,.08) 65%), linear-gradient(90deg, rgba(6,29,21,.52), transparent 62%); }
.cityHeroContent { position: relative; z-index: 2; padding: 0 clamp(24px, 7vw, 112px) 10vh; }
.cityHeroContent h1 { font-size: clamp(100px, 18vw, 260px); line-height: .65; letter-spacing: -.065em; }
.cityHeroContent > p:last-child { max-width: 700px; margin: 50px 0 0 8px; font: 400 clamp(19px, 2vw, 25px)/1.55 var(--font-display); color: rgba(255,255,255,.8); }
.cityCoordinates { position: absolute; z-index: 2; right: clamp(24px, 6vw, 90px); bottom: 10vh; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.45); }
.cityCoordinates span { display: block; font-size: 8px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.6); }
.cityCoordinates strong { display: block; margin-top: 7px; font: italic 500 30px/1 var(--font-display); }
.territorySymbols { padding: 120px clamp(24px, 7vw, 112px); background: var(--paper); }
.territorySymbolsHeading { display: grid; grid-template-columns: 1fr .7fr; gap: 8vw; align-items: end; }
.territorySymbolsHeading .eyebrow, .territorySymbolsHeading h2 { grid-column: 1; }
.territorySymbolsHeading h2 em { color: var(--red); }
.territorySymbolsHeading > p:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: end; color: #647069; font-size: 13px; line-height: 1.85; }
.symbolCards { margin-top: 65px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.symbolCard { background: var(--cream); border: 1px solid rgba(24,35,29,.1); }
.symbolImage { height: 230px; display: grid; place-items: center; overflow: hidden; background: #e2dbce; }
.symbolImage.flagImage img { width: 100%; height: 100%; object-fit: cover; }
.symbolImage.emblemImage { padding: 25px; background: #eee8dc; }
.symbolImage.emblemImage img {
  display: block;
  width: auto;
  height: 170px;
  max-width: 100%;
  max-height: 170px;
  object-fit: contain;
}
.symbolImage.gallioEmblem { padding: 28px 35px; }
.symbolCard > div:last-child { padding: 24px; }
.symbolCard small { color: var(--red); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.symbolCard h3 { margin: 8px 0 10px; font-size: 31px; font-weight: 500; }
.symbolCard p { margin: 0; color: #657069; font-size: 10px; line-height: 1.7; }
.symbolNote { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: #788079; font-size: 9px; line-height: 1.7; text-align: right; }
.cityOpening { padding: 130px clamp(24px, 7vw, 112px); display: grid; grid-template-columns: 90px .85fr 1fr; gap: clamp(30px, 5vw, 80px); }
.cityMonogram { width: 74px; height: 92px; border: 1px solid var(--red); color: var(--red); display: grid; place-items: center; align-content: center; }
.cityMonogram span { font: 500 45px/.8 var(--font-display); }
.cityMonogram small { margin-top: 10px; font-size: 8px; letter-spacing: .2em; }
.cityOpening h2 em, .cityTimelineHeading h2 em, .cityGalleryHeading h2 em { color: var(--red); }
.cityOpeningText .large { margin-top: 0; color: var(--ink); font: 400 24px/1.5 var(--font-display); }
.cityOpeningText > p:not(.large) { color: #5e6861; font-size: 13px; line-height: 1.9; }
.cityFacts { margin-top: 35px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cityFacts span { padding: 18px 10px 18px 0; font: 500 17px/1.25 var(--font-display); }
.cityFacts span + span { padding-left: 18px; border-left: 1px solid var(--line); }
.cityFacts small { display: block; margin-bottom: 7px; color: var(--red); font: 700 7px/1 var(--font-sans); text-transform: uppercase; letter-spacing: .13em; }
.contradeSection { padding: 120px clamp(24px, 7vw, 112px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; background: #e8e0d2; }
.contradeHeading h2 { font-size: clamp(51px, 5.4vw, 78px); }
.contradeHeading h2 em { color: var(--red); }
.contradeHeading > p:last-child { margin-top: 30px; max-width: 540px; color: #626d66; font-size: 12px; line-height: 1.85; }
.contradeGrid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.contradeGrid article { min-height: 100px; padding: 20px; display: grid; grid-template-columns: 42px 1fr; align-content: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contradeGrid article > span:first-child { color: var(--red); font-size: 8px; letter-spacing: .12em; }
.contradeGrid article strong { font: 500 24px/1.1 var(--font-display); }
.contradeGrid article small { grid-column: 2; margin-top: 5px; color: #7a817c; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.contradeGrid .frazioneCard { grid-column: 1 / -1; grid-template-columns: 1fr auto; background: var(--forest); color: white; }
.contradeGrid .frazioneCard small { grid-column: 1; color: #d8bb82; }
.contradeGrid .frazioneCard strong { grid-column: 1; font-size: 31px; }
.contradeGrid .frazioneCard span { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: rgba(255,255,255,.56); font: italic 500 21px/1 var(--font-display); }
.setteSection { padding: 120px clamp(24px, 7vw, 112px); display: grid; grid-template-columns: 1fr .8fr; gap: 10vw; background: var(--forest); color: white; }
.setteText h2 { color: #f8f0e2; }
.setteText h2 em { color: #e5c78d; }
.setteText > p:not(.eyebrow) { max-width: 620px; margin-top: 35px; color: rgba(255,255,255,.66); font-size: 13px; line-height: 1.9; }
.setteText aside { max-width: 620px; margin-top: 30px; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.5); font-size: 10px; line-height: 1.7; }
.setteList { border-top: 1px solid rgba(255,255,255,.17); }
.setteList > div { display: grid; grid-template-columns: 55px 1fr; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.17); }
.setteList span { color: #d8bb82; font-size: 9px; letter-spacing: .12em; }
.setteList strong { font: 500 28px/1 var(--font-display); color: rgba(255,255,255,.72); }
.setteList .gallioActive { padding-left: 18px; background: var(--red); }
.setteList .gallioActive span, .setteList .gallioActive strong { color: white; }
.cityTimeline { padding: 130px clamp(24px, 7vw, 112px); background: var(--cream); }
.cityTimelineHeading { max-width: 850px; }
.cityTimelineItems { margin-top: 80px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--red); }
.cityTimelineItems article { position: relative; padding: 35px 25px 10px 0; }
.cityTimelineItems article:before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--red); left: 0; top: -5px; }
.cityTimelineItems span { color: var(--red); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cityTimelineItems h3 { margin: 13px 0 11px; font-size: 27px; font-weight: 500; }
.cityTimelineItems p { color: #69716c; font-size: 10px; line-height: 1.7; }
.gallioFamily { display: grid; grid-template-columns: 1fr 1fr; min-height: 770px; background: var(--forest-deep); color: white; }
.gallioFamilyImage { min-height: 620px; overflow: hidden; }
.gallioFamilyImage img { width: 100%; height: 100%; object-fit: cover; }
.gallioFamilyText { padding: 90px clamp(34px, 7vw, 110px); align-self: center; }
.gallioFamilyText h2 { color: #f6eee0; font-size: clamp(52px, 5.5vw, 82px); }
.gallioFamilyText h2 em { color: #e0c184; }
.familyMarks { margin-top: 36px; border-top: 1px solid rgba(255,255,255,.17); }
.familyMarks article { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.17); }
.familyMarks > article > span { color: #dbbd83; font-size: 9px; }
.familyMarks h3 { margin: 0 0 6px; font-size: 25px; font-weight: 500; }
.familyMarks p { margin: 0; color: rgba(255,255,255,.57); font-size: 10px; line-height: 1.7; }
.gallioFamilyText > a { display: inline-block; margin-top: 28px; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.7); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.cityDocument { padding: 120px clamp(24px, 7vw, 112px); display: grid; grid-template-columns: .85fr 1.15fr; gap: 7vw; align-items: center; }
.cityDocumentText h2 { font-size: clamp(47px, 5vw, 73px); }
.cityDocumentText h2 em { color: var(--red); }
.cityDocumentText > p:not(.eyebrow) { margin-top: 30px; color: #626c65; font-size: 13px; line-height: 1.9; }
.cityDocumentText > a { display: inline-block; margin-top: 22px; color: var(--red); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.cityDocumentImage { padding: 35px; background: #e4ded2; box-shadow: 0 18px 55px rgba(34,30,24,.12); }
.cityDocumentImage img { width: 100%; height: auto; display: block; filter: contrast(1.05); }
.cityMemorial { min-height: 760px; display: grid; grid-template-columns: 1fr 1fr; background: var(--red); color: white; }
.cityMemorialImage { overflow: hidden; min-height: 650px; }
.cityMemorialImage img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: saturate(.68); }
.cityMemorialText { padding: 90px clamp(34px, 7vw, 110px); align-self: center; }
.cityMemorialText .eyebrow { color: #f0cea4; }
.cityMemorialText h2 { font-size: clamp(52px, 5.5vw, 82px); }
.cityMemorialText h2 em { color: #f1d2a7; }
.cityMemorialText > p:not(.eyebrow) { margin-top: 30px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.8; }
.cityMemorialText > div { margin-top: 32px; border-top: 1px solid rgba(255,255,255,.23); }
.cityMemorialText > div span { display: block; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.23); color: rgba(255,255,255,.72); font-size: 11px; }
.cityMemorialText > div strong { display: inline-block; min-width: 75px; color: white; font: 500 24px/1 var(--font-display); }
.cityGallery { padding: 130px clamp(24px, 7vw, 112px); }
.cityGalleryHeading { max-width: 850px; }
.cityGalleryGrid { margin-top: 70px; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 80px; gap: 18px; }
.cityPhoto { position: relative; margin: 0; overflow: hidden; background: #ded6c7; }
.cityPhoto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cityPhoto:hover img { transform: scale(1.025); }
.cityPhoto figcaption { position: absolute; inset: auto 0 0; padding: 40px 18px 16px; color: white; background: linear-gradient(transparent, rgba(0,0,0,.58)); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.cityPhoto1 { grid-column: 1 / 8; grid-row: span 6; }
.cityPhoto2 { grid-column: 8 / 13; grid-row: span 4; }
.cityPhoto3 { grid-column: 8 / 13; grid-row: span 5; }
.cityPhoto4 { grid-column: 1 / 5; grid-row: span 5; }
.cityPhoto5 { grid-column: 5 / 9; grid-row: span 5; }
.cityPhoto6 { grid-column: 9 / 13; grid-row: span 5; }
.citySources { padding: 110px clamp(24px, 7vw, 112px); display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; background: var(--forest); color: white; }
.citySources h2 { color: #f6eee1; font-size: clamp(48px, 5vw, 72px); }
.citySources h2 em { color: #e2c488; }
.citySources > div:last-child { border-top: 1px solid rgba(255,255,255,.18); }
.citySources > div:last-child a { display: block; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.18); font: 500 23px/1.2 var(--font-display); color: rgba(255,255,255,.78); }
.citySources > div:last-child span { display: block; margin-bottom: 7px; font: 700 7px/1 var(--font-sans); color: #d9bd84; text-transform: uppercase; letter-spacing: .14em; }

@media (max-width: 900px) {
  .detailNavLinks > a:first-child { display: none; }
  .cityNav > div a:first-child { display: none; }
  .cityHero { min-height: 650px; }
  .cityCoordinates { display: none; }
  .cityHeroContent h1 { font-size: 125px; }
  .territorySymbols { padding: 90px 24px; }
  .territorySymbolsHeading { grid-template-columns: 1fr; }
  .territorySymbolsHeading .eyebrow, .territorySymbolsHeading h2, .territorySymbolsHeading > p:last-child { grid-column: 1; grid-row: auto; }
  .territorySymbolsHeading > p:last-child { margin-top: 25px; }
  .symbolCards { grid-template-columns: 1fr 1fr; }
  .cityOpening { grid-template-columns: 1fr; padding: 90px 24px; }
  .cityMonogram { margin-bottom: 10px; }
  .contradeSection { grid-template-columns: 1fr; padding: 90px 24px; }
  .setteSection, .gallioFamily, .cityDocument, .cityMemorial, .citySources { grid-template-columns: 1fr; }
  .setteList { margin-top: 30px; }
  .cityTimeline { padding: 90px 24px; }
  .cityTimelineItems { grid-template-columns: 1fr; border-top: none; margin-top: 55px; }
  .cityTimelineItems article { padding: 24px 0 24px 25px; border-left: 1px solid var(--red); }
  .cityTimelineItems article:before { left: -5px; top: 30px; }
  .gallioFamilyImage, .cityMemorialImage { min-height: 560px; }
  .cityDocument { padding: 90px 24px; }
  .cityDocumentImage { margin-top: 20px; }
  .cityGallery { padding: 90px 24px; }
  .cityGalleryGrid { grid-template-columns: 1fr 1fr; grid-auto-rows: 290px; }
  .cityPhoto { grid-column: auto !important; grid-row: auto !important; }
  .cityPhoto1 { grid-column: 1 / -1 !important; }
  .citySources { padding: 90px 24px; }
}

@media (max-width: 560px) {
  .cityNav .brand > span:last-child { display: none; }
  .cityHeroContent h1 { font-size: 92px; }
  .cityHeroContent > p:last-child { margin-top: 35px; font-size: 18px; }
  .symbolCards { grid-template-columns: 1fr; }
  .symbolImage { height: 260px; }
  .cityFacts { grid-template-columns: 1fr; }
  .contradeGrid { grid-template-columns: 1fr; }
  .contradeGrid .frazioneCard { grid-column: 1; }
  .cityFacts span + span { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .cityGalleryGrid { grid-template-columns: 1fr; grid-auto-rows: 350px; }
}
