@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --navy: #062b57;
  --blue: #0e62a6;
  --sky: #dff3ff;
  --foam: #f7fbfd;
  --ink: #10263c;
  --muted: #577086;
  --silver: #d8e1e8;
  --gold: #c69a49;
  --white: #fff;
  --radius: 26px;
  --shadow: 0 24px 70px rgba(5, 41, 79, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--foam); font-family: 'DM Sans', sans-serif; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247,251,253,.92); border-bottom: 1px solid rgba(14,98,166,.12); backdrop-filter: blur(16px); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand small { display: block; color: var(--blue); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; }
.nav { display: flex; align-items: center; gap: 24px; font-weight: 600; font-size: .93rem; }
.nav a { position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--blue); transition: .25s; }
.nav a:hover::after, .nav a[aria-current='page']::after { right: 0; }
.menu-button { display: none; border: 0; background: var(--navy); color: white; padding: 10px 14px; border-radius: 999px; font: inherit; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; background: var(--navy); color: white; font-weight: 700; border: 1px solid var(--navy); transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(6,43,87,.2); }
.button.light { background: white; color: var(--navy); border-color: rgba(255,255,255,.75); }
.button.ghost { background: transparent; color: var(--navy); }

.hero { position: relative; min-height: 720px; display: grid; align-items: end; color: white; overflow: hidden; background: var(--navy); }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,22,46,.94) 0%, rgba(2,22,46,.75) 42%, rgba(2,22,46,.18) 78%), url('/assets/comunidade.webp') center/cover; }
.hero::after { content: ''; position: absolute; inset: auto -5% -110px; height: 210px; background: var(--foam); border-radius: 50% 50% 0 0 / 36% 36% 0 0; }
.hero-content { position: relative; z-index: 2; padding: 120px 0 145px; max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .15em; font-size: .78rem; font-weight: 700; color: #8ed5ff; }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.08; margin: 0; color: var(--navy); }
.hero h1 { color: white; font-size: clamp(3.25rem, 7.2vw, 6.8rem); letter-spacing: -.04em; margin: 16px 0 22px; }
.hero p { max-width: 610px; font-size: clamp(1.05rem, 2vw, 1.26rem); color: rgba(255,255,255,.88); margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.section { padding: 105px 0; }
.section.compact { padding: 72px 0; }
.section.blue { background: var(--navy); color: white; }
.section.blue h2, .section.blue h3 { color: white; }
.section.sky { background: linear-gradient(180deg, var(--sky), #f0f9ff); }
.intro { max-width: 760px; margin-bottom: 52px; }
.intro.center { text-align: center; margin-inline: auto; }
.intro h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); letter-spacing: -.035em; margin: 12px 0 20px; }
.intro p { font-size: 1.08rem; color: var(--muted); margin: 0; }
.section.blue .intro p { color: rgba(255,255,255,.74); }

.identity-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: center; }
.crest-card { min-height: 520px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fff, #eaf5fb 65%, #cae8f7); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; position: relative; overflow: hidden; }
.crest-card::after { content: ''; position: absolute; width: 430px; height: 430px; border: 1px solid rgba(14,98,166,.17); border-radius: 50%; }
.crest-card img { position: relative; z-index: 2; max-height: 455px; object-fit: contain; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
.pillar { background: white; border: 1px solid #e5edf2; border-radius: 20px; padding: 23px; box-shadow: 0 15px 40px rgba(6,43,87,.06); }
.pillar strong { color: var(--navy); display: block; font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 5px; }

.photo-story { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.portrait { min-height: 660px; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.portrait img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 22%; }
.portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(3,31,60,.32)); }
.story-copy h2 { font-size: clamp(2.6rem, 5vw, 5rem); margin: 10px 0 24px; }
.story-copy p { color: var(--muted); font-size: 1.06rem; }
.quote { border-left: 3px solid var(--gold); padding: 4px 0 4px 22px; margin: 28px 0; color: var(--navy); font-family: 'Playfair Display', serif; font-size: 1.42rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.link-card { background: white; border-radius: 22px; padding: 32px; min-height: 270px; position: relative; overflow: hidden; box-shadow: 0 16px 50px rgba(0,40,80,.09); transition: transform .25s; }
.link-card:hover { transform: translateY(-6px); }
.link-card .num { color: var(--blue); font-weight: 700; letter-spacing: .15em; font-size: .76rem; }
.link-card h3 { font-size: 1.85rem; margin: 46px 0 12px; }
.link-card p { color: var(--muted); margin: 0; }

.wide-photo { min-height: 540px; border-radius: var(--radius); overflow: hidden; position: relative; display: flex; align-items: end; color: white; box-shadow: var(--shadow); }
.wide-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wide-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(2,25,51,.9)); }
.wide-photo-copy { position: relative; z-index: 2; padding: 46px; max-width: 720px; }
.wide-photo h2 { color: white; font-size: clamp(2.4rem, 5vw, 4.5rem); margin-bottom: 14px; }

.page-hero { min-height: 460px; color: white; display: grid; align-items: end; background: var(--navy); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,25,51,.95), rgba(2,25,51,.4)); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.page-hero .shell { position: relative; z-index: 2; padding-bottom: 70px; }
.page-hero h1 { color: white; font-size: clamp(3.2rem, 7vw, 6rem); max-width: 850px; letter-spacing: -.04em; margin-top: 13px; }
.prose { width: min(820px, 100%); margin: 0 auto; }
.prose h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin: 56px 0 18px; }
.prose p { font-size: 1.08rem; color: var(--muted); }
.timeline { display: grid; gap: 18px; margin-top: 44px; }
.timeline-item { display: grid; grid-template-columns: 150px 1fr; gap: 26px; padding: 26px 0; border-top: 1px solid var(--silver); }
.timeline-item strong { color: var(--blue); }

.gallery { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 300px 300px; gap: 16px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 20px; }
.gallery figure:first-child { grid-row: 1 / span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.contact-panel { border-radius: var(--radius); background: linear-gradient(135deg, #05294f, #0e62a6); color: white; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; }
.contact-panel h2 { color: white; font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 14px; }
.contact-panel p { color: rgba(255,255,255,.78); max-width: 640px; }
.contact-note { font-size: .86rem; color: var(--muted); margin-top: 14px; }

.site-footer { background: #031d38; color: white; padding: 62px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 52px; }
.footer-brand img { width: 100px; margin-bottom: 14px; }
.footer-brand p, .site-footer li { color: rgba(255,255,255,.66); }
.site-footer ul { list-style: none; padding: 0; margin: 14px 0 0; }
.site-footer h3 { color: white; font-family: 'DM Sans'; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; }
.copyright { margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.48); font-size: .82rem; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 20px; right: 20px; background: white; border-radius: 18px; padding: 22px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav.is-open { display: flex; }
  .identity-grid, .photo-story, .contact-panel { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .portrait { min-height: 580px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: repeat(3, 300px); }
  .gallery figure:first-child { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 26px, 1180px); }
  .brand span { font-size: .82rem; }
  .brand img { width: 46px; height: 46px; }
  .hero { min-height: 680px; }
  .hero-content { padding-top: 92px; }
  .section { padding: 76px 0; }
  .pillars { grid-template-columns: 1fr; }
  .crest-card { min-height: 410px; padding: 20px; }
  .portrait { min-height: 510px; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .wide-photo-copy { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* A casa como espaço vivo: fotografias, folhas e tecidos brancos. */
:root { --foam:#fcfcf8; --sky:#e5f1f5; --gold:#aa843e; --radius:10px; }
body { background-color:var(--foam); background-image:repeating-linear-gradient(0deg,transparent,transparent 3px,rgba(6,43,87,.012) 4px); }
.skip-link { position:fixed; top:-80px; left:20px; z-index:100; background:white; color:var(--navy); padding:15px; }
.skip-link:focus { top:12px; }
a:focus-visible,button:focus-visible { outline:3px solid #c69a49; outline-offset:5px; }
.nav { gap:17px; font-size:.875rem; }
.nav-wrap { gap:16px; }
.brand small { font-size:.75rem; letter-spacing:.05em; }
.eyebrow { color:#316d85; font-size:.875rem; letter-spacing:.1em; }
.hero .eyebrow,.page-hero .eyebrow,.section.blue .eyebrow,.contact-panel .eyebrow,.wide-photo .eyebrow { color:#bceaff; }
.hero { min-height:770px; align-items:center; border-bottom:7px solid #a8894d; }
.hero::before { background:linear-gradient(90deg,rgba(2,22,46,.94),rgba(2,22,46,.84) 38%,rgba(2,22,46,.18) 85%),url('/assets/comunidade.webp') center/cover; }
.hero::after { display:none; }
.hero-content { margin-left:max(20px,calc((100% - 1180px)/2)); margin-right:auto; width:min(650px,calc(100% - 40px)); padding:100px 0; }
.hero h1 { font-size:clamp(3rem,5.7vw,5.8rem); }
.hero-stamp { position:absolute; z-index:2; bottom:28px; right:4%; width:180px; filter:drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.hero-button { background:transparent;color:white;border-color:#c5d9e9; }
.button { border-radius:4px; padding:0 24px; }
.section { padding:90px 0; }
.section.sky { background:linear-gradient(145deg,#e5f1f5,#f4fafb); position:relative; border-block:1px solid #d5e7ec; }
.identity-grid { grid-template-columns:.8fr 1.2fr; }
.crest-card { background:radial-gradient(circle,#fff 50%,#e4eef4); border:1px solid #c8dbe5; border-radius:50% 50% 8px 8px; box-shadow:0 20px 55px rgba(6,43,87,.09); }
.crest-card::after { border-color:rgba(170,132,62,.3); }
.intro h2,.story-copy h2 { font-size:clamp(2.5rem,4.5vw,4.1rem); }
.portrait { border-radius:140px 140px 8px 8px; border:8px solid white; outline:1px solid #d2e0e5; min-height:650px; }
.living-strip { background:var(--navy);color:white;border-bottom:3px solid #a8894d; }
.living-strip .shell { display:flex;align-items:center;justify-content:space-between;gap:24px;padding-block:25px;letter-spacing:.08em;font-size:.9rem; }
.wide-photo { border-radius:8px;min-height:620px; }
.wide-photo-copy { max-width:760px; }
.wide-photo img { object-position:center 40%; }
.contact-panel { border-radius:8px;background:linear-gradient(90deg,rgba(4,40,65,.96),rgba(5,50,61,.9)),url('/assets/preparos.webp') center/cover;border:1px solid #496b72; }
.page-hero { min-height:500px;border-bottom:5px solid #a8894d; }
.page-hero::after { background:linear-gradient(90deg,rgba(2,25,51,.85),rgba(2,25,51,.25)); }
.page-hero img { opacity:1; }
.rose-hero img { object-position:center 27%; }
.footer-grid { grid-template-columns:1fr .65fr 1.1fr; }
address { font-style:normal;line-height:1.8; }
.site-footer address { color:#c1d3e0;margin-top:16px; }
.footer-links { display:flex;flex-wrap:wrap;gap:12px 20px;margin-top:20px; }
.footer-links a { border-bottom:1px solid #7192a7; }
.copyright { color:#a8bacb; }
.editorial-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:26px; }
.editorial-card { display:block;background:white;border:1px solid #d8e5eb;transition:transform .2s; }
.editorial-card:hover { transform:translateY(-4px); }
.editorial-card img { width:100%;height:260px;object-fit:cover; }
.editorial-card>div { padding:28px; }
.editorial-card h3 { font-size:1.85rem;margin:16px 0;line-height:1.2; }
.editorial-card p { color:var(--muted); }
.read-label { display:inline-block;border-bottom:1px solid var(--gold);color:var(--navy);font-weight:700; }
.people-grid { display:grid;grid-template-columns:repeat(2,1fr);gap:24px; }
.person-card { background:white;border-top:3px solid var(--gold);padding:34px;border-bottom:1px solid #cbdde5; }
.person-card .role { font-size:.95rem;color:#37677c; }
.person-card h3 { font-size:2.8rem;margin:12px 0 20px; }
.person-card h4 { font-weight:600;font-size:1rem; }
.person-card p { color:var(--muted); }
.person-card .person-orixa { color:var(--navy);font-weight:700;margin-top:-10px;margin-bottom:24px;padding-bottom:12px;border-bottom:1px solid #d7e4eb; }
.person-photo { width:calc(100% + 68px);max-width:none;height:520px;object-fit:contain;background:#e7eff3;margin:-34px -34px 30px; }
@media(max-width:620px) { .person-photo { width:calc(100% + 52px);height:auto;max-height:620px;margin:-26px -26px 26px; } }
.house-note { color:var(--muted);margin-top:28px;max-width:860px; }
.contact-layout { display:grid;grid-template-columns:1.2fr .8fr;gap:70px;align-items:center; }
.address-card { background:#edf5f8;border:1px solid #c5dbe5;padding:40px; }
.address-card h3 { font-size:2rem;margin:24px 0; }
.address-card .button { margin-top:28px; }
.address-card p { margin-top:28px;color:var(--muted); }
.address-card p a { text-decoration:underline; }
.agenda-empty { position:relative;max-width:850px;margin:auto;text-align:center;padding:70px 40px;background:white;border:1px solid #ccdfe7;border-top:4px solid var(--gold); }
.agenda-empty h2 { font-size:clamp(2.4rem,4vw,3.7rem);margin:24px 0; }
.agenda-empty p { color:var(--muted);font-size:1.1rem; }
.agenda-empty .actions { justify-content:center;margin-top:32px; }
.prose .article-lead { font-size:1.3rem;color:var(--navy);margin-top:36px; }
.prose h2 { font-size:2.5rem; }
.prose p { line-height:1.9; }
.article-ending { margin:48px 0;padding:26px 0;border-block:1px solid #cadde7;color:var(--navy); }
.references h3 { font-size:1.4rem; }
.references ul { padding-left:22px; }
.references a,.back-link { text-decoration:underline;text-underline-offset:4px;color:#145a80; }
.references li { margin:12px 0; }
.story-copy p { color:#526b7f; }
.section.blue .story-copy p { color:#c7d9e7; }
@media(max-width:1050px) { .menu-button { display:block; } .nav { display:none;position:absolute;top:82px;left:20px;right:20px;background:white;padding:24px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch;font-size:1rem; } .nav.is-open { display:flex; } }
@media(max-width:900px) { .identity-grid,.contact-layout { grid-template-columns:1fr;gap:45px; } .editorial-grid { grid-template-columns:1fr; } .editorial-card { display:grid;grid-template-columns:.8fr 1.2fr; } .editorial-card img { height:100%;min-height:260px; } .footer-grid { grid-template-columns:1fr; } }
@media(max-width:620px) { .hero { min-height:760px; } .hero::before { background:linear-gradient(180deg,rgba(2,22,46,.2),rgba(2,22,46,.95) 55%),url('/assets/comunidade.webp') center top/auto 520px no-repeat; } .hero-content { padding:300px 0 70px; } .hero h1 { font-size:2.9rem; } .hero-stamp { display:none; } .living-strip .shell { flex-direction:column;gap:10px; } .portrait { min-height:510px; } .people-grid { grid-template-columns:1fr; } .person-card { padding:26px; } .editorial-card { display:block; } .editorial-card img { height:250px; } .address-card { padding:28px; } .agenda-empty { padding:45px 25px; } .page-hero h1 { font-size:3rem; } .section { padding:65px 0; } .prose h2 { font-size:2rem; } }

/* Conforto de leitura, navegação por toque e espaço reservado para imagens. */
.prose { width:min(820px,calc(100% - 40px)); overflow-wrap:break-word; }
.editorial-card img { aspect-ratio:3 / 2; }
.nav a { padding-block:8px; }
.nav a[aria-current='page'] { color:var(--blue); }
@media(max-width:1050px) {
  .nav { max-height:calc(100dvh - 110px); overflow-y:auto; }
  .nav a { min-height:44px; display:flex; align-items:center; }
}
@media(max-width:620px) {
  .prose { width:calc(100% - 32px); }
  .page-hero .shell { padding-bottom:45px; }
  .page-hero h1 { font-size:clamp(2.25rem,9vw,3rem); overflow-wrap:break-word; }
}
