/* ============================================================================
   Brand port from servizioo.com's design system ("Spectre" direction,
   webroot/css/design.css there). Only the neutral/ink tokens relevant to
   this site's existing chrome (nav, footer, buttons, headings) are ported —
   not the six service-hue accents or the bespoke mv-* component classes,
   which belong to servizioo.com's booking UI and don't apply to a
   cancellation/support portal. Source values: servizioo.com commit
   c329efd "Update logos, site design, connected space design, urls".
   Overrides win by load order (this file loads after style.min.css). */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@75..125,400..700&family=Figtree:wght@300;400;500;600;700&display=swap');

:root {
    --mv-paper:  #F4F2ED;
    --mv-card-2: #EFEDE6;
    --mv-ink:    #23262A;
    --mv-deep:   #191C1F;
    --mv-muted:  #5E646B;
    --mv-line:   #DAD7CF;
    /* The one saturated accent kept from the pre-rebrand blue theme (matches
       the #00329d already hardcoded for #footer-section .btn-secondary in
       the base stylesheet) — used only on the site footer and the
       bottom-of-page "Contact" CTA, which otherwise read as too flat/dark
       sitting right next to each other in the same near-black neutral. */
    --mv-accent: #00329d;
}

body {
    font-family: 'Figtree', sans-serif;
}

h1, h2, h3, h4, h5, h6, .p-title {
    font-family: 'Archivo', sans-serif;
}

.navbar {
    background: var(--mv-deep) !important;
    /* One of the base stylesheet's two competing .navbar rules sets
       overflow:hidden (leftover from clipping the old hero background image
       bleed) — with no hero image left to clip, it just cuts off the
       language-switcher dropdown menu instead. */
    overflow: visible !important;
}

/* The logo icon has no CSS-constrained size anywhere in the base stylesheet —
   it was relying on the old 46x45 SVG's own intrinsic width/height attributes.
   Servizioo's real logo.svg is a 100x100 viewBox, so without this it rendered
   at full size and blew out the navbar's height (the "oversized logo/navbar"
   issue): the resulting taller navbar then covered the top of the hero
   heading below it, since #head-section's padding-top is a fixed pixel value
   tuned for the original navbar height. */
.navbar__brand__logo__icon {
    width: 40px;
    height: 40px;
}

/* Full color-ramp remap: every Bootstrap-derived class that resolved to the
   old blue family (--bs-primary #1659f2, --bs-info #062f8b, --bs-dark
   #170765, --bs-light #f4f4ff, plus the bg/text/border/link/btn variants
   generated from them) is repointed at the servizioo neutral tokens. */
.btn-primary,
.btn-dark,
.btn.active {
    color: #fff;
    background-color: var(--mv-ink) !important;
    border-color: var(--mv-ink) !important;
}

.btn-info {
    color: #fff;
    background-color: var(--mv-deep) !important;
    border-color: var(--mv-deep) !important;
}

.btn-light {
    color: var(--mv-ink) !important;
    background-color: var(--mv-card-2, #EFEDE6) !important;
    border-color: var(--mv-card-2, #EFEDE6) !important;
}

.btn-outline-primary,
.btn-outline-dark,
.link-primary,
.link-dark,
.text-primary,
.text-primary-800,
.border-primary,
.border-dark,
.nav-link.active,
.page-link.active,
.btn-secondary {
    color: var(--mv-ink) !important;
    border-color: var(--mv-ink) !important;
}

.btn-outline-info,
.link-info,
.border-info {
    color: var(--mv-deep) !important;
    border-color: var(--mv-deep) !important;
}

.btn-outline-light,
.link-light,
.border-light {
    color: var(--mv-card-2, #EFEDE6) !important;
    border-color: var(--mv-card-2, #EFEDE6) !important;
}

.bg-primary {
    background-color: var(--mv-ink) !important;
}

.bg-primary-600,
.footer {
    background-color: var(--mv-accent) !important;
}

.bg-primary-700,
.bg-primary-800 {
    background-color: var(--mv-deep) !important;
}

.bg-primary-100,
.p-title {
    background-color: var(--mv-card-2, #EFEDE6) !important;
}

.p-title {
    color: var(--mv-ink) !important;
}

.page-link,
.nav-link,
.progress-bar,
.bullet-list__item::before {
    background-color: var(--mv-ink) !important;
    color: #fff;
}

/* The home page's hero used a stock circuit-board/office photo
   (img/head-bg.png) plus a floating shape overlay (img/head-bg-shapes.svg) —
   layout and imagery straight from the old template, untouched by the
   earlier color-only pass. Servizioo's real design has no stock photography;
   its hero/footer both use the same deep graphite (see design.css's own
   comment: "--mv-deep: deeper graphite — footer, hero, inverted panels").
   Dropping the photo and matching that is more faithful than recoloring a
   photo that doesn't belong in this design system at all. */
.head::before,
.head::after {
    display: none !important;
}

/* Same leftover shape-overlay pattern as .head::after, on the footer CTA
   section instead of the hero — missed in the earlier pass. Shows up as
   faint ghost squares behind the "01/02/03" contact numerals. #head-section
   (the inner pages' hero, distinct from .head on the home page) carries the
   identical leftover ghost-square overlay too — same fix. */
#footer-section::after,
#head-section::after {
    display: none !important;
}

/* Section dividers, replaced: the smooth wave curve (img/head-section-bg.svg,
   img/footer-section-bg.svg) is swapped for a sharp diagonal cut via
   clip-path — the same angular, "squared" geometry already used for the
   photo corner-cuts and L-brackets, so the whole site reads as one
   consistent shape language instead of mixing a soft curve into an
   otherwise angular design. */
#head-section::before,
#footer-section::before {
    display: none !important;
}

#head-section {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 0 100%);
    padding-bottom: 64px !important;
}

#footer-section {
    clip-path: polygon(0 44px, 100% 0, 100% 100%, 0 100%);
    padding-top: 64px !important;
}

.head {
    background-color: var(--mv-deep);
}

/* Section color-blocking, varied rather than uniform dark/white/white/dark
   on every page: the page background is a warm paper tint instead of flat
   white (so .bg-white cards actually contrast instead of blending into an
   identical white page), and alternates with a slightly deeper card tint on
   specific recurring sections so pages don't all read the same. */
body {
    background-color: var(--mv-paper) !important;
}

.bg-white {
    background-color: #fff !important;
}

/* Applied to one recurring section on only some pages (about, cancellation)
   so the site doesn't repeat an identical light/dark rhythm on every page —
   deliberately not applied everywhere. */
.section-tint {
    background-color: var(--mv-card-2, #EFEDE6);
}

/* Photo treatment: the four stock photos (about.png, about-2.png,
   termination.png, what-is-that.png, reused across pages) were full-colour
   generic corporate stock photography — clashing with Servizioo's restrained
   graphite/paper palette even after the surrounding chrome was recolored.
   Desaturating to monochrome (no hue tint — the ink palette is itself
   near-neutral, so a sepia/hue-rotate tint just muddies the photo) reads as
   deliberate editorial photography instead of leftover template filler.
   The scoped selector only ever matches these four content photos — icons
   (class="icon") and the logo live outside .align-cols/.pattern. */
.align-cols img,
.pattern img {
    filter: grayscale(1) contrast(1.1) brightness(0.95);
    transition: filter .25s ease;
}

/* CSS mask: a large, percentage-based diagonal facet cut on two opposite
   corners — deliberately big enough to read as a faceted shape at a glance,
   not a subtle nick. Percentage (not a fixed px) so the facet stays
   proportional whatever the image's rendered size. Geometric cut, not a
   rounded blob, to match the brand's "squared" geometry. */
.align-cols img,
.pattern img {
    --cut: 15%;
    clip-path: polygon(
        var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)),
        calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)
    );
}

/* Corner decoration, replaced: the old .pattern::before/::after were solid
   filled squares (just recolored last pass, same shape — not an obvious
   change). These are now open right-angle brackets, in a single accent hue
   pulled from servizioo.com's own six-service palette (the "flights" blue)
   as a deliberate spot-color accent against the otherwise monochrome
   photography. Raised above the photo (z-index positive, was -1) so each
   bracket actually sits in the facet notch the clip-path just cut away,
   instead of hiding behind the image edge. */
.pattern::before,
.pattern::after {
    background-image: none !important;
    width: 96px;
    height: 96px;
    border: 6px solid #2E6FA8;
    z-index: 3;
    opacity: 1;
}

.pattern-left-top::before {
    border-right: none;
    border-bottom: none;
}

.pattern-right-top::after {
    border-left: none;
    border-bottom: none;
}

.pattern-left-bottom::before {
    border-right: none;
    border-top: none;
}

.pattern-right-bottom::after {
    border-left: none;
    border-top: none;
}

/* The white card shadow still carried the old brand's navy tint. */
.bg-white {
    box-shadow:
        0 -2px 99px rgba(35, 38, 42, .07),
        0 -.83555px 41.3598px rgba(35, 38, 42, .05),
        0 -.44673px 22.1129px rgba(35, 38, 42, .04),
        0 -.25043px 12.3963px rgba(35, 38, 42, .035),
        0 -.133px 6.5836px rgba(35, 38, 42, .028),
        0 -.05535px 2.73958px rgba(35, 38, 42, .02) !important;
}

h1 {
    font-size: 50px;
}

h3 {
    font-size: 30px;
}

.navbar__nav {
    margin: 0 20px;
}

@media (max-width: 1399.98px) {
    h1 {
        font-size: 47px;
    }

    h3 {
        font-size: 28px;
    }
}

@media (max-width: 1199.98px) {
    h1 {
        font-size: 44px;
    }

    .navbar__nav__item {
        margin-right: 15px;
    }
}

@media (max-width: 1191.98px) {
    h3 {
        font-size: 28px;
    }
}

@media (max-width: 991.98px) {
    h1 {
        font-size: 34px;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 38px;
    }

    h3 {
        font-size: 27px;
    }
}

@media (max-width: 575.98px) {
    .navbar__brand__logo__name {
        font-size: 18px;
    }

    h1 {
        font-size: 27px;
    }

    h3 {
        font-size: 21px;
    }

    h4 {
        font-size: 20px;
    }

    h5 {
        font-size: 16px;
    }
    p b a {
        font-size: 19px;
    }
}

@media (min-width: 991.98px) {
    .navbar__brand,
    .navbar__brand__logo {
        width: intrinsic;
        width: -moz-max-content;
        width: -webkit-max-content;
    }
}

/* Replaces the home page's old two-card layout (one white box, one blue box)
   with minimal horizontal action rows — no card chrome, just icon/text/button
   per row, separated by a hairline. Sits on the dark hero (--mv-deep), so
   text and the divider use light/translucent-white values rather than the
   light-surface tokens. */
.action-rows {
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    flex-wrap: wrap;
}

.action-row__text {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 420px;
}

.action-row__text .icon {
    flex-shrink: 0;
}

/* Replaces the small pictogram icons (box/envelope) with big stylized
   numerals — Archivo's wide display axis (loaded but unused until now) plus
   the same accent blue as the photo corner brackets, so it reads as the
   same signature spot-color system rather than a generic icon swap. */
.action-row__num {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-stretch: 125%;
    font-size: 44px;
    line-height: 1;
    color: #2E6FA8;
    flex-shrink: 0;
    min-width: 64px;
}

.footer-contact__num {
    display: block;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-stretch: 125%;
    font-size: 40px;
    line-height: 1;
    color: #2E6FA8;
    margin: 0 auto 10px;
}

.action-row__title {
    color: #fff;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 19px;
    margin-bottom: 4px;
}

.action-row__desc {
    color: rgba(255, 255, 255, .7);
    margin: 0;
}

.action-row__btn {
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .action-row {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .action-row__text {
        /* flex-basis is 420px on the desktop (row) main-axis; column
           direction here flips the main axis to vertical, which would
           otherwise force a 420px-tall text block instead of a 420px-wide
           one. */
        flex: 1 1 auto;
    }

    .action-row__btn {
        margin-top: 20px;
    }
}

/* Language switcher dropdown (header + footer). Link targets are computed
   per-request in templates/layout/default.php (stays on the equivalent page
   in the other language), interaction handled by the inline script at the
   bottom of that same template. */
.lang-switch {
    position: relative;
    font-family: 'Archivo', sans-serif;
}

.lang-switch__flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
    display: block;
}

.lang-switch__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 20px;
    padding: 6px 12px;
    color: #fff;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.lang-switch__trigger:hover {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .3);
}

.lang-switch.is-open .lang-switch__trigger {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .35);
}

.lang-switch__chevron {
    color: rgba(255, 255, 255, .7);
    transition: transform .15s ease;
}

.lang-switch.is-open .lang-switch__chevron {
    transform: rotate(180deg);
}

.lang-switch__menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--mv-ink);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
    z-index: 200;
}

.lang-switch.is-open .lang-switch__menu {
    display: block;
}

.lang-switch__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 7px;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    font-size: 14px;
    font-family: 'Figtree', sans-serif;
}

.lang-switch__option:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.lang-switch__option.active {
    color: #fff;
    font-weight: 600;
}

.lang-switch__option.active::after {
    content: '✓';
    margin-left: auto;
    color: #2E6FA8;
}

/* The footer trigger sits at the very bottom of the page — opening the menu
   downward would clip off-screen, so it opens upward instead. */
.lang-switch--footer .lang-switch__menu {
    top: auto;
    bottom: calc(100% + 8px);
}

.lang-switch--footer {
    margin: 16px 0;
}

@media (min-width: 992px) {
    .lang-switch--footer {
        margin: 0 24px;
    }
}

#unsubscribe button {
    max-height: 75px;
}

.flash-msg {
    position: absolute;
    width: 100%;
    font-size: 15px;
    z-index: 1000;
}

label.error {
    font-size: 14px !important;
    color: #ca0000 !important;
    width: 100%;
    text-align: left;
    font-weight: normal !important;
}

.grecaptcha-badge {
    z-index: 1000;
}

/* Richer illustration photos — the rebrand pass above only touched
   Bootstrap-derived color classes, so these were left at their original
   (fairly flat/washed) export. Same images, just more saturation/contrast
   so they don't read as faded next to the rest of the page. */
:where(.pattern, .align-cols) img {
    filter: saturate(1.3) contrast(1.06);
}
