/*
 * Responsive UI layer shared by every public language.
 * It intentionally loads after the page styles.
 */
.lang-switch {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.topbar-whatsapp {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .30);
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  box-shadow: 0 10px 28px rgba(5, 38, 42, .10);
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.topbar-whatsapp:hover,
.topbar-whatsapp:focus-visible {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .52);
  transform: translateY(-1px);
}

.topbar-whatsapp:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .28);
  outline-offset: 3px;
}

.topbar-whatsapp img {
  width: 23px;
  height: 23px;
  display: block;
}

@media (min-width: 981px) {
  .mainnav {
    gap: 9px;
  }

  .mainnav a {
    font-size: 12.5px;
    letter-spacing: .045em;
  }

  .mainnav .quote-link,
  .mainnav .client-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding-block: 0;
    border-bottom-width: 1px;
    line-height: 1;
  }

  .mainnav .quote-link {
    padding-inline: 16px;
    box-shadow: 0 8px 22px rgba(242, 127, 99, .18);
  }

  .mainnav .client-link {
    padding-inline: 12px;
    background: rgba(255, 255, 255, .085);
  }

  .topbar-whatsapp {
    width: 40px;
    height: 40px;
    box-shadow: 0 8px 20px rgba(5, 38, 42, .08);
  }

  .topbar-whatsapp img {
    width: 21px;
    height: 21px;
  }

  .lang-switch summary {
    min-width: 68px;
    min-height: 40px;
    padding-inline: 9px;
    font-size: 11.5px;
    letter-spacing: .045em;
  }

  .lang-icon {
    width: 15px;
    height: 15px;
  }

  .lang-chevron {
    width: 12px;
    height: 12px;
  }

  .quote-hero .btn {
    min-height: 44px;
    padding: 11px 20px;
    font-size: 12px;
    letter-spacing: .035em;
  }
}

@media (min-width: 981px) and (max-width: 1320px) {
  .navline {
    gap: 8px;
  }

  .mainnav {
    gap: 7px;
  }

  .mainnav a {
    font-size: 12.5px;
    letter-spacing: .045em;
  }

  .mainnav .quote-link {
    padding-inline: 15px;
  }

  .mainnav .client-link {
    padding-inline: 11px;
  }

  .topbar-whatsapp {
    width: 38px;
    height: 38px;
  }

  .topbar-whatsapp img {
    width: 21px;
    height: 21px;
  }

  .lang-switch summary {
    min-width: 68px;
  }
}

@media (max-width: 980px) {
  .topbar {
    background: rgba(27, 91, 96, .98);
    border-bottom-color: rgba(255, 255, 255, .16);
    box-shadow: 0 10px 34px rgba(10, 49, 53, .16);
  }

  .navline {
    height: 64px;
    min-height: 64px;
  }

  .mainnav {
    inset: 64px 0 0;
    gap: 0;
    justify-content: flex-start;
    padding: 18px max(20px, calc((100vw - var(--max)) / 2)) 110px;
    overflow-y: auto;
    background: rgba(31, 96, 101, .98);
    box-shadow: none;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .mainnav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 11px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    font-size: 13px;
    letter-spacing: .055em;
  }

  .mainnav a.active {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, .65);
  }

  .mainnav .quote-link,
  .mainnav .client-link {
    width: fit-content;
    min-height: 42px;
    padding: 9px 17px;
    border-bottom-width: 1px;
  }

  .mainnav .quote-link {
    margin-top: 14px;
  }

  .mainnav .client-link {
    margin-top: 9px;
  }

  .menu-btn {
    border-radius: 12px;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
  }

  .menu-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .6);
    transform: rotate(90deg);
  }

  html.mobile-menu-open,
  html.mobile-menu-open body {
    overflow: hidden;
  }
}

@media (max-width: 620px) {
  .wrap,
  .hero-inner,
  .quote-layout {
    width: calc(100% - 28px);
  }

  .navline {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 0;
  }

  .brand {
    order: 1;
    min-width: 0;
    gap: 8px;
  }

  .brand img {
    width: 84px;
    height: 48px;
  }

  .brand-text {
    display: block;
  }

  .brand strong {
    max-width: 140px;
    font-size: 10.5px;
  }

  .brand-text span {
    display: none;
  }

  .menu-btn {
    order: 4;
    width: 40px;
    height: 40px;
    margin-left: 0;
    border-radius: 12px;
    font-size: 22px;
  }

  .mainnav {
    inset: 64px 0 0;
    padding: 14px 20px calc(24px + env(safe-area-inset-bottom));
  }

  .mainnav a {
    min-height: 44px;
    padding-block: 10px;
  }

  .lang-switch {
    order: 3;
    width: auto;
    margin: 0;
    justify-content: initial;
    overflow: visible;
  }

  .topbar-whatsapp {
    order: 2;
    width: 40px;
    height: 40px;
    margin-left: auto;
  }

  .topbar-whatsapp img {
    width: 22px;
    height: 22px;
  }

  .lang-switch summary {
    min-width: 68px;
    min-height: 40px;
    padding-inline: 9px;
  }

  .lang-options {
    top: calc(100% + 9px);
    width: 184px;
  }

  .lang-options a {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    display: flex;
    flex: 0 0 auto;
    font-size: 13px;
  }

  .btn {
    min-height: 42px;
    gap: 8px;
    padding: 10px 16px;
    font-size: 11px;
    line-height: 1.15;
    letter-spacing: .035em;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(90deg, rgba(15, 63, 68, .32), rgba(15, 63, 68, .12)),
      linear-gradient(180deg, rgba(15, 63, 68, 0), rgba(15, 63, 68, .24)),
      var(--home-hero-photo, url("/photo/cover.jpg")) center / cover no-repeat;
  }

  .hero-inner {
    padding: 92px 0 24px;
    gap: 24px;
  }

  .hero h1 {
    font-size: clamp(39px, 11.2vw, 46px);
    line-height: .94;
  }

  .availability-search {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-top: 17px;
    padding: 10px;
    border-radius: 17px;
  }

  .availability-search-intro {
    padding: 0 2px;
  }

  .availability-field input {
    min-width: 0;
    min-height: 39px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .availability-search .btn {
    min-width: 106px;
    min-height: 39px;
    padding: 8px 16px;
    justify-self: start;
  }

  .hero p {
    margin-top: 18px;
    font-size: 15.5px;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 22px;
    gap: 9px;
    align-items: flex-start;
  }

  .hero-actions .btn,
  .quote-hero .btn {
    width: auto;
    max-width: 100%;
  }

  .hero-panels {
    display: flex;
    width: calc(100% + 14px);
    margin-right: -14px;
    padding: 0 14px 8px 0;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .hero-panels::-webkit-scrollbar {
    display: none;
  }

  .hero-panel {
    min-width: 0;
    min-height: 184px;
    padding: 18px;
    flex: 0 0 82%;
    scroll-snap-align: start;
    border-radius: 20px;
  }

  .hero-panel strong {
    font-size: 28px;
  }

  section {
    padding: 46px 0;
  }

  .section-head {
    gap: 12px;
    margin-bottom: 24px;
  }

  .section-head h2,
  .page-title h1,
  .story-text h2 {
    font-size: clamp(35px, 10vw, 40px);
    line-height: .98;
  }

  .section-head p,
  .page-title p,
  .story-text p {
    font-size: 15.5px;
    line-height: 1.55;
  }

  .story-layout,
  .showcase-grid,
  .info-grid,
  .blog-grid,
  .faq-grid,
  .chapter-grid {
    gap: 14px;
  }

  .story-photo {
    min-height: 290px;
    border-radius: 20px;
  }

  .story-text {
    padding: 6px 0 0;
  }

  .coral-note {
    padding: 16px 17px;
    border-left-width: 4px;
  }

  .showcase-card {
    min-height: 290px;
    padding: 20px;
    border-radius: 20px;
  }

  .showcase-card h3 {
    font-size: 36px;
  }

  .chapter-item {
    min-height: 0;
    padding: 19px;
  }

  .chapter-item span {
    margin-top: 9px;
  }

  .info-card,
  .faq-card,
  .blog-card {
    border-radius: 20px;
  }

  .info-card,
  .faq-card,
  .blog-card-body {
    padding: 19px;
  }

  .info-card h3,
  .faq-card h3,
  .blog-card h3 {
    font-size: 26px;
  }

  .info-card p,
  .faq-card p,
  .blog-card p {
    margin-block: 9px 16px;
  }

  .final-cta h2 {
    font-size: clamp(40px, 12vw, 54px);
    line-height: .96;
  }

  .final-cta p {
    font-size: 16px;
  }

  .quote-hero {
    min-height: 260px;
    padding: 92px 0 42px;
  }

  .quote-hero .wrap {
    gap: 18px;
  }

  .quote-hero h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .quote-hero p {
    margin-bottom: 0;
    font-size: 15.5px;
    line-height: 1.5;
  }

  .page-preventivo .quote-hero {
    min-height: 250px;
    padding: 92px 0 30px;
  }

  .page-preventivo .quote-layout {
    gap: 12px;
    padding-bottom: 18px;
  }

  .quote-main,
  .quote-aside {
    border-radius: 20px;
  }

  .quote-main,
  .quote-aside-body {
    padding: 16px;
  }

  .quote-aside-head {
    padding: 19px;
  }

  .page-preventivo .calendar-toolbar h2 {
    font-size: 28px;
  }

  .page-preventivo .day {
    min-height: 44px;
    padding: 5px;
  }

  .field-grid {
    gap: 8px;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 44px;
  }

  .gallery-grid {
    gap: 10px;
  }

  .gallery-tile,
  .gallery-tile.large,
  .gallery-tile.tall {
    min-height: 240px;
    border-radius: 18px;
  }

  .article-layout {
    width: calc(100% - 28px);
    padding: 42px 0 64px;
  }

  .article-cover {
    margin-bottom: 24px;
    border-radius: 20px;
  }

  .article-body {
    font-size: 17px;
    line-height: 1.7;
  }

  .article-cta {
    margin-top: 30px;
    padding: 20px;
    border-radius: 20px;
  }

  .article-cta-actions {
    align-items: flex-start;
  }

  .site-footer {
    padding: 34px 0;
  }

  .footer-grid {
    gap: 20px;
  }

  .footer-actions {
    justify-content: flex-start;
    gap: 9px;
  }

  .social-link {
    width: 42px;
    height: 42px;
  }

  .mobile-book {
    grid-template-columns: minmax(0, 1fr) auto auto;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 8px;
    gap: 6px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 17px;
  }

  .mobile-book .btn {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 10.5px;
    white-space: nowrap;
  }
  body {
    padding-bottom: 0;
  }

  body.page-preventivo {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 370px) {
  .hero-actions,
  .article-cta-actions {
    flex-direction: column;
  }

  .hero-panel {
    flex-basis: 88%;
  }

  .mobile-book .btn {
    padding-inline: 9px;
    font-size: 10px;
  }
}

/* Visible breadcrumb: aligned with the JSON-LD BreadcrumbList on public pages. */
.breadcrumb-shell {
  position: absolute;
  z-index: 12;
  inset: 82px 0 auto;
  color: #fff;
  pointer-events: none;
}

.breadcrumb-shell .wrap {
  display: flex;
  min-width: 0;
}

.breadcrumb-list {
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(10, 54, 58, .34);
  box-shadow: 0 8px 24px rgba(5, 38, 42, .12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  list-style: none;
  pointer-events: auto;
}

.breadcrumb-list li {
  min-width: 0;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: .025em;
  white-space: nowrap;
}

.breadcrumb-list a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

.breadcrumb-list a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb-list a:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(255, 255, 255, .88);
  outline-offset: 3px;
}

.breadcrumb-separator {
  margin: 0 8px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, .52);
  font-size: 16px;
  font-weight: 400;
}

.breadcrumb-current {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-weight: 850;
  text-overflow: ellipsis;
}

.breadcrumb-shell + main .quote-hero {
  padding-top: 140px;
}

@media (max-width: 980px) {
  .breadcrumb-shell {
    top: 71px;
  }

  .breadcrumb-list {
    padding: 6px 10px;
  }

  .breadcrumb-list li {
    font-size: 11.5px;
  }

  .breadcrumb-separator {
    margin-inline: 7px;
  }

  .breadcrumb-shell + main .quote-hero,
  .page-preventivo .breadcrumb-shell + main .quote-hero {
    padding-top: 122px;
  }
}

@media (max-width: 480px) {
  .breadcrumb-list li:first-child a {
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 440px) {
  .brand-text {
    display: none;
  }

  .brand img {
    width: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-btn,
  .topbar-whatsapp {
    transition: none;
  }

  .hero-panels {
    scroll-behavior: auto;
  }
}

@media (max-width: 980px) {
  #bookingWizard {
    scroll-margin-top: 84px;
  }

  .wizard-step-grid,
  .wizard-step-three {
    grid-template-columns: 1fr;
  }

  .wizard-step-grid .quote-aside {
    position: static;
  }

  .wizard-payment-summary {
    position: static;
  }

  .wizard-choice-grid {
    grid-template-columns: 1fr;
  }

  .wizard-choice-grid .choice {
    min-height: 0;
  }

  .wizard-choice-grid .choice-text {
    min-height: 0;
  }

  .choice-detail {
    margin-top: 12px;
  }
}

@media (max-width: 620px) {
  .page-preventivo .quote-hero {
    min-height: 210px;
    padding-block: 88px 24px;
  }

  .page-preventivo .quote-hero h1 {
    font-size: 32px;
    line-height: 1;
  }

  .page-preventivo .quote-hero p {
    font-size: 14px;
    line-height: 1.42;
  }

  .page-preventivo .steps {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
  }

  .page-preventivo .step {
    min-width: 0;
    gap: 6px;
    padding-top: 7px;
    font-size: 9px;
    letter-spacing: .035em;
  }

  .page-preventivo .step-number {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .page-preventivo .quote-layout {
    width: calc(100% - 20px);
    padding-top: 18px;
  }

  .wizard-surface,
  .wizard-contact,
  .wizard-payment-summary {
    padding: 16px;
    border-radius: 20px;
  }

  .wizard-panel-head {
    margin-bottom: 16px;
  }

  .wizard-panel-head h2 {
    font-size: 29px;
  }

  .wizard-panel-head p {
    font-size: 14px;
    line-height: 1.45;
  }

  .wizard-choice-grid {
    margin-block: 12px;
  }

  .wizard-choice-grid .choice {
    padding: 14px;
    border-radius: 16px;
  }

  .wizard-choice-grid .choice-title {
    font-size: 16px;
  }

  .choice-amount {
    margin-block: 8px 5px;
    font-size: 22px !important;
  }

  .wizard-summary {
    margin-top: 14px;
    padding: 14px;
  }

  .wizard-actions {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 8px;
    margin-top: 14px;
  }

  .wizard-actions .btn {
    min-width: 0;
    padding-inline: 10px;
  }

  .wizard-payment-summary h3 {
    margin-top: 0;
    font-size: 20px;
  }

  .page-preventivo .quote-aside-head h2 {
    font-size: 29px;
  }

  .page-preventivo .quote-aside-head p {
    margin-bottom: 0;
    font-size: 13px;
  }

  .page-preventivo .calendar-toolbar h2 {
    font-size: 25px;
  }

  .page-preventivo .month-name {
    font-size: 12px;
  }

  .page-preventivo .day strong {
    font-size: 13px;
  }

  .page-preventivo .grand {
    font-size: 20px;
  }

  .page-preventivo .total-row {
    font-size: 13px;
  }

  .page-preventivo .faq-section {
    padding-block: 34px;
  }

  .page-preventivo .faq-section .section-head {
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .page-preventivo .faq-section .section-head h2 {
    font-size: 27px;
  }

  .page-preventivo .faq-section .section-head p {
    display: none;
  }

  .page-preventivo .faq-grid {
    gap: 8px;
  }

  .page-preventivo .faq-section details.faq-card {
    border-radius: 14px;
  }

  .page-preventivo .faq-section details.faq-card summary {
    padding: 13px 14px;
  }

  .page-preventivo .faq-section details.faq-card h3 {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 850;
  }

  .page-preventivo .faq-section details.faq-card summary::after {
    width: 25px;
    height: 25px;
    font-size: 17px;
  }

  .page-preventivo .faq-section details.faq-card p {
    margin: 0;
    padding: 0 14px 14px;
    font-size: 13px;
    line-height: 1.5;
  }

  .page-preventivo .mobile-book {
    grid-template-columns: minmax(0,1fr) auto auto;
    border: 1px solid rgba(23,54,56,.10);
    border-radius: 20px;
  }

  .page-preventivo .mobile-book .btn {
    min-height: 48px;
    padding-inline: 13px;
  }

  .page-preventivo #mobilePayBtn {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}
