@font-face {
  font-family: "Fira Sans";
  src: url("FONT/FiraSans-Regular.woff2") format("woff2"),
       url("FONT/FiraSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("FONT/FiraSans-Medium.woff2") format("woff2"),
       url("FONT/FiraSans-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("FONT/FiraSans-Bold.woff2") format("woff2"),
       url("FONT/FiraSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f6f4f0;
  --bg-soft: #ffffff;
  --primary: #173a59;
  --primary-dark: #0c2236;
  --accent: #d1a85b;
  --text: #1f2328;
  --muted: #5b6771;
  --border: rgba(23, 58, 89, 0.15);
  --shadow: 0 20px 60px rgba(15, 34, 54, 0.15);
}

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

body {
  font-family: "Fira Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main section,
header,
footer {
  animation: fadeUp 0.6s ease both;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button,
summary,
.btn {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: linear-gradient(90deg, #e91e63, #ff5723);
  color: #fff;
  box-shadow: 0 14px 30px rgba(233, 30, 99, 0.25);
}

.btn--ghost {
  border-color: #fff;
  color: #1f2328;
  background: #fff;
}

.btn--light {
  background: #fff;
  color: #1f2328;
  border-color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(90deg, #e91e63, #ff5723);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.topbar__content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar__logo {
  width: 180px;
}

.topbar__nav {
  display: flex;
  gap: 20px;
  font-weight: 500;
  color: #fff;
  justify-content: center;
}

.topbar__nav a {
  color: inherit;
}

.topbar__nav a:hover {
  color: var(--accent);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-weight: 500;
  justify-self: end;
}

.topbar__menu {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.topbar__menu-line {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 80vh;
  background: url("Imagens/slider-desktop.png") center/cover no-repeat;
  color: #fff;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8, 20, 32, 0.75), rgba(8, 20, 32, 0.2));
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 140px 0 120px;
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  gap: 48px;
  align-items: center;
  justify-items: center;
}

.hero__art {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.hero__title {
  width: min(420px, 90%);
}

.hero__theme {
  width: min(360px, 80%);
}

.hero__tag {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  opacity: 0.7;
}

.hero__headline {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  margin-top: 12px;
}

.hero__lead {
  margin: 18px 0 28px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.section {
  padding: 80px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section__title {
  margin-bottom: 32px;
}

.section__kicker {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}

.section__title h2 {
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  color: var(--primary-dark);
}

.section__title p {
  color: var(--muted);
  margin-top: 10px;
}

.section__subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.text-columns {
  display: grid;
  gap: 18px;
}

.quote-strong {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.form-placeholder {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.form-placeholder__box {
  padding: 24px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px dashed var(--border);
}

.kairous {
  margin-top: 32px;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(140deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: #fff;
  border-radius: 18px;
  overflow: visible;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card__body {
  padding: 22px;
  display: grid;
  gap: 12px;
  position: relative;
  --card-pad: 22px;
}

.btn--map {
  padding: 8px 14px;
  font-size: 0.9rem;
  align-self: start;
}

.hotel-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hotel-card .btn--map {
  margin-top: auto;
}

.hotel-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal__content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 720px;
  width: 100%;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.modal__content h3 {
  color: var(--primary-dark);
}

.modal__content h4 {
  margin-top: 8px;
  color: var(--primary-dark);
}

.modal__content ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(23, 58, 89, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.bio-accordion {
  border-top: 1px dashed rgba(23, 58, 89, 0.2);
  padding-top: 10px;
  position: relative;
}

.bio-accordion summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bio-accordion summary::-webkit-details-marker {
  display: none;
}

.bio-accordion summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.bio-accordion[open] summary::after {
  content: "\f077";
}

.bio-accordion p {
  margin: 0;
  color: var(--muted);
}

.bio-accordion > p {
  position: absolute;
  left: calc(var(--card-pad) * -1);
  right: calc(var(--card-pad) * -1);
  top: calc(100% + 10px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
  z-index: 10;
  display: none;
}

.bio-accordion[open] > p {
  display: block;
}

.image-frame {
  position: relative;
  height: 350px;
  background: linear-gradient(120deg, rgba(23, 58, 89, 0.08), rgba(209, 168, 91, 0.18));
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  padding: 0;
  overflow: hidden;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-fallback {
  display: none;
}

.image-frame.is-fallback img {
  display: none;
}

.image-frame.is-fallback .image-fallback {
  display: block;
}

.highlight {
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

#louvor {
  background: #e92560;
  color: #fff;
  position: relative;
  z-index: 1;
}

#louvor .section__title h2,
#louvor .section__title p {
  color: #fff;
}

.louvor {
  display: grid;
  gap: 24px;
  align-items: center;
  grid-template-columns: 0.6fr 1.4fr;
}

.louvor__image img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.louvor__text {
  display: grid;
  gap: 12px;
}

.louvor__text h3 {
  font-size: 1.5rem;
}

#louvor .louvor__text p {
  color: #fff;
}

.kids {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.kids__text h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.kids__image {
  order: -1;
}

.kids__text p {
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.kids__image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

#hospedagem .card {
  display: flex;
  flex-direction: column;
}

#hospedagem .card__body {
  flex: 1;
}

#preletores {
  background: #fff;
  position: relative;
  z-index: 2;
}

#preletores .card {
  background: #e92560;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

#preletores .card__body {
  text-align: center;
}

#preletores .card__body h3,
#preletores .card__body p {
  color: #fff;
}

#preletores .bio-btn {
  background: #710037;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 4px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  width: 100%;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#preletores .bio-btn:hover {
  background: #500027;
  color: #fff;
  transform: translateY(-2px);
}

/* Modal Bio Styles */
.modal__content--bio {
  max-width: 900px;
  width: 90vw;
  height: 500px; /* Altura fixa para todos */
  padding: 0;
  display: grid;
  grid-template-columns: 360px 1fr;
  overflow: hidden;
  align-items: stretch;
}

.modal__media {
  background: #f0f0f0;
  position: relative;
  height: 100%; /* Garante que ocupa toda a altura */
}

.modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.modal__text {
  padding: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden; /* O container não rola, só o texto */
}

.modal__text h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 20px;
  flex: 0 0 auto; /* Título não encolhe */
}

.modal__text p {
  color: #444;
  line-height: 1.7;
  overflow-y: auto; /* Rolagem apenas no texto */
  padding-right: 15px; /* Espaço para scrollbar */
  flex: 1; /* Ocupa o espaço restante */
}

/* Scrollbar personalizada para o modal */
.modal__text p::-webkit-scrollbar {
  width: 8px;
}

.modal__text p::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal__text p::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.modal__text p::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.schedule {
  display: grid;
  gap: 24px;
}

.schedule__cta {
  margin-top: 18px;
}

.schedule__day {
  padding: 0;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.schedule__day summary {
  list-style: none;
  cursor: pointer;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  background: rgba(23, 58, 89, 0.06);
  padding: 14px 20px;
  border-radius: 18px 18px 0 0;
  outline: none;
}

.schedule__day summary:focus-visible {
  box-shadow: 0 0 0 2px rgba(23, 58, 89, 0.25);
}

.schedule__day summary::-webkit-details-marker {
  display: none;
}

.schedule__day[open] summary {
  margin-bottom: 12px;
}

.summary__left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.summary__icon {
  transition: transform 0.2s ease;
}

.schedule__day[open] .summary__icon {
  transform: rotate(180deg);
}

.schedule__list {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 12px 20px 16px;
  margin: 0;
}

.schedule__list + .schedule__list {
  border-top: 1px dashed rgba(23, 58, 89, 0.2);
  padding-top: 12px;
  margin-top: 12px;
}

.schedule__day li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.schedule__day li i {
  color: var(--primary-dark);
  margin-top: 3px;
}

.restaurant-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.restaurant {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
}

.rating {
  --rating: 0;
  position: relative;
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
}

.rating::before {
  content: "★★★★★";
  color: #dcdcdc;
}

.rating::after {
  content: "★★★★★";
  color: #f5b301;
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--rating) / 5 * 100%);
  overflow: hidden;
  white-space: nowrap;
}

.footer {
  background: #fff;
  color: var(--primary-dark);
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: right;
}

.footer__logos {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.footer__logos img {
  height: 64px;
}

@media (max-width: 900px) {
  .topbar__nav {
    display: none;
  }

  .topbar__nav.is-open {
    display: grid;
    position: absolute;
    top: 100%;
    right: 5%;
    background: #fff;
    color: var(--primary-dark);
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    gap: 12px;
    width: min(260px, 90vw);
    z-index: 20;
  }

  .topbar__nav.is-open a {
    color: var(--primary-dark);
  }

  .topbar__menu {
    display: inline-flex;
  }

  .hero {
    background: url("Imagens/slider-mobile.jpg") center/cover no-repeat;
  }

  .hero__content {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero__spacer {
    display: none;
  }
}

@media (max-width: 900px) {
  .louvor {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .topbar__content {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .topbar__right {
    justify-self: end;
    gap: 10px;
  }

  .topbar__logo {
    width: 130px;
  }

  .btn--light {
    padding: 10px 18px;
    font-size: 0.95rem;
  }

  .topbar__right .btn--light {
    background: transparent;
    color: #fff;
    box-shadow: none;
    border-color: transparent;
    padding: 8px 6px;
  }

  .footer__content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__content p {
    white-space: pre-line;
  }

  .image-frame {
    height: 380px;
  }

}

@media (max-width: 900px) {
  .kids {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .modal__content--bio {
    display: flex;
    flex-direction: column;
    height: 85vh; /* Ocupa altura quase total */
    width: 90vw;
  }

  .modal__media {
    height: 380px; /* Altura aumentada */
    min-height: 380px;
    flex: 0 0 auto;
  }

  .modal__text {
    padding: 20px;
    flex: 1 1 auto; /* Texto ocupa o restante */
  }

  .modal__text h3 {
    font-size: 1.5rem;
  }

  .modal__content--bio .modal__close {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    z-index: 5;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
}
