@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,400;1,700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Barlow:wght@300;400;500;600&display=swap');

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

:root {
  --navy: #0B1F3A;
  --navy-mid: #122848;
  --navy-light: #1A3A6B;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --cream: #F5F0E8;
  --cream-dark: #EAE2D0;
  --text-body: #2C3E50;
  --text-muted: #6B7C93;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--navy);
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  background: rgba(11,31,58,0.98);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 60px;
  position: sticky; top: 0; z-index: 300;
  backdrop-filter: blur(8px);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-anchor { font-size: 20px; color: var(--gold); }
.nav-title { font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 700; color: var(--cream); line-height: 1.2; }
.nav-sub { font-size: 9px; color: var(--gold); letter-spacing: .15em; text-transform: uppercase; }

.nav-links { display: flex; list-style: none; height: 60px; }
.nav-links > li { position: relative; height: 60px; display: flex; align-items: center; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 0 .85rem; height: 60px;
  font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(245,240,232,.65); text-decoration: none;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links > li > a:hover,
.nav-links > li:hover > a { color: var(--gold); border-bottom-color: var(--gold); }
.nav-links > li > a.active { color: var(--gold); border-bottom-color: var(--gold); }

/* mega-menu */
.mega {
  display: none; position: fixed; top: 60px; left: 0; right: 0;
  width: 100%; max-width: 720px; margin: 0 auto;
  background: var(--navy-mid);
  border: 1px solid rgba(201,168,76,.2); border-top: 2px solid var(--gold);
  z-index: 400; padding: 1.25rem 1.5rem 1.5rem;
  box-sizing: border-box;
}
.has-mega:hover .mega { display: block; }
.mega-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 1.5rem; }
.mega-group-title {
  font-size: 9px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); padding-bottom: .5rem; margin-bottom: .6rem;
  border-bottom: 1px solid rgba(201,168,76,.2);
}
.mega-col-title {
  font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(201,168,76,.55); margin-bottom: .5rem; padding-bottom: .3rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mega a {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 0; font-size: 11px;
  color: rgba(245,240,232,.7); text-decoration: none;
  transition: color .15s; white-space: nowrap;
}
.mega a:hover { color: var(--gold); }
.mega a .yr { font-family: 'Playfair Display', serif; font-size: 12px; font-weight: 700; color: rgba(201,168,76,.35); min-width: 22px; }
.mega a:hover .yr { color: rgba(201,168,76,.7); }
.mega a.recent { color: var(--gold-light); }
.mega a.recent .yr { color: var(--gold); }
.mega-section-divider { border-top: 1px solid rgba(201,168,76,.15); padding-top: 1rem; margin-top: .25rem; }
.mega-top-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; margin-bottom: 1rem; }

/* ── NEWS BAR ── */
.news-bar {
  background: var(--gold); padding: 9px 2.5rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.news-label { font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); white-space: nowrap; padding-right: 1.25rem; border-right: 1px solid rgba(11,31,58,.3); }
.news-text { font-size: 12px; color: var(--navy); font-weight: 500; }
.news-text a { color: var(--navy); font-weight: 700; text-decoration: none; }

/* ── HERO (homepage) ── */
.hero {
  position: relative; height: 90vh; min-height: 600px;
  display: flex; align-items: center; overflow: hidden;
  background: #0a1828;
}
.hero-slides { position: absolute; inset: 0; }
.slide {
  display: none;
  position: absolute; inset: 0;
}
.slide.active { display: block; }
.slide img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center;
}
.slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,31,58,.78) 0%, rgba(11,31,58,.4) 55%, rgba(11,31,58,.1) 100%);
  pointer-events: none;
}
.hero-content { position: absolute; z-index: 2; padding: 0 3rem; max-width: 640px; top: 50%; transform: translateY(-50%); left: 0; }
.hero-eyebrow { font-size: 10px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: .75rem; display: flex; align-items: center; gap: 10px; }
.hero-eyebrow::before { content: ''; display: inline-block; width: 30px; height: 1px; background: var(--gold); }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(36px,5vw,64px); font-weight: 900; line-height: 1; color: #fff; }
.hero-title em { color: var(--gold); font-style: italic; }
.hero-rule { width: 60px; height: 2px; background: var(--gold); margin: 1.25rem 0; }
.hero-desc { font-size: 14px; color: rgba(245,240,232,.75); line-height: 1.65; max-width: 420px; font-style: italic; }
.hero-btns { display: flex; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.btn-gold { display: inline-flex; align-items: center; gap: 6px; background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.5); padding: 7px 14px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); cursor: pointer; text-decoration: none; transition: background .2s; }
.btn-gold:hover { background: rgba(201,168,76,.28); }
.slide-dots { position: absolute; bottom: 14px; right: 20px; z-index: 3; display: flex; gap: 6px; }.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: background .3s, transform .3s; }
.dot.active { background: var(--gold); transform: scale(1.3); }

/* ── PHOTO MOSAIC ── */
.photo-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 3px; background: var(--navy); padding: 3px; }
.mosaic-photo { overflow: hidden; cursor: pointer; position: relative; background: var(--navy-mid); }
.mosaic-photo img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .5s, filter .4s; filter: brightness(.92); background: #0a1828; }
.mosaic-photo:hover img { transform: scale(1.03); filter: brightness(1.05); }
.mosaic-photo::after { content: ''; position: absolute; inset: 0; border: 2px solid transparent; transition: border-color .3s; pointer-events: none; }
.mosaic-photo:hover::after { border-color: var(--gold); }
.mosaic-photo .overlay-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(0deg, rgba(11,31,58,.85) 0%, transparent 100%); padding: .75rem .85rem .5rem; opacity: 0; transition: opacity .3s; }
.mosaic-photo:hover .overlay-label { opacity: 1; }
.overlay-label span { font-size: 10px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }

/* ── SECTION ── */
.section-wrap { padding: 4rem 2.5rem; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(201,168,76,.2); }
.section-label { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: var(--cream); line-height: 1.1; }
.section-link { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,168,76,.4); padding-bottom: 2px; }

/* ── VISITS GRID ── */
.visits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 1px; background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.12); }
.v-card { background: var(--navy-mid); padding: 1.25rem; cursor: pointer; transition: background .2s; text-decoration: none; display: block; }
.v-card:hover { background: var(--navy-light); }
.v-year { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; color: rgba(201,168,76,.22); line-height: 1; margin-bottom: .4rem; }
.v-name { font-size: 12px; font-weight: 500; color: var(--cream); line-height: 1.3; }
.v-arrow { font-size: 14px; color: var(--gold); margin-top: .75rem; display: block; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.v-card:hover .v-arrow { opacity: 1; transform: translateX(0); }
.v-card.recent { background: rgba(201,168,76,.08); border-left: 2px solid var(--gold); }
.v-card.recent .v-year { color: rgba(201,168,76,.45); }
.v-card.recent .v-name { color: var(--gold-light); }
.v-card.recent .v-arrow { opacity: 1; transform: none; }

/* ── RECRUTA SECTION ── */
.recruta-wrap { background: var(--cream); padding: 4rem 2.5rem; }
.recruta-wrap .section-label { color: #4a6080; }
.recruta-wrap .section-title { color: var(--navy); }
.recruta-wrap .section-link { color: var(--navy-light); border-color: rgba(18,40,72,.3); }
.r-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px; background: var(--cream-dark); }
.r-card { background: var(--cream); padding: 2rem 1.75rem; text-decoration: none; transition: background .2s; display: block; }
.r-card:hover { background: #fff; }
.r-icon { font-size: 22px; margin-bottom: .85rem; display: block; }
.r-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.r-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.r-cta { display: inline-flex; align-items: center; gap: 5px; margin-top: 1.25rem; font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--navy-light); text-decoration: none; }
.r2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--cream-dark); margin-top: 2px; }
.r2-card { background: var(--navy); padding: 2.25rem 1.75rem; text-decoration: none; display: block; transition: background .2s; }
.r2-card:hover { background: var(--navy-light); }
.r2-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--cream); margin-bottom: .5rem; }
.r2-desc { font-size: 12px; color: rgba(245,240,232,.6); line-height: 1.6; }
.r2-cta { display: inline-flex; align-items: center; gap: 5px; margin-top: 1.25rem; font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); text-decoration: none; }

/* ── INTERIOR PAGE HERO ── */
.page-hero {
  position: relative; height: 38vh; min-height: 260px;
  display: flex; align-items: flex-end; overflow: hidden;
  background: var(--navy-mid);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .45;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,31,58,.3) 0%, rgba(11,31,58,.9) 100%);
}
.page-hero-content { position: relative; z-index: 2; padding: 0 2.5rem 2.5rem; }
.page-hero-label { font-size: 9px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; display: flex; align-items: center; gap: 10px; }
.page-hero-label::before { content: ''; display: inline-block; width: 25px; height: 1px; background: var(--gold); }
.page-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(28px,4vw,52px); font-weight: 900; color: #fff; line-height: 1.05; }
.page-hero-year { font-family: 'Playfair Display', serif; font-size: clamp(60px,10vw,120px); font-weight: 900; color: rgba(201,168,76,.12); position: absolute; right: 2.5rem; bottom: 1rem; line-height: 1; z-index: 1; }

/* ── PHOTO GALLERY ── */
.gallery-wrap { padding: 3rem 2.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 3px; }
.gallery-item { overflow: hidden; aspect-ratio: 4/3; cursor: pointer; position: relative; background: var(--navy-mid); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .4s; filter: saturate(.8); display: block; }
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.1); }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 16/7; }

/* lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(5,10,20,.95); z-index: 1000; align-items: center; justify-content: center; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 1.5rem; right: 2rem; font-size: 28px; cursor: pointer; color: rgba(255,255,255,.5); background: none; border: none; transition: color .2s; }
.lightbox-close:hover { color: var(--gold); }
.lightbox-nav { display: flex; gap: 2rem; margin-top: 1.5rem; }
.lightbox-btn { background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.4); color: var(--gold); padding: 8px 20px; font-size: 12px; cursor: pointer; transition: background .2s; }
.lightbox-btn:hover { background: rgba(201,168,76,.3); }
.lightbox-counter { font-size: 11px; color: rgba(255,255,255,.35); letter-spacing: .2em; margin-top: .75rem; }

/* breadcrumb */
.breadcrumb { padding: .75rem 2.5rem; background: rgba(0,0,0,.2); border-bottom: 1px solid rgba(201,168,76,.1); display: flex; align-items: center; gap: 8px; font-size: 11px; }
.breadcrumb a { color: rgba(245,240,232,.45); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(245,240,232,.25); }
.breadcrumb .current { color: rgba(245,240,232,.7); }

/* page nav (prev/next) */
.page-nav { display: flex; justify-content: space-between; padding: 2rem 2.5rem; border-top: 1px solid rgba(201,168,76,.15); }
.page-nav a { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(245,240,232,.5); transition: color .2s; }
.page-nav a:hover { color: var(--gold); }
.page-nav .pn-label { font-size: 9px; color: var(--gold); letter-spacing: .2em; display: block; margin-bottom: 3px; }
.page-nav .pn-title { font-family: 'Playfair Display', serif; font-size: 14px; color: var(--cream); display: block; }

/* contact / comments */
.content-wrap { padding: 3rem 2.5rem; max-width: 800px; }
.content-wrap p { font-family: 'Crimson Text', serif; font-size: 18px; line-height: 1.8; color: rgba(245,240,232,.8); margin-bottom: 1.25rem; }
.content-wrap h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--cream); margin: 2rem 0 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.form-input, .form-textarea { width: 100%; background: var(--navy-mid); border: 1px solid rgba(201,168,76,.2); color: var(--cream); padding: .75rem 1rem; font-family: 'Barlow', sans-serif; font-size: 14px; transition: border-color .2s; outline: none; }
.form-input:focus, .form-textarea:focus { border-color: rgba(201,168,76,.6); }
.form-textarea { height: 140px; resize: vertical; }
.btn-submit { background: var(--gold); border: none; color: var(--navy); padding: .85rem 2rem; font-family: 'Barlow', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.btn-submit:hover { background: var(--gold-light); }

/* links page */
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 2px; background: rgba(201,168,76,.1); }
.link-card { background: var(--navy-mid); padding: 1.5rem; text-decoration: none; display: block; transition: background .2s; }
.link-card:hover { background: var(--navy-light); }
.link-icon { font-size: 24px; margin-bottom: .75rem; display: block; }
.link-title { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--cream); margin-bottom: .4rem; }
.link-url { font-size: 11px; color: var(--gold); }

/* ── FOOTER ── */
footer { background: #060F1D; border-top: 1px solid rgba(201,168,76,.2); padding: 2.5rem 2.5rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.f-brand { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--cream); margin-bottom: .4rem; }
.f-desc { font-size: 12px; color: rgba(245,240,232,.4); max-width: 400px; line-height: 1.7; }
.f-right { display: flex; flex-direction: column; gap: 7px; align-items: flex-end; text-align: right; }
.f-right-title { font-family: 'Playfair Display', serif; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.f-right a { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(245,240,232,.45); text-decoration: none; transition: color .2s; display: block; }
.f-right a:hover { color: var(--gold); }
.f-bottom { background: #060F1D; border-top: 1px solid rgba(255,255,255,.05); padding: 1.25rem 2.5rem; display: flex; justify-content: space-between; }
.f-copy { font-size: 10px; color: rgba(245,240,232,.28); letter-spacing: .05em; }

/* ── Google Fonts extra: Cormorant Garamond para texto de galeria ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ── Texto intro das galerias ── */
.gallery-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-style: italic;
  font-weight: 400;
  color: rgba(245,240,232,.72);
  line-height: 1.85;
  max-width: 760px;
  margin-bottom: 2rem;
  letter-spacing: .01em;
}



/* ── Comentários ── */
.comments-wrap { padding: 2.5rem 2.5rem; max-width: 820px; display: flex; flex-direction: column; gap: 1.5rem; }
.comment-card { background: var(--navy-mid); border: 1px solid rgba(201,168,76,.1); padding: 1.5rem 1.75rem; }
.comment-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.comment-name { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; color: var(--gold); }
.comment-date { font-size: 11px; color: rgba(245,240,232,.3); letter-spacing: .05em; }
.comment-text { font-family: 'Cormorant Garamond', serif; font-size: 17px; color: rgba(245,240,232,.75); line-height: 1.8; margin: 0; }

/* ── Revista da Armada ── */
.revista-grid { display: flex; flex-direction: column; gap: 2.5rem; }
.revista-entry { }
.revista-ano { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900; color: var(--gold); margin-bottom: .75rem; letter-spacing: .05em; }
.revista-single { max-width: 300px; }
.revista-pair .gallery-item { aspect-ratio: 3/4; cursor: pointer; }
.revista-label { text-align: center; font-size: 11px; color: rgba(245,240,232,.35); letter-spacing: .1em; text-transform: uppercase; margin-top: .35rem; }

/* ── SVG submarino no r-icon ── */
.r-icon-svg { width: 44px; height: 13px; color: var(--navy); display: block; margin-bottom: .85rem; }
