:root {
  --bg: #f4f8fd;
  --surface: #ffffff;
  --surface-alt: #eef5fd;
  --text: #12243e;
  --muted: #5f7390;
  --primary: #1f5f9f;
  --primary-soft: #3f79b3;
  --border: #dce8f6;
  --shadow-soft: 0 10px 30px rgba(16, 40, 72, 0.08);
  --radius-md: 14px;
  --radius-lg: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

body.entry-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section {
  padding: 70px 0;
}

.section-title {
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  margin-bottom: 2rem;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(120deg, var(--primary), var(--primary-soft));
  color: #fff;
  font-weight: 700;
  padding: 0.82rem 1.3rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 20px rgba(31, 95, 159, 0.28);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 95, 159, 0.3);
}

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  justify-items: center;
  align-items: end;
  padding: 1rem 1rem max(1.25rem, env(safe-area-inset-bottom));
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow: hidden;
}

.entry-gate::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -2;
  background: url("/img/bg-texto-correto.png?v=28") center / cover no-repeat;
  filter: blur(15px);
}

.entry-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(130deg, rgba(10, 34, 64, 0), rgba(31, 95, 159, 0)),
    url("/img/bg-texto-correto.png?v=28") center / cover no-repeat;
}

.entry-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.entry-stack-hero {
  display: none;
}

.entry-gate .entry-card {
  position: relative;
  z-index: 2;
}

.site-footer--entry {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding-bottom: max(1rem, env(safe-area-inset-bottom)) !important;
}

.entry-card {
  width: min(620px, 100%);
  text-align: center;
  padding: 0;
}

.entry-card h2 {
  font-size: clamp(1.05rem, 3.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.85rem;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

/* Título da entrada: visível em web e mobile */
.entry-card .entry-tagline {
  display: block;
  margin: 0 0 0.85rem;
}

.entry-card .entry-mobile-panel {
  background: transparent;
}

@media (min-width: 760px) {
  .entry-card .entry-mobile-panel {
    width: min(620px, 100%);
    padding: 0 0.25rem;
  }

  .entry-card .entry-tagline {
    font-size: clamp(1.05rem, 2.1vw, 1.45rem);
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  }

  .entry-actions {
    margin-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 759px) {
  .entry-card .entry-mobile-panel {
    margin-bottom: max(0.75rem, env(safe-area-inset-bottom));
    width: auto;
    padding: 1rem 0.85rem 1.15rem;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    box-shadow: 0 10px 36px rgba(10, 34, 64, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }

  .entry-card .entry-tagline {
    display: block;
    margin: 0 0 0.75rem;
    font-size: clamp(1.024rem, 3.12vw, 1.609rem);
    color: #0c203a;
    text-shadow: none;
  }
}

.entry-card p {
  color: var(--muted);
}

.entry-actions {
  display: grid;
  gap: 0.7rem;
  width: min(620px, 100%);
  margin-bottom: 16%;
}

.entry-choice {
  width: 100%;
  min-height: 58px;
  font-size: 1.06rem;
  padding: 1rem 1.4rem;
}

.entry-choice-light {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(16, 40, 72, 0.18);
}

.entry-choice-light:hover {
  box-shadow: 0 12px 24px rgba(16, 40, 72, 0.24);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(220, 232, 246, 0.75);
  backdrop-filter: blur(12px);
  overflow: visible;
}

.nav-wrapper {
  min-height: 152px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  flex-shrink: 0;
  line-height: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.72rem;
  font-weight: 700;
  color: var(--primary);
}

.brand video {
  height: 152px;
  max-height: 152px;
  width: auto;
  max-width: min(320px, 63vw);
  object-fit: contain;
  display: block;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.main-nav {
  position: absolute;
  top: calc(100% + 8px);
  left: 4%;
  right: 4%;
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: all 0.35s ease;
}

.main-nav a {
  padding: 0.72rem 0.78rem;
  border-radius: 10px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s ease, background-color 0.25s ease;
}

.main-nav a:hover {
  color: var(--primary);
  background: var(--surface-alt);
}

.main-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.main-nav a.btn-nav {
  margin-top: 0.25rem;
  color: #ffffff;
}

.main-nav a.btn-nav:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
}

.hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -2;
  background: url("/img/capa-site-web.png?v=28") center / cover no-repeat;
  filter: blur(15px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/img/capa-site-web.png?v=28") center / contain no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7, 28, 56, 0.72), rgba(18, 57, 99, 0.5));
}

.hero-content {
  position: relative;
  color: #fff;
  max-width: 700px;
}

.hero-content .eyebrow {
  color: #d8e6fa;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.3rem, 7vw, 4.3rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.7rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.8vw, 1.3rem);
  margin-bottom: 1.6rem;
}

.about-grid,
.contact-grid {
  display: grid;
  gap: 1.4rem;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(16, 40, 72, 0.12);
  }

  100% {
    transform: translateY(0);
  }
}

.about-text h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
}

.about-text p+p {
  margin-top: 0.9rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.3rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #bfd4ee;
}

.card h3 {
  margin-bottom: 0.58rem;
  font-size: 1.1rem;
}

.card p {
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 700;
}

.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 2.7rem;
}

.testimonial-card {
  display: none;
  text-align: center;
}

.testimonial-card.active {
  display: block;
  animation: fadeSlide 0.5s ease;
}

.stars {
  color: #f0bd3a;
  letter-spacing: 0.12em;
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.testimonial-card p {
  color: var(--muted);
  font-size: 1.04rem;
}

.testimonial-card h3 {
  margin-top: 0.8rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.carousel-btn:hover {
  background: var(--primary);
  color: #fff;
}

.carousel-btn.prev {
  left: 0.8rem;
}

.carousel-btn.next {
  right: 0.8rem;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.contact-info,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
}

.contact-info h2 {
  margin-bottom: 0.7rem;
}

.contact-info ul {
  list-style: none;
  margin: 1rem 0;
}

.contact-info li {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-card-link {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fcfdff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-card-link:hover {
  border-color: #bfd4ee;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.contact-card-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.contact-card-icon {
  background: var(--surface-alt, #e8f0fe);
  padding: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.socials,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.socials a,
.footer-social a {
  color: var(--primary);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 0.58rem;
}

.contact-form label {
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  outline: none;
  font: inherit;
  color: var(--text);
  background: #fcfdff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(63, 121, 179, 0.15);
}

.form-feedback {
  min-height: 1.3rem;
  margin-top: 0.2rem;
  font-weight: 700;
}

.form-feedback.error {
  color: #b53030;
}

.form-feedback.success {
  color: #25783c;
}

.site-footer {
  background: #0e2a4a;
  color: #e9f1fb;
  padding: 2.8rem 0 1.2rem;
}

/* Impressum / Datenschutz: layout + footer compacto no desktop, espaçamento maior no mobile */
body.legal-subpage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

body.legal-subpage[data-empresas-page="legal"] .site-header--empresas,
body.page-termin-buchen[data-empresas-page="termin"] .site-header--empresas {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(34, 74, 127, 0.12);
}

body.legal-subpage[data-empresas-page="legal"] .main-nav,
body.page-termin-buchen[data-empresas-page="termin"] .main-nav {
  background: #fff;
}

@media (min-width: 960px) {

  body.legal-subpage[data-empresas-page="legal"] .main-nav,
  body.page-termin-buchen[data-empresas-page="termin"] .main-nav {
    background: transparent;
  }
}

body.legal-subpage .legal-subpage-shell {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 1rem;
  width: 100%;
}

body.legal-subpage .site-footer--legal-subpage {
  text-align: center;
  padding: 0.55rem 0 0.4rem;
}

body.legal-subpage .legal-subpage-footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

body.legal-subpage .legal-subpage-footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
}

@media (max-width: 759px) {
  body.legal-subpage .site-footer--legal-subpage {
    padding: 2.5rem 0 1.5rem;
  }

  body.legal-subpage .legal-subpage-footer-social {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  body.legal-subpage .legal-subpage-footer-legal {
    padding-top: 1.5rem;
    gap: 0.8rem;
  }
}

.footer-grid {
  display: grid;
  gap: 1.3rem;
}

.footer-links {
  display: grid;
  gap: 0.38rem;
}

.footer-links a,
.footer-bottom a {
  color: #d6e5f8;
}

.footer-bottom {
  width: min(1120px, 92%);
  margin: 1.6rem auto 0;
  border-top: 1px solid rgba(214, 229, 248, 0.2);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}

.footer-bottom div {
  display: flex;
  gap: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  .entry-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.7rem;
    align-items: start;
  }

  .about-image {
    position: sticky;
    top: 170px;
  }
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .main-nav a {
    padding: 0.55rem 0.82rem;
  }

  .btn-nav {
    margin-top: 0;
    margin-left: 0.45rem;
  }

  .section {
    padding: 92px 0;
  }

  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .news .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 600px) {
  .entry-gate::before {
    background-image: url("img/capa-site-mobile.png?v=29");
  }

  .hero::before {
    background-image: url("img/capa-site-mobile.png?v=29");
  }

  .hero::after {
    background: url("img/capa-site-mobile.png?v=29") top center / contain no-repeat;
  }
}

@media (max-width: 759px) {

  /* Espaço para WhatsApp / Elfsight visíveis nos cantos sem tapar os botões de perfil */
  .entry-gate {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding-top: max(0.5rem, env(safe-area-inset-top));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(1.5rem, calc(env(safe-area-inset-bottom) + 4.75rem));
  }

  .entry-gate::after {
    background: linear-gradient(180deg, rgba(10, 34, 64, 0.15) 0%, rgba(10, 34, 64, 0.82) 100%);
  }

  .entry-stack-hero {
    display: block;
    width: 100%;
    max-width: min(620px, 100%);
    flex-shrink: 0;
    margin-bottom: 0.35rem;
  }

  .entry-stack-hero img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
  }

  .site-footer--entry {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
    width: 100%;
    max-width: min(620px, 100%);
    margin-top: 0.75rem;
    flex-shrink: 0;
  }

  .entry-card .entry-mobile-panel .entry-actions {
    gap: 1rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    width: 100%;
  }

  .entry-actions {
    gap: 1rem;
    margin-bottom: max(1rem, env(safe-area-inset-bottom));
    width: min(620px, 100%);
  }

  .entry-actions .entry-choice {
    min-height: 0;
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.68rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(31, 95, 159, 0.35);
    background: linear-gradient(135deg, var(--primary), #164a7a);
    box-shadow: 0 4px 14px rgba(31, 95, 159, 0.28);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .entry-actions .entry-choice:hover {
    transform: none;
    background: linear-gradient(135deg, #2470b8, var(--primary));
    box-shadow: 0 6px 18px rgba(31, 95, 159, 0.35);
    border-color: rgba(31, 95, 159, 0.45);
  }

  .entry-actions .entry-choice-light {
    background: #fff;
    color: var(--primary);
    border: 1px solid rgba(31, 95, 159, 0.28);
    box-shadow: 0 2px 12px rgba(12, 32, 58, 0.1);
  }

  .entry-actions .entry-choice-light:hover {
    background: #f0f6fc;
    box-shadow: 0 4px 14px rgba(12, 32, 58, 0.12);
    border-color: var(--primary-soft);
  }
}