:root {
  --muttas-hero-fill: clamp(720px, 100svh, 1440px);
  --muttas-hero-tablet: clamp(700px, 94svh, 920px);
  --muttas-hero-mobile: clamp(540px, 78svh, 660px);
  --muttas-nav-wide: min(1700px, calc(100vw - 96px));
  --muttas-nav-comfort: min(1500px, calc(100vw - 44px));
  --muttas-hero-wide: var(--muttas-nav-wide);
  --muttas-hero-comfort: var(--muttas-nav-comfort);
  --muttas-page-wide: var(--muttas-nav-wide);
  --muttas-page-comfort: var(--muttas-nav-comfort);
}

body.muttas-about .site-footer.footer-redesign .footer-identity,
body.muttas-about .site-footer.footer-redesign .footer-grid,
body.muttas-about .site-footer.footer-redesign .footer-bottom {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

@media (min-width: 1501px) {
  .nav-stack {
    width: var(--muttas-nav-wide) !important;
    max-width: calc(100vw - 48px) !important;
  }

  body.scrolled .nav-stack {
    width: var(--muttas-nav-wide) !important;
    max-width: calc(100vw - 48px) !important;
  }

  .desktop-nav {
    gap: clamp(24px, 2.2vw, 40px);
  }

  .nav-wing {
    width: calc(50% - clamp(72px, 5vw, 88px)) !important;
  }

  .nav-wing.left {
    padding-left: clamp(18px, 1.2vw, 24px);
    padding-right: clamp(42px, 3.6vw, 64px);
  }

  .nav-wing.right {
    padding-left: clamp(42px, 3.6vw, 64px);
    padding-right: clamp(18px, 1.2vw, 24px);
  }

  .nav-list {
    gap: clamp(4px, 0.5vw, 8px);
  }

  .nav-link {
    gap: 8px;
    padding: 7px clamp(9px, 0.75vw, 13px);
  }

  .nav-label {
    font-size: clamp(0.78rem, 0.72vw, 0.84rem);
  }

  :is(
    .service-hero-inner,
    .airport-hero-inner,
    .ferry-hero-inner,
    .seabus-hero-inner,
    .parking-hero-inner,
    .port-hero-inner,
    .cardpoints-container,
    .fillpoints-container,
    .carddocs-container,
    .fare-container,
    .news-hero-grid,
    .news-detail-hero-inner,
    .personnel-hero-copy,
    .tenders-hero-copy,
    .tender-list,
    .personnel-list
  ) {
    width: var(--muttas-hero-wide) !important;
    max-width: calc(100vw - 96px) !important;
  }

  :is(
    .wrap > .section-block,
    .service-intro,
    .service-districts,
    .service-process,
    .service-gallery,
    .service-balance,
    .service-cta,
    body.muttas-airport .airport-page-main > .section-block:not(.airport-hero),
    body.muttas-ferry .ferry-page-main > .section-block:not(.ferry-hero),
    body.muttas-seabus .seabus-page-main > .section-block:not(.seabus-hero),
    body.muttas-port .section-block,
    .airport-command,
    .airport-premium-grid,
    .airport-flow,
    .airport-contact,
    .airport-cta,
    .ferry-overview,
    .ferry-showcase,
    .ferry-process,
    .ferry-live,
    .seabus-lines,
    .seabus-routes,
    .seabus-showcase,
    .seabus-president,
    .seabus-board,
    .seabus-live,
    .parking-container,
    .parking-section > .parking-container,
    .template-statement-inner,
    .template-official,
    .cardpoints-container,
    .fillpoints-container,
    .carddocs-container,
    .fare-container,
    .balance-card-shell,
    .personnel-list,
    .tender-list,
    .about-intro,
    .about-sustainability-inner,
    .about-section-anchor,
    .about-section,
    .about-services,
    .about-mvv,
    .about-history,
    .about-management,
    .about-activities,
    .about-approach,
    .about-documents,
    .about-board,
    .about-contact,
    .news-container,
    .news-detail-layout,
    .news-related-section > .news-container,
    .contact-section
  ) {
    width: var(--muttas-page-wide) !important;
    max-width: calc(100vw - 96px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  .nav-stack {
    width: var(--muttas-nav-comfort) !important;
    max-width: calc(100vw - 32px) !important;
  }

  body.scrolled .nav-stack {
    width: var(--muttas-nav-comfort) !important;
    max-width: calc(100vw - 32px) !important;
  }

  .nav-wing {
    width: calc(50% - clamp(70px, 6vw, 84px)) !important;
  }

  :is(
    .service-hero-inner,
    .airport-hero-inner,
    .ferry-hero-inner,
    .seabus-hero-inner,
    .parking-hero-inner,
    .port-hero-inner,
    .cardpoints-container,
    .fillpoints-container,
    .carddocs-container,
    .fare-container,
    .news-hero-grid,
    .news-detail-hero-inner,
    .personnel-hero-copy,
    .tenders-hero-copy,
    .tender-list,
    .personnel-list
  ) {
    width: var(--muttas-hero-comfort) !important;
    max-width: calc(100vw - 44px) !important;
  }

  :is(
    .wrap > .section-block,
    .service-intro,
    .service-districts,
    .service-process,
    .service-gallery,
    .service-balance,
    .service-cta,
    body.muttas-airport .airport-page-main > .section-block:not(.airport-hero),
    body.muttas-ferry .ferry-page-main > .section-block:not(.ferry-hero),
    body.muttas-seabus .seabus-page-main > .section-block:not(.seabus-hero),
    body.muttas-port .section-block,
    .airport-command,
    .airport-premium-grid,
    .airport-flow,
    .airport-contact,
    .airport-cta,
    .ferry-overview,
    .ferry-showcase,
    .ferry-process,
    .ferry-live,
    .seabus-lines,
    .seabus-routes,
    .seabus-showcase,
    .seabus-president,
    .seabus-board,
    .seabus-live,
    .parking-container,
    .parking-section > .parking-container,
    .template-statement-inner,
    .template-official,
    .cardpoints-container,
    .fillpoints-container,
    .carddocs-container,
    .fare-container,
    .balance-card-shell,
    .personnel-list,
    .tender-list,
    .about-intro,
    .about-sustainability-inner,
    .about-section-anchor,
    .about-section,
    .about-services,
    .about-mvv,
    .about-history,
    .about-management,
    .about-activities,
    .about-approach,
    .about-documents,
    .about-board,
    .about-contact,
    .news-container,
    .news-detail-layout,
    .news-related-section > .news-container,
    .contact-section
  ) {
    width: var(--muttas-page-comfort) !important;
    max-width: calc(100vw - 44px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .nav-stack,
  body.scrolled .nav-stack {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
  }

  .nav-wing {
    width: calc(50% - 72px) !important;
  }

  .nav-link {
    gap: 5px;
    padding-inline: 6px;
  }

  .nav-label {
    font-size: 0.7rem;
  }

  :is(
    .service-hero-inner,
    .airport-hero-inner,
    .ferry-hero-inner,
    .seabus-hero-inner,
    .parking-hero-inner,
    .port-hero-inner,
    .cardpoints-container,
    .fillpoints-container,
    .carddocs-container,
    .fare-container,
    .news-hero-grid,
    .news-detail-hero-inner,
    .personnel-hero-copy,
    .tenders-hero-copy,
    .tender-list,
    .personnel-list
  ) {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
  }

  :is(
    .wrap > .section-block,
    .service-intro,
    .service-districts,
    .service-process,
    .service-gallery,
    .service-balance,
    .service-cta,
    body.muttas-airport .airport-page-main > .section-block:not(.airport-hero),
    body.muttas-ferry .ferry-page-main > .section-block:not(.ferry-hero),
    body.muttas-seabus .seabus-page-main > .section-block:not(.seabus-hero),
    body.muttas-port .section-block,
    .airport-command,
    .airport-premium-grid,
    .airport-flow,
    .airport-contact,
    .airport-cta,
    .ferry-overview,
    .ferry-showcase,
    .ferry-process,
    .ferry-live,
    .seabus-lines,
    .seabus-routes,
    .seabus-showcase,
    .seabus-president,
    .seabus-board,
    .seabus-live,
    .parking-container,
    .parking-section > .parking-container,
    .template-statement-inner,
    .template-official,
    .cardpoints-container,
    .fillpoints-container,
    .carddocs-container,
    .fare-container,
    .balance-card-shell,
    .personnel-list,
    .tender-list,
    .about-intro,
    .about-sustainability-inner,
    .about-section-anchor,
    .about-section,
    .about-services,
    .about-mvv,
    .about-history,
    .about-management,
    .about-activities,
    .about-approach,
    .about-documents,
    .about-board,
    .about-contact,
    .news-container,
    .news-detail-layout,
    .news-related-section > .news-container,
    .contact-section
  ) {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 1025px) {
  body.scrolled .desktop-nav {
    gap: clamp(22px, 2vw, 36px) !important;
  }

  body.scrolled .nav-wing {
    width: calc(50% - clamp(78px, 5.6vw, 92px)) !important;
  }

  body.scrolled .nav-list {
    gap: clamp(3px, 0.45vw, 7px) !important;
  }

  body.scrolled .nav-link {
    gap: 7px !important;
    padding: 7px clamp(8px, 0.72vw, 12px) !important;
  }

  body.scrolled .nav-label {
    font-size: clamp(0.76rem, 0.72vw, 0.84rem) !important;
  }

  body.scrolled .nav-link .icon-box {
    width: 28px !important;
    height: 28px !important;
    border-radius: 11px !important;
  }

  body.scrolled .dropdown-host {
    margin-top: 6px !important;
  }

  body.scrolled .mega-card {
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
    border-radius: 30px;
  }

  body.scrolled .mega-side {
    min-height: 300px;
    padding: 22px;
    border-radius: 26px;
  }

  body.scrolled .mega-badge {
    padding: 7px 12px;
    font-size: 0.75rem;
  }

  body.scrolled .mega-side h3 {
    font-size: clamp(1.48rem, 1.55vw, 1.78rem);
  }

  body.scrolled .mega-side p,
  body.scrolled .mega-main > p {
    font-size: 0.9rem;
    line-height: 1.62;
  }

  body.scrolled .mega-main h4 {
    font-size: clamp(1.36rem, 1.35vw, 1.58rem);
  }

  body.scrolled .panel-grid {
    gap: 12px;
  }

  body.scrolled .panel-link {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    min-height: 92px;
    padding: 14px;
    border-radius: 20px;
  }

  body.scrolled .panel-link strong {
    font-size: 0.92rem;
    line-height: 1.25;
  }

  body.scrolled .panel-link span:last-child {
    font-size: 0.84rem;
    line-height: 1.48;
  }

  body.scrolled .panel-arrow {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .hero.hero-photo {
    height: var(--muttas-hero-fill) !important;
    min-height: var(--muttas-hero-fill) !important;
  }

  .template-statement {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  :is(
    .service-hero,
    .airport-hero,
    .ferry-hero,
    .seabus-hero,
    .parking-hero,
    .port-hero,
    .news-hero,
    .news-detail-hero,
    .events-hero,
    .contact-hero,
    .tenders-hero,
    .personnel-hero,
    .balance-hero,
    .carddocs-hero,
    .cardpoints-hero,
    .fillpoints-hero,
    .fare-hero,
    .about-tribute
  ) {
    min-height: var(--muttas-hero-fill) !important;
  }

  :is(
    .service-hero,
    .airport-hero,
    .ferry-hero,
    .seabus-hero,
    .parking-hero,
    .port-hero,
    .news-hero,
    .news-detail-hero,
    .cardpoints-hero,
    .fillpoints-hero,
    .carddocs-hero,
    .fare-hero,
    .personnel-hero,
    .tenders-hero
  ) {
    display: grid;
    align-items: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: clamp(190px, 18svh, 250px) !important;
    padding-bottom: clamp(74px, 10svh, 118px) !important;
  }

  :is(
    .service-hero-inner,
    .airport-hero-inner,
    .ferry-hero-inner,
    .seabus-hero-inner,
    .parking-hero-inner,
    .port-hero-inner,
    .news-hero-grid,
    .news-detail-hero-inner,
    .cardpoints-hero-grid,
    .fillpoints-hero-inner,
    .carddocs-hero-grid,
    .fare-hero-grid,
    .personnel-hero-copy,
    .tenders-hero-copy
  ) {
    width: 100%;
  }

  .news-detail-layout {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    justify-content: stretch !important;
  }

  .news-detail-article {
    width: 100%;
  }

  .news-detail-content p {
    max-width: 980px !important;
  }
}

/* Keep both desktop menu wings within their space around the centered logo. */
@media (min-width: 1280px) {
  .desktop-nav {
    --desktop-link-padding: clamp(3px, calc(2vw - 22.6px), 12px);
    --desktop-link-gap: clamp(4px, calc(0.8vw - 6.24px), 8px);
    --desktop-icon-size: clamp(22px, calc(2.5vw - 10px), 28px);
  }

  .nav-wing,
  body.scrolled .nav-wing {
    width: calc(50% - var(--logo-slot) / 2 - 12px) !important;
    padding-inline: 8px !important;
  }

  .nav-list,
  body.scrolled .nav-list {
    width: 100%;
    flex: 1 1 auto;
    justify-content: space-between;
    gap: clamp(2px, calc(1vw - 10.8px), 8px) !important;
  }

  .nav-link,
  body.scrolled .nav-link {
    gap: var(--desktop-link-gap) !important;
    padding: 7px var(--desktop-link-padding) !important;
  }

  .nav-label,
  body.scrolled .nav-label {
    font-size: clamp(0.76rem, 0.72vw, 0.84rem) !important;
  }

  .nav-link .icon-box,
  body.scrolled .nav-link .icon-box {
    width: var(--desktop-icon-size) !important;
    height: var(--desktop-icon-size) !important;
    flex: 0 0 var(--desktop-icon-size);
  }
}

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: minmax(148px, 44vw) minmax(0, 1fr) 46px !important;
  }

  .mobile-brand,
  .brand-center.mobile-brand {
    width: clamp(150px, 42vw, 210px) !important;
    height: auto !important;
    min-height: 52px !important;
    display: grid !important;
    place-items: center start !important;
    padding: 0 !important;
    margin-right: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .mobile-brand::before,
  .mobile-brand::after,
  .brand-center.mobile-brand::before,
  .brand-center.mobile-brand::after {
    content: none !important;
    display: none !important;
  }

  .mobile-brand img,
  .brand-center.mobile-brand img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 58px !important;
    object-fit: contain !important;
    object-position: left center !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
  }
}

@media (min-width: 561px) and (max-width: 1024px) {
  .hero.hero-photo {
    height: var(--muttas-hero-tablet) !important;
    min-height: var(--muttas-hero-tablet) !important;
  }

  :is(
    .service-hero,
    .airport-hero,
    .ferry-hero,
    .seabus-hero,
    .parking-hero,
    .port-hero,
    .news-hero,
    .news-detail-hero,
    .events-hero,
    .contact-hero,
    .tenders-hero,
    .personnel-hero,
    .balance-hero,
    .carddocs-hero,
    .cardpoints-hero,
    .fillpoints-hero,
    .fare-hero,
    .about-tribute
  ) {
    min-height: var(--muttas-hero-tablet) !important;
  }
}

@media (max-width: 560px) {
  .hero.hero-photo {
    height: var(--muttas-hero-mobile) !important;
    min-height: var(--muttas-hero-mobile) !important;
  }

  :is(
    .tenders-hero,
    .personnel-hero,
    .balance-hero,
    .carddocs-hero,
    .cardpoints-hero,
    .fillpoints-hero,
    .fare-hero
  ) {
    min-height: auto !important;
  }

  :is(
    .service-hero,
    .airport-hero,
    .ferry-hero,
    .seabus-hero,
    .parking-hero,
    .port-hero,
    .news-hero,
    .news-detail-hero,
    .events-hero,
    .contact-hero,
    .about-tribute
  ) {
    min-height: var(--muttas-hero-mobile) !important;
  }

  body.muttas-news-page .news-hero {
    min-height: clamp(470px, 62svh, 540px) !important;
    padding-bottom: clamp(30px, 5svh, 44px) !important;
  }

  body.muttas-news-page .news-hero-grid {
    align-content: start !important;
  }
}

.hero-mobile-pagination { display: none; }

/* A slide with its own mobile artwork must follow that artwork's natural ratio. */
@media (max-width: 680px) {
  .hero.hero-photo.has-mobile-media.hero-media-only {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-bottom: 0;
  }

  .hero.hero-photo.has-mobile-media.hero-media-only .hero-arrow {
    display: none;
  }

  /* Small indicators sit in the page spacing, outside the uncropped artwork. */
  .hero.hero-photo.has-mobile-media.hero-media-only + .hero-mobile-pagination {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin: 2px auto -10px;
    width: fit-content;
    max-width: 100%;
  }

  .hero-mobile-pagination .hero-dot {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
  }

  .hero-mobile-pagination .hero-dot::before {
    inset: 50% auto auto 50%;
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: #9cafc0;
    transform: translate(-50%, -50%);
    transition: width .2s ease, background .2s ease;
  }

  .hero-mobile-pagination .hero-dot.active::before { width: 22px; background: #174b8e; }
  .hero-mobile-pagination .hero-dot:hover::before { background: #174b8e; }
  .hero-mobile-pagination .hero-dot:focus-visible { outline: 2px solid #174b8e; outline-offset: -2px; }
  @media (prefers-reduced-motion: reduce) {
    .hero-mobile-pagination .hero-dot::before { transition: none; }
  }

  /* Blend mobile artwork into the floating header while retaining its natural ratio. */
  .hero.hero-photo.has-mobile-media.hero-media-only.has-mobile-image {
    padding-top: calc(var(--hero-mobile-header-space, 104px) - 20px);
  }

  .hero.hero-photo.has-mobile-media.hero-media-only.has-mobile-image::before {
    display: block;
    inset: -16px -16px auto;
    height: calc(var(--hero-mobile-header-space, 104px) + 48px);
    z-index: 1;
    background-image: var(--hero-mobile-backdrop);
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(14px);
    -webkit-mask-image: linear-gradient(#000 0%, #000 60%, transparent 100%);
    mask-image: linear-gradient(#000 0%, #000 60%, transparent 100%);
    pointer-events: none;
  }
}

.hero-btn .icon-box i {
  font-size: 14px;
  line-height: 1;
}
}
