:root {
  --blue: #2E6699;
  --blue-dark: #24537D;
  --overlay: rgba(20, 30, 40, 0.45);
  --section-bg: #F5F5F5;
  --card-bg: #FFFFFF;
  --card-border: #E3E3E3;
  --text: #333333;
  --text-light: #777777;
  --footer-bg: #1C1C1C;
  --footer-text: #BBBBBB;
  --tile-fg: #FFFFFF;
  --max-content: 760px;
  --max-wide: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", "Poppins", -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #FFFFFF;
}
h1, h2, h3, .logo, .tile-label {
  font-family: "Poppins", -apple-system, Segoe UI, Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
.wrap { max-width: var(--max-wide); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--max-content); margin: 0 auto; padding: 0 20px; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--blue); color: #fff; padding: 8px 14px; z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Header */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.site-header.is-static {
  position: relative;
  background: var(--blue-dark);
  border-bottom: none;
}
.brand { display: flex; flex-direction: column; text-decoration: none; }
.brand:hover .logo { text-decoration: underline; }
.brand:hover { color: inherit; }
.logo {
  color: #fff;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.3px;
}
.logo-sub {
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  margin-top: 2px;
}
.main-nav { display: flex; gap: 26px; }
.main-nav a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
}
.main-nav a:hover { color: #fff; border-bottom: 2px solid #fff; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none; background: transparent;
  color: #fff; font-size: 26px;
  align-items: center; justify-content: center;
}

/* Hero (full-screen photo) */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--overlay);
}
.hero-inner { position: relative; z-index: 5; color: #fff; padding: 0 20px; }
.hero h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 16px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hero p {
  font-size: 19px;
  font-weight: 400;
  margin: 0;
  color: rgba(255,255,255,0.92);
}

/* Smaller page-header hero (interior pages) */
.page-hero { min-height: 46vh; }
.page-hero h1 { font-size: 42px; }
.breadcrumbs {
  position: relative; z-index: 5;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.breadcrumbs a { color: rgba(255,255,255,0.85); }
.breadcrumbs a:hover { color: #fff; }

/* Sections */
section { padding: 64px 0; }
.section-bg { background: var(--section-bg); }
h2.section-title {
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 28px;
  text-align: center;
}

/* Intro card: photo left / text right */
.intro-card {
  display: flex;
  align-items: stretch;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  overflow: hidden;
  max-width: var(--max-wide);
  margin: 0 auto;
}
.intro-card .img-side {
  flex: 0 0 45%;
  min-height: 320px;
  background-size: cover;
  background-position: center;
}
.intro-card .text-side {
  flex: 1;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.intro-card h2 { margin-top: 0; font-size: 24px; }
.intro-card p { color: var(--text); margin: 0 0 14px; }
.intro-card p:last-child { margin-bottom: 0; }

/* 2-column card grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: var(--max-wide);
  margin: 40px auto 0;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card .photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}
@supports not (aspect-ratio: 4 / 3) {
  .card .photo { position: relative; height: 0; padding-top: 75%; }
}
.card .caption {
  padding: 14px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}
.card .caption a { color: var(--text); }
.card .caption a:hover { color: var(--blue); }

/* Blue tile strip */
.tile-strip { background: var(--blue); padding: 56px 0; }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  max-width: var(--max-wide);
  margin: 0 auto;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--tile-fg);
  gap: 10px;
}
.tile svg { width: 40px; height: 40px; }
.tile-label { font-size: 15px; font-weight: 500; }
a.tile:hover { color: var(--tile-fg); opacity: 0.85; }

/* Dark photo section: "Dica do guia" */
.tip-section {
  position: relative;
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}
.tip-section::before { content: ""; position: absolute; inset: 0; background: var(--overlay); }
.tip-section .wrap { position: relative; z-index: 5; max-width: 640px; }
.tip-section .tip-label {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}
.tip-section p.tip-text {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
}

/* CTA strip */
.cta-strip { background: var(--blue); padding: 36px 0; }
.cta-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.cta-strip p { color: #fff; font-size: 19px; margin: 0; font-weight: 500; }
.btn-white {
  background: #fff;
  color: var(--blue);
  padding: 12px 26px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
}
.btn-white:hover { background: rgba(255,255,255,0.9); color: var(--blue-dark); }
.btn-blue {
  background: var(--blue);
  color: #fff;
  padding: 12px 26px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
}
.btn-blue:hover { background: var(--blue-dark); color: #fff; }

/* Generic content blocks (interior article pages) */
.content-block { max-width: var(--max-content); margin: 0 auto; }
.content-block h2 { font-size: 24px; margin: 40px 0 14px; }
.content-block h2:first-child { margin-top: 0; }
.content-block p { margin: 0 0 16px; }
.content-block ul { margin: 0 0 16px; padding-left: 22px; }
.content-block li { margin-bottom: 8px; }

/* Informação útil block */
.info-useful {
  background: var(--section-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 28px 32px;
  max-width: var(--max-content);
  margin: 40px auto 0;
}
.info-useful h3 { margin: 0 0 12px; font-size: 17px; }
.info-useful ul { margin: 0; padding-left: 20px; }
.info-useful li { margin-bottom: 8px; }

/* Related links */
.related-links {
  max-width: var(--max-content);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.related-links a { font-weight: 500; }

/* FAQ (contactos, etc. simple text) */
.simple-text-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 44px 48px;
  max-width: var(--max-content);
  margin: 0 auto;
}
.simple-text-card h2 { margin-top: 0; }

/* Footer */
footer.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 44px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}
.footer-top a { color: var(--footer-text); }
.footer-top a:hover { color: #fff; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer-disclaimer { font-size: 13px; line-height: 1.6; max-width: 640px; }
.footer-bottom { font-size: 12px; color: #888; }

/* 404 / 410 */
.error-page .hero-inner p.sub { margin-bottom: 28px; }
.error-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}

/* Mobile */
@media (max-width: 760px) {
  .hero h1 { font-size: 34px; }
  .page-hero h1 { font-size: 28px; }
  .main-nav { display: none; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; right: 20px;
    background: var(--blue-dark);
    padding: 14px 22px;
    border-radius: 4px;
    gap: 4px;
    z-index: 60;
  }
  .main-nav.is-open a { min-height: 44px; display: flex; align-items: center; }
  .nav-toggle { display: flex; }
  .intro-card { flex-direction: column; }
  .intro-card .img-side { min-height: 220px; flex-basis: auto; }
  .intro-card .text-side { padding: 28px 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: 1fr 1fr; }
  .cta-strip .wrap { flex-direction: column; text-align: center; }
  .simple-text-card, .info-useful { padding: 28px 24px; }
}
@media (max-width: 480px) {
  .tile-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
