/* =========================================================
   FONTES
========================================================= */

@font-face {
  font-family: "Nohemi";
  src: url("assets/fonts/Nohemi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nohemi";
  src: url("assets/fonts/Nohemi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nohemi";
  src: url("assets/fonts/Nohemi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   VARIÁVEIS
========================================================= */

:root {
  --app-max-width: 430px;
  --app-max-height: 932px;
  --white: #ffffff;
  --black: #151515;
  --page-background: #f5f2ec;
  --navy: #263f6f;
  --blue-card: #556d95;
  --beige-card: #decca3;
  --green-card: #8d9e8a;
  --orange-card: #c78363;
  --menu-background: rgba(47, 37, 34, 0.64);
  --menu-background-hover: rgba(70, 57, 53, 0.7);
  --menu-border: rgba(255, 255, 255, 0.52);
  --menu-divider: rgba(255, 255, 255, 0.38);
  --home-gutter: 25px;
  --home-radius: 10px;
  --home-card-gap: 10px;
  --home-nav-height: 68px;
}

/* =========================================================
   RESET
========================================================= */

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

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html,
body,
button,
input,
textarea,
select {
  font-family: "Nohemi", sans-serif;
}

body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #171717;
  color: var(--white);
}

button {
  margin: 0;
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

/* =========================================================
   CONTENTOR PRINCIPAL
========================================================= */

.phone {
  position: relative;
  width: 100%;
  max-width: var(--app-max-width);
  height: 100dvh;
  max-height: var(--app-max-height);
  overflow: hidden;
  isolation: isolate;
  background: #202020;
}

/* =========================================================
   ECRÃS
========================================================= */

.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 650ms cubic-bezier(0.76, 0, 0.24, 1),
    opacity 420ms ease;
}

.screen.is-active {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.screen.is-before {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

/* =========================================================
   PRIMEIRO ECRÃ
========================================================= */

.welcome__photo,
.welcome__shade {
  position: absolute;
  inset: 0;
}

.welcome__photo {
  z-index: -2;
  background: url("assets/images/coimbra-alta.jpg")
    center center / cover
    no-repeat;
  transform: scale(1.035);
}

.welcome__shade {
  z-index: -1;
  background: linear-gradient(
      180deg,
      rgba(6, 22, 30, 0.02) 0%,
      rgba(5, 13, 18, 0.04) 32%,
      rgba(6, 8, 10, 0.17) 60%,
      rgba(5, 5, 5, 0.5) 100%
    );
}

.logo-principal {
  position: absolute;
  top: clamp(48px, 9vh, 82px);
  left: 50%;
  z-index: 3;
  width: clamp(150px, 50%, 200px);
  height: auto;
  transform: translateX(-50%);
}

.welcome__content {
  position: absolute;
  top: clamp(245px, 46%, 430px);
  left: 50%;
  z-index: 4;
  width: 100%;
  padding-right: clamp(10px, 4vw, 20px);
  padding-left: clamp(10px, 4vw, 20px);
  transform: translateX(-50%);
}

.greeting {
  min-height: clamp(40px, 6vh, 50px);
  margin: 0 0 clamp(16px, 2.8vh, 24px);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: clamp(28px, 9vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.35),
    0 8px 25px rgba(0, 0, 0, 0.35);
}

#greeting-word {
  display: inline-block;
  font-weight: 700;
  letter-spacing: clamp(1.5px, 0.5vw, 2px);
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition: opacity 260ms ease,
    transform 260ms ease,
    filter 260ms ease;
}

#greeting-word.is-leaving {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(-10px);
}

#greeting-word.is-entering {
  animation: greeting-in
    420ms
    cubic-bezier(0.2, 0.72, 0.27, 1)
    both;
}

/* =========================================================
   SELETOR DE IDIOMA
========================================================= */

.language-selector {
  position: relative;
  width: clamp(210px, 66%, 260px);
  margin: 0 auto;
}

.language-selector__toggle {
  width: 100%;
  min-height: clamp(46px, 6.2vh, 52px);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--menu-border);
  border-radius: 12px;
  background: var(--menu-background);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(31, 31, 31, 0.2),
    inset 0 1px 1px rgba(88, 88, 88, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
}

.language-selector.is-open .language-selector__toggle {
  border-radius: 12px 12px 0 0;
  border-bottom-color: rgba(255, 255, 255, 0.24);
}

.language-selector__current {
  flex: 1;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(11.5px, 3.3vw, 13px);
  line-height: 1.1;
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.language-selector__current strong {
  font-weight: 700;
}

.language-flag {
  width: clamp(18px, 5.3vw, 21px);
  height: clamp(18px, 5.3vw, 21px);
  flex: 0 0 clamp(18px, 5.3vw, 21px);
  object-fit: contain;
}

.language-selector__arrow {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-right: 2px;
  border-right: 1.4px solid var(--white);
  border-bottom: 1.4px solid var(--white);
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
}

.language-selector.is-open .language-selector__arrow {
  transform: rotate(225deg) translate(-1px, -1px);
}

.language-selector__menu {
  width: 100%;
  padding: 0 10px 2px;
  border-right: 1px solid var(--menu-border);
  border-bottom: 1px solid var(--menu-border);
  border-left: 1px solid var(--menu-border);
  border-radius: 0 0 12px 12px;
  background: var(--menu-background);
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.23),
    inset 0 -1px 1px rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.language-option {
  width: 100%;
  min-height: clamp(42px, 5.6vh, 47px);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 2px;
  border: 0;
  border-bottom: 1px solid var(--menu-divider);
  background: transparent;
  color: var(--white);
  text-align: left;
  cursor: pointer;
}

.language-option:last-child {
  border-bottom: 0;
}

.language-option__text {
  flex: 1;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(11px, 3.15vw, 12.5px);
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.language-option__text strong {
  font-weight: 700;
}

.language-option__radio {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.language-option.is-selected .language-option__radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
}

.language-selector__toggle:hover,
.language-option:hover {
  background-color: var(--menu-background-hover);
}

/* =========================================================
   INTRODUÇÃO
========================================================= */

.intro__photo,
.intro__shade {
  position: absolute;
  inset: 0;
}

.intro__photo {
  z-index: -2;
  background: url("assets/images/introducao.png")
    center center / cover
    no-repeat;
}

.intro__shade {
  z-index: -1;
  background: linear-gradient(
      180deg,
      rgba(20, 28, 33, 0.12) 0%,
      rgba(10, 12, 12, 0.02) 35%,
      rgba(7, 8, 7, 0.12) 58%,
      rgba(4, 5, 4, 0.55) 100%
    );
}

.intro__brand {
  position: absolute;
  top: clamp(55px, 10vh, 95px);
  left: 50%;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  transform: translateX(-50%);
}

.intro__logo {
  width: clamp(185px, 57%, 245px);
}

.intro__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.intro__text {
  position: absolute;
  right: clamp(22px, 8vw, 40px);
  bottom: clamp(165px, 22vh, 205px);
  left: clamp(22px, 8vw, 40px);
  margin: 0;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.2px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.44),
    0 8px 25px rgba(0, 0, 0, 0.28);
}

/* =========================================================
   BOTÃO DE DESLIZAR
========================================================= */

.swipe-control {
  position: absolute;
  bottom: max(
      20px,
      calc(env(safe-area-inset-bottom) + 10px)
    );
  left: 50%;
  width: 64px;
  height: 128px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(
      180deg,
      rgba(124, 116, 109, 0.77) 0%,
      rgba(77, 69, 63, 0.68) 100%
    );
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.27),
    inset 0 1px 1px rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  transform: translateX(-50%);
}

.swipe-arrows {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 22px;
  height: 40px;
  transform: translateX(-50%);
}

.swipe-arrow {
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(255, 255, 255, 0.9);
  border-left: 2px solid rgba(255, 255, 255, 0.9);
  transform: translateX(-50%) rotate(45deg);
}

.swipe-arrow--1 {
  top: 1px;
  opacity: 0.25;
}

.swipe-arrow--2 {
  top: 11px;
  opacity: 0.58;
}

.swipe-arrow--3 {
  top: 21px;
  opacity: 1;
}

.swipe-thumb {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.27);
  cursor: grab;
  touch-action: none;
  transition: transform 260ms cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 180ms ease;
}

.swipe-control.is-dragging .swipe-thumb {
  cursor: grabbing;
  transition: none;
}

/* =========================================================
   PÁGINAS
========================================================= */

.app-page {
  background: var(--page-background);
  color: var(--navy);
}

.page-scroll {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(
      var(--home-nav-height) +
      36px +
      env(safe-area-inset-bottom)
    );
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.page-scroll::-webkit-scrollbar {
  display: none;
}

/* =========================================================
   HOME
========================================================= */

.home-page {
  background: var(--page-background);
}

.home-scroll {
  padding-right: var(--home-gutter);
  padding-left: var(--home-gutter);
  scroll-behavior: smooth;
}

.home-scroll::after {
  content: "";
  display: block;
  height: 8px;
}

/* =========================================================
   CABEÇALHO DA HOME
========================================================= */

.home-header {
  position: relative;
  min-height: 105px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  padding-top: max(
      18px,
      calc(env(safe-area-inset-top) + 9px)
    );
}

.home-header > span {
  grid-column: 1;
}

.home-header__logo {
  grid-column: 2;
  justify-self: center;
  width: 126px;
  height: auto;
  opacity: 1;
  transition: opacity 220ms ease;
}

.settings-button {
  grid-column: 3;
  justify-self: end;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: var(--navy);
  box-shadow: 0 4px 10px rgba(38, 63, 111, 0.13);
  cursor: pointer;
  transition: transform 160ms ease,
    box-shadow 160ms ease;
}

.settings-button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.settings-button:active {
  transform: scale(0.95);
}

.settings-button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* =========================================================
   TÍTULO DA HOME
========================================================= */

.home-heading-block {
  margin-top: 10px;
  padding: 1px
    4px
    6px
    14px;
  border-left: 7px solid var(--navy);
}

.home-heading {
  max-width: 315px;
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.35px;
}

.home-heading span {
  display: inline;
  font-weight: 400;
}

.home-heading strong {
  font-weight: 700;
}

.home-heading__second-line {
  display: inline-block;
  white-space: nowrap;
}

.home-welcome {
  margin: 5px 0 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.2px;
}

/* =========================================================
   INTRODUÇÃO DA HOME
========================================================= */

.home-introduction-block {
  margin: 0 0 14px;
  padding: 8px
    5px
    1px
    14px;
  border-left: 7px solid var(--beige-card);
}

.home-introduction {
  max-width: 305px;
  margin: 0;
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02px;
}

.home-introduction strong {
  font-weight: 700;
}

/* =========================================================
   CARTÕES
========================================================= */

.info-card {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin: 0 0 var(--home-card-gap);
  padding: 11px 13px 12px;
  border-radius: var(--home-radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1),
    0 5px 14px rgba(33, 45, 63, 0.055);
}

.info-card:last-child {
  margin-bottom: 0;
}

.info-card--blue {
  background: var(--blue-card);
  color: var(--white);
}

.info-card--beige {
  background: var(--beige-card);
  color: var(--navy);
}

.info-card--green {
  background: var(--green-card);
  color: var(--white);
}

.info-card--orange {
  background: var(--orange-card);
  color: var(--white);
}

.info-card__icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f6f3ed;
  box-shadow: 0 2px 5px rgba(24, 38, 57, 0.08);
}

.info-card__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.info-card__content {
  min-width: 0;
  padding-top: 1px;
}

.info-card h2 {
  margin: 0 0 5px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
}

.info-card p {
  margin: 0;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: 0.02px;
}

.info-card strong {
  font-weight: 700;
}

.stairs-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.stairs-list li {
  margin: 0 0 3px;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.32;
}

.stairs-list li:last-child {
  margin-bottom: 0;
}

/* =========================================================
   MENU INFERIOR
========================================================= */

.app-navigation {
  position: absolute;
  right: 20px;
  bottom: max(
      9px,
      calc(env(safe-area-inset-bottom) + 6px)
    );
  left: 20px;
  z-index: 20;
  height: var(--home-nav-height);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--navy);
  box-shadow: 0 9px 24px rgba(27, 48, 87, 0.24);
}

.app-navigation__item {
  min-width: 0;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1px 1px 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  transition: transform 150ms ease,
    color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin: 0;
  object-fit: contain;
}

.app-navigation__item img.nav-icon {
  filter: brightness(0) invert(1);
}

.app-navigation__item span {
  overflow: hidden;
  width: 100%;
  margin: 0;
  color: inherit;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Estado inativo */

.nav-icon--outline {
  display: block;
  opacity: 0.7;
}

.nav-icon--filled {
  display: none;
}

/* Estado ativo */

.app-navigation__item.is-active {
  color: var(--white);
}

.app-navigation__item.is-active .nav-icon--outline {
  display: none;
}

.app-navigation__item.is-active .nav-icon--filled {
  display: block;
  opacity: 1;
}

.app-navigation__item.is-active span {
  font-weight: 700;
}

/* Interações */

.app-navigation__item:active {
  transform: scale(0.94);
}

.app-navigation__item:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.9);
  outline-offset: 1px;
  border-radius: 10px;
}

/* =========================================================
   PÁGINAS PROVISÓRIAS
========================================================= */

.placeholder-scroll {
  padding: 35px
    28px
    calc(
      var(--home-nav-height) +
      35px +
      env(safe-area-inset-bottom)
    );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.placeholder-logo {
  width: 135px;
  margin: 0 0 30px;
}

.placeholder-page h1 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.placeholder-page p {
  max-width: 250px;
  margin: 0;
  color: rgba(38, 63, 111, 0.68);
  font-size: 12.5px;
  line-height: 1.45;
}

/* =========================================================
   ANIMAÇÕES
========================================================= */

@keyframes greeting-in {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(10px);
  }

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

}

/* =========================================================
   COMPUTADOR
========================================================= */

@media (min-width: 480px) and (min-height: 700px) {
  .phone {
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  }

}

/* =========================================================
   IPHONE E TAMANHOS SEMELHANTES
========================================================= */

@media (min-width: 375px) and (max-width: 430px) {
  :root {
    --home-gutter: 25px;
  }

  .home-header {
    min-height: 108px;
  }

  .home-header__logo {
    width: 128px;
  }

  .home-heading {
    font-size: 20px;
  }

  .home-welcome {
    font-size: 18px;
  }

  .nav-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .app-navigation__item span {
    font-size: 10px;
    transform: translateY(2px);
  }

}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  :root {
    --home-gutter: 18px;
    --home-card-gap: 8px;
    --home-nav-height: 63px;
  }

  .home-header {
    min-height: 94px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .home-header__logo {
    width: 110px;
  }

  .settings-button {
    width: 37px;
    height: 37px;
    border-radius: 9px;
  }

  .settings-button img {
    width: 18px;
    height: 18px;
  }

  .home-heading-block,
  .home-introduction-block {
    padding-left: 11px;
    border-left-width: 6px;
  }

  .home-heading {
    font-size: 17.5px;
  }

  .home-heading__second-line {
    white-space: normal;
  }

  .home-welcome {
    font-size: 16px;
  }

  .home-introduction {
    font-size: 10.5px;
  }

  .info-card {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 10px 10px;
    border-radius: 8px;
  }

  .info-card__icon {
    width: 34px;
    height: 34px;
  }

  .info-card__icon img {
    width: 20px;
    height: 20px;
  }

  .info-card h2 {
    font-size: 11.5px;
  }

  .info-card p,
  .stairs-list li {
    font-size: 9.5px;
  }

  .app-navigation {
    right: 13px;
    left: 13px;
    padding-right: 5px;
    padding-left: 5px;
  }

  .app-navigation__item {
    height: 52px;
    gap: 0;
  }

  .nav-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }

  .app-navigation__item span {
    font-size: 8.7px;
    transform: translateY(2px);
  }

}

/* =========================================================
   ECRÃS MAIS BAIXOS
========================================================= */

@media (max-height: 700px) {
  .logo-principal {
    top: 42px;
    width: 165px;
  }

  .welcome__content {
    top: 41%;
  }

  .intro__brand {
    top: 38px;
  }

  .intro__logo {
    width: 180px;
  }

  .intro__text {
    right: 24px;
    bottom: 150px;
    left: 24px;
    font-size: 16px;
  }

  .swipe-control {
    width: 58px;
    height: 112px;
  }

  .swipe-arrows {
    top: 7px;
    transform: translateX(-50%)
      scale(0.85);
  }

  .home-header {
    min-height: 91px;
    padding-top: 13px;
  }

  .home-header__logo {
    width: 110px;
  }

  .settings-button {
    width: 37px;
    height: 37px;
  }

  .home-heading-block {
    margin-top: 3px;
  }

  .home-heading {
    font-size: 17px;
  }

  .home-welcome {
    font-size: 15.5px;
  }

  .home-introduction {
    font-size: 10px;
  }

  .info-card {
    margin-bottom: 8px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .info-card h2 {
    font-size: 11.5px;
  }

  .info-card p,
  .stairs-list li {
    font-size: 9.5px;
  }

  .nav-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .app-navigation__item span {
    font-size: 9px;
    transform: translateY(2px);
  }

}

/* =========================================================
   MODO HORIZONTAL
========================================================= */

@media (orientation: landscape) and (max-height: 500px) {
  .phone {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .logo-principal {
    top: 50%;
    left: 25%;
    width: 170px;
    transform: translate(-50%, -50%);
  }

  .welcome__content {
    top: 50%;
    left: 72%;
    width: min(48%, 310px);
    padding: 0;
    transform: translate(-50%, -50%);
  }

  .intro__brand {
    top: 25px;
    left: 25%;
    width: auto;
    transform: none;
  }

  .intro__logo {
    width: 165px;
  }

  .intro__text {
    top: 38%;
    right: 150px;
    bottom: auto;
    left: 48%;
  }

  .swipe-control {
    right: 30px;
    bottom: 50%;
    left: auto;
    transform: translateY(50%);
  }

  .home-scroll {
    padding-right: 22px;
    padding-left: 22px;
  }

  .home-header {
    min-height: 82px;
    padding-top: 10px;
  }

  .home-header__logo {
    width: 105px;
  }

  .settings-button {
    width: 37px;
    height: 37px;
  }

  .app-navigation {
    right: 12px;
    bottom: 8px;
    left: 12px;
    height: 60px;
  }

  .app-navigation__item {
    height: 50px;
    gap: 0;
  }

  .nav-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }

  .app-navigation__item span {
    font-size: 8.5px;
    transform: translateY(1px);
  }

  .page-scroll {
    padding-bottom: 80px;
  }

}

/* =========================================================
   REDUÇÃO DE MOVIMENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .screen,
  #greeting-word,
  .swipe-thumb,
  .settings-button,
  .app-navigation__item {
    transition-duration: 0.01ms;
  }

  #greeting-word.is-entering {
    animation: none;
  }

}

/* =========================================================
   AJUSTE FINAL — TEXTO DO MENU MAIS PARA BAIXO
========================================================= */

.app-navigation__item {
  gap: 0;
}

.app-navigation__item span {
  margin-top: 8px;
  transform: none;
}

/* Telemóveis mais estreitos */

@media (max-width: 374px) {
  .app-navigation__item span {
    margin-top: 3px;
    transform: none;
  }

}

/* Ecrãs mais baixos */

@media (max-height: 700px) {
  .app-navigation__item span {
    margin-top: 3px;
    transform: none;
  }

}

/* =========================================================
   DEFINIÇÕES DE ACESSIBILIDADE
========================================================= */

.home-header {
  overflow: visible;
}

.settings-panel {
  position: relative;
  z-index: 30;
  grid-column: 3;
  justify-self: end;
  width: 42px;
  height: 42px;
}

.settings-toolbar {
  position: absolute;
  top: 50%;
  right: 0;
  height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 4px 12px rgba(38, 63, 111, 0.13);
  transform: translateY(-50%);
  transition: background-color 180ms ease,
    box-shadow 180ms ease;
}

.settings-panel.is-open .settings-toolbar {
  background: #6078a5;
}

.settings-toolbar__option,
.settings-button {
  flex: 0 0 auto;
}

.settings-toolbar__option {
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.settings-toolbar__option--text .settings-text-icon {
  display: block;
  width: 24px;
  height: 15px;
  object-fit: contain;
}

.settings-toolbar__option--text {
  width: 51px;
  border-radius: 10px 0 0 10px;
}

.settings-toolbar__option--sound {
  width: 43px;
}

.settings-toolbar__option--sound img {
  width: 21px;
  height: 18px;
  object-fit: contain;
}

.settings-toolbar__divider {
  width: 1px;
  height: 27px;
  flex: 0 0 1px;
  background: rgba(255, 255, 255, 0.86);
}

.settings-button {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.settings-panel.is-open .settings-button {
  border-radius: 0 10px 10px 0;
}

.settings-toolbar__option:hover,
.settings-toolbar__option:focus-visible,
.settings-toolbar__option.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.settings-toolbar__option:focus-visible,
.settings-step-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -3px;
}

/* Painéis inferiores */

.settings-subpanel {
  position: absolute;
  top: 48px;
  right: -8px;
  z-index: 31;
  width: 156px;
  height: 39px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 27px;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #bec8d9;
  box-shadow: 0 5px 14px rgba(38, 63, 111, 0.12);
}

.settings-step-button {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #5872a2;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.settings-step-button span {
  transform: translateY(-1px);
}

.settings-step-button:active {
  transform: scale(0.92);
}

.settings-value {
  overflow: hidden;
  color: #5872a2;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Barras do volume */

.volume-bars {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.volume-bar {
  width: 5px;
  height: 18px;
  flex: 0 0 5px;
  background: #ffffff;
}

.volume-bar.is-current {
  background: #5872a2;
}

/* =========================================================
   TEXTO A 125% — AUMENTO DE 4 PT
========================================================= */

.phone.is-text-large .greeting {
  font-size: calc(clamp(28px, 9vw, 40px) + 4pt);
}

.phone.is-text-large .language-selector__current {
  font-size: calc(clamp(11.5px, 3.3vw, 13px) + 4pt);
}

.phone.is-text-large .language-option__text {
  font-size: calc(clamp(11px, 3.15vw, 12.5px) + 4pt);
}

.phone.is-text-large .intro__text {
  font-size: calc(16px + 4pt);
}

.phone.is-text-large .swipe-thumb {
  font-size: calc(15px + 4pt);
}

.phone.is-text-large .home-heading {
  max-width: none;
  font-size: calc(20px + 4pt);
}

.phone.is-text-large .home-heading__second-line {
  white-space: normal;
}

.phone.is-text-large .home-welcome {
  font-size: calc(18px + 4pt);
}

.phone.is-text-large .home-introduction {
  max-width: none;
  font-size: calc(11.5px + 4pt);
}

.phone.is-text-large .info-card h2 {
  font-size: calc(12.5px + 4pt);
}

.phone.is-text-large .info-card p,
.phone.is-text-large .stairs-list li {
  font-size: calc(10.5px + 4pt);
}

.phone.is-text-large .placeholder-page h1 {
  font-size: calc(26px + 4pt);
}

.phone.is-text-large .placeholder-page p {
  font-size: calc(12.5px + 4pt);
}

.phone.is-text-large .app-navigation {
  height: 74px;
}

.phone.is-text-large .app-navigation__item {
  height: 62px;
}

.phone.is-text-large .app-navigation__item span {
  margin-top: 5px;
  font-size: calc(10px + 4pt);
}

.phone.is-text-large .page-scroll {
  padding-bottom: calc(
      74px +
      36px +
      env(safe-area-inset-bottom)
    );
}

/* =========================================================
   DEFINIÇÕES — ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  .settings-panel {
    width: 37px;
    height: 37px;
  }

  .settings-toolbar {
    height: 37px;
    border-radius: 9px;
  }

  .settings-toolbar__option,
  .settings-button {
    height: 37px;
  }

  .settings-toolbar__option--text {
    width: 46px;
  }

  .settings-toolbar__option--sound {
    width: 39px;
  }

  .settings-toolbar__divider {
    height: 24px;
  }

  .settings-panel.is-open .settings-button {
    border-radius: 0 9px 9px 0;
  }

  .settings-subpanel {
    top: 43px;
    right: -6px;
    width: 146px;
  }

  .phone.is-text-large .home-heading {
    font-size: calc(17.5px + 4pt);
  }

  .phone.is-text-large .home-welcome {
    font-size: calc(16px + 4pt);
  }

  .phone.is-text-large .home-introduction {
    font-size: calc(10.5px + 4pt);
  }

  .phone.is-text-large .info-card h2 {
    font-size: calc(11.5px + 4pt);
  }

  .phone.is-text-large .info-card p,
  .phone.is-text-large .stairs-list li {
    font-size: calc(9.5px + 4pt);
  }

  .phone.is-text-large .app-navigation__item span {
    font-size: calc(8.7px + 4pt);
  }

}

/* =========================================================
   DEFINIÇÕES — ECRÃS MAIS BAIXOS
========================================================= */

@media (max-height: 700px) {
  .settings-panel {
    width: 37px;
    height: 37px;
  }

  .settings-toolbar {
    height: 37px;
  }

  .settings-toolbar__option,
  .settings-button {
    height: 37px;
  }

  .settings-toolbar__option--text {
    width: 46px;
    font-size: 18px;
  }

  .settings-toolbar__option--sound {
    width: 39px;
  }

  .settings-subpanel {
    top: 43px;
    width: 146px;
  }

  .phone.is-text-large .home-heading {
    font-size: calc(17px + 4pt);
  }

  .phone.is-text-large .home-welcome {
    font-size: calc(15.5px + 4pt);
  }

  .phone.is-text-large .home-introduction {
    font-size: calc(10px + 4pt);
  }

  .phone.is-text-large .info-card h2 {
    font-size: calc(11.5px + 4pt);
  }

  .phone.is-text-large .info-card p,
  .phone.is-text-large .stairs-list li {
    font-size: calc(9.5px + 4pt);
  }

  .phone.is-text-large .app-navigation__item span {
    font-size: calc(9px + 4pt);
  }

}

/* =========================================================
   REDUÇÃO DE MOVIMENTO — DEFINIÇÕES
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .settings-toolbar,
  .settings-step-button {
    transition-duration: 0.01ms;
  }

}

/* =========================================================
   DEFINIÇÕES — ALINHAMENTO VERTICAL DOS CONTROLos
========================================================= */

/* Texto “Padrão” e “125 %” */

#text-size-value {
  position: relative;
  top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Símbolos − e + do tamanho do texto */

#text-decrease-button,
#text-increase-button {
  display: grid;
  place-items: center;
  padding: 3px
    0
    0;
  line-height: 1;
}

/* Símbolos − e + do volume */

#sound-decrease-button,
#sound-increase-button {
  display: grid;
  place-items: center;
  padding: 3px
    0
    0;
  line-height: 1;
}

/* =========================================================
   LOGÓTIPO COM DEFINIÇÕES ABERTAS
========================================================= */

.home-page.settings-open .home-header__logo {
  opacity: 0.2;
}

/* =========================================================
   VOLUME — BARRAS PREENCHIDAS PROGRESSIVAMENTE
========================================================= */

/* Barras ainda não preenchidas */

#volume-bars .volume-bar {
  background-color: #fdfdfd;
  transition: background-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

/* Barras correspondentes ao volume atual */

#volume-bars .volume-bar.is-filled {
  background-color: var(--navy);
  opacity: 1;
}

/* Última barra do nível atual */

#volume-bars .volume-bar.is-current {
  background-color: var(--navy);
  transform: scaleY(1.03);
}

/* Sem som: todas as barras ficam cinzentas */

#volume-bars .volume-bar:not(.is-filled) {
  background-color: #fdfdfd;
  opacity: 0.65;
}

/* =========================================================
   PÁGINA TRADIÇÕES
========================================================= */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.traditions-page {
  background: var(--page-background);
}

.traditions-scroll {
  padding-right: var(--home-gutter);
  padding-left: var(--home-gutter);
}

.traditions-header {
  position: relative;
  min-height: 105px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  overflow: visible;
  padding-top: max(
      18px,
      calc(env(safe-area-inset-top) + 9px)
    );
}

.traditions-header > span {
  grid-column: 1;
}

.traditions-header__logo {
  grid-column: 2;
  justify-self: center;
  width: 126px;
  height: auto;
  opacity: 1;
  transition: opacity 220ms ease;
}

.traditions-page.settings-open .traditions-header__logo {
  opacity: 0.2;
}

.traditions-list {
  display: grid;
  gap: 46px;
  padding: 18px 0 26px;
}

.tradition-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(31, 53, 94, 0.09);
}

.tradition-card__image {
  width: 100%;
  height: 176px;
  object-fit: cover;
  object-position: center;
}

.tradition-card__body {
  min-height: 260px;
  padding: 46px 27px 27px;
  background: var(--navy);
}

.tradition-card__icon {
  position: absolute;
  top: -34px;
  left: 27px;
  z-index: 2;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--page-background);
  box-shadow: 0 2px 7px rgba(17, 39, 77, 0.12);
}

.tradition-card__icon img {
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.tradition-card:nth-child(2) .tradition-card__icon img {
  width: 37px;
  height: 30px;
}

.tradition-card:nth-child(3) .tradition-card__icon img {
  width: 34px;
  height: 34px;
}

.tradition-card__heading {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 13px;
}

.tradition-card__title {
  min-width: 0;
  margin: 0;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.2px;
}

.tradition-card__title--mixed {
  font-weight: 400;
}

.tradition-card__title--mixed strong {
  font-weight: 700;
}

.tradition-card__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.93);
  font-size: 12.2px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: 0.01px;
}

.tradition-video-button {
  min-width: 82px;
  min-height: 37px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px 8px;
  border-radius: 6px;
  background: var(--orange-card);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: transform 150ms ease,
    filter 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.tradition-video-button img {
  width: 15px;
  height: 10px;
  flex: 0 0 15px;
}

.tradition-video-button:hover {
  filter: brightness(1.05);
}

.tradition-video-button:active {
  transform: scale(0.96);
}

.tradition-video-button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* =========================================================
   DEFINIÇÕES PARTILHADAS ENTRE PÁGINAS
========================================================= */

.settings-panel .settings-value {
  position: relative;
  top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.settings-panel .settings-step-button {
  padding: 3px 0 0;
  line-height: 1;
}

.settings-panel .volume-bar {
  background-color: #fdfdfd;
  opacity: 0.65;
  transition: background-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.settings-panel .volume-bar.is-filled,
.settings-panel .volume-bar.is-current {
  background-color: var(--navy);
  opacity: 1;
}

.settings-panel .volume-bar.is-current {
  transform: scaleY(1.03);
}

/* =========================================================
   TRADIÇÕES — TEXTO A 125%
========================================================= */

.phone.is-text-large .tradition-card__title {
  font-size: calc(18px + 4pt);
}

.phone.is-text-large .tradition-card__text {
  font-size: calc(12.2px + 4pt);
}

.phone.is-text-large .tradition-video-button {
  min-width: 92px;
  min-height: 42px;
  font-size: calc(10.5px + 4pt);
}

/* =========================================================
   TRADIÇÕES — RESPONSIVIDADE
========================================================= */

@media (min-width: 375px) and (max-width: 430px) {
  .traditions-header {
    min-height: 108px;
  }

  .traditions-header__logo {
    width: 128px;
  }

}

@media (max-width: 374px) {
  .traditions-header {
    min-height: 94px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .traditions-header__logo {
    width: 110px;
  }

  .traditions-list {
    gap: 34px;
    padding-top: 12px;
  }

  .tradition-card__image {
    height: 148px;
  }

  .tradition-card__body {
    padding: 40px 19px 22px;
  }

  .tradition-card__icon {
    top: -30px;
    left: 19px;
    width: 60px;
    height: 60px;
  }

  .tradition-card__title {
    font-size: 16px;
  }

  .tradition-card__text {
    font-size: 11px;
  }

  .tradition-video-button {
    min-width: 74px;
    padding-right: 10px;
    padding-left: 10px;
  }

}

@media (max-height: 700px) {
  .traditions-header {
    min-height: 91px;
    padding-top: 13px;
  }

  .traditions-header__logo {
    width: 110px;
  }

  .traditions-list {
    gap: 32px;
    padding-top: 8px;
  }

  .tradition-card__image {
    height: 145px;
  }

  .tradition-card__body {
    padding-top: 40px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .traditions-header__logo,
  .tradition-video-button {
    transition-duration: 0.01ms;
  }

}

/* =========================================================
   TRADIÇÕES — BOTÕES DE VÍDEO MAIS ACIMA
========================================================= */

.tradition-card__body {
  position: relative;
}

.tradition-video-button {
  position: absolute;
  top: 14px;
  right: 27px;
  z-index: 4;
}

/* Evita que os títulos fiquem por baixo do botão */

.tradition-card__heading {
  padding-right: 100px;
}

/* Ajuste quando o texto está a 125% */

.phone.is-text-large .tradition-card__heading {
  padding-right: 120px;
}

/* Telemóveis mais estreitos */

@media (max-width: 374px) {
  .tradition-video-button {
    top: 12px;
    right: 18px;
  }

  .tradition-card__heading {
    padding-right: 92px;
  }

}

/* =========================================================
   PÁGINA SOBRE
========================================================= */

.about-page {
  background: var(--page-background);
  color: var(--black);
}

.about-scroll {
  padding: 0
    30px
    calc(
      var(--home-nav-height) +
      42px +
      env(safe-area-inset-bottom)
    );
}

/* =========================================================
   IMAGEM PRINCIPAL
========================================================= */

.about-hero {
  position: relative;
  height: 325px;
  margin-right: -30px;
  margin-left: -30px;
  overflow: hidden;
  border-radius: 0 0 48px 48px;
  background: #d8ccb0;
}

.about-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: opacity 220ms ease;
}

/* Definições sobre a imagem */

.about-settings-panel {
  position: absolute;
  top: max(
      45px,
      calc(env(safe-area-inset-top) + 20px)
    );
  right: 30px;
  z-index: 10;
  grid-column: auto;
  justify-self: auto;
}

/* Imagem com 20% de opacidade */

.about-page.settings-open .about-hero__image {
  opacity: 0.2;
}

/* =========================================================
   CONTEÚDO
========================================================= */

.about-content {
  padding-top: 25px;
}

.about-section {
  margin: 0 0 31px;
}

.about-title,
.about-section-title {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.about-title {
  margin-bottom: 13px;
  font-size: 23px;
}

.about-section-title {
  margin-bottom: 15px;
  font-size: 22px;
}

.about-description {
  margin: 0;
  color: #111111;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.15px;
}

.about-description strong {
  font-weight: 700;
}

/* =========================================================
   CONTACTOS
========================================================= */

.about-contacts {
  margin-top: 3px;
}

.about-phone-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 17px;
  margin-bottom: 17px;
}

.about-contact-item {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.about-contact-item--without-icon {
  padding-left: 3px;
}

.about-contact-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 2px;
  color: #bd6e4e;
}

.about-contact-link {
  color: #111111;
  text-decoration: none;
}

.about-phone-link {
  display: block;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
}

.about-phone-link strong {
  font-weight: 700;
}

.about-contact-note {
  margin: 3px 0 0;
  color: #111111;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.about-email-row {
  display: grid;
  align-items: center;
}

.about-email-link {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-message-button {
  min-height: 34px;
  padding: 8px 17px 7px;
  border: 0;
  border-radius: 999px;
  background: #81917e;
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: transform 150ms ease,
    opacity 150ms ease;
}

.about-message-button:active {
  transform: scale(0.96);
}

.about-message-button:focus-visible,
.about-contact-link:focus-visible,
.about-social-link:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* =========================================================
   REDES SOCIAIS
========================================================= */

.about-follow-title {
  display: grid;
  grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
  align-items: center;
  gap: 13px;
}

.about-follow-title > span {
  height: 1px;
  background: var(--navy);
}

.about-follow-title h2 {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

.about-social-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.about-social-link {
  justify-self: center;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  transition: transform 150ms ease,
    opacity 150ms ease;
}

.about-social-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-social-link:active {
  transform: scale(0.93);
}

/* =========================================================
   RODAPÉ
========================================================= */

.about-footer {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
}

.about-copyright {
  color: var(--navy);
  font-size: 14px;
  line-height: 1;
}

.about-author {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: var(--navy);
  font-size: 9.5px;
  font-weight: 400;
  line-height: 1.2;
  text-align: right;
}

.about-author > strong {
  font-weight: 700;
}

.about-author span strong {
  font-weight: 700;
}

/* =========================================================
   SOBRE — TEXTO A 125%
========================================================= */

.phone.is-text-large .about-title {
  font-size: calc(23px + 4pt);
}

.phone.is-text-large .about-section-title {
  font-size: calc(22px + 4pt);
}

.phone.is-text-large .about-description {
  font-size: calc(14px + 4pt);
}

.phone.is-text-large .about-phone-link {
  font-size: calc(13.5px + 4pt);
  white-space: normal;
}

.phone.is-text-large .about-contact-note {
  font-size: calc(10.5px + 4pt);
  white-space: normal;
}

.phone.is-text-large .about-email-link {
  font-size: calc(14px + 4pt);
  white-space: normal;
}

.phone.is-text-large .about-message-button {
  font-size: calc(11px + 4pt);
}

.phone.is-text-large .about-follow-title h2 {
  font-size: calc(13px + 4pt);
}

.phone.is-text-large .about-author {
  font-size: calc(9.5px + 4pt);
}

.phone.is-text-large .about-copyright {
  font-size: calc(14px + 4pt);
}

.phone.is-text-large .about-phone-grid,
.phone.is-text-large .about-email-row {
  grid-template-columns: 1fr;
}

.phone.is-text-large .about-contact-item--without-icon {
  padding-left: 28px;
}

/* =========================================================
   SOBRE — ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  .about-scroll {
    padding-right: 20px;
    padding-left: 20px;
  }

  .about-hero {
    height: 285px;
    margin-right: -20px;
    margin-left: -20px;
    border-radius: 0 0 38px 38px;
  }

  .about-settings-panel {
    right: 20px;
  }

  .about-title {
    font-size: 21px;
  }

  .about-section-title {
    font-size: 20px;
  }

  .about-description {
    font-size: 12.5px;
  }

  .about-phone-grid {
    grid-template-columns: 1fr;
  }

  .about-contact-item--without-icon {
    padding-left: 28px;
  }

  .about-email-row {
    grid-template-columns: 1fr;
  }

  .about-message-button {
    justify-self: start;
    margin-left: 28px;
  }

  .about-social-link {
    width: 36px;
    height: 36px;
  }

}

/* =========================================================
   SOBRE — AJUSTES FINAIS
========================================================= */

/* Faz a linha do email usar as mesmas duas colunas dos telefones */

.about-email-row {
  grid-template-columns: minmax(0, 1fr)
    minmax(0, 1fr);
  gap: 17px;
}

/* Alinha o botão com o texto “sábado e domingo” */

.about-message-button {
  justify-self: start;
  margin-left: 3px;
}

/* Aproxima as redes sociais do conteúdo anterior */

.about-social-section {
  margin-top: 26px;
}

.about-social-links {
  margin-top: 17px;
}

/* Faz a informação do autor aparecer mais acima */

.about-footer {
  min-height: 52px;
  margin-top: 18px;
  align-items: center;
}

.about-copyright {
  align-self: center;
  padding-bottom: 0;
}

.about-author {
  align-self: center;
}

/* Reduz ligeiramente o espaço final antes do menu */

.about-scroll {
  padding-bottom: calc(
      var(--home-nav-height) +
      24px +
      env(safe-area-inset-bottom)
    );
}

/* =========================================================
   SOBRE — MODO DE TEXTO A 125%
========================================================= */

.phone.is-text-large .about-email-row {
  grid-template-columns: 1fr;
}

.phone.is-text-large .about-message-button {
  margin-left: 28px;
}

/* =========================================================
   SOBRE — ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  .about-email-row {
    grid-template-columns: 1fr;
  }

  .about-message-button {
    margin-left: 28px;
  }

  .about-social-section {
    margin-top: 23px;
  }

  .about-social-links {
    margin-top: 15px;
  }

  .about-footer {
    min-height: 48px;
    margin-top: 15px;
  }

}

/* =========================================================
   PÁGINA CONTACTAR
========================================================= */

.contact-page {
  background: var(--page-background);
  color: var(--navy);
}

.contact-scroll {
  padding-bottom: calc(
      var(--home-nav-height) +
      45px +
      env(safe-area-inset-bottom)
    );
  background: var(--page-background);
}

/* =========================================================
   IMAGEM DO TOPO
========================================================= */

.contact-hero {
  position: relative;
  width: 100%;
  height: 255px;
  overflow: hidden;
  background: #d7d2c7;
}

.contact-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: opacity 220ms ease;
}

.contact-page.settings-open .contact-hero__image {
  opacity: 0.2;
}

/* Definições */

.contact-settings-panel {
  position: absolute;
  top: max(
      43px,
      calc(env(safe-area-inset-top) + 18px)
    );
  right: 34px;
  z-index: 10;
  grid-column: auto;
  justify-self: auto;
}

/* =========================================================
   FOLHA DO FORMULÁRIO
========================================================= */

.contact-sheet {
  position: relative;
  z-index: 2;
  min-height: 700px;
  margin-top: -38px;
  padding: 31px
    38px
    34px;
  border-radius: 48px 48px 0 0;
  background: var(--page-background);
}

.contact-top-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 66px;
  margin-bottom: 8px;
}

/* =========================================================
   BOTÃO VOLTAR
========================================================= */

.contact-back-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c1cad7;
  color: var(--navy);
  cursor: pointer;
  transition: transform 150ms ease,
    background-color 150ms ease;
}

.contact-back-button svg {
  width: 23px;
  height: 23px;
}

.contact-back-button:active {
  transform: scale(0.94);
}

.contact-back-button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* =========================================================
   CARREGAR FICHEIRO
========================================================= */

.contact-upload-area {
  width: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-upload-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.15;
  cursor: pointer;
}

.contact-upload-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--orange-card);
  border-radius: 50%;
  color: var(--beige-card);
  transition: transform 150ms ease,
    background-color 150ms ease;
}

.contact-upload-icon svg {
  width: 26px;
  height: 26px;
}

.contact-upload-button:active .contact-upload-icon {
  transform: scale(0.95);
}

.contact-upload-button:focus-within .contact-upload-icon {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.contact-file-name {
  width: 120px;
  margin-top: 5px;
  overflow: hidden;
  color: #626262;
  font-size: 8.5px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-file-error {
  width: 130px;
  margin-top: 3px;
  color: #ad4e35;
  font-size: 8.5px;
  line-height: 1.2;
}

/* =========================================================
   CABEÇALHO
========================================================= */

.contact-heading {
  margin-top: 1px;
}

.contact-title {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.8px;
}

.contact-introduction {
  margin: 0;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: -0.15px;
}

/* =========================================================
   FORMULÁRIO
========================================================= */

.contact-form {
  margin-top: 29px;
}

.contact-field {
  min-width: 0;
  margin: 0;
  padding: 9px 17px 10px;
  border: 1.4px solid var(--navy);
  border-radius: 14px;
  transition: border-color 160ms ease,
    box-shadow 160ms ease;
}

.contact-field + .contact-error {
  display: block;
  min-height: 17px;
  padding: 3px 4px 0;
}

.contact-field legend {
  margin-left: 8px;
  padding: 0 5px;
  background: var(--page-background);
  color: var(--navy);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

.contact-required {
  color: #bd6e4e;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 4px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #171717;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.35;
}

.contact-field input {
  height: 39px;
}

.contact-field textarea {
  height: 125px;
  resize: none;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #666666;
  opacity: 1;
}

.contact-field:focus-within {
  box-shadow: 0 0 0 2px rgba(38, 63, 111, 0.12);
}

.contact-field.has-error {
  border-color: #bd6e4e;
  box-shadow: 0 0 0 2px rgba(189, 110, 78, 0.1);
}

.contact-error {
  color: #ad4e35;
  font-size: 9.5px;
  line-height: 1.2;
}

/* =========================================================
   BOTÃO ENVIAR
========================================================= */

.contact-submit-button {
  width: 100%;
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 10px;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  background: #bd6e4e;
  color: var(--white);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: transform 150ms ease,
    opacity 150ms ease;
}

.contact-submit-button svg {
  width: 21px;
  height: 21px;
}

.contact-submit-button:active {
  transform: scale(0.98);
}

.contact-submit-button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* =========================================================
   CONFIRMAÇÃO
========================================================= */

.confirmation-page {
  overflow-y: auto;
  background: var(--navy);
  color: var(--white);
  scrollbar-width: none;
}

.confirmation-page::-webkit-scrollbar {
  display: none;
}

.confirmation-content {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: max(71px, calc(env(safe-area-inset-top) + 48px))
    38px
    max(38px, calc(env(safe-area-inset-bottom) + 22px));
}

.confirmation-logo {
  width: 205px;
  height: auto;
  margin: 0 auto;
}

.confirmation-main {
  margin-top: 127px;
}

.confirmation-message {
  max-width: 330px;
  margin: 0 auto;
  color: var(--white);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.confirmation-message strong {
  color: #c87855;
  font-weight: 700;
}

.confirmation-check {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 27px auto 0;
  border-radius: 50%;
  background: var(--beige-card);
  color: var(--navy);
}

.confirmation-check svg {
  width: 50px;
  height: 50px;
}

.confirmation-information {
  max-width: 345px;
  margin: auto auto 0;
  text-align: center;
}

.confirmation-information p {
  margin: 0;
  color: var(--white);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.confirmation-information strong {
  display: block;
  margin-top: 22px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.confirmation-home-button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 70px;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  background: #bd6e4e;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: transform 150ms ease;
}

.confirmation-home-button svg {
  width: 19px;
  height: 19px;
}

.confirmation-home-button:active {
  transform: scale(0.98);
}

.confirmation-home-button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* =========================================================
   CONTACTAR — TEXTO A 125%
========================================================= */

.phone.is-text-large .contact-title {
  font-size: calc(29px + 4pt);
}

.phone.is-text-large .contact-introduction {
  font-size: calc(13.5px + 4pt);
}

.phone.is-text-large .contact-upload-button {
  font-size: calc(10.5px + 4pt);
}

.phone.is-text-large .contact-field legend {
  font-size: calc(13px + 4pt);
}

.phone.is-text-large .contact-field input,
.phone.is-text-large .contact-field textarea {
  font-size: calc(12.5px + 4pt);
}

.phone.is-text-large .contact-error,
.phone.is-text-large .contact-file-error,
.phone.is-text-large .contact-file-name {
  font-size: calc(9px + 4pt);
}

.phone.is-text-large .contact-submit-button {
  font-size: calc(17px + 4pt);
}

.phone.is-text-large .confirmation-message {
  font-size: calc(21px + 4pt);
}

.phone.is-text-large .confirmation-information p,
.phone.is-text-large .confirmation-information strong {
  font-size: calc(15px + 4pt);
}

.phone.is-text-large .confirmation-home-button {
  font-size: calc(16px + 4pt);
}

/* =========================================================
   CONTACTAR — ECRÃS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  .contact-hero {
    height: 225px;
  }

  .contact-settings-panel {
    right: 20px;
  }

  .contact-sheet {
    margin-top: -32px;
    padding: 27px
      24px
      30px;
    border-radius: 38px 38px 0 0;
  }

  .contact-title {
    font-size: 26px;
  }

  .contact-introduction {
    font-size: 12px;
  }

  .contact-form {
    margin-top: 24px;
  }

  .confirmation-content {
    padding-right: 27px;
    padding-left: 27px;
  }

  .confirmation-logo {
    width: 178px;
  }

  .confirmation-main {
    margin-top: 105px;
  }

  .confirmation-message {
    font-size: 21px;
  }

  .confirmation-home-button {
    margin-top: 55px;
    font-size: 14px;
  }

}

/* =========================================================
   CONTACTAR — ECRÃS BAIXOS
========================================================= */

@media (max-height: 700px) {
  .contact-hero {
    height: 210px;
  }

  .contact-sheet {
    margin-top: -30px;
  }

  .confirmation-content {
    padding-top: 35px;
  }

  .confirmation-logo {
    width: 165px;
  }

  .confirmation-main {
    margin-top: 65px;
  }

  .confirmation-information {
    margin-top: 80px;
  }

  .confirmation-home-button {
    margin-top: 42px;
  }

}

/* =========================================================
   PÁGINA ESPAÇOS
========================================================= */

.spaces-page {
  background: var(--page-background);
  color: var(--navy);
}

.spaces-scroll {
  padding: 0
    14px
    calc(
      var(--home-nav-height) +
      35px +
      env(safe-area-inset-bottom)
    );
}

/* =========================================================
   CABEÇALHO
========================================================= */

.spaces-header {
  justify-content: center;
}

/* =========================================================
   PESQUISA
========================================================= */

.spaces-search-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 39px;
  align-items: center;
  gap: 7px;
}

.spaces-search-box {
  position: relative;
  min-height: 35px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #c1cad7;
  transition: border-color 160ms ease,
    box-shadow 160ms ease;
}

.spaces-search-box:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(38, 63, 111, 0.1);
}

.spaces-search-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-left: 10px;
  color: var(--navy);
}

#spaces-search-input {
  width: 100%;
  min-width: 0;
  height: 35px;
  padding: 2px 32px 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1;
}

#spaces-search-input::placeholder {
  color: rgba(38, 63, 111, 0.72);
  opacity: 1;
}

#spaces-search-input::-webkit-search-cancel-button {
  display: none;
}

.spaces-search-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.spaces-voice-button {
  width: 39px;
  height: 35px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--blue-card);
  color: var(--white);
  cursor: pointer;
  transition: transform 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.spaces-voice-button svg {
  width: 17px;
  height: 17px;
}

.spaces-voice-button:active {
  transform: scale(0.95);
}

.spaces-voice-button.is-listening {
  background: var(--orange-card);
  box-shadow: 0 0 0 4px rgba(199, 131, 99, 0.2);
  animation: spaces-microphone-pulse
    1.1s
    ease-in-out
    infinite;
}

.spaces-search-status {
  margin: -4px 2px 8px;
  color: var(--navy);
  font-size: 9.5px;
  line-height: 1.3;
}

/* =========================================================
   CARTÕES
========================================================= */

.spaces-list {
  display: grid;
}

.space-card {
  position: relative;
  height: 124px;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1.4px solid var(--navy);
  border-radius: 7px;
  background: #d8d8d8;
  color: var(--navy);
  text-align: left;
}

button.space-card {
  font: inherit;
}

.space-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 240ms ease,
    filter 240ms ease;
}

.space-card__label {
  position: absolute;
  z-index: 2;
  color: var(--navy);
}

.space-card--interactive {
  cursor: pointer;
}

.space-card--interactive::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      transparent 60%,
      rgba(12, 26, 49, 0.12) 100%
    );
  pointer-events: none;
}

.space-card--interactive:active img {
  transform: scale(1.025);
}

.space-card--interactive:focus-visible {
  outline: 3px solid var(--orange-card);
  outline-offset: 2px;
}

/* =========================================================
   SEM RESULTADOS
========================================================= */

.spaces-no-results {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: rgba(38, 63, 111, 0.65);
  text-align: center;
}

.spaces-no-results svg {
  width: 35px;
  height: 35px;
}

.spaces-no-results p {
  max-width: 220px;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

/* =========================================================
   PAÇO DAS ESCOLAS — PÁGINA PROVISÓRIA
========================================================= */

.space-detail-placeholder {
  background: var(--page-background);
  color: var(--navy);
}

.space-detail-placeholder__scroll {
  padding: max(
      28px,
      calc(env(safe-area-inset-top) + 18px)
    )
    24px
    calc(
      var(--home-nav-height) +
      35px +
      env(safe-area-inset-bottom)
    );
}

.space-detail-back {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 23px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c1cad7;
  color: var(--navy);
  cursor: pointer;
}

.space-detail-back svg {
  width: 23px;
  height: 23px;
}

.space-detail-placeholder__image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
}

.space-detail-placeholder h1 {
  margin: 24px 0 8px;
  font-size: 27px;
  line-height: 1.1;
}

.space-detail-placeholder p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

/* =========================================================
   TAMANHO DO TEXTO A 125%
========================================================= */

.phone.is-text-large #spaces-search-input {
  font-size: calc(10.5px + 4pt);
}

.phone.is-text-large .spaces-search-status {
  font-size: calc(9.5px + 4pt);
}

.phone.is-text-large .space-card__label {
  white-space: normal;
}

.phone.is-text-large .spaces-no-results p {
  font-size: calc(12px + 4pt);
}

.phone.is-text-large .space-detail-placeholder h1 {
  font-size: calc(27px + 4pt);
}

.phone.is-text-large .space-detail-placeholder p {
  font-size: calc(13px + 4pt);
}

/* =========================================================
   ANIMAÇÃO DO MICROFONE
========================================================= */

@keyframes spaces-microphone-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }

}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  .spaces-scroll {
    padding-right: 11px;
    padding-left: 11px;
  }

  .spaces-header__logo {
    width: 82px;
  }

  .spaces-search-area {
    grid-template-columns: minmax(0, 1fr)
      36px;
  }

  .spaces-voice-button {
    width: 36px;
  }

  .space-card {
    height: 108px;
  }

  .space-card__label {
    font-size: 7.5px;
  }

}

/* =========================================================
   ESPAÇOS — AJUSTES DE POSIÇÃO E MARGENS
========================================================= */

/* =========================================================
   ESCONDER VISUALMENTE O TÍTULO “ESPAÇOS”
   Mantém o título disponível para leitores de ecrã
========================================================= */

.spaces-page .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* =========================================================
   CABEÇALHO IGUAL ÀS RESTANTES PÁGINAS
========================================================= */

.spaces-header {
  position: relative;
  min-height: 105px;
  display: grid;
  grid-template-columns: 48px
    minmax(0, 1fr)
    48px;
  align-items: center;
  padding-top: max(
      18px,
      calc(env(safe-area-inset-top) + 9px)
    );
}

/* Logótipo com o mesmo tamanho e posição */

.spaces-header__logo {
  grid-column: 2;
  justify-self: center;
  width: 126px;
  height: auto;
  opacity: 1;
  transition: opacity 220ms ease;
}

/* Definições na terceira coluna do cabeçalho */

.spaces-settings-panel {
  position: relative;
  top: auto;
  right: auto;
  grid-column: 3;
  justify-self: end;
  z-index: 20;
}

/* Botão igual ao das outras páginas */

.spaces-settings-panel .settings-button {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.spaces-settings-panel .settings-button img {
  width: 20px;
  height: 20px;
}

/* Logótipo com 20% quando as definições estão abertas */

.spaces-page.settings-open .spaces-header__logo {
  opacity: 0.2;
}

/* =========================================================
   MARGENS LATERAIS DA PÁGINA
========================================================= */

.spaces-scroll {
  padding-right: 25px;
  padding-left: 25px;
}

/* =========================================================
   BARRA DE PESQUISA
========================================================= */

.spaces-search-box {
  width: 100%;
}

/* =========================================================
   CARTÕES DOS EDIFÍCIOS
========================================================= */

.space-card {
  width: 100%;
  max-width: 100%;
}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  .spaces-scroll {
    padding-right: 20px;
    padding-left: 20px;
  }

  .spaces-header {
    grid-template-columns: 44px
      minmax(0, 1fr)
      44px;
  }

  .spaces-header__logo {
    width: 112px;
  }

  .spaces-settings-panel .settings-button {
    width: 40px;
    height: 40px;
  }

}

/* =========================================================
   ESPAÇOS — ELEMENTOS MAIS ESTREITOS E MAIS AFASTADOS
========================================================= */

/* Barra de pesquisa mais estreita e centrada */

.spaces-search-area {
  width: calc(100% - 22px);
  margin: 8px
    auto
    20px;
}

/* Lista de cartões mais estreita e centrada */

.spaces-list {
  width: calc(100% - 22px);
  margin-right: auto;
  margin-left: auto;
}

/* Mais espaço entre os cartões */

.space-card {
  margin: 0;
}

/* Mensagem sem resultados alinhada com os cartões */

.spaces-no-results {
  width: calc(100% - 22px);
  margin-right: auto;
  margin-left: auto;
}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  .spaces-search-area,
  .spaces-list,
  .spaces-no-results {
    width: calc(100% - 14px);
  }

  .spaces-search-area {
    margin-bottom: 17px;
  }

  .spaces-list {
    gap: 14px;
  }

}

/* =========================================================
   ESPAÇOS — CONTEÚDO MAIS ABAIXO E NOMES MAIORES
========================================================= */

/* Desce a barra de pesquisa e, consequentemente, os cartões */

.spaces-search-area {
  margin-top: 24px;
  margin-bottom: 22px;
}

/* Mantém mais espaço entre os cartões */

.spaces-list {
  gap: 18px;
}

/* Retângulos brancos maiores */

.space-card__label {
  bottom: 7px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 5px
    10px
    4px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  background: rgba(247, 245, 240, 0.97);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

/* Texto aumentado para 125% */

.phone.is-text-large .space-card__label {
  padding: 6px
    11px
    5px;
  font-size: calc(10px + 4pt);
  line-height: 1.15;
}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  .spaces-search-area {
    margin-top: 20px;
    margin-bottom: 19px;
  }

  .spaces-list {
    gap: 16px;
  }

  .space-card__label {
    bottom: 6px;
    left: 7px;
    padding: 4px
      8px
      3px;
    font-size: 9px;
  }

  .phone.is-text-large .space-card__label {
    font-size: calc(9px + 4pt);
  }

}

/* =========================================================
   ESPAÇOS — INDICAÇÃO DE ESPAÇOS INTERNOS
========================================================= */

.space-card__count {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 6px 12px 5px;
  border-radius: 4px;
  background: var(--navy);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.phone.is-text-large .space-card__count {
  font-size: calc(9px + 4pt);
}

@media (max-width: 374px) {
  .space-card__count {
    top: 7px;
    right: 7px;
    min-height: 22px;
    padding: 5px 10px 4px;
    font-size: 8px;
  }

  .phone.is-text-large .space-card__count {
    font-size: calc(8px + 4pt);
  }
}


/* =========================================================
   PAÇO DAS ESCOLAS
========================================================= */

.paco-page {
  background: var(--page-background);
  color: var(--navy);
}

.paco-scroll {
  padding: 0
    0
    calc(
      var(--home-nav-height) +
      38px +
      env(safe-area-inset-bottom)
    );
}

/* =========================================================
   GALERIA
========================================================= */

.paco-gallery {
  position: relative;
  width: 100%;
  height: 356px;
  overflow: hidden;
  background: #d5d5d5;
}

.paco-gallery__track {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  transition: opacity 220ms ease;
}

.paco-gallery__track::-webkit-scrollbar {
  display: none;
}

.paco-gallery__track.is-dragging {
  user-select: none;
}

.paco-gallery__slide {
  width: calc(100% - 23px);
  height: 100%;
  flex: 0 0 calc(100% - 23px);
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #d8d8d8;
}

.paco-gallery__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.paco-gallery__slide:first-child img {
  object-position: center;
}

.paco-gallery__slide:nth-child(2) img {
  object-position: center 45%;
}

/* Opacidade quando as definições estão abertas */

.paco-page.settings-open .paco-gallery__track {
  opacity: 0.2;
}

/* =========================================================
   VOLTAR E DEFINIÇÕES
========================================================= */

.paco-gallery__back {
  position: absolute;
  top: max(
      91px,
      calc(env(safe-area-inset-top) + 68px)
    );
  left: 33px;
  z-index: 15;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
}

.paco-gallery__back svg {
  width: 25px;
  height: 25px;
}

.paco-settings-panel {
  position: absolute;
  top: max(
      91px,
      calc(env(safe-area-inset-top) + 68px)
    );
  right: 33px;
  z-index: 20;
  grid-column: auto;
  justify-self: auto;
}

.paco-settings-panel .settings-button {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.paco-settings-panel .settings-button img {
  width: 22px;
  height: 22px;
}

/* =========================================================
   INDICAÇÃO DE DESLIZE
========================================================= */

.paco-gallery-hint {
  gap: 8px;
  color: #777777;
  font-size: 18px;
  letter-spacing: -3px;
}

.paco-gallery-hint span {
  opacity: 0.55;
}

.paco-gallery-hint svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  letter-spacing: normal;
}

/* =========================================================
   CONTEÚDO
========================================================= */

.paco-content {
  padding: 9px
    34px
    20px;
}

.paco-heading {
  margin-bottom: 20px;
}

.paco-title {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.45px;
}

.paco-area {
  margin: 5px 0 0;
  color: #bd6e4e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
}

/* =========================================================
   BOTÕES
========================================================= */

.paco-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 29px;
}

.paco-action-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px
    14px
    10px;
  border: 0;
  border-radius: 7px;
  color: var(--white);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 150ms ease,
    opacity 150ms ease;
}

.paco-action-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.paco-action-button--directions {
  background: #bd6e4e;
}


.paco-action-button:active {
  transform: scale(0.97);
}

.paco-action-button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* =========================================================
   PAÇO — TÍTULO DOS ESPAÇOS RELACIONADOS
========================================================= */

.paco-related-spaces-title {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
}

.phone.is-text-large .paco-related-spaces-title {
  font-size: calc(10px + 4pt);
}

@media (max-width: 374px) {
  .paco-related-spaces-title {
    margin-bottom: 7px;
    font-size: 9px;
  }

  .phone.is-text-large .paco-related-spaces-title {
    font-size: calc(9px + 4pt);
  }
}


/* =========================================================
   PAÇO — SLIDER DOS ESPAÇOS
   AJUSTE DE MARGENS
========================================================= */

.paco-buildings-slider {
  position: relative;

  width: 100%;

  margin: 0;

  overflow: hidden;
}


/* TRACK */

.paco-buildings-slider__track {
  display: flex;
  align-items: center;

  gap: 15px;

  width: 100%;

  padding:
    0
    0
    4px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x proximity;
  scroll-behavior: smooth;

  overscroll-behavior-x: contain;

  scrollbar-width: none;

  cursor: grab;

  -webkit-overflow-scrolling: touch;

  touch-action: pan-x;
}

.paco-buildings-slider__track::-webkit-scrollbar {
  display: none;
}


/* =========================================================
   BOTÕES DO SLIDER
========================================================= */

.paco-building-chip {
  flex: 0 0 auto;

  min-height: 32px;

  padding:
    8px
    14px
    7px;

  border: 0;
  border-radius: 5px;

  background: #81917e;

  color: #ffffff;

  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;

  white-space: nowrap;

  scroll-snap-align: start;

  cursor: pointer;

  transition:
    transform 150ms ease,
    opacity 150ms ease;
}


/* Larguras aproximadas à referência */

#paco-building-library {
  min-width: 132px;
}

#paco-building-chapel {
  min-width: 151px;
}

#paco-building-gerais {
  min-width: 60px;
}

#paco-building-tower {
  min-width: 60px;
}

#paco-building-via-latina {
  min-width: 83px;
}

#paco-building-capelos {
  min-width: 124px;
}

#paco-building-porta-ferrea {
  min-width: 103px;
}


/* Botões ainda sem página implementada */

.paco-building-chip[aria-disabled="true"] {
  /*
    Mantêm o mesmo aspeto porque representam
    os restantes espaços do slider.
  */

  cursor: default;
}


/* Capela de São Miguel */

.paco-building-chip--active {
  cursor: pointer;
}

.paco-building-chip--active:hover {
  opacity: 0.92;
}

.paco-building-chip--active:active {
  transform: scale(0.97);
}

.paco-building-chip:focus-visible {
  outline: 2px solid #203b69;
  outline-offset: 3px;
}


/* =========================================================
   INDICAÇÃO DE DESLIZE
========================================================= */

.paco-buildings-slider-hint {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;

  margin:
    14px
    0
    24px;
}

.paco-buildings-slider-hint img {
  display: block;

  width: 145px;
  height: auto;

  opacity: 0.68;
}


/* =========================================================
   AJUSTE DA INFORMAÇÃO QUE VEM A SEGUIR
========================================================= */

.paco-buildings-slider-hint
+ .paco-information-grid {
  margin-top: 0;
}


/* =========================================================
   TEXTO A 125%
========================================================= */

.phone.is-text-large
.paco-building-chip {
  min-height: 39px;

  padding:
    9px
    15px;

  font-size: 15px;
}


/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */


  @media (max-width: 374px) {

    .paco-buildings-slider {
      width: 100%;
      margin: 0;
    }

    .paco-buildings-slider__track {
      gap: 12px;

      padding-right: 0;
      padding-left: 0;
    }

  }

  .paco-building-chip {
    min-height: 30px;

    padding:
      7px
      12px;

    font-size: 11px;
  }

  .paco-buildings-slider-hint {
    margin-top: 12px;
    margin-bottom: 22px;
  }

  .paco-buildings-slider-hint img {
    width: 132px;
  }


/* =========================================================
   LOCALIZAÇÃO E HORÁRIO
========================================================= */

.paco-information-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr)
    minmax(0, 0.8fr);
  gap: 24px;
  margin-bottom: 34px;
}

.paco-information-block h2,
.paco-description-section h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.35px;
}

.paco-address,
.paco-schedule {
  margin: 0;
  color: #111111;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
}

.paco-address {
  display: flex;
  flex-direction: column;
}

.paco-address strong,
.paco-schedule strong {
  font-weight: 700;
}

.paco-schedule {
  display: flex;
  flex-direction: column;
}

#paco-schedule-hours {
  white-space: nowrap;
}

#paco-schedule-days {
  margin-top: 1px;
  font-size: 10px;
}

/* =========================================================
   DESCRIÇÃO
========================================================= */

.paco-description-section {
  padding-bottom: 10px;
}

.paco-description {
  color: #111111;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.43;
}

.paco-description p:last-child {
  margin-bottom: 0;
}

.paco-description strong {
  font-weight: 700;
}

.paco-description-toggle {
  border: 0;
  border-radius: 999px;
  background: #81917e;
  color: var(--white);
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.paco-description-toggle:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* =========================================================
   TEXTO A 125%
========================================================= */

.phone.is-text-large .paco-title {
  font-size: calc(24px + 4pt);
}

.phone.is-text-large .paco-area {
  font-size: calc(13px + 4pt);
}

.phone.is-text-large .paco-action-button {
  font-size: calc(12px + 4pt);
  white-space: normal;
}

.phone.is-text-large .paco-information-block h2,
.phone.is-text-large .paco-description-section h2 {
  font-size: calc(21px + 4pt);
}

.phone.is-text-large .paco-address,
.phone.is-text-large .paco-schedule,
.phone.is-text-large .paco-description {
  font-size: calc(13px + 4pt);
}

.phone.is-text-large #paco-schedule-hours {
  white-space: normal;
}

.phone.is-text-large #paco-schedule-days,
.phone.is-text-large .paco-description-toggle {
  font-size: calc(10px + 4pt);
}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  .paco-gallery {
    height: 318px;
  }

  .paco-gallery__back {
    left: 21px;
    width: 44px;
    height: 44px;
  }

  .paco-settings-panel {
    right: 21px;
  }

  .paco-settings-panel .settings-button {
    width: 44px;
    height: 44px;
  }

  .paco-content {
    padding-right: 25px;
    padding-left: 25px;
  }

  .paco-title {
    font-size: 22px;
  }

  .paco-actions {
    gap: 10px;
  }

  .paco-action-button {
    padding-right: 11px;
    padding-left: 11px;
    font-size: 11px;
  }

  .paco-information-grid {
    grid-template-columns: minmax(0, 1.25fr)
      minmax(0, 0.75fr);
    gap: 16px;
  }

  .paco-information-block h2,
  .paco-description-section h2 {
    font-size: 19px;
  }

  .paco-description {
    font-size: 12px;
  }

}

/* =========================================================
   PAÇO DAS ESCOLAS — CORREÇÕES
========================================================= */

/* =========================================================
   ESCONDER VISUALMENTE “IMAGEM 1 DE 2”
   Continua disponível para leitores de ecrã
========================================================= */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* =========================================================
   CARROSSEL — DESLIZE HORIZONTAL
========================================================= */

.paco-gallery__track {
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  -webkit-user-select: none;
}

.paco-gallery__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.paco-gallery__track.is-dragging img {
  pointer-events: none;
}

/* =========================================================
   BOTÃO VER MAIS IMEDIATAMENTE DEPOIS DO TEXTO
========================================================= */

.paco-description {
  display: block;
}

.paco-description p {
  margin: 0 0 11px;
}

/* Estado fechado */

.paco-description:not(.is-expanded)
#paco-description-summary {
  display: inline;
  margin: 0;
}

/* Estado aberto */

.paco-description.is-expanded
#paco-description-summary {
  display: block;
  margin: 0 0 11px;
}

/*
  display: contents permite que o botão “Ver menos”
  fique imediatamente após o último parágrafo.
*/

.paco-description.is-expanded
.paco-description-extra {
  display: contents;
}

.paco-description.is-expanded
.paco-description-extra p {
  display: block;
  margin: 0 0 11px;
}

.paco-description.is-expanded
.paco-description-extra p:last-child {
  display: inline;
  margin: 0;
}

/* Garante que o atributo hidden funciona */

.paco-description-extra[hidden] {
  display: none !important;
}

/* Botão imediatamente depois do texto */

.paco-description-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: baseline;
  margin: 0
    0
    0
    7px;
  padding: 7px
    14px
    6px;
  white-space: nowrap;
}

/* Quando está aberto, mantém-se junto ao último parágrafo */

.paco-description.is-expanded
.paco-description-toggle {
  margin-left: 7px;
}

/* =========================================================
   TEXTO A 125%
========================================================= */

.phone.is-text-large
.paco-description-toggle {
  padding: 8px
    15px
    7px;
}

/* =========================================================
   PAÇO DAS ESCOLAS — ÍCONES ORIGINAIS
========================================================= */

/* Ícone horizontal de indicação do carrossel */

.paco-gallery-hint {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.paco-gallery-hint img {
  display: block;
  width: 133px;
  height: 8px;
  object-fit: contain;
}

/* Remove as dimensões aplicadas anteriormente aos SVG */

.paco-action-button > svg {
  display: none;
}

/* Ícones dos dois botões */

.paco-action-button__icon {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.paco-action-button__icon--location {
  width: 12px;
  height: 15px;
}

.paco-action-button__icon--eye {
  width: 17px;
  height: 11px;
}

/* Mantém o alinhamento correto */

.paco-action-button--directions {
  gap: 9px;
}


/* =========================================================
   CAPELA DE SÃO MIGUEL
========================================================= */

.chapel-page {
  overflow: hidden;
  background: #7d8e78;
  color: #f7f5f0;
}

.chapel-scroll {
  padding: 0
    0
    calc(
      var(--home-nav-height) +
      36px +
      env(safe-area-inset-bottom)
    );
  background: #7d8e78;
}

/* =========================================================
   VÍDEO
========================================================= */

.chapel-media {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #5e675b;
}

.chapel-video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
  transition: opacity 220ms ease,
    filter 220ms ease;
}

.chapel-page.settings-open .chapel-video {
  opacity: 0.2;
}

/* =========================================================
   BOTÃO PLAY
========================================================= */

.chapel-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(247, 245, 240, 0.72);
  border-radius: 50%;
  background: rgba(68, 52, 46, 0.3);
  color: #f7f5f0;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.chapel-video-play svg {
  width: 46px;
  height: 46px;
}

.chapel-video-play:active {
  transform: translate(-50%, -50%)
    scale(0.94);
}

.chapel-video-play.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.chapel-page.settings-open .chapel-video-play {
  opacity: 0.2;
}

/* =========================================================
   BOTÃO SUPERIOR DE VOLTAR
========================================================= */

.chapel-media__back {
  position: absolute;
  top: max(
      91px,
      calc(env(safe-area-inset-top) + 68px)
    );
  left: 33px;
  z-index: 15;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--navy);
  color: #f7f5f0;
  cursor: pointer;
}

.chapel-media__back svg {
  width: 25px;
  height: 25px;
}

/* =========================================================
   DEFINIÇÕES
========================================================= */

.chapel-settings-panel {
  position: absolute;
  top: max(
      91px,
      calc(env(safe-area-inset-top) + 68px)
    );
  right: 33px;
  z-index: 20;
  grid-column: auto;
  justify-self: auto;
}

.chapel-settings-panel .settings-button {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.chapel-settings-panel .settings-button img {
  width: 22px;
  height: 22px;
}

/* =========================================================
   CONTEÚDO
========================================================= */

.chapel-content {
  padding: 43px
    34px
    24px;
  background: #7d8e78;
}

.chapel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr)
    auto;
  align-items: start;
  gap: 14px;
  margin-bottom: 18px;
}

.chapel-title {
  margin: 0;
  color: #f7f5f0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.45px;
}

.chapel-parent-name {
  margin: 5px 0 0;
  color: #f7f5f0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
}

/* =========================================================
   VOLTAR AOS ESPAÇOS
========================================================= */

.chapel-return-button {
  min-width: 82px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: #f7f5f0;
  color: #6e7f68;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.chapel-return-button svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   BOTÕES
========================================================= */

.chapel-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px;
}

.chapel-action-button {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px
    14px
    10px;
  border: 0;
  border-radius: 7px;
  background: #f7f5f0;
  color: #6e7f68;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 150ms ease,
    opacity 150ms ease;
}

.chapel-action-button img {
  display: block;
  width: 14px;
  height: 16px;
  flex: 0 0 auto;
  object-fit: contain;
}

.chapel-action-button--ticket img {
  width: 15px;
  height: 15px;
}

.chapel-action-button:active {
  transform: scale(0.97);
}

.chapel-action-button:focus-visible,
.chapel-return-button:focus-visible,
.chapel-media__back:focus-visible,
.chapel-video-play:focus-visible {
  outline: 2px solid #f7f5f0;
  outline-offset: 3px;
}

/* =========================================================
   LOCALIZAÇÃO E HORÁRIO
========================================================= */

.chapel-information-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr)
    minmax(0, 0.8fr);
  gap: 24px;
  margin-bottom: 34px;
}

.chapel-information-block h2,
.chapel-description-section h2 {
  margin: 0 0 10px;
  color: #f7f5f0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.35px;
}

.chapel-address,
.chapel-schedule {
  margin: 0;
  color: #f7f5f0;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
}

.chapel-address,
.chapel-schedule {
  display: flex;
  flex-direction: column;
}

.chapel-address strong,
.chapel-schedule strong {
  font-weight: 700;
}

#chapel-schedule-hours {
  white-space: nowrap;
}

#chapel-schedule-days {
  margin-top: 1px;
  font-size: 10px;
}

/* =========================================================
   DESCRIÇÃO
========================================================= */

.chapel-description-section {
  padding-bottom: 10px;
}

.chapel-description {
  color: #f7f5f0;
  font-weight: 400;
}

.chapel-description-summary,
.chapel-description-extra {
  display: inline;
}

.chapel-description-extra[hidden] {
  display: none !important;
}

.chapel-description-toggle {
  padding: 7px
    14px
    6px;
  border: 0;
  border-radius: 999px;
  background: #f7f5f0;
  color: #6e7f68;
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.chapel-description-toggle:focus-visible {
  outline: 2px solid #f7f5f0;
  outline-offset: 3px;
}

/* =========================================================
   TEXTO A 125%
========================================================= */

.phone.is-text-large .chapel-title {
  font-size: calc(24px + 4pt);
}

.phone.is-text-large .chapel-parent-name {
  font-size: calc(13px + 4pt);
}

.phone.is-text-large .chapel-return-button,
.phone.is-text-large .chapel-action-button {
  font-size: calc(12px + 4pt);
  white-space: normal;
}

.phone.is-text-large .chapel-information-block h2,
.phone.is-text-large .chapel-description-section h2 {
  font-size: calc(21px + 4pt);
}

.phone.is-text-large .chapel-address,
.phone.is-text-large .chapel-schedule,
.phone.is-text-large .chapel-description {
  font-size: calc(13px + 4pt);
}

.phone.is-text-large #chapel-schedule-hours {
  white-space: normal;
}

.phone.is-text-large #chapel-schedule-days,
.phone.is-text-large .chapel-description-toggle {
  font-size: calc(10px + 4pt);
}

/* =========================================================
   CAPELA DE SÃO MIGUEL — CORREÇÕES
========================================================= */

/* =========================================================
   IMAGEM DE CAPA DO VÍDEO
========================================================= */

.chapel-video-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition: opacity 180ms ease,
    visibility 180ms ease;
}

.chapel-video-poster.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.chapel-page.settings-open .chapel-video-poster {
  opacity: 0.2;
}

/* Mantém o botão de play por cima da imagem */

.chapel-video-play {
  z-index: 8;
}

/* =========================================================
   BOTÃO VER MAIS / VER MENOS JUNTO AO TEXTO
========================================================= */

.chapel-description {
  display: block;
  margin: 0;
  font-size: 13px;
  line-height: 1.43;
}

#chapel-description-summary {
  display: inline;
}

#chapel-description-extra {
  margin: 0;
}

#chapel-description-extra:not([hidden]) {
  display: inline !important;
}

#chapel-description-extra[hidden] {
  display: none !important;
}

.chapel-description-toggle {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none;
  margin: 0
    0
    0
    7px;
  vertical-align: baseline;
  transform: translateY(-1px);
}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {

  .chapel-video-play svg {
    transform: translateX(-3px);
  }

}

/* =========================================================
   CAPELA — AJUSTES FINAIS
========================================================= */

/* Seta do botão play ligeiramente mais para a direita */

.chapel-video-play svg {
  margin-left: 0;
  transform: translateX(1px);
}

/* =========================================================
   VER MAIS / VER MENOS
========================================================= */

/* O botão Ver mais continua imediatamente após o resumo */

.chapel-description:not(.is-expanded)
.chapel-description-toggle {
  display: inline-flex;
  margin: 0
    0
    0
    7px;
  transform: translateY(-1px);
}

/* O botão Ver menos passa para baixo e fica alinhado à esquerda */

.chapel-description.is-expanded
.chapel-description-toggle {
  display: flex;
  width: max-content;
  margin: 9px
    0
    0;
  transform: none;
}

/* Garante que o texto completo fica corretamente apresentado */

.chapel-description.is-expanded
#chapel-description-extra {
  display: inline !important;
}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  .chapel-video-play svg {
    transform: translateX(1px);
  }

}

/* =========================================================
   CAPELA — ÍCONE DO BOTÃO VOLTAR
========================================================= */

.chapel-return-button > svg {
  display: none;
}

.chapel-return-button__icon {
  display: block;
  width: 15px;
  height: 13px;
  flex: 0 0 15px;
  object-fit: contain;
}

.chapel-return-button {
  gap: 8px;
}

/* =========================================================
   ROTAS — INTRODUÇÃO
========================================================= */

.routes-intro-page {
  overflow: hidden;
  background: #f7f5f0;
  color: var(--navy);
}

.routes-intro-scroll {
  position: relative;
  padding: 0
    0
    calc(
      var(--home-nav-height) +
      38px +
      env(safe-area-inset-bottom)
    );
  background: #f7f5f0;
}

/* =========================================================
   IMAGEM SUPERIOR
========================================================= */

.routes-intro-hero {
  position: relative;
  width: 100%;
  height: 254px;
  overflow: hidden;
  background: #d9d9d4;
}

.routes-intro-hero__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: opacity 220ms ease;
}

/*
  A imagem já foi exportada com a opacidade pretendida.
  Não existe qualquer filtro ou camada adicional.
*/

.routes-intro-page.settings-open
.routes-intro-hero__image {
  opacity: 0.2;
}

/* =========================================================
   DEFINIÇÕES
========================================================= */

.routes-intro-settings-panel {
  position: absolute;
  top: max(
      91px,
      calc(env(safe-area-inset-top) + 68px)
    );
  right: 33px;
  z-index: 20;
  grid-column: auto;
  justify-self: auto;
}

.routes-intro-settings-panel .settings-button {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.routes-intro-settings-panel .settings-button img {
  width: 22px;
  height: 22px;
}

/* =========================================================
   PAINEL BRANCO
========================================================= */

.routes-intro-panel {
  position: relative;
  z-index: 5;
  min-height: 625px;
  display: flex;
  flex-direction: column;
  margin-top: -39px;
  padding: 47px
    46px
    36px;
  border-radius: 44px
    44px
    0
    0;
  background: #f7f5f0;
}

/* =========================================================
   TÍTULO
========================================================= */

.routes-intro-title {
  margin: 0
    0
    34px;
  color: var(--navy);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  text-align: center;
}

/* =========================================================
   TEXTO
========================================================= */

.routes-intro-text {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.27;
  letter-spacing: -0.28px;
}

/* =========================================================
   BOTÃO AVANÇAR
========================================================= */

.routes-intro-next-button {
  align-self: flex-end;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 28px;
  padding: 9px
    10px
    8px
    12px;
  border: 0;
  border-radius: 5px;
  background: var(--navy);
  color: #f7f5f0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: transform 150ms ease,
    opacity 150ms ease;
}

.routes-intro-next-button img {
  display: block;
  width: 10px;
  height: 13px;
  flex: 0 0 auto;
  object-fit: contain;
}

.routes-intro-next-button:active {
  transform: scale(0.97);
}

.routes-intro-next-button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* =========================================================
   TEXTO A 125%
========================================================= */

.phone.is-text-large
.routes-intro-title {
  font-size: calc(27px + 4pt);
}

.phone.is-text-large
.routes-intro-text {
  font-size: calc(17px + 4pt);
}

.phone.is-text-large
.routes-intro-next-button {
  font-size: calc(12px + 4pt);
}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  .routes-intro-hero {
    height: 235px;
  }

  .routes-intro-settings-panel {
    right: 21px;
  }

  .routes-intro-settings-panel .settings-button {
    width: 44px;
    height: 44px;
  }

  .routes-intro-panel {
    min-height: 610px;
    margin-top: -35px;
    padding: 42px
      33px
      32px;
    border-radius: 38px
      38px
      0
      0;
  }

  .routes-intro-title {
    margin-bottom: 28px;
    font-size: 25px;
  }

  .routes-intro-text {
    font-size: 15.5px;
    line-height: 1.3;
  }

}

/* =========================================================
   ROTAS — FORMULÁRIO
========================================================= */

.routes-form-page {
  overflow: hidden;
  background: #f7f5f0;
  color: var(--navy);
}

.routes-form-scroll {
  position: relative;
  padding: 0
    0
    calc(
      var(--home-nav-height) +
      38px +
      env(safe-area-inset-bottom)
    );
  background: #f7f5f0;
}

/* =========================================================
   IMAGEM SUPERIOR
========================================================= */

.routes-form-hero {
  position: relative;
  width: 100%;
  height: 254px;
  overflow: hidden;
  background: #d9d9d4;
}

.routes-form-hero__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: opacity 220ms ease;
}

.routes-form-page.settings-open
.routes-form-hero__image {
  opacity: 0.2;
}

/* =========================================================
   DEFINIÇÕES
========================================================= */

.routes-form-settings-panel {
  position: absolute;
  top: max(
      91px,
      calc(env(safe-area-inset-top) + 68px)
    );
  right: 33px;
  z-index: 20;
  grid-column: auto;
  justify-self: auto;
}

.routes-form-settings-panel .settings-button {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.routes-form-settings-panel .settings-button img {
  width: 22px;
  height: 22px;
}

/* =========================================================
   PAINEL
========================================================= */

.routes-form-panel {
  position: relative;
  z-index: 5;
  min-height: 680px;
  margin-top: -39px;
  padding: 24px
    47px
    38px;
  border-radius: 44px
    44px
    0
    0;
  background: #f7f5f0;
}

/* =========================================================
   CABEÇALHO
========================================================= */

.routes-form-header {
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.routes-form-title {
  position: absolute;
  left: 50%;
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transform: translateX(-50%);
}

.routes-form-skip-button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px
    8px
    6px
    9px;
  border: 0;
  border-radius: 5px;
  background: var(--navy);
  color: #f7f5f0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.routes-form-skip-button img {
  width: 9px;
  height: 12px;
  display: block;
  object-fit: contain;
}

.routes-form-divider {
  width: 100%;
  height: 1px;
  margin-top: 15px;
  background: rgba(31, 58, 103, 0.85);
}

/* =========================================================
   PROGRESSO
========================================================= */

.routes-form-progress {
  margin-top: 26px;
}

.routes-form-counter {
  margin: 0
    0
    9px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.routes-form-progress-bar {
  position: relative;
  width: 100%;
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--navy);
}

.routes-form-progress-bar__value {
  position: absolute;
  top: 50%;
  left: 6px;
  width: calc((100% - 12px) / 7);
  height: 3px;
  border-radius: 999px;
  background: #f7f5f0;
  transform: translateY(-50%);
}

/* =========================================================
   FORMULÁRIO
========================================================= */

.routes-question-form {
  margin-top: 49px;
}

.routes-question-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.routes-question-title {
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: var(--navy);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -0.45px;
}

/* =========================================================
   INSTRUÇÃO DAS PERGUNTAS
========================================================= */

.routes-question-helper {
  margin: 4px 0 0;

  color: var(--navy);

  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.1px;
}

.phone.is-text-large
.routes-question-helper {
  font-size: calc(13px + 4pt);
}

/* =========================================================
   MENSAGEM DE ERRO
========================================================= */

.routes-question-error {
  margin: 10px
    0
    0;
  color: #b55f3f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.routes-question-error[hidden] {
  display: none;
}

.routes-question-fieldset.has-error
.routes-question-title {
  text-decoration-color: #b55f3f;
}

/* =========================================================
   OPÇÕES
========================================================= */

.routes-question-options {
  display: flex;
  flex-direction: column;
  gap: 27px;
  margin-top: 34px;
}

.routes-question-option {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 27px;
  min-height: 26px;
  cursor: pointer;
}

.routes-question-option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.routes-question-option__control {
  position: relative;
  width: 26px;
  height: 26px;
  display: block;
  border-radius: 50%;
  background: var(--navy);
  transition: transform 150ms ease,
    box-shadow 150ms ease;
}

.routes-question-option__control::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f7f5f0;
  content: "";
  opacity: 0;
  transform: translate(-50%, -50%)
    scale(0.3);
  transition: opacity 150ms ease,
    transform 150ms ease;
}

.routes-question-option__input:checked
+
.routes-question-option__control::after {
  opacity: 1;
  transform: translate(-50%, -50%)
    scale(1);
}

.routes-question-option__input:focus-visible
+
.routes-question-option__control {
  box-shadow: 0 0 0 3px #f7f5f0,
    0 0 0 5px var(--navy);
}

.routes-question-option:active
.routes-question-option__control {
  transform: scale(0.94);
}

.routes-question-option__label {
  color: var(--navy);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.15;
}

/* =========================================================
   RESPOSTA OBRIGATÓRIA
========================================================= */

.routes-question-required-note {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin: 41px
    0
    0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.routes-question-required-note > span:first-child {
  color: #b9704d;
  font-size: 20px;
  font-weight: 700;
}

/* =========================================================
   BOTÃO AVANÇAR
========================================================= */

.routes-question-next-button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 28px
    0
    0
    auto;
  padding: 9px
    10px
    8px
    12px;
  border: 0;
  border-radius: 5px;
  background: var(--navy);
  color: #f7f5f0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: transform 150ms ease,
    opacity 150ms ease;
}

.routes-question-next-button img {
  width: 10px;
  height: 13px;
  display: block;
  object-fit: contain;
}

.routes-question-next-button:active,
.routes-form-skip-button:active {
  transform: scale(0.97);
}

.routes-question-next-button:focus-visible,
.routes-form-skip-button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* =========================================================
   TEXTO A 125%
========================================================= */

.phone.is-text-large
.routes-form-title {
  font-size: calc(20px + 4pt);
}

.phone.is-text-large
.routes-question-title {
  font-size: calc(24px + 4pt);
}

.phone.is-text-large
.routes-question-option__label {
  font-size: calc(18px + 4pt);
}

.phone.is-text-large
.routes-question-error,
.phone.is-text-large
.routes-question-required-note,
.phone.is-text-large
.routes-form-counter,
.phone.is-text-large
.routes-form-skip-button,
.phone.is-text-large
.routes-question-next-button {
  font-size: calc(12px + 4pt);
}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  .routes-form-hero {
    height: 235px;
  }

  .routes-form-settings-panel {
    right: 21px;
  }

  .routes-form-settings-panel .settings-button {
    width: 44px;
    height: 44px;
  }

  .routes-form-panel {
    margin-top: -35px;
    padding: 22px
      31px
      34px;
    border-radius: 38px
      38px
      0
      0;
  }

  .routes-form-title {
    font-size: 18px;
  }

  .routes-question-form {
    margin-top: 42px;
  }

  .routes-question-title {
    font-size: 21px;
  }

  .routes-question-options {
    gap: 24px;
    margin-top: 30px;
  }

  .routes-question-option {
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 22px;
  }

  .routes-question-option__control {
    width: 23px;
    height: 23px;
  }

  .routes-question-option__label {
    font-size: 16px;
  }

}

/* =========================================================
   ROTAS — ÍCONE SALTAR
========================================================= */

.routes-form-skip-button__icon {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  object-fit: contain;
}

/* Asterisco obrigatório junto à pergunta */

.routes-question-required-symbol {
  display: inline;
  margin-left: 3px;
  color: #b9704d;
  font-size: 0.72em;
  font-weight: 700;
  vertical-align: 0.18em;
}

/* =========================================================
   ROTAS — FORMULÁRIO — PERGUNTA 2
========================================================= */

/* Segundo segmento da barra de progresso */

.routes-form-progress-bar__value--second {
  left: calc(6px + 14.285%);
}

/* Ajustes de espaçamento desta pergunta */

.routes-question-form--question-2 {
  margin-top: 49px;
}

.routes-question-options--question-2 {
  gap: 31px;
  margin-top: 32px;
}

.routes-question-2-required-note {
  margin-top: 121px;
}

/* =========================================================
   RETROCEDER E AVANÇAR
========================================================= */

.routes-question-navigation {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.routes-question-navigation
.routes-question-next-button {
  margin: 0;
}

/* Botão Retroceder */

.routes-question-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-height: 38px;
  margin: 0;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: opacity 150ms ease,
    transform 150ms ease;
}

.routes-question-back-button img {
  display: block;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  object-fit: contain;
}

.routes-question-back-button:active {
  transform: translateX(-2px);
}

.routes-question-back-button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
  border-radius: 3px;
}

/* =========================================================
   TEXTO A 125%
========================================================= */

.phone.is-text-large
.routes-question-back-button {
  font-size: calc(14px + 4pt);
}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  .routes-question-options--question-2 {
    gap: 27px;
    margin-top: 29px;
  }

  .routes-question-2-required-note {
    margin-top: 92px;
  }

  .routes-question-back-button {
    font-size: 13px;
  }

  .routes-question-navigation {
    margin-top: 24px;
  }

}

/* =========================================================
   ROTAS — PERGUNTA COMPLEMENTAR — CARRO
========================================================= */

.routes-question-car-form {
  margin-top: 49px;
}

/* =========================================================
   OPÇÕES
========================================================= */

.routes-question-car-options {
  gap: 27px;
  margin-top: 28px;
}

.routes-question-car-option {
  min-height: 31px;
}

/* =========================================================
   OUTRO LOCAL
========================================================= */

.routes-question-car-other-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr)
    154px;
  align-items: center;
  gap: 12px;
}

.routes-question-car-option--other {
  min-width: 0;
}

.routes-question-car-other-input {
  width: 100%;
  height: 39px;
  padding: 8px
    9px;
  border: 1.5px
    solid
    var(--navy);
  border-radius: 5px;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  outline: none;
  transition: background-color 150ms ease,
    opacity 150ms ease,
    box-shadow 150ms ease;
}

.routes-question-car-other-input::placeholder {
  color: #686868;
  opacity: 1;
}

.routes-question-car-other-input:focus {
  box-shadow: 0
    0
    0
    2px
    rgba(31, 58, 103, 0.18);
}

.routes-question-car-other-input:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.routes-question-car-other-input.has-error {
  border-color: #b9704d;
  box-shadow: 0
    0
    0
    2px
    rgba(185, 112, 77, 0.15);
}

/* =========================================================
   BOTÃO PARTILHAR LOCALIZAÇÃO
========================================================= */

.routes-question-location-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin-top: 30px;
  padding: 9px
    14px
    8px;
  border: 0;
  border-radius: 5px;
  background: var(--navy);
  color: #f7f5f0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.15;
  cursor: pointer;
  transition: opacity 150ms ease,
    transform 150ms ease,
    background-color 150ms ease;
}

.routes-question-location-button img {
  width: 14px;
  height: 17px;
  display: block;
  flex: 0 0 14px;
  object-fit: contain;
}

.routes-question-location-button:active {
  transform: scale(0.98);
}

.routes-question-location-button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.routes-question-location-button.is-loading {
  opacity: 0.72;
  cursor: progress;
}

.routes-question-location-button.is-shared {
  background: #6e7f68;
}

/* =========================================================
   ESTADO DA LOCALIZAÇÃO
========================================================= */

.routes-question-location-status {
  margin: 8px
    0
    0;
  color: var(--navy);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.routes-question-location-status[hidden] {
  display: none;
}

.routes-question-location-status.is-error {
  color: #b55f3f;
}

/* =========================================================
   NOTA OBRIGATÓRIA
========================================================= */

.routes-question-car-required-note {
  margin-top: 76px;
}

/* =========================================================
   TEXTO A 125%
========================================================= */

.phone.is-text-large
.routes-question-car-other-input {
  font-size: calc(14px + 4pt);
}

.phone.is-text-large
.routes-question-location-button {
  font-size: calc(12px + 4pt);
}

.phone.is-text-large
.routes-question-location-status {
  font-size: calc(11px + 4pt);
}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  .routes-question-car-options {
    gap: 24px;
  }

  .routes-question-car-other-row {
    grid-template-columns: minmax(0, 1fr)
      130px;
    gap: 9px;
  }

  .routes-question-car-other-input {
    height: 37px;
    font-size: 12px;
  }

  .routes-question-location-button {
    width: 100%;
    font-size: 10.5px;
  }

  .routes-question-car-required-note {
    margin-top: 57px;
  }

}

/* =========================================================
   ROTAS — FORMULÁRIO — PERGUNTA 3
========================================================= */

/* Terceiro segmento da barra de progresso */

.routes-form-progress-bar__value--third {
  left: calc(6px + 28.57%);
}

/* Formulário */

.routes-question-weather-form {
  margin-top: 49px;
}

/* Opções */

.routes-question-weather-options {
  gap: 31px;
  margin-top: 32px;
}

/* Botão de temperatura */

.routes-question-weather-button {
  margin-top: 32px;
}

/* Botão após partilha */

.routes-question-weather-button.is-shared {
  background: #6e7f68;
}

/* Nota obrigatória */

.routes-question-weather-required-note {
  margin-top: 73px;
}

/* Texto a 125% */

.phone.is-text-large
.routes-question-weather-button {
  font-size: calc(12px + 4pt);
}

/* Ecrãs mais estreitos */

@media (max-width: 374px) {
  .routes-question-weather-options {
    gap: 27px;
    margin-top: 29px;
  }

  .routes-question-weather-button {
    width: 100%;
    font-size: 10.5px;
  }

  .routes-question-weather-required-note {
    margin-top: 56px;
  }

}

/* Pergunta 1 — botão Avançar alinhado à direita */

.routes-question-navigation--single {
  justify-content: flex-end;
}

/* =========================================================
   ROTAS — PERGUNTAS 4, 5 E 6
========================================================= */

/* =========================================================
   BARRA DE PROGRESSO
========================================================= */

.routes-form-progress-bar__value--fourth {
  left: calc(6px + 42.86%);
}

.routes-form-progress-bar__value--fifth {
  left: calc(6px + 57.14%);
}

.routes-form-progress-bar__value--sixth {
  left: calc(6px + 71.43%);
}

/* =========================================================
   PERGUNTAS 4 E 5
========================================================= */

.routes-question-binary-form {
  margin-top: 49px;
}

.routes-question-binary-options {
  gap: 31px;
  margin-top: 32px;
}

.routes-question-binary-required-note {
  margin-top: 150px;
}

/* =========================================================
   PERGUNTA 6
========================================================= */

.routes-question-sofia-form {
  margin-top: 49px;
}

.routes-question-sofia-options {
  gap: 31px;
  margin-top: 32px;
}

.routes-question-sofia-required-note {
  margin-top: 104px;
}

/* =========================================================
   TEXTO A 125%
========================================================= */

.phone.is-text-large
.routes-question-binary-required-note {
  margin-top: 112px;
}

.phone.is-text-large
.routes-question-sofia-required-note {
  margin-top: 74px;
}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  .routes-question-binary-options,
  .routes-question-sofia-options {
    gap: 27px;
    margin-top: 28px;
  }

  .routes-question-binary-required-note {
    margin-top: 120px;
  }

  .routes-question-sofia-required-note {
    margin-top: 78px;
  }

}

/* =========================================================
   ROTAS — PERGUNTA 7
========================================================= */

.routes-form-progress-bar__value--seventh {
  left: calc(6px + 85.71%);
}

.routes-question-interests-form {
  margin-top: 49px;
}

.routes-question-interests-options {
  display: flex;
  flex-direction: column;
  gap: 29px;
  margin-top: 24px;
}

.routes-question-interest-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 29px;
  min-height: 27px;
  cursor: pointer;
  user-select: none;
}

.routes-question-interest-option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.routes-question-interest-option__control {
  position: relative;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border-radius: 2px;
  background: #203b69;
}

.routes-question-interest-option__control::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #f6f3ed;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 140ms ease;
}

.routes-question-interest-option__input:checked
+ .routes-question-interest-option__control::after {
  opacity: 1;
}

.routes-question-interest-option__input:focus-visible
+ .routes-question-interest-option__control {
  outline: 3px solid rgba(189, 108, 74, 0.45);
  outline-offset: 4px;
}

.routes-question-interest-option__label {
  color: #203b69;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.15;
}

.routes-question-interests-required-note {
  justify-content: flex-end;
  margin-top: 18px;
}

.routes-question-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 13px;
  border: 0;
  border-radius: 5px;
  color: #ffffff;
  background: #bd6e4a;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.routes-question-submit-button img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.routes-question-submit-button:focus-visible {
  outline: 3px solid rgba(189, 108, 74, 0.4);
  outline-offset: 3px;
}

.routes-question-submit-button:active {
  transform: scale(0.98);
}

/* =========================================================
   CONFIRMAÇÃO E CARREGAMENTO DA ROTA
========================================================= */

.routes-generation-page {
  color: #ffffff;
}

.routes-generation-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(68px, calc(env(safe-area-inset-top) + 55px))
    37px
    max(48px, calc(env(safe-area-inset-bottom) + 35px));
  text-align: center;
}

.routes-generation-logo {
  display: block;
  width: min(205px, 60vw);
  height: auto;
}

.routes-generation-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 116px;
}

.routes-generation-title {
  margin: 0;
  color: #ffffff;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.14;
}

.routes-generation-success-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-top: 27px;
  border-radius: 50%;
  color: #203b69;
  background: #e2cc98;
}

.routes-generation-success-icon svg {
  width: 47px;
  height: 47px;
}

.routes-generation-loading,
.routes-generated-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  margin-bottom: 168px;
}

.routes-generation-loading p,
.routes-generated-status p {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}

.routes-generation-spinner {
  width: 33px;
  height: 33px;
  margin-top: 25px;
  border: 5px solid rgba(255, 255, 255, 0.18);
  border-top-color: #e2cc98;
  border-left-color: #b4b1a5;
  border-radius: 50%;
  animation: routes-spinner-rotation 850ms linear infinite;
}

@keyframes routes-spinner-rotation {
  to {
    transform: rotate(360deg);
  }

}

.routes-generated-status-icon {
  width: 40px;
  height: 40px;
  margin-top: 20px;
  color: #e2cc98;
}

.routes-generated-status-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.routes-generated-access-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  width: 100%;
  min-height: 47px;
  margin-top: auto;
  border: 0;
  border-radius: 15px;
  color: #ffffff;
  background: #bd6e4a;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.routes-generated-access-button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.routes-generated-access-button:focus-visible {
  outline: 3px solid rgba(226, 204, 152, 0.8);
  outline-offset: 4px;
}

.routes-generated-access-button:active {
  transform: scale(0.99);
}

/* =========================================================
   TEXTO A 125%
========================================================= */

.phone.is-text-large
.routes-question-interest-option__label {
  font-size: 24px;
}

.phone.is-text-large
.routes-question-interests-options {
  gap: 24px;
}

.phone.is-text-large
.routes-generation-title {
  font-size: 29px;
}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  .routes-question-interests-options {
    gap: 23px;
  }

  .routes-question-interest-option {
    gap: 22px;
  }

  .routes-question-interest-option__label {
    font-size: 18px;
  }

  .routes-generation-success {
    margin-top: 96px;
  }

  .routes-generation-loading,
  .routes-generated-status {
    margin-bottom: 135px;
  }

}

/* =========================================================
   ECRÃS DE GERAÇÃO DA ROTA
========================================================= */

.routes-generation-page {
  position: absolute;
  inset: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #203b69;
}

.routes-generation-page.is-active {
  display: block;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.routes-generation-page.is-before {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.routes-generation-content {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

/*
  Garante que o logótipo, a mensagem,
  o visto e o loading ficam visíveis.
*/

.routes-generation-logo,
.routes-generation-success,
.routes-generation-loading,
.routes-generated-status,
.routes-generated-access-button {
  position: relative;
  z-index: 2;
}

/*
  Impede que a barra de navegação inferior
  fique sobre o ecrã de geração.
*/

.routes-generation-page
~ .app-navigation {
  z-index: 20;
}

/* =========================================================
   ROTAS — MENU PRINCIPAL
========================================================= */

.routes-menu-page {
  color: #203b69;
  background: #f7f5f0;
}

.routes-menu-scroll {
  min-height: 100%;

  padding-bottom:
    max(
      135px,
      calc(env(safe-area-inset-bottom) + 120px)
    );

  background: #f7f5f0;
}


/* =========================================================
   CABEÇALHO
========================================================= */

.routes-menu-header {
  position: relative;

  min-height: 204px;

  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;

  padding:
    max(
      50px,
      calc(env(safe-area-inset-top) + 38px)
    )
    31px
    25px;
}

.routes-menu-logo {
  grid-column: 2;
  justify-self: center;

  display: block;

  width: 151px;
  height: auto;
}

.routes-menu-settings-panel {
  position: relative;
  top: auto;
  right: auto;

  grid-column: 3;
  justify-self: end;
}

.routes-menu-settings-panel .settings-button {
  width: 48px;
  height: 48px;

  border-radius: 10px;
}

.routes-menu-settings-panel .settings-button img {
  width: 22px;
  height: 22px;
}


/* =========================================================
   CONTEÚDO
========================================================= */

.routes-menu-content {
  width: 100%;

  padding-right: 30px;
  padding-left: 30px;
}


/* =========================================================
   ROTA GERADA
========================================================= */

.suggested-route-card {
  position: relative;

  width: 100%;
  min-height: 208px;

  overflow: hidden;

  border: 3px solid #bd6e4a;
  border-radius: 12px;

  background: #203b69;
}

.suggested-route-card__image,
.suggested-route-card__overlay {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
}

.suggested-route-card__image {
  object-fit: cover;
}

.suggested-route-card__overlay {
  /*
    Mais escuro para ficar semelhante
    à imagem de referência.
  */
  background: rgba(32, 59, 105, 0.83);
}

.suggested-route-card__content {
  position: relative;
  z-index: 1;

  min-height: 202px;

  padding:
    23px
    18px
    18px
    29px;

  color: #ffffff;
}


/* Título e subtítulo */

.suggested-route-card__header {
  padding: 0;

  text-align: center;
}

.suggested-route-card__title {
  margin: 0;

  color: #ffffff;

  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
}

.suggested-route-card__subtitle {
  margin: 9px 0 0;

  color: #ffffff;

  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
}


/* Informação da rota */

.suggested-route-card__information {
  display: flex;
  flex-direction: column;

  gap: 10px;

  margin:
    28px
    80px
    0
    0;

  padding: 0;

  list-style: none;
}

.suggested-route-card__information-item {
  min-height: 17px;

  display: flex;
  align-items: center;

  gap: 9px;

  color: #ffffff;

  font-size: 14px;
  font-weight: 400;
  line-height: 1.15;
}

.suggested-route-card__information-item[hidden] {
  display: none;
}

.suggested-route-card__information-item img {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;

  object-fit: contain;
}


/* Botão para abrir a rota */

.suggested-route-card__open-button {
  position: absolute;

  right: 15px;
  bottom: 15px;

  width: 63px;
  height: 63px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 0;
  border-radius: 8px;

  background: #f7f5f0;

  cursor: pointer;

  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.suggested-route-card__open-button img {
  display: block;

  width: 31px;
  height: 31px;

  object-fit: contain;
}

.suggested-route-card__open-button:focus-visible {
  outline: 3px solid rgba(189, 110, 74, 0.65);
  outline-offset: 3px;
}

.suggested-route-card__open-button:active {
  transform: scale(0.96);
}


/* =========================================================
   OUTRAS SUGESTÕES
========================================================= */

.routes-menu-section-title {
  margin:
    47px
    0
    0;

  color: #203b69;

  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;

  text-align: center;
}


/* =========================================================
   GRELHA DE ROTAS
========================================================= */

.routes-menu-grid {
  width: 298px;
  max-width: 100%;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 20px;

  margin:
    15px
    auto
    0;
}

.route-menu-card {
  position: relative;

  width: 100%;
  aspect-ratio: 1 / 1;

  overflow: hidden;

  border: 2px solid #203b69;
  border-radius: 11px;

  background: #ffffff;
}

.route-menu-card__image {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.route-menu-card__title {
  position: relative;
  z-index: 1;

  margin:
    20px
    8px
    0;

  color: #bd6e4a;

  font-size: 19px;
  font-weight: 700;
  line-height: 1;

  text-align: center;
}


/* Pequeno botão das rotas A–D */

.route-menu-card__static-button {
  position: absolute;

  right: 7px;
  bottom: 7px;
  z-index: 1;

  width: 25px;
  height: 25px;

  display: grid;
  place-items: center;

  border-radius: 4px;

  background: #203b69;

  pointer-events: none;
}

.route-menu-card__static-button img {
  display: block;

  width: 14px;
  height: 14px;

  object-fit: contain;
}


/* =========================================================
   DEFINIÇÕES ABERTAS
========================================================= */

.routes-menu-page.settings-open
.routes-menu-logo,
.routes-menu-page.settings-open
.suggested-route-card,
.routes-menu-page.settings-open
.routes-menu-section-title,
.routes-menu-page.settings-open
.routes-menu-grid {
  opacity: 0.2;
}


/* =========================================================
   TEXTO A 125%
========================================================= */

.phone.is-text-large
.suggested-route-card__title {
  font-size: 25px;
}

.phone.is-text-large
.suggested-route-card__subtitle {
  font-size: 13px;
}

.phone.is-text-large
.suggested-route-card__information-item {
  font-size: 16px;
}

.phone.is-text-large
.routes-menu-section-title {
  font-size: 21px;
}

.phone.is-text-large
.route-menu-card__title {
  font-size: 22px;
}


/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {

  .routes-menu-header {
    min-height: 187px;

    padding-right: 23px;
    padding-left: 23px;
  }

  .routes-menu-content {
    padding-right: 23px;
    padding-left: 23px;
  }

  .suggested-route-card {
    min-height: 195px;
  }

  .suggested-route-card__content {
    min-height: 189px;

    padding:
      21px
      16px
      16px
      22px;
  }

  .suggested-route-card__information {
    margin-top: 25px;
    margin-right: 70px;
  }

  .suggested-route-card__information-item {
    font-size: 13px;
  }

  .suggested-route-card__open-button {
    right: 13px;
    bottom: 13px;

    width: 57px;
    height: 57px;
  }

  .suggested-route-card__open-button img {
    width: 28px;
    height: 28px;
  }

  .routes-menu-section-title {
    margin-top: 40px;

    font-size: 17px;
  }

  .routes-menu-grid {
    width: 280px;

    gap: 18px;

    margin-top: 14px;
  }

  .route-menu-card__title {
    margin-top: 17px;

    font-size: 17px;
  }

  .route-menu-card__static-button {
    width: 24px;
    height: 24px;
  }

}

/* =========================================================
   ROTA SUGERIDA — MAPA INTERATIVO
========================================================= */

.route-map-page {
  color: #203b69;
  background: #f7f5f0;
}

.route-map-layout {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding-bottom: max(
      111px,
      calc(env(safe-area-inset-bottom) + 98px)
    );
  background: #f7f5f0;
}

/* =========================================================
   ÁREA DO MAPA
========================================================= */

.route-map-canvas-wrapper {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid #203b69;
  background: #e7e6e3;
}

.route-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 450px;
  background: #e7e6e3;
}

.route-map-canvas .leaflet-tile-pane {
  filter: grayscale(1)
    contrast(0.82)
    brightness(1.12);
}

.route-map-canvas .leaflet-control-zoom {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(32, 59, 105, 0.2);
}

.route-map-canvas .leaflet-control-zoom a {
  border: 0;
  color: #203b69;
  background: rgba(247, 245, 240, 0.96);
  font-family: inherit;
}

.route-map-canvas .leaflet-control-attribution {
  max-width: 72%;
  padding: 2px 5px;
  color: #203b69;
  background: rgba(247, 245, 240, 0.88);
  font-family: inherit;
  font-size: 8px;
}

.route-map-canvas .leaflet-control-attribution a {
  color: #203b69;
}

/* =========================================================
   DEFINIÇÕES
========================================================= */

.route-map-settings-panel {
  position: absolute;
  z-index: 800;
  top: max(
      91px,
      calc(env(safe-area-inset-top) + 72px)
    );
  right: 31px;
}

.route-map-settings-panel .settings-button {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.route-map-settings-panel .settings-button img {
  width: 22px;
  height: 22px;
}

/* =========================================================
   ERRO
========================================================= */

.route-map-error {
  position: absolute;
  z-index: 700;
  top: 50%;
  left: 50%;
  width: calc(100% - 60px);
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  color: #ffffff;
  background: #203b69;
  font-size: 15px;
  text-align: center;
  transform: translate(-50%, -50%);
}

/* =========================================================
   LEGENDA
========================================================= */

.route-map-guide {
  padding: 10px 29px 17px;
  background: #f7f5f0;
}

.route-map-instruction {
  margin: 0;
  color: #203b69;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.route-map-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}

.route-map-legend__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: #203b69;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.route-map-legend__item:focus-visible {
  outline: 3px solid rgba(189, 110, 74, 0.45);
  outline-offset: 5px;
  border-radius: 5px;
}

.route-map-legend-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
}

.route-map-legend-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.route-map-legend-icon--place img {
  width: 32px;
  height: 42px;
}

/* =========================================================
   MARCADORES DO MAPA LEAFLET
========================================================= */

.route-map-leaflet-icon {
  border: 0;
  background: transparent;
}

.route-map-marker {
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
}

.route-map-marker__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18));
}

.route-map-marker--start,
.route-map-marker--ticket,
.route-map-marker--wc,
.route-map-marker--parking {
  width: 46px;
  height: 46px;
}

.route-map-marker--place {
  width: 32px;
  height: 42px;
}

/* =========================================================
   LINHA DO PERCURSO
========================================================= */

.route-map-route-line {
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.65));
}

/* =========================================================
   POPUPS
========================================================= */

.route-map-canvas .leaflet-popup-content-wrapper {
  border-radius: 8px;
  color: #203b69;
  background: #f7f5f0;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
}

.route-map-canvas .leaflet-popup-tip {
  background: #f7f5f0;
}

.route-map-canvas .leaflet-popup-content {
  min-width: 145px;
  margin: 13px;
  font-family: inherit;
}

.route-map-popup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-map-popup__title {
  margin: 0;
  color: #203b69;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.route-map-popup__type {
  margin: 0;
  color: #203b69;
  font-size: 11px;
}

.route-map-popup__button {
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: 5px;
  color: #ffffff;
  background: #bd6e4a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.route-map-popup__button:focus-visible {
  outline: 3px solid rgba(189, 110, 74, 0.45);
  outline-offset: 2px;
}

/* =========================================================
   BOTÃO VOLTAR AO MAPA NO PAÇO
========================================================= */

.paco-route-return-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  background: #bd6e4a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.paco-route-return-button[hidden] {
  display: none;
}

.paco-route-return-button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.paco-route-return-button:focus-visible {
  outline: 3px solid rgba(189, 110, 74, 0.42);
  outline-offset: 3px;
}

/* =========================================================
   DEFINIÇÕES ABERTAS
========================================================= */

.route-map-page.settings-open
.route-map-canvas,
.route-map-page.settings-open
.route-map-guide {
  opacity: 0.2;
}

/* =========================================================
   TEXTO A 125%
========================================================= */

.phone.is-text-large
.route-map-instruction {
  font-size: 16px;
}

.phone.is-text-large
.route-map-legend__item {
  font-size: 13px;
}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  .route-map-guide {
    padding-right: 19px;
    padding-left: 19px;
  }

  .route-map-legend {
    gap: 3px;
  }

  .route-map-legend-icon {
    width: 38px;
    height: 38px;
  }

  .route-map-legend-icon--place img {
    width: 29px;
    height: 38px;
  }

  .route-map-legend__item {
    font-size: 9px;
  }

}

/* =========================================================
   MAPA DA ROTA — ESTILOS FINAIS
   Colocar no final absoluto do style.css
========================================================= */

#route-suggested-detail-screen.route-map-page {
  color: #203b69 !important;
  background: #f7f5f0 !important;
}

/* =========================================================
   ESTRUTURA DA PÁGINA
========================================================= */

#route-suggested-detail-screen
.route-map-layout {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr)
    164px !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  padding: 0 0
    calc(
      var(--home-nav-height) +
      19px +
      env(safe-area-inset-bottom)
    ) !important;
  overflow: hidden !important;
  background: #f7f5f0 !important;
}

/* =========================================================
   ÁREA DO MAPA
========================================================= */

#route-suggested-detail-screen
.route-map-canvas-wrapper {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border-bottom: 1px solid
    rgba(32, 59, 105, 0.55) !important;
  background: #e9e9e7 !important;
}

#route-suggested-detail-screen
.route-map-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  background: #e9e9e7 !important;
}

/* Torna o mapa mais semelhante ao protótipo */

#route-suggested-detail-screen
.route-map-canvas
.leaflet-tile-pane {
  filter: grayscale(1)
    saturate(0)
    contrast(0.78)
    brightness(1.16) !important;
}

#route-suggested-detail-screen
.route-map-canvas
.leaflet-control-attribution {
  right: 4px !important;
  bottom: 3px !important;
  max-width: 68% !important;
  padding: 2px 4px !important;
  color: rgba(32, 59, 105, 0.78) !important;
  background: rgba(247, 245, 240, 0.82) !important;
  font-family: "Nohemi", sans-serif !important;
  font-size: 7px !important;
  line-height: 1.15 !important;
}

#route-suggested-detail-screen
.route-map-canvas
.leaflet-control-attribution a {
  color: #203b69 !important;
}

/* Remove completamente popups e tooltips */

#route-suggested-detail-screen
.leaflet-popup-pane,
#route-suggested-detail-screen
.leaflet-tooltip-pane {
  display: none !important;
}

/* =========================================================
   BOTÃO DE DEFINIÇÕES
========================================================= */

#route-suggested-detail-screen
.route-map-settings-panel {
  position: absolute !important;
  z-index: 800 !important;
  top: max(
      76px,
      calc(env(safe-area-inset-top) + 58px)
    ) !important;
  right: 27px !important;
  width: 42px !important;
  height: 42px !important;
}

#route-suggested-detail-screen
.route-map-settings-panel
.settings-button {
  width: 42px !important;
  height: 42px !important;
  border-radius: 9px !important;
}

#route-suggested-detail-screen
.route-map-settings-panel
.settings-button img {
  width: 19px !important;
  height: 19px !important;
}

/* =========================================================
   ERRO DO MAPA
========================================================= */

#route-suggested-detail-screen
.route-map-error {
  position: absolute !important;
  z-index: 700 !important;
  top: 50% !important;
  left: 50% !important;
  width: calc(100% - 60px) !important;
  margin: 0 !important;
  padding: 13px !important;
  border-radius: 7px !important;
  color: #ffffff !important;
  background: #203b69 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  text-align: center !important;
  transform: translate(-50%, -50%) !important;
}

/* =========================================================
   ÁREA DA LEGENDA
========================================================= */

#route-suggested-detail-screen
.route-map-guide {
  position: relative !important;
  z-index: 5 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  min-height: 164px !important;
  padding: 11px
    27px
    14px !important;
  overflow: hidden !important;
  background: #f7f5f0 !important;
}

#route-suggested-detail-screen
.route-map-instruction {
  max-width: 330px !important;
  margin: 0 auto !important;
  color: #203b69 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

#route-suggested-detail-screen
.route-map-legend {
  display: grid !important;
  grid-template-columns: repeat(
      5,
      minmax(0, 1fr)
    ) !important;
  align-items: start !important;
  width: 100% !important;
  margin: 21px 0 0 !important;
  padding: 0 !important;
}

#route-suggested-detail-screen
.route-map-legend__item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #203b69 !important;
  background: transparent !important;
  font-family: "Nohemi", sans-serif !important;
  text-align: center !important;
}

/* =========================================================
   CÍRCULOS DA LEGENDA
========================================================= */

#route-suggested-detail-screen
.route-map-legend-icon {
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
}

#route-suggested-detail-screen
.route-map-legend-icon img {
  display: block !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  pointer-events: none !important;
}

/* PARTIDA */

#route-suggested-detail-screen
.route-map-legend-icon--start {
  background: #a9b3c6 !important;
}

/* LOCAL */

#route-suggested-detail-screen
.route-map-legend-icon--place {
  background: #a9b3c6 !important;
}

/* BILHETEIRA */

#route-suggested-detail-screen
.route-map-legend-icon--ticket {
  background: #aeb8a8 !important;
}

/* WC */

#route-suggested-detail-screen
.route-map-legend-icon--wc {
  background: #dab19d !important;
}

/* PARQUE */

#route-suggested-detail-screen
.route-map-legend-icon--parking {
  background: #aaaaaa !important;
}

/* =========================================================
   MARCADORES DO MAPA
========================================================= */

#route-suggested-detail-screen
.route-map-leaflet-icon {
  border: 0 !important;
  background: transparent !important;
}

#route-suggested-detail-screen
.route-map-marker {
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  transform: none !important;
}

#route-suggested-detail-screen
.route-map-marker__image {
  display: block !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  pointer-events: none !important;
}

/* PARTIDA */

#route-suggested-detail-screen
.route-map-marker--start {
  background: #a9b3c6 !important;
}

/* LOCAL */

#route-suggested-detail-screen
.route-map-marker--place {
  background: #a9b3c6 !important;
}

/* BILHETEIRA */

#route-suggested-detail-screen
.route-map-marker--ticket {
  background: #aeb8a8 !important;
}

/* WC */

#route-suggested-detail-screen
.route-map-marker--wc {
  background: #dab19d !important;
}

/* PARQUE */

#route-suggested-detail-screen
.route-map-marker--parking {
  background: #aaaaaa !important;
}

/* Apenas o Paço é interativo */

#route-suggested-detail-screen
.route-map-marker--paco {
  cursor: pointer !important;
  transition: transform
    150ms ease !important;
}

#route-suggested-detail-screen
.route-map-marker--paco:hover {
  transform: scale(1.1) !important;
}

/* Linha da rota */

#route-suggested-detail-screen
.route-map-route-line {
  filter: drop-shadow(
      0 1px 1px
      rgba(255, 255, 255, 0.78)
    ) !important;
}

/* =========================================================
   CABEÇALHO DO PAÇO
========================================================= */

#paco-das-escolas-screen
.paco-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr)
    auto !important;
  align-items: start !important;
  column-gap: 18px !important;
  width: 100% !important;
  margin: 0
    0
    20px !important;
}

#paco-das-escolas-screen
.paco-heading__copy {
  grid-column: 1 !important;
  min-width: 0 !important;
}

#paco-das-escolas-screen
.paco-route-return-button {
  grid-column: 2 !important;
  justify-self: end !important;
  align-self: start !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: auto !important;
  min-width: 83px !important;
  min-height: 37px !important;
  margin: 3px 0 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  background: #bd6e4a !important;
  font-family: "Nohemi", sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

#paco-das-escolas-screen
.paco-route-return-button[hidden] {
  display: none !important;
}

#paco-das-escolas-screen
.paco-route-return-button img {
  width: 15px !important;
  height: 15px !important;
  object-fit: contain !important;
  filter: brightness(0)
    invert(1) !important;
}

/* =========================================================
   DEFINIÇÕES ABERTAS
========================================================= */

#route-suggested-detail-screen.settings-open
.route-map-canvas,
#route-suggested-detail-screen.settings-open
.route-map-guide {
  opacity: 0.2 !important;
}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  #route-suggested-detail-screen
  .route-map-layout {
    grid-template-rows: minmax(0, 1fr)
      151px !important;
  }

  #route-suggested-detail-screen
  .route-map-guide {
    min-height: 151px !important;
    padding: 10px
      17px
      12px !important;
  }

  #route-suggested-detail-screen
  .route-map-legend {
    gap: 3px !important;
    margin-top: 17px !important;
  }

  #route-suggested-detail-screen
  .route-map-legend-icon {
    flex-basis: 30px !important;
    width: 30px !important;
    height: 30px !important;
  }

  #route-suggested-detail-screen
  .route-map-legend__item {
    font-size: 8px !important;
  }

  #route-suggested-detail-screen
  .route-map-marker {
    width: 26px !important;
    height: 26px !important;
  }

  #paco-das-escolas-screen
  .paco-heading {
    column-gap: 10px !important;
  }

  #paco-das-escolas-screen
  .paco-route-return-button {
    min-width: 75px !important;
    min-height: 34px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
  }

}

/* =========================================================
   MAPA DA ROTA — DIMENSÕES DOS ÍCONES
========================================================= */

/* =========================================================
   ÍCONES DA LEGENDA
========================================================= */

/* PARTIDA */

/* LOCAL */

/* BILHETEIRA */

/* WC */

/* PARQUE */

/* =========================================================
   MARCADORES DENTRO DO MAPA
========================================================= */

/* PARTIDA */

/* LOCAL */

/* BILHETEIRA */

/* WC */

/* PARQUE */

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  #route-suggested-detail-screen
  .route-map-legend-icon {
    flex-basis: 35px !important;
    width: 35px !important;
    height: 35px !important;
  }

  #route-suggested-detail-screen
  .route-map-marker {
    width: 31px !important;
    height: 31px !important;
  }

  #route-suggested-detail-screen
  .route-map-legend-icon--start img {
    width: 21px !important;
    height: 21px !important;
  }

  #route-suggested-detail-screen
  .route-map-legend-icon--place img {
    width: 16px !important;
    height: 21px !important;
  }

  #route-suggested-detail-screen
  .route-map-legend-icon--ticket img {
    width: 19px !important;
    height: 19px !important;
  }

  #route-suggested-detail-screen
  .route-map-legend-icon--wc img {
    width: 16px !important;
    height: 20px !important;
  }

  #route-suggested-detail-screen
  .route-map-legend-icon--parking img {
    width: 14px !important;
    height: 19px !important;
  }

}

/* =========================================================
   MAPA DA ROTA — LEGENDA
========================================================= */

/* =========================================================
   LEGENDA
========================================================= */

#route-suggested-detail-screen
.route-map-legend {
  gap: 6px !important;
  margin-top: 18px !important;
}

#route-suggested-detail-screen
.route-map-legend__item {
  gap: 9px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
}

/* =========================================================
   CORES DOS TEXTOS DA LEGENDA
========================================================= */

/* Partida */

#route-suggested-detail-screen
.route-map-legend__item:nth-child(1) {
  color: #263f6f !important;
}

/* Local */

#route-suggested-detail-screen
.route-map-legend__item:nth-child(2) {
  color: #263f6f !important;
}

/* Bilheteira */

#route-suggested-detail-screen
.route-map-legend__item:nth-child(3) {
  color: #71836c !important;
}

/* WC */

#route-suggested-detail-screen
.route-map-legend__item:nth-child(4) {
  color: #b86543 !important;
}

/* Parque */

#route-suggested-detail-screen
.route-map-legend__item:nth-child(5) {
  color: #505050 !important;
}

/* =========================================================
   CÍRCULOS DOS ÍCONES DA LEGENDA
========================================================= */

#route-suggested-detail-screen
.route-map-legend-icon {
  flex: 0 0 46px !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 5px
    rgba(0, 0, 0, 0.15) !important;
}

/* Partida */

#route-suggested-detail-screen
.route-map-legend-icon--start img {
  width: 29px !important;
  height: 29px !important;
}

/* Local */

#route-suggested-detail-screen
.route-map-legend-icon--place img {
  width: 22px !important;
  height: 29px !important;
}

/* Bilheteira */

#route-suggested-detail-screen
.route-map-legend-icon--ticket img {
  width: 26px !important;
  height: 26px !important;
}

/* WC */

#route-suggested-detail-screen
.route-map-legend-icon--wc img {
  width: 22px !important;
  height: 27px !important;
}

/* Parque */

#route-suggested-detail-screen
.route-map-legend-icon--parking img {
  width: 20px !important;
  height: 27px !important;
}

/* =========================================================
   MARCADORES DO MAPA
========================================================= */

#route-suggested-detail-screen
.route-map-marker {
  width: 40px !important;
  height: 40px !important;
  border: 1.5px solid
    rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 2px 6px
    rgba(0, 0, 0, 0.21) !important;
}

/* Partida */

#route-suggested-detail-screen
.route-map-marker--start
.route-map-marker__image {
  width: 25px !important;
  height: 25px !important;
}

/* Local */

#route-suggested-detail-screen
.route-map-marker--place
.route-map-marker__image {
  width: 19px !important;
  height: 25px !important;
}

/* Bilheteira */

#route-suggested-detail-screen
.route-map-marker--ticket
.route-map-marker__image {
  width: 23px !important;
  height: 23px !important;
}

/* WC */

#route-suggested-detail-screen
.route-map-marker--wc
.route-map-marker__image {
  width: 19px !important;
  height: 24px !important;
}

/* Parque */

#route-suggested-detail-screen
.route-map-marker--parking
.route-map-marker__image {
  width: 17px !important;
  height: 23px !important;
}

/* Paço das Escolas */

#route-suggested-detail-screen
.route-map-marker--paco {
  outline: 2px solid
    rgba(189, 110, 74, 0.95) !important;
  outline-offset: 2px !important;
}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  #route-suggested-detail-screen
  .route-map-legend {
    gap: 3px !important;
  }

  #route-suggested-detail-screen
  .route-map-legend__item {
    gap: 7px !important;
    font-size: 8.5px !important;
  }

  #route-suggested-detail-screen
  .route-map-legend-icon {
    flex-basis: 41px !important;
    width: 41px !important;
    height: 41px !important;
  }

  #route-suggested-detail-screen
  .route-map-legend-icon--start img {
    width: 26px !important;
    height: 26px !important;
  }

  #route-suggested-detail-screen
  .route-map-legend-icon--place img {
    width: 19px !important;
    height: 25px !important;
  }

  #route-suggested-detail-screen
  .route-map-legend-icon--ticket img {
    width: 23px !important;
    height: 23px !important;
  }

  #route-suggested-detail-screen
  .route-map-legend-icon--wc img {
    width: 19px !important;
    height: 24px !important;
  }

  #route-suggested-detail-screen
  .route-map-legend-icon--parking img {
    width: 17px !important;
    height: 23px !important;
  }

  #route-suggested-detail-screen
  .route-map-marker {
    width: 37px !important;
    height: 37px !important;
  }

}

/* =========================================================
   PÁGINA SOBRE
   Colocar no final absoluto do style.css
========================================================= */

#about-screen.about-page {
  background: #f7f5f0 !important;
  color: #151515 !important;
}

/* =========================================================
   SCROLL E ESPAÇAMENTO GERAL
========================================================= */

#about-screen .about-scroll {
  width: 100% !important;
  height: 100% !important;
  padding: 0
    30px
    calc(
      var(--home-nav-height) +
      25px +
      env(safe-area-inset-bottom)
    ) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #f7f5f0 !important;
  scrollbar-width: none !important;
}

#about-screen .about-scroll::-webkit-scrollbar {
  display: none !important;
}

/* =========================================================
   IMAGEM PRINCIPAL
========================================================= */

#about-screen .about-hero {
  position: relative !important;
  width: auto !important;
  height: 345px !important;
  margin-right: -30px !important;
  margin-left: -30px !important;
  overflow: hidden !important;
  border-radius: 0
    0
    48px
    48px !important;
  background: #d8ccb0 !important;
}

#about-screen .about-hero__image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1;
  transition: opacity
    220ms ease;
}

/* Imagem com opacidade quando as definições estão abertas */

#about-screen.settings-open
.about-hero__image {
  opacity: 0.2 !important;
}

/* =========================================================
   BOTÃO DE DEFINIÇÕES
========================================================= */

#about-screen .about-settings-panel {
  position: absolute !important;
  top: max(
      91px,
      calc(
        env(safe-area-inset-top) +
        68px
      )
    ) !important;
  right: 32px !important;
  z-index: 30 !important;
  width: 48px !important;
  height: 48px !important;
  grid-column: auto !important;
  justify-self: auto !important;
}

#about-screen
.about-settings-panel
.settings-toolbar {
  height: 48px !important;
}

#about-screen
.about-settings-panel
.settings-button {
  width: 48px !important;
  height: 48px !important;
  border-radius: 10px !important;
}

#about-screen
.about-settings-panel
.settings-button img {
  width: 22px !important;
  height: 22px !important;
}

/* =========================================================
   CONTEÚDO PRINCIPAL
========================================================= */

#about-screen .about-content {
  padding-top: 25px !important;
}

#about-screen .about-introduction {
  margin: 0
    0
    31px !important;
}

/* =========================================================
   TÍTULO SOBRE
========================================================= */

#about-screen .about-title {
  margin: 0
    0
    13px !important;
  color: #263f6f !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.5px !important;
}

/* =========================================================
   DESCRIÇÃO
========================================================= */

#about-screen .about-description {
  max-width: 100% !important;
  margin: 0 !important;
  color: #111111 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.43 !important;
  letter-spacing: -0.17px !important;
}

#about-screen .about-description strong {
  font-weight: 700 !important;
}

/* =========================================================
   CONTACTOS
========================================================= */

#about-screen .about-contacts {
  margin: 0
    0
    0 !important;
}

#about-screen .about-contacts h2 {
  margin: 0
    0
    17px !important;
  color: #263f6f !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.5px !important;
}

/* Grelha de contactos */

#about-screen .about-contact-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr)
    minmax(0, 1fr) !important;
  column-gap: 17px !important;
  row-gap: 17px !important;
  width: 100% !important;
}

/* Itens gerais */

#about-screen .about-contact-item {
  min-width: 0 !important;
  margin: 0 !important;
  color: #111111 !important;
}

/* Primeiro telefone */

#about-screen
.about-contact-grid
> .about-contact-item:nth-child(1) {
  display: grid !important;
  grid-template-columns: 18px
    minmax(0, 1fr) !important;
  align-items: start !important;
  column-gap: 11px !important;
}

/* Segundo telefone */

#about-screen
.about-contact-grid
> .about-contact-item:nth-child(2) {
  display: block !important;
  padding-left: 0 !important;
}

/* Conteúdo dos telefones */

#about-screen
.about-contact-item--phone
> div {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  min-width: 0 !important;
}

/* Ícones */

#about-screen
.about-contact-item
> img {
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px !important;
  margin-top: 2px !important;
  object-fit: contain !important;
}

/* Links dos telefones */

#about-screen
.about-contact-item--phone
a {
  display: block !important;
  color: #111111 !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.15px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

#about-screen
.about-contact-item--phone
a strong {
  font-weight: 700 !important;
}

/* Dias */

#about-screen
.about-contact-item--phone
span {
  display: block !important;
  margin-top: 3px !important;
  color: #111111 !important;
  font-size: 10.5px !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

/* =========================================================
   EMAIL
========================================================= */

#about-screen
.about-contact-item--email {
  display: grid !important;
  grid-template-columns: 18px
    minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 11px !important;
}

#about-screen
.about-contact-item--email
a {
  min-width: 0 !important;
  overflow: hidden !important;
  color: #111111 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.15px !important;
  text-decoration: none !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#about-screen
.about-contact-item--email
a strong {
  font-weight: 700 !important;
}

/* =========================================================
   BOTÃO ENVIAR MENSAGEM
========================================================= */

#about-screen .about-contact-button {
  justify-self: start !important;
  align-self: center !important;
  min-width: 109px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 8px
    16px
    7px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: #81917e !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: transform
    150ms ease,
    opacity
    150ms ease !important;
}

#about-screen
.about-contact-button:active {
  transform: scale(0.96) !important;
}

/* =========================================================
   SIGA-NOS
========================================================= */

#about-screen .about-social-section {
  margin-top: 27px !important;
}

#about-screen .about-follow-heading {
  display: grid !important;
  grid-template-columns: minmax(20px, 1fr)
    auto
    minmax(20px, 1fr) !important;
  align-items: center !important;
  gap: 13px !important;
  width: 100% !important;
}

#about-screen
.about-follow-heading
> span {
  display: block !important;
  width: 100% !important;
  height: 1px !important;
  background: #263f6f !important;
}

#about-screen .about-follow-heading p {
  margin: 0 !important;
  color: #263f6f !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* =========================================================
   REDES SOCIAIS
========================================================= */

#about-screen .about-socials {
  display: grid !important;
  grid-template-columns: repeat(
      4,
      minmax(0, 1fr)
    ) !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 20px !important;
}

#about-screen .about-social-link {
  justify-self: center !important;
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  transition: transform
    150ms ease !important;
}

#about-screen .about-social-link img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

#about-screen .about-social-link:active {
  transform: scale(0.93) !important;
}

/* =========================================================
   RODAPÉ
========================================================= */

#about-screen .about-footer {
  display: grid !important;
  grid-template-columns: 40px
    minmax(0, 1fr) !important;
  align-items: center !important;
  min-height: 54px !important;
  margin-top: 20px !important;
}

#about-screen .about-copyright {
  align-self: center !important;
  padding: 0 !important;
  color: #263f6f !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}

#about-screen .about-author {
  justify-self: end !important;
  align-self: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 3px !important;
  color: #263f6f !important;
  font-size: 9.5px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  text-align: right !important;
}

#about-screen .about-author > strong {
  font-weight: 700 !important;
}

#about-screen
.about-author
span strong {
  font-weight: 700 !important;
}

/* =========================================================
   ESTADOS DE FOCO
========================================================= */

#about-screen
.about-contact-item a:focus-visible,
#about-screen
.about-contact-button:focus-visible,
#about-screen
.about-social-link:focus-visible {
  outline: 2px solid
    #263f6f !important;
  outline-offset: 3px !important;
}

/* =========================================================
   TEXTO A 125%
========================================================= */

.phone.is-text-large
#about-screen
.about-title {
  font-size: calc(
      23px +
      4pt
    ) !important;
}

.phone.is-text-large
#about-screen
.about-contacts h2 {
  font-size: calc(
      22px +
      4pt
    ) !important;
}

.phone.is-text-large
#about-screen
.about-description {
  font-size: calc(
      14px +
      4pt
    ) !important;
}

.phone.is-text-large
#about-screen
.about-contact-grid {
  grid-template-columns: 1fr !important;
}

.phone.is-text-large
#about-screen
.about-contact-item--phone a,
.phone.is-text-large
#about-screen
.about-contact-item--email a {
  font-size: calc(
      13.5px +
      4pt
    ) !important;
  white-space: normal !important;
}

.phone.is-text-large
#about-screen
.about-contact-item--phone span {
  font-size: calc(
      10.5px +
      4pt
    ) !important;
  white-space: normal !important;
}

.phone.is-text-large
#about-screen
.about-contact-button {
  margin-left: 29px !important;
  font-size: calc(
      11px +
      4pt
    ) !important;
}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  #about-screen .about-scroll {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  #about-screen .about-hero {
    height: 305px !important;
    margin-right: -20px !important;
    margin-left: -20px !important;
    border-radius: 0
      0
      38px
      38px !important;
  }

  #about-screen .about-settings-panel {
    top: max(
        76px,
        calc(
          env(safe-area-inset-top) +
          55px
        )
      ) !important;
    right: 20px !important;
    width: 42px !important;
    height: 42px !important;
  }

  #about-screen
  .about-settings-panel
  .settings-toolbar,
  #about-screen
  .about-settings-panel
  .settings-button {
    width: 42px !important;
    height: 42px !important;
  }

  #about-screen .about-title {
    font-size: 21px !important;
  }

  #about-screen .about-contacts h2 {
    font-size: 20px !important;
  }

  #about-screen .about-description {
    font-size: 12.5px !important;
  }

  #about-screen .about-contact-grid {
    column-gap: 10px !important;
  }

  #about-screen
  .about-contact-item--phone a {
    font-size: 11.5px !important;
  }

  #about-screen
  .about-contact-item--phone span {
    font-size: 9px !important;
  }

  #about-screen
  .about-contact-item--email a {
    font-size: 12px !important;
  }

  #about-screen .about-contact-button {
    min-width: 101px !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
    font-size: 10px !important;
  }

  #about-screen .about-social-link {
    width: 37px !important;
    height: 37px !important;
  }

  #about-screen .about-footer {
    min-height: 48px !important;
    margin-top: 16px !important;
  }

}

/* =========================================================
   ECRÃS MUITO ESTREITOS
========================================================= */

@media (max-width: 339px) {
  #about-screen .about-contact-grid {
    grid-template-columns: 1fr !important;
  }

  #about-screen .about-contact-button {
    margin-left: 29px !important;
  }

}

/* =========================================================
   PÁGINA CONTACTAR
========================================================= */

#contact-screen.contact-page {
  background: #f7f5f0 !important;
  color: #203b69 !important;
}

/* =========================================================
   SCROLL
========================================================= */

#contact-screen .contact-scroll {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #f7f5f0 !important;
  scrollbar-width: none !important;
}

#contact-screen .contact-scroll::-webkit-scrollbar {
  display: none !important;
}

/* =========================================================
   IMAGEM SUPERIOR
========================================================= */

#contact-screen .contact-hero {
  position: relative !important;
  width: 100% !important;
  height: 245px !important;
  overflow: hidden !important;
  background: #d5d5d5 !important;
}

#contact-screen .contact-hero__image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#contact-screen.settings-open
.contact-hero__image {
  opacity: 0.2 !important;
}

/* =========================================================
   DEFINIÇÕES
========================================================= */

#contact-screen .contact-settings-panel {
  position: absolute !important;
  z-index: 30 !important;
  top: max(
      88px,
      calc(env(safe-area-inset-top) + 67px)
    ) !important;
  right: 31px !important;
  width: 48px !important;
  height: 48px !important;
  grid-column: auto !important;
  justify-self: auto !important;
}

#contact-screen
.contact-settings-panel
.settings-toolbar {
  height: 48px !important;
}

#contact-screen
.contact-settings-panel
.settings-button {
  width: 48px !important;
  height: 48px !important;
  border-radius: 10px !important;
}

#contact-screen
.contact-settings-panel
.settings-button img {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* =========================================================
   PAINEL DO FORMULÁRIO
========================================================= */

#contact-screen .contact-panel {
  position: relative !important;
  z-index: 3 !important;
  min-height: 720px !important;
  margin-top: -38px !important;
  padding: 31px
    38px
    calc(
      var(--home-nav-height) +
      38px +
      env(safe-area-inset-bottom)
    ) !important;
  border-radius: 48px
    48px
    0
    0 !important;
  background: #f7f5f0 !important;
}

/* =========================================================
   LINHA SUPERIOR
========================================================= */

#contact-screen .contact-top-row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 73px !important;
  margin-bottom: 7px !important;
}

/* =========================================================
   BOTÃO VOLTAR
========================================================= */

#contact-screen .contact-back-button {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #263f6f !important;
  background: #c1cad7 !important;
  cursor: pointer !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#contact-screen .contact-back-button svg {
  display: block !important;
  width: 23px !important;
  height: 23px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* =========================================================
   CARREGAR FICHEIRO
========================================================= */

#contact-screen .contact-upload-button {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 7px !important;
  width: 105px !important;
  color: #263f6f !important;
  font-size: 10.5px !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  cursor: pointer !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#contact-screen .contact-upload-icon {
  display: grid !important;
  place-items: center !important;
  width: 50px !important;
  height: 50px !important;
  border: 1px solid
    #bd6e4a !important;
  border-radius: 50% !important;
  color: #decca3 !important;
  background: transparent !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#contact-screen .contact-upload-icon svg {
  display: block !important;
  width: 27px !important;
  height: 27px !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#contact-screen .contact-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Nome e erro do ficheiro */

#contact-screen .contact-file-name,
#contact-screen .contact-file-error {
  width: 135px !important;
  margin: -6px
    0
    8px
    auto !important;
  overflow: hidden !important;
  font-size: 8.5px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
}

#contact-screen .contact-file-name {
  color: #626262 !important;
}

#contact-screen .contact-file-error {
  color: #ad4e35 !important;
}

#contact-screen
.contact-file-name:empty,
#contact-screen
.contact-file-error:empty {
  display: none !important;
}

/* =========================================================
   TÍTULO
========================================================= */

#contact-screen .contact-title {
  margin: 0
    0
    13px !important;
  color: #263f6f !important;
  font-size: 29px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -0.8px !important;
}

/* =========================================================
   INTRODUÇÃO
========================================================= */

#contact-screen .contact-introduction {
  max-width: 100% !important;
  margin: 0 !important;
  color: #263f6f !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  line-height: 1.38 !important;
  letter-spacing: -0.15px !important;
}

/* =========================================================
   FORMULÁRIO
========================================================= */

#contact-screen .contact-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
  width: 100% !important;
  margin-top: 29px !important;
}

/* =========================================================
   CAMPOS
========================================================= */

#contact-screen .contact-field {
  position: relative !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 14px
    18px
    8px !important;
  border: 1.4px solid
    #263f6f !important;
  border-radius: 14px !important;
  background: #f7f5f0 !important;
}

/* Campo da mensagem */

#contact-screen #contact-message-field {
  min-height: 123px !important;
}

/* Labels sobre a linha */

#contact-screen .contact-field > label {
  position: absolute !important;
  top: -8px !important;
  left: 23px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  padding: 0
    5px !important;
  color: #263f6f !important;
  background: #f7f5f0 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#contact-screen
.contact-field
> label
span:last-child {
  color: #bd6e4a !important;
}

/* Inputs */

#contact-screen .contact-field input,
#contact-screen .contact-field textarea {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 4px 0 !important;
  border: 0 !important;
  outline: 0 !important;
  color: #171717 !important;
  background: transparent !important;
  font-family: "Nohemi", sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

#contact-screen .contact-field input {
  height: 27px !important;
}

#contact-screen .contact-field textarea {
  height: 88px !important;
  resize: none !important;
}

#contact-screen
.contact-field
input::placeholder,
#contact-screen
.contact-field
textarea::placeholder {
  color: #666666 !important;
  opacity: 1 !important;
}

/* Foco */

#contact-screen
.contact-field:focus-within {
  box-shadow: 0 0 0 2px
    rgba(38, 63, 111, 0.12) !important;
}

/* Erros */

#contact-screen
.contact-field.has-error {
  border-color: #bd6e4a !important;
  box-shadow: 0 0 0 2px
    rgba(189, 110, 74, 0.1) !important;
}

#contact-screen .contact-field-error {
  display: block !important;
  min-height: 0 !important;
  margin: 3px 0 0 !important;
  color: #ad4e35 !important;
  font-size: 9px !important;
  line-height: 1.2 !important;
}

#contact-screen
.contact-field-error:empty {
  display: none !important;
}

/* =========================================================
   BOTÃO ENVIAR
========================================================= */

#contact-screen .contact-submit-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  width: 100% !important;
  min-height: 57px !important;
  margin: 1px
    0
    0 !important;
  padding: 12px
    20px !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  background: #bd6e4a !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#contact-screen
.contact-submit-button
> span:first-child {
  display: inline-block !important;
  color: #ffffff !important;
  font-size: 19px !important;
  line-height: 1 !important;
  transform: rotate(-8deg) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* =========================================================
   ESTADOS DE FOCO
========================================================= */

#contact-screen
.contact-back-button:focus-visible,
#contact-screen
.contact-upload-button:focus-visible,
#contact-screen
.contact-submit-button:focus-visible {
  outline: 2px solid
    #263f6f !important;
  outline-offset: 3px !important;
}

/* =========================================================
   TEXTO A 125%
========================================================= */

.phone.is-text-large
#contact-screen
.contact-title {
  font-size: calc(
      29px +
      4pt
    ) !important;
}

.phone.is-text-large
#contact-screen
.contact-introduction {
  font-size: calc(
      13.5px +
      4pt
    ) !important;
}

.phone.is-text-large
#contact-screen
.contact-field > label,
.phone.is-text-large
#contact-screen
.contact-field input,
.phone.is-text-large
#contact-screen
.contact-field textarea {
  font-size: calc(
      12.5px +
      4pt
    ) !important;
}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  #contact-screen .contact-hero {
    height: 225px !important;
  }

  #contact-screen .contact-settings-panel {
    top: max(
        75px,
        calc(env(safe-area-inset-top) + 54px)
      ) !important;
    right: 20px !important;
    width: 42px !important;
    height: 42px !important;
  }

  #contact-screen
  .contact-settings-panel
  .settings-toolbar,
  #contact-screen
  .contact-settings-panel
  .settings-button {
    height: 42px !important;
  }

  #contact-screen
  .contact-settings-panel
  .settings-button {
    width: 42px !important;
  }

  #contact-screen .contact-panel {
    margin-top: -32px !important;
    padding: 27px
      24px
      calc(
        var(--home-nav-height) +
        31px +
        env(safe-area-inset-bottom)
      ) !important;
    border-radius: 38px
      38px
      0
      0 !important;
  }

  #contact-screen .contact-title {
    font-size: 26px !important;
  }

  #contact-screen .contact-introduction {
    font-size: 12px !important;
  }

  #contact-screen .contact-form {
    gap: 16px !important;
    margin-top: 24px !important;
  }

  #contact-screen .contact-upload-button {
    width: 92px !important;
    font-size: 9.5px !important;
  }

  #contact-screen .contact-upload-icon {
    width: 45px !important;
    height: 45px !important;
  }

  #contact-screen .contact-submit-button {
    min-height: 53px !important;
    font-size: 15px !important;
  }

}

/* =========================================================
   PÁGINA DE CONFIRMAÇÃO
========================================================= */

/*
  Remove o posicionamento anterior aplicado ao contentor.
*/

#confirmation-screen
.confirmation-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/*
  Mensagem completa.
  A margem superior coloca o texto mais abaixo.
*/

#confirmation-screen
.confirmation-message {
  position: relative !important;
  display: block !important;
  width: calc(100% - 60px) !important;
  max-width: 330px !important;
  margin: 270px
    auto
    0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.2px !important;
  text-align: center !important;
}

/* Nome retirado do formulário */

#confirmation-screen
#confirmation-name {
  display: inline !important;
  color: #bd6e4a !important;
  font-size: inherit !important;
  font-weight: 700 !important;
  line-height: inherit !important;
}

/* Restante texto */

#confirmation-screen
#confirmation-success-text {
  display: inline !important;
  color: #ffffff !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  line-height: inherit !important;
}

/*
  Impede regras antigas de alterarem o nome
  ou o tamanho do texto.
*/

#confirmation-screen
.confirmation-message strong,
#confirmation-screen
.confirmation-message span {
  font-size: inherit !important;
  line-height: inherit !important;
}

/* =========================================================
   TEXTO A 125%
========================================================= */

.phone.is-text-large
#confirmation-screen
.confirmation-message {
  max-width: 350px !important;
  font-size: 23px !important;
}

.phone.is-text-large
#confirmation-screen
#confirmation-name,
.phone.is-text-large
#confirmation-screen
#confirmation-success-text {
  font-size: inherit !important;
}

/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {
  #confirmation-screen
  .confirmation-message {
    width: calc(100% - 44px) !important;
    max-width: 295px !important;
    margin-top: 235px !important;
    font-size: 18px !important;
  }

  .phone.is-text-large
  #confirmation-screen
  .confirmation-message {
    font-size: 21px !important;
  }

}

/* =========================================================
   ECRÃS MAIS BAIXOS
========================================================= */

@media (max-height: 700px) {
  #confirmation-screen
  .confirmation-message {
    margin-top: 190px !important;
    font-size: 18px !important;
  }

}

/* =========================================================
   MAPA — AJUSTES FINAIS
========================================================= */


/* =========================================================
   BOTÃO VOLTAR
========================================================= */

#route-suggested-detail-screen
.route-map-back-button {
  position: absolute;

  z-index: 800;

  top: max(
    91px,
    calc(env(safe-area-inset-top) + 72px)
  );

  left: 31px;

  width: 45px;
  height: 45px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 0;
  border-radius: 10px;

  background: #203b69;
  color: #ffffff;

  cursor: pointer;

  box-shadow: none;

  transition:
    transform 150ms ease,
    opacity 150ms ease;
}

#route-suggested-detail-screen
.route-map-back-button svg {
  width: 22px;
  height: 22px;
}

#route-suggested-detail-screen
.route-map-back-button:active {
  transform: scale(0.95);
}

#route-suggested-detail-screen
.route-map-back-button:focus-visible {
  outline: 3px solid rgba(189, 110, 74, 0.55);
  outline-offset: 3px;
}


/* =========================================================
   BOTÃO DEFINIÇÕES
   Alinhado com o botão de voltar
========================================================= */

#route-suggested-detail-screen
.route-map-settings-panel {
  top: max(
    91px,
    calc(env(safe-area-inset-top) + 72px)
  ) !important;

  right: 31px !important;

  width: 45px !important;
  height: 45px !important;
}

#route-suggested-detail-screen
.route-map-settings-panel
.settings-button {
  width: 45px !important;
  height: 45px !important;

  border-radius: 10px !important;
}

#route-suggested-detail-screen
.route-map-settings-panel
.settings-button img {
  width: 21px !important;
  height: 21px !important;
}


/* =========================================================
   BOTÃO INICIAR ROTA
========================================================= */

#route-suggested-detail-screen
.route-map-start-button {
  position: absolute;

  z-index: 800;

  left: 28px;
  bottom: 16px;

  min-width: 111px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  padding:
    0
    13px;

  border: 0;
  border-radius: 5px;

  background: #203b69;
  color: #ffffff;

  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;

  transition:
    transform 150ms ease,
    opacity 150ms ease;
}

#route-suggested-detail-screen
.route-map-start-button img {
  display: block;

  width: 17px;
  height: 17px;

  object-fit: contain;
}

#route-suggested-detail-screen
.route-map-start-button:active {
  transform: scale(0.97);
}

#route-suggested-detail-screen
.route-map-start-button:focus-visible {
  outline: 3px solid rgba(189, 110, 74, 0.55);
  outline-offset: 3px;
}


/* =========================================================
   CORES — LEGENDA
========================================================= */

/* PARTIDA */

#route-suggested-detail-screen
.route-map-legend-icon--start {
  background: #e8dec9 !important;
}

#route-suggested-detail-screen
.route-map-legend__item:nth-child(1) {
  color: #bfaf8e !important;
}


/* LOCAL */

#route-suggested-detail-screen
.route-map-legend-icon--place {
  background: #9e9d9a !important;
}

#route-suggested-detail-screen
.route-map-legend__item:nth-child(2) {
  color: #454545 !important;
}


/* BILHETEIRA */

#route-suggested-detail-screen
.route-map-legend-icon--ticket {
  background: #b3baac !important;
}

#route-suggested-detail-screen
.route-map-legend__item:nth-child(3) {
  color: #6e7f68 !important;
}


/* WC */

#route-suggested-detail-screen
.route-map-legend-icon--wc {
  background: #d6b09d !important;
}

#route-suggested-detail-screen
.route-map-legend__item:nth-child(4) {
  color: #b56a4a !important;
}


/* PARQUE */

#route-suggested-detail-screen
.route-map-legend-icon--parking {
  background: #8b95a7 !important;
}

#route-suggested-detail-screen
.route-map-legend__item:nth-child(5) {
  color: #1f355e !important;
}


/* =========================================================
   CORES — MARCADORES NO MAPA
========================================================= */

/* Retira o contorno branco introduzido anteriormente */

#route-suggested-detail-screen
.route-map-marker {
  border: 0 !important;

  box-shadow: none !important;
}


/* PARTIDA */

#route-suggested-detail-screen
.route-map-marker--start {
  background: #e8dec9 !important;
}


/* LOCAL
   Na referência, o marcador aparece como pin
   e não dentro de um círculo.
*/

#route-suggested-detail-screen
.route-map-marker--place {
  overflow: visible !important;

  border-radius: 0 !important;

  background: transparent !important;

  box-shadow: none !important;
}

#route-suggested-detail-screen
.route-map-marker--place
.route-map-marker__image {
  width: 28px !important;
  height: 37px !important;
}


/* BILHETEIRA */

#route-suggested-detail-screen
.route-map-marker--ticket {
  background: #b3baac !important;
}


/* WC */

#route-suggested-detail-screen
.route-map-marker--wc {
  background: #d6b09d !important;
}


/* PARQUE */

#route-suggested-detail-screen
.route-map-marker--parking {
  background: #8b95a7 !important;
}


/* O Paço continua clicável,
   mas sem o contorno laranja anterior */

#route-suggested-detail-screen
.route-map-marker--paco {
  outline: 0 !important;
  outline-offset: 0 !important;
}


/* =========================================================
   LEGENDA
========================================================= */

#route-suggested-detail-screen
.route-map-guide {
  padding-top: 12px !important;
}

#route-suggested-detail-screen
.route-map-instruction {
  max-width: 350px !important;

  font-size: 13px !important;
}

#route-suggested-detail-screen
.route-map-legend {
  margin-top: 27px !important;
}

#route-suggested-detail-screen
.route-map-legend__item {
  font-size: 11px !important;
  font-weight: 700 !important;
}


/* =========================================================
   TEXTO A 125%
========================================================= */

.phone.is-text-large
#route-suggested-detail-screen
.route-map-start-button {
  font-size: 15px !important;
}

.phone.is-text-large
#route-suggested-detail-screen
.route-map-instruction {
  font-size: 16px !important;
}

.phone.is-text-large
#route-suggested-detail-screen
.route-map-legend__item {
  font-size: 13px !important;
}


/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {

  #route-suggested-detail-screen
  .route-map-back-button {
    top: max(
      78px,
      calc(env(safe-area-inset-top) + 61px)
    );

    left: 23px;

    width: 41px;
    height: 41px;
  }

  #route-suggested-detail-screen
  .route-map-back-button svg {
    width: 20px;
    height: 20px;
  }

  #route-suggested-detail-screen
  .route-map-settings-panel {
    top: max(
      78px,
      calc(env(safe-area-inset-top) + 61px)
    ) !important;

    right: 23px !important;

    width: 41px !important;
    height: 41px !important;
  }

  #route-suggested-detail-screen
  .route-map-settings-panel
  .settings-button {
    width: 41px !important;
    height: 41px !important;
  }

  #route-suggested-detail-screen
  .route-map-start-button {
    left: 23px;
    bottom: 14px;

    height: 38px;

    padding:
      0
      11px;

    font-size: 11px;
  }

}

/* =========================================================
   CAPELA — LAYOUT FINAL DO CABEÇALHO
========================================================= */

#capela-sao-miguel-screen
.chapel-top-layout {
  width: 100%;

  display: grid !important;

  grid-template-columns:
    minmax(0, 1fr)
    82px !important;

  grid-template-rows:
    auto
    45px !important;

  column-gap: 14px !important;
  row-gap: 18px !important;

  align-items: start !important;

  margin-bottom: 28px !important;
}


/* =========================================================
   PRIMEIRA LINHA — TÍTULO
========================================================= */

#capela-sao-miguel-screen
.chapel-heading {
  grid-column: 1 !important;
  grid-row: 1 !important;

  display: block !important;

  margin: 0 !important;
}


/* =========================================================
   PRIMEIRA LINHA — VOLTAR
========================================================= */

#capela-sao-miguel-screen
.chapel-return-button {
  grid-column: 2 !important;
  grid-row: 1 !important;

  width: 82px !important;
  min-width: 82px !important;

  min-height: 42px !important;

  margin: 0 !important;

  align-self: start !important;
  justify-self: stretch !important;
}


/* =========================================================
   SEGUNDA LINHA — DIREÇÕES + COMPRAR BILHETE
========================================================= */

#capela-sao-miguel-screen
.chapel-actions {
  grid-column: 1 !important;
  grid-row: 2 !important;

  display: flex !important;
  align-items: center !important;

  gap: 15px !important;

  width: auto !important;
  height: 45px !important;

  margin: 0 !important;
}


/* Os botões mantêm-se centrados na linha */

#capela-sao-miguel-screen
.chapel-action-button {
  height: 45px !important;
  min-height: 45px !important;
}


/* =========================================================
   SEGUNDA LINHA — SETAS
========================================================= */

#capela-sao-miguel-screen
.chapel-building-navigation {
  grid-column: 2 !important;
  grid-row: 2 !important;

  width: 82px !important;
  height: 45px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  gap: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  align-self: center !important;
  justify-self: stretch !important;
}


/* =========================================================
   BOTÕES DAS SETAS
========================================================= */

#capela-sao-miguel-screen
.chapel-building-navigation__button {
  width: 32px !important;
  height: 32px !important;

  flex: 0 0 32px !important;

  display: grid !important;
  place-items: center !important;

  padding: 0 !important;
  margin: 0 !important;

  border:
    1px solid
    rgba(247, 245, 240, 0.75) !important;

  border-radius: 50% !important;

  background:
    rgba(247, 245, 240, 0.16) !important;

  color: #f7f5f0 !important;

  text-decoration: none !important;
  cursor: pointer;

  transition:
    background 150ms ease,
    transform 150ms ease;
}


/* SETA INTERIOR */

#capela-sao-miguel-screen
.chapel-building-navigation__button svg {
  display: block !important;

  width: 18px !important;
  height: 18px !important;
}


/* =========================================================
   ECRÃS MAIS ESTREITOS
========================================================= */

@media (max-width: 374px) {

  #capela-sao-miguel-screen
  .chapel-top-layout {
    grid-template-columns:
      minmax(0, 1fr)
      74px !important;

    column-gap: 9px !important;
    row-gap: 15px !important;
  }


  #capela-sao-miguel-screen
  .chapel-return-button {
    width: 74px !important;
    min-width: 74px !important;
  }


  #capela-sao-miguel-screen
  .chapel-actions {
    gap: 9px !important;
  }


  #capela-sao-miguel-screen
  .chapel-building-navigation {
    width: 74px !important;
  }


  #capela-sao-miguel-screen
  .chapel-building-navigation__button {
    width: 29px !important;
    height: 29px !important;

    flex-basis: 29px !important;
  }


  #capela-sao-miguel-screen
  .chapel-building-navigation__button svg {
    width: 16px !important;
    height: 16px !important;
  }

}

/* =========================================================
   MEDIA — ECRÃ INTEIRO
========================================================= */

.media-fullscreen-button {
  position: absolute;
  right: 33px;
  bottom: 22px;
  z-index: 14;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(247, 245, 240, 0.72);
  border-radius: 9px;
  background: rgba(38, 63, 111, 0.86);
  color: #f7f5f0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 150ms ease,
    opacity 150ms ease,
    background 150ms ease;
}

.media-fullscreen-button svg {
  width: 20px;
  height: 20px;
}

.media-fullscreen-button:hover {
  background: rgba(38, 63, 111, 0.96);
}

.media-fullscreen-button:active {
  transform: scale(0.95);
}

.media-fullscreen-button:focus-visible {
  outline: 2px solid #f7f5f0;
  outline-offset: 3px;
}

.paco-page.settings-open .paco-gallery-fullscreen,
.chapel-page.settings-open .chapel-video-fullscreen {
  opacity: 0.2;
  pointer-events: none;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding:
    max(18px, env(safe-area-inset-top))
    14px
    max(18px, env(safe-area-inset-bottom));
  background: #111111;
  color: #ffffff;
  touch-action: none;
}

.media-lightbox:fullscreen,
.media-lightbox:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: #111111;
}

.media-lightbox__image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.media-lightbox__close,
.media-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(17, 17, 17, 0.46);
  color: #ffffff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.media-lightbox__close {
  top: max(18px, calc(env(safe-area-inset-top) + 8px));
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.media-lightbox__close svg {
  width: 24px;
  height: 24px;
}

.media-lightbox__nav {
  top: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.media-lightbox__nav svg {
  width: 21px;
  height: 21px;
}

.media-lightbox__nav--previous {
  left: 14px;
}

.media-lightbox__nav--next {
  right: 14px;
}

.media-lightbox__close:active,
.media-lightbox__nav:active {
  transform: scale(0.95);
}

.media-lightbox__nav:active {
  transform: translateY(-50%) scale(0.95);
}

.media-lightbox__close:focus-visible,
.media-lightbox__nav:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

body.media-lightbox-open {
  overflow: hidden !important;
}

#capela-sao-miguel-screen
.chapel-building-navigation__button:hover {
  background: rgba(247, 245, 240, 0.25) !important;
}

#capela-sao-miguel-screen
.chapel-building-navigation__button:active {
  transform: scale(0.94);
}

#capela-sao-miguel-screen
.chapel-building-navigation__button:focus-visible {
  outline: 2px solid #f7f5f0;
  outline-offset: 3px;
}

@media (max-width: 374px) {
  .media-fullscreen-button {
    right: 21px;
    bottom: 18px;
    width: 37px;
    height: 37px;
  }

  .media-fullscreen-button svg {
    width: 18px;
    height: 18px;
  }

  .media-lightbox__close {
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .media-lightbox__nav {
    width: 36px;
    height: 36px;
  }

  .media-lightbox__nav--previous {
    left: 8px;
  }

  .media-lightbox__nav--next {
    right: 8px;
  }
}

