/*
 * Restyling 2026 (draft G, public/bozze/home-g/).
 * Loaded after styles.css: styles.css is minified and has no SCSS sources, so every
 * change of the new look lives here as an override.
 */

/* ---------- Fonts: self-hosted, latin subset ---------- */
/*
 * Poppins: only 300, 400 and 500 are served. The theme also asks for 600-900:
 * the 500 face covers that range, so the browser never synthesizes a fake bold.
 * Bricolage Grotesque: variable font cut to wght 400-500 and opsz 14-72
 * (scratchpad instancer, from the Google Fonts latin file).
 */
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 100 300;
    font-display: swap;
    src: url("/fonts/poppins-300-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/poppins-400-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500 900;
    font-display: swap;
    src: url("/fonts/poppins-500-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/bricolage-grotesque-var-latin.woff2") format("woff2");
}

/*
 * Metric fallbacks: Arial / Liberation Sans scaled to the width and vertical metrics
 * of the real font, so the swap does not move the layout (CLS).
 * Values computed with fontTools on the site text, per weight (2026-11-27).
 */
@font-face {
    font-family: "Poppins Fallback";
    font-weight: 100 300;
    src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
    size-adjust: 109.97%;
    ascent-override: 95.48%;
    descent-override: 31.83%;
    line-gap-override: 9.09%;
}
@font-face {
    font-family: "Poppins Fallback";
    font-weight: 400;
    src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
    size-adjust: 111.09%;
    ascent-override: 94.52%;
    descent-override: 31.51%;
    line-gap-override: 9%;
}
@font-face {
    font-family: "Poppins Fallback";
    font-weight: 500 900;
    src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
    size-adjust: 112.32%;
    ascent-override: 93.48%;
    descent-override: 31.16%;
    line-gap-override: 8.9%;
}
@font-face {
    font-family: "Bricolage Fallback";
    font-weight: 100 450;
    src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
    size-adjust: 99.45%;
    ascent-override: 93.51%;
    descent-override: 27.15%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "Bricolage Fallback";
    font-weight: 451 900;
    src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
    size-adjust: 100.83%;
    ascent-override: 92.24%;
    descent-override: 26.78%;
    line-gap-override: 0%;
}

:root {
    --font: "Poppins", "Poppins Fallback", sans-serif;
    --font-head: "Bricolage Grotesque", "Bricolage Fallback", sans-serif;
}

/* Same selectors that styles.css uses for Lexend */
body,
button,
input,
select,
textarea,
.map-listing-item .box-house {
    font-family: var(--font);
}
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
    font-family: var(--font-head);
}

/* ---------- Palette (draft G): 8 colors plus the aqua accent ---------- */
:root {
    --bg: #0c0e19;          /* page background */
    --surface: #171a2c;     /* boxes: forms, cards, footer */
    --brand: #2d2e83;       /* Miramare blue, all buttons */
    --fg: #ecebf2;          /* main text */
    --muted: #a3a5ba;       /* secondary text */
    --field: #6f7290;       /* control borders */
    --line: rgba(236, 235, 242, .14);  /* hairlines */
    --star: #ffc107;        /* review stars */
    --accent: #5fc9d6;      /* highlights: badges, eyebrows, icons. Never on buttons */
    --on-accent: #0c0e19;   /* text on the accent */

    /* Bootstrap dark theme (selects, offcanvas, modals, date picker) */
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--fg);
    --bs-emphasis-color: var(--fg);
    --bs-secondary-color: var(--muted);
    --bs-tertiary-bg: var(--surface);
    --bs-border-color: var(--field);
}
[data-bs-theme="dark"] {
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--fg);
    --bs-emphasis-color: var(--fg);
    --bs-secondary-color: var(--muted);
    --bs-tertiary-bg: var(--surface);
    --bs-border-color: var(--field);
}

/* Theme variables: same selector as styles.css, which wins by load order */
.dark-theme:not(.dark-theme.default-dark) {
    --White: var(--bg);
    --Heading: var(--fg);
    --Heading-2: var(--muted);
    --Text: var(--fg);
    --Text-2: var(--fg);
    --Text-3: var(--muted);
    --Text-4: var(--muted);
    --Line: var(--field);
    --border: var(--line);
    --bg-body-color: var(--surface);
    --Sub-primary-1: var(--surface);
    --Sub-primary-2: var(--surface);
    --Sub-primary-3: var(--surface);
    --Secondary: var(--accent);
    --Secondary-safe: var(--accent);
    --Tertiary: var(--brand);
    --Note: var(--muted);
    --Note-2: var(--muted);
}
body {
    color: var(--fg);
}

/* Buttons stay blue: the theme fills them with --Secondary (now the accent) */
.tf-btn::after,
.tf-btn.bg-color-secondary {
    background-color: var(--brand);
}

/* "In evidenza" badge on the property cards: accent with dark text */
.flat-tag.bg-secondary {
    color: var(--on-accent);
}
.flat-tag.bg-secondary .icon {
    color: var(--on-accent);
}

/* ---------- Buttons (draft G) ---------- */
/*
 * Two kinds, same shape (height and radius of the current site):
 * - links (Vedi tutto, Torna alla home, Trova esperienze): outline, .tf-btn.style-border
 * - actions (Cerca, form submit): solid blue, .tf-btn.bg-color-primary / .bg-color-tertiary
 * Label weight 400, followed by the small diagonal arrow (arrow_outward).
 */
.tf-btn,
.tf-btn.fw-6 {
    font-weight: 400 !important; /* .fw-6 in styles.css is 600 !important */
}
.tf-btn.style-border {
    border-color: var(--fg);
    color: var(--fg);
}
.tf-btn.style-border::after {
    background-color: var(--fg);
}
.tf-btn.style-border:hover,
.tf-btn.style-border:focus-visible {
    color: var(--bg) !important; /* the theme sets the hover color with !important */
}
.tf-btn .icon {
    font-size: 18px;
    color: inherit;
}

/* ---------- Header (draft G) ---------- */
/* Blue topbar with address, phone and email; it scrolls away, the menu below stays sticky */
.topbar {
    background-color: var(--brand);
    color: var(--fg);
    font-size: 14px;
    line-height: 1.4;
}
.topbar-inner,
.topbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 24px;
}
.topbar-inner {
    justify-content: space-between;
    padding-block: 8px;
}
.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fg);
}
.topbar a.topbar-item:hover {
    color: var(--fg); /* the theme a:hover would turn it to the accent */
}
.topbar .icon {
    font-size: 16px;
    color: var(--accent);
}

/* Menu: logo on the left, items centered, language flag on the right */
@media (min-width: 1094px) {
    #header-main .header-inner-wrap {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }
    #header-main .main-menu,
    #header-main .main-menu .navigation {
        position: static;
        margin: 0;
    }
    #header-main .main-menu .navigation > li {
        position: relative;
    }
    #header-main .main-menu .navigation > li.ps-5 {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        padding: 0 !important; /* .ps-5 */
    }
    #header-main .header-right {
        display: none;
    }
}
/* Menu chevrons and the active/hover underline in the accent */
.main-menu .navigation li.has-child > button::after {
    color: var(--accent);
}
/* Dropdown in the box color instead of the theme black */
.navigation .submenu {
    background-color: rgba(23, 26, 44, .95); /* --surface */
}

/* ---------- Focus ring ---------- */
/*
 * The browser default ring is near-black and disappears on the dark and blue
 * backgrounds. Same selectors Bootstrap uses to reset it, so this wins by order.
 */
:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.btn-close:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 2px;
    box-shadow: none;
}

/* ---------- Footer (draft G) ---------- */
/* Black, with a blue rule on top; the contact band carries the excursions wave pattern */
#footer {
    padding-top: 48px;
    background-color: #000;
    border-top: 3px solid var(--brand);
    position: relative;
    overflow: hidden;
}
#footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 340px;
    background: url("/immagini/section/cta-1.png") right top / cover no-repeat; /* decorative, below the fold */
    opacity: .5;
    pointer-events: none;
}
#footer > * {
    position: relative;
}
#footer .footer-top {
    border-bottom: 1px solid var(--line);
}

/* Contacts: accent icons, no vertical separators */
#footer .wrap-contact-item .contact-item {
    gap: 14px;
    align-items: center;
}
#footer .wrap-contact-item .contact-item span {
    font-size: 32px;
    color: var(--accent);
}
#footer .wrap-contact-item .contact-item .content::after {
    display: none;
}
#footer .wrap-contact-item .contact-item .content .title {
    font-size: 13px;
    color: var(--muted);
}
#footer .wrap-contact-item .contact-item .content a {
    font-size: 20px;
    color: var(--fg);
}

/* Link columns straight on the black, no box */
#footer .footer-main {
    background-color: transparent;
    padding: 56px 0 !important; /* styles.css: padding 40px !important */
}
@media (max-width: 767px) {
    #footer .footer-main {
        padding: 24px 0 !important;
    }
}
#footer .footer-menu-list .title {
    font-family: var(--font);
    font-size: 15px;
    font-weight: 400;
    color: var(--fg);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
#footer .footer-menu-list .title.title-mobile {
    border-bottom: 0;
}
#footer .footer-menu-list ul li a {
    font-size: 15px;
    color: var(--muted);
}
#footer .footer-menu-list ul li:hover a {
    color: var(--muted);
}
#footer .footer-menu-list ul li a.footer-all,
#footer .footer-menu-list ul li:hover a.footer-all {
    color: var(--accent);
}

/* Contact band: logo, contacts in the middle, search by reference on the right */
#footer .footer-top {
    align-items: center;
    gap: 32px 56px;
    padding-bottom: 48px;
}
#footer .wrap-contact-item {
    flex: 1;
    justify-content: center;
}
#footer .footer-ref {
    background-color: var(--surface);
    padding: 20px 22px;
    min-width: 300px;
}
#footer .footer-ref-label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--fg);
}
#footer .footer-ref .form-control {
    background-color: #000;
    border-color: var(--field);
    color: var(--fg);
}
#footer .footer-ref .form-control::placeholder {
    color: var(--muted);
}
@media (max-width: 1199px) {
    #footer .wrap-contact-item {
        justify-content: flex-start;
    }
    #footer .footer-ref {
        flex-basis: 100%;
    }
}
@media (max-width: 575px) {
    #footer .footer-ref {
        min-width: 0;
    }
}

/* Company data: one full-width row under the link columns */
#footer .footer-company {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    padding-block: 28px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--muted);
}
#footer .footer-company-name {
    width: 100%;
    font-size: 15px;
    color: var(--fg);
}
#footer .footer-company-name a {
    color: var(--fg);
}
#footer .footer-bottom {
    border-top: 1px solid var(--line);
}

/* Social: plain accent icons, no circles (SVG files used as masks) */
#footer .tf-social a {
    width: auto;
    height: auto;
    border: 0;
    background: none;
}
.social-icon {
    display: block;
    width: 24px;
    height: 24px;
    background-color: var(--accent);
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}
.social-facebook { --icon: url("/immagini/facebook.svg"); }
.social-instagram { --icon: url("/immagini/instagram.svg"); }
.social-youtube { --icon: url("/immagini/youtube.svg"); }
#footer .tf-social {
    gap: 18px;
}

/* ---------- Home (draft G) ---------- */
/* Section header: eyebrow + title on the left, actions on the right */
.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px 24px;
    margin-bottom: 32px;
}
.sec-head h2 {
    margin: 8px 0 0;
}
.eyebrow {
    margin: 0;
    font-size: 14px;
    font-weight: 300;
    color: var(--accent);
}
.home-listings,
.home-reviews,
.home-news {
    padding-top: 96px;
}
@media (max-width: 767px) {
    .home-listings,
    .home-reviews,
    .home-news {
        padding-top: 64px;
    }
}

/* Hero: photo edge to edge, text bottom-left on a dark gradient, search under it */
.home-hero.page-title.home01 {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(560px, 46vw, 820px);
    padding: 120px 0 40px;
}
#header-video.home-hero {
    height: auto;
}
#header-video.home-hero .container-wrapper {
    height: auto;
    min-height: 0;
    justify-content: flex-end;
    align-items: stretch;
}
.home-hero.page-title::after {
    /* one linear veil from the bottom, where text and search sit, fading out towards the top */
    background: linear-gradient(0deg, rgba(12, 14, 25, .95) 0%, rgba(12, 14, 25, .85) 30%, rgba(12, 14, 25, .6) 55%, rgba(12, 14, 25, .2) 80%, rgba(12, 14, 25, 0) 100%);
}
.home-hero .hero-panel {
    max-width: 680px;
    margin-bottom: 40px;
    text-align: left;
}
.home-hero .hero-panel .title {
    margin: 0 0 16px;
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--fg);
}
.home-hero .hero-lead {
    margin: 0;
    max-width: 46ch;
    font-size: 18px;
    color: var(--fg);
}
@media (max-width: 760px) {
    .home-hero.page-title.home01 {
        min-height: 0;
        padding: 72px 0 24px;
    }
    .home-hero.page-title::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, .78), rgba(12, 14, 25, .92));
    }
}

/* Search bar: one box, fields separated by hairlines */
.home-hero .wg-filter .form-title {
    padding: 0;
    background-color: rgba(23, 26, 44, .97); /* --surface */
    border: 1px solid var(--line);
    backdrop-filter: none;
}
@media (min-width: 992px) {
    .home-hero .wg-filter .form-title {
        padding: 8px 12px 8px 8px;
    }
    .home-hero .reweb-search .form-floating > .form-control,
    .home-hero .reweb-search .form-floating > .form-select {
        border: 0;
        border-right: 1px solid var(--line);
        border-radius: 0;
        background-color: transparent;
    }
    .home-hero .reweb-search .row.g-2 > div:nth-last-child(2) .form-floating > .form-select {
        border-right: 0;
    }
}

/* Property cards (grid version of _unit_card, everywhere): info over the photo */
/* Grid gap only on the grid: below 768px Swiper spaces the slides itself (data-space), and a CSS
   gap on top would push the last slide out of view */
@media (min-width: 768px) {
    .home-listings .swiper-wrapper.tf-layout-mobile-md {
        gap: 8px;
    }
}
.box-house:not(.style-list) {
    position: relative;
    aspect-ratio: 4 / 5; /* draft 3:4, slightly lower on request */
    overflow: hidden;
    isolation: isolate;
    background-color: var(--surface);
}
.box-house:not(.style-list) .image-wrap {
    position: absolute;
    inset: 0;
}
.box-house:not(.style-list) .image-wrap figure,
.box-house:not(.style-list) .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.box-house .box-tag,
.box-house .box-subtag {
    z-index: 3;
}
.box-house:not(.style-list) .content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 130px 24px 22px;
    /* solid behind the text (from the first line), a 130px fade above it */
    background: linear-gradient(0deg, rgba(23, 26, 44, .96) 0%, rgba(23, 26, 44, .92) calc(100% - 125px), rgba(23, 26, 44, .6) calc(100% - 65px), rgba(23, 26, 44, 0) 100%);
}
.box-house .content .title {
    font-size: 24px !important; /* .fs-5 */
    font-weight: 500;
}
.box-house .meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 4px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: none;
}
.box-house .meta-list li span:not(.icon) {
    color: var(--fg);
}
.box-house .meta-list li span.icon {
    color: var(--muted);
}
/* Photo count and video badge in the top-right corner */
.box-house .box-subtag {
    top: 8px;
    bottom: auto;
}

/* "See all" tile closing the grid */
.home-listings .all-tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 14px;
    height: 100%;
    min-height: 100%;
    aspect-ratio: 4 / 5; /* draft 3:4, slightly lower on request */
    padding: 32px 28px;
    background-color: var(--brand);
    color: var(--fg);
}
.home-listings .all-tile > .icon {
    font-size: 36px;
}
.home-listings .all-tile h3 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    color: var(--fg);
}
.home-listings .all-tile p {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--fg);
}
.home-listings .all-tile:hover {
    color: var(--fg);
}

/* Agency: photo bleeding to the left edge, text in a column */
.home-about {
    position: relative;
    margin-top: 112px;
    padding-top: 96px;
}
.home-about::before {
    content: "";
    position: absolute;
    inset: 0 0 200px 0;
    background: linear-gradient(180deg, rgba(23, 26, 44, 0) 0%, var(--surface) 55%);
    pointer-events: none;
}
.home-about > * {
    position: relative;
}
.home-agency {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}
.home-agency-pic {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: 0 16px 16px 0; /* the theme box radius, square on the screen edge */
}
.home-agency-pic img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-agency-txt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px clamp(16px, 2.8vw, 40px) 40px clamp(32px, 6vw, 112px);
}
.home-agency-txt > * {
    max-width: 600px;
}
.home-agency-txt h2 {
    margin: 8px 0 22px;
}
.home-agency-text p {
    margin: 0 0 16px;
    color: var(--fg);
}
.home-agency-txt .tf-btn {
    margin-top: 16px;
}
@media (max-width: 899px) {
    .home-about {
        margin-top: 64px;
        padding-top: 0;
    }
    .home-agency {
        grid-template-columns: 1fr;
    }
    .home-agency-pic {
        min-height: 300px;
        border-radius: 0;
    }
    .home-agency-txt {
        padding: 40px clamp(16px, 2.8vw, 40px) 0;
    }
}

/* Excursions: blue box with text, the excursion pages and the flamingo */
.exc {
    margin-top: 200px;
}
.exc-box {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, .8fr);
    gap: 0 clamp(32px, 4vw, 72px);
    align-items: end;
    padding-left: clamp(24px, 5vw, 96px);
    background-color: var(--brand);
}
.exc-pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: none; /* natural size (1280x440): scaled up with cover the thin lines blurred */
    object-position: right bottom; /* the lines are in the bottom-right corner of the image */
    border-radius: inherit;
    pointer-events: none;
}
.exc-box > :not(.exc-pattern) {
    position: relative;
    z-index: 2;
}
.exc-txt {
    max-width: 600px;
    padding-block: 96px;
}
.exc-txt h2 {
    margin: 0 0 16px;
    color: var(--fg);
}
.exc-txt p {
    margin: 0 0 30px;
    color: var(--fg);
}
.exc-list {
    align-self: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.exc-list .exc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    font-size: 17px;
    color: var(--fg);
}
.exc-list .icon {
    font-size: 22px;
    color: var(--fg);
}
.exc-bird {
    justify-self: center;
    width: 420px;
    max-width: 100%;
    height: auto;
    margin-top: -140px;
}
@media (max-width: 899px) {
    .exc {
        margin-top: 120px;
    }
    .exc-box {
        grid-template-columns: 1fr;
        padding-inline: 24px;
    }
    .exc-txt {
        padding-block: 56px 0;
    }
    .exc-list {
        margin-top: 32px;
    }
    .exc-list .exc-item {
        font-size: 16px;
    }
    .exc-bird {
        width: 240px;
        margin-top: 24px;
        justify-self: end;
    }
}
@media (max-width: 575px) {
    .exc-list {
        grid-template-columns: 1fr;
    }
}

/* News: arrows and "view all" in the section header, cards with photo, category, title */
.home-news {
    padding-bottom: 120px;
    overflow: hidden;
}
@media (max-width: 767px) {
    .home-news {
        padding-bottom: 72px;
    }
}
.home-news .swiper {
    overflow: visible;
}
.news-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
}
.news-ctrl .tf-btn {
    margin-left: 8px;
}
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--field);
    border-radius: 12px;
    background: none;
    color: var(--fg);
}
.nav-btn.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}
@media (max-width: 600px) {
    .news-ctrl .tf-btn {
        display: none;
    }
}
.blog-article-item.style-2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.blog-article-item.style-2 .image-wrap {
    border-radius: 16px;
    overflow: hidden;
}
.blog-article-item.style-2 .article-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
}
.blog-article-item.style-2 .article-content p {
    order: -1;
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}
.blog-article-item.style-2 .article-content .title {
    font-size: 20px !important; /* .fs-5 */
    color: var(--fg);
}

/* ---------- Inner pages ---------- */
/* Forms in the box color (contacts, property details) */
.form-contact,
.form-contact-agent.bg-primary {
    background-color: var(--surface) !important; /* .bg-primary is !important in Bootstrap */
    border: 1px solid var(--line);
    backdrop-filter: none;
}
.form-control,
.form-select {
    background-color: var(--bg);
    border-color: var(--field);
    color: var(--fg);
}
.form-control::placeholder {
    color: var(--muted);
}
.form-floating > label {
    color: var(--muted);
}

/* Sticky search bar of the listing pages */
.list-search-bar {
    background-color: rgba(12, 14, 25, .9); /* --bg */
}

/* Page heads of the inner pages (news, blog, lists, text pages) */
.bg-sub-primary {
    background-color: var(--surface) !important;
}
.heading-section h2.h5,
.heading-section .h5.fw-normal {
    font-family: var(--font);
    color: var(--muted);
}

/* Mobile menu: chevrons in the accent, like the desktop menu */
.inner-mobile-nav #menu-mobile-menu li.menu-item-has-children-mobile > a::after {
    color: var(--accent);
}

/* ---------- Icons: Lucide 0.460.0 (ISC), stroke 1.5, as CSS masks ---------- */
/*
 * Replace the Material Symbols font loaded from Google. Markup:
 * <span class="icon icon-NAME" aria-hidden="true"></span>; the icon takes the text
 * color and is 1em wide, so font-size and color classes keep working.
 * New icon: copy the SVG from lucide-static@0.460.0/icons/, stroke #000, width 1.5.
 */
:root {
    --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E %3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
    --icon-chevron-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
    --icon-chevron-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
    --icon-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --icon-chevron-first: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m17 18-6-6 6-6'/%3E %3Cpath d='M7 6v12'/%3E%3C/svg%3E");
    --icon-chevron-last: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 18 6-6-6-6'/%3E %3Cpath d='M17 6v12'/%3E%3C/svg%3E");
    --icon-layers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z'/%3E %3Cpath d='m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65'/%3E %3Cpath d='m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65'/%3E%3C/svg%3E");
    --icon-map-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E %3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    --icon-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z'/%3E%3C/svg%3E");
    --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    --icon-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E %3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");
    --icon-map: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z'/%3E %3Cpath d='M15 5.764v15'/%3E %3Cpath d='M9 3.236v15'/%3E%3C/svg%3E");
    --icon-bath: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4 8 6'/%3E %3Cpath d='M17 19v2'/%3E %3Cpath d='M2 12h20'/%3E %3Cpath d='M7 19v2'/%3E %3Cpath d='M9 5 7.621 3.621A2.121 2.121 0 0 0 4 5v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5'/%3E%3C/svg%3E");
    --icon-car: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2'/%3E %3Ccircle cx='7' cy='17' r='2'/%3E %3Cpath d='M9 17h6'/%3E %3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E");
    --icon-trees: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 10v.2A3 3 0 0 1 8.9 16H5a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z'/%3E %3Cpath d='M7 16v6'/%3E %3Cpath d='M13 19v3'/%3E %3Cpath d='M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5'/%3E%3C/svg%3E");
    --icon-maximize-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 3 21 3 21 9'/%3E %3Cpolyline points='9 21 3 21 3 15'/%3E %3Cline x1='21' x2='14' y1='3' y2='10'/%3E %3Cline x1='3' x2='10' y1='21' y2='14'/%3E%3C/svg%3E");
    --icon-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E %3Ccircle cx='9' cy='7' r='4'/%3E %3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E %3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
    --icon-paw-print: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='4' r='2'/%3E %3Ccircle cx='18' cy='8' r='2'/%3E %3Ccircle cx='20' cy='16' r='2'/%3E %3Cpath d='M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z'/%3E%3C/svg%3E");
    --icon-layout-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E %3Crect width='7' height='7' x='14' y='3' rx='1'/%3E %3Crect width='7' height='7' x='14' y='14' rx='1'/%3E %3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3C/svg%3E");
    --icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
    --icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E %3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
    --icon-sliders-horizontal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='21' x2='14' y1='4' y2='4'/%3E %3Cline x1='10' x2='3' y1='4' y2='4'/%3E %3Cline x1='21' x2='12' y1='12' y2='12'/%3E %3Cline x1='8' x2='3' y1='12' y2='12'/%3E %3Cline x1='21' x2='16' y1='20' y2='20'/%3E %3Cline x1='12' x2='3' y1='20' y2='20'/%3E %3Cline x1='14' x2='14' y1='2' y2='6'/%3E %3Cline x1='8' x2='8' y1='10' y2='14'/%3E %3Cline x1='16' x2='16' y1='18' y2='22'/%3E%3C/svg%3E");
    --icon-images: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 22H4a2 2 0 0 1-2-2V6'/%3E %3Cpath d='m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18'/%3E %3Ccircle cx='12' cy='8' r='2'/%3E %3Crect width='16' height='16' x='6' y='2' rx='2'/%3E%3C/svg%3E");
    --icon-circle-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E %3Cpolygon points='10 8 16 12 10 16 10 8'/%3E%3C/svg%3E");
    --icon-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E %3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E %3Cpath d='M2 12h20'/%3E%3C/svg%3E");
    --icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E %3Cpath d='M12 16v-4'/%3E %3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
    --icon-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' x2='20' y1='12' y2='12'/%3E %3Cline x1='4' x2='20' y1='6' y2='6'/%3E %3Cline x1='4' x2='20' y1='18' y2='18'/%3E%3C/svg%3E");
    --icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E %3Cpolyline points='7 10 12 15 17 10'/%3E %3Cline x1='12' x2='12' y1='15' y2='3'/%3E%3C/svg%3E");
    /* arrow cropped to its drawing (viewBox 6 6 12 12): at 13px the stroke fills the box like the draft arrow */
    --icon-arrow-down-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='6 6 12 12' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 7 10 10'/%3E %3Cpath d='M17 7v10H7'/%3E%3C/svg%3E");
    --icon-key-round: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z'/%3E %3Ccircle cx='16.5' cy='7.5' r='.5' fill='currentColor'/%3E%3C/svg%3E");
    --icon-calendar-days: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E %3Cpath d='M16 2v4'/%3E %3Crect width='18' height='18' x='3' y='4' rx='2'/%3E %3Cpath d='M3 10h18'/%3E %3Cpath d='M8 14h.01'/%3E %3Cpath d='M12 14h.01'/%3E %3Cpath d='M16 14h.01'/%3E %3Cpath d='M8 18h.01'/%3E %3Cpath d='M12 18h.01'/%3E %3Cpath d='M16 18h.01'/%3E%3C/svg%3E");
    --icon-bird: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 7h.01'/%3E %3Cpath d='M3.4 18H12a8 8 0 0 0 8-8V7a4 4 0 0 0-7.28-2.3L2 20'/%3E %3Cpath d='m20 7 2 .5-2 .5'/%3E %3Cpath d='M10 18v3'/%3E %3Cpath d='M14 17.75V21'/%3E %3Cpath d='M7 18a6 6 0 0 0 3.84-10.61'/%3E%3C/svg%3E");
    --icon-sailboat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 18H2a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4Z'/%3E %3Cpath d='M21 14 10 2 3 14h18Z'/%3E %3Cpath d='M10 2v16'/%3E%3C/svg%3E");
    --icon-bike: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18.5' cy='17.5' r='3.5'/%3E %3Ccircle cx='5.5' cy='17.5' r='3.5'/%3E %3Ccircle cx='15' cy='5' r='1'/%3E %3Cpath d='M12 17.5V14l-3-3 4-3 2 3h2'/%3E%3C/svg%3E");
    --icon-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E %3Cpath d='M12 2v2'/%3E %3Cpath d='M12 20v2'/%3E %3Cpath d='m4.93 4.93 1.41 1.41'/%3E %3Cpath d='m17.66 17.66 1.41 1.41'/%3E %3Cpath d='M2 12h2'/%3E %3Cpath d='M20 12h2'/%3E %3Cpath d='m6.34 17.66-1.41 1.41'/%3E %3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
    --icon-landmark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' x2='21' y1='22' y2='22'/%3E %3Cline x1='6' x2='6' y1='18' y2='11'/%3E %3Cline x1='10' x2='10' y1='18' y2='11'/%3E %3Cline x1='14' x2='14' y1='18' y2='11'/%3E %3Cline x1='18' x2='18' y1='18' y2='11'/%3E %3Cpolygon points='12 2 20 7 4 7'/%3E%3C/svg%3E");
    --icon-wallet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1'/%3E %3Cpath d='M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4'/%3E%3C/svg%3E");
    --icon-star-filled: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z'/%3E%3C/svg%3E");
    --icon-star-half: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z'/%3E%3Cpath d='M12 18.338a2.1 2.1 0 0 0-.987.244L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16l2.309-4.679A.53.53 0 0 1 12 2' fill='%23000'/%3E%3C/svg%3E");
}
.icon {
    display: inline-block;
    flex: none;
    width: 1em;
    height: 1em;
    font-size: 24px;
    vertical-align: -.125em;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}
.icon-search { --icon: var(--icon-search); }
.icon-chevron-right { --icon: var(--icon-chevron-right); }
.icon-chevron-left { --icon: var(--icon-chevron-left); }
.icon-chevron-down { --icon: var(--icon-chevron-down); }
.icon-chevron-first { --icon: var(--icon-chevron-first); }
.icon-chevron-last { --icon: var(--icon-chevron-last); }
.icon-layers { --icon: var(--icon-layers); }
.icon-map-pin { --icon: var(--icon-map-pin); }
.icon-star { --icon: var(--icon-star); }
.icon-x { --icon: var(--icon-x); }
.icon-check { --icon: var(--icon-check); }
.icon-map { --icon: var(--icon-map); }
.icon-bath { --icon: var(--icon-bath); }
.icon-car { --icon: var(--icon-car); }
.icon-trees { --icon: var(--icon-trees); }
.icon-maximize-2 { --icon: var(--icon-maximize-2); }
.icon-users { --icon: var(--icon-users); }
.icon-paw-print { --icon: var(--icon-paw-print); }
.icon-layout-grid { --icon: var(--icon-layout-grid); }
.icon-phone { --icon: var(--icon-phone); }
.icon-mail { --icon: var(--icon-mail); }
.icon-sliders-horizontal { --icon: var(--icon-sliders-horizontal); }
.icon-images { --icon: var(--icon-images); }
.icon-circle-play { --icon: var(--icon-circle-play); }
.icon-globe { --icon: var(--icon-globe); }
.icon-info { --icon: var(--icon-info); }
.icon-menu { --icon: var(--icon-menu); }
.icon-download { --icon: var(--icon-download); }
.icon-arrow-down-right { --icon: var(--icon-arrow-down-right); }
.icon-key-round { --icon: var(--icon-key-round); }
.icon-calendar-days { --icon: var(--icon-calendar-days); }
.icon-bird { --icon: var(--icon-bird); }
.icon-sailboat { --icon: var(--icon-sailboat); }
.icon-bike { --icon: var(--icon-bike); }
.icon-sun { --icon: var(--icon-sun); }
.icon-landmark { --icon: var(--icon-landmark); }
.icon-wallet { --icon: var(--icon-wallet); }
.icon-star-filled { --icon: var(--icon-star-filled); }
.icon-star-half { --icon: var(--icon-star-half); }

/* Theme rules written for the Material spans */
.meta-list li span.icon {
    color: var(--Text);
}
.box-house .content .location span.icon {
    color: var(--Text);
    margin-left: -3px;
}
.btn-icons span.icon {
    color: #fff;
}
@media (max-width: 767px) {
    .prev-next a span.icon {
        font-size: 30px;
    }
}

/* Menu chevrons drawn by the theme with the Material font */
.navigation li.has-child > a::after,
.navigation li.has-child > button::after {
    content: "";
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    background-color: var(--accent);
    -webkit-mask: var(--icon-chevron-down) center / contain no-repeat;
    mask: var(--icon-chevron-down) center / contain no-repeat;
}
.inner-mobile-nav #menu-mobile-menu li.menu-item-has-children-mobile > a::after {
    content: "";
    width: 20px;
    height: 20px;
    background-color: var(--accent);
    -webkit-mask: var(--icon-chevron-down) center / contain no-repeat;
    mask: var(--icon-chevron-down) center / contain no-repeat;
}

/* ---------- Draft G alignment (second pass) ---------- */
/* Headings: light weight and slightly tight tracking, as in the draft */
h1, .h1,
h2, .h2,
h3, .h3 {
    font-weight: 400;
    letter-spacing: -.01em;
}

/* Side gutter of the draft: 16px on phones up to 40px on wide screens */
.tf-container {
    padding-left: clamp(16px, 2.8vw, 40px) !important;  /* styles.css: 15px !important */
    padding-right: clamp(16px, 2.8vw, 40px) !important;
}

/* Hero search bar: accent icon on the left of each field, small label above the value */
.search-field-icon {
    display: none;
}
@media (min-width: 992px) {
    .home-hero .search-field {
        position: relative;
    }
    .home-hero .search-field-icon {
        display: block;
        position: absolute;
        top: 50%;
        left: calc(var(--bs-gutter-x, 0px) * .5 + 18px);
        z-index: 3;
        margin-top: -13px;
        font-size: 26px;
        color: var(--accent);
        pointer-events: none;
    }
    .home-hero .search-field .form-floating > .form-control,
    .home-hero .search-field .form-floating > .form-select,
    .home-hero .search-field .form-floating > label {
        padding-left: 58px;
    }
    .home-hero .form-floating > label {
        font-size: 13px;
        color: var(--muted);
    }
    .home-hero .form-floating > label::after {
        background-color: transparent !important; /* Bootstrap paints a pill behind the floating label */
    }
}
.reweb-search .tf-btn[type="submit"] {
    flex: 1;
    gap: 10px;
    padding: 0 14px;
    white-space: nowrap;
}
.reweb-search .tf-btn[type="submit"] .icon {
    font-size: 14px;
}
#footer .footer-ref .tf-btn {
    gap: 8px;
    padding: 0 18px;
}
#footer .footer-ref .tf-btn .icon {
    font-size: 16px;
}

/* Property cards (grid and horizontal): badges flush in the top corners, only the inner corner rounded */
.box-house .box-tag,
.box-house .box-subtag,
.box-house.style-list .image-wrap .box-tag { /* styles.css: 8px on horizontal cards */
    top: 0;
    gap: 0;
}
.box-house .box-tag {
    left: 0;
}
.box-house .box-subtag {
    right: 0;
}
.box-house .box-tag .flat-tag,
.box-house .box-subtag .flat-tag {
    gap: 6px;
    height: auto;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 400 !important; /* .fw-6 */
    backdrop-filter: none;
}
.box-house .box-tag .flat-tag {
    border-radius: 0 0 16px 0;
}
.box-house .box-subtag .flat-tag {
    border-radius: 0 0 0 16px;
    background: var(--bg);
    color: var(--fg);
}
.box-house .box-tag .flat-tag .icon,
.box-house .box-subtag .flat-tag .icon {
    font-size: 14px;
}

/* Name followed by the typology, guest rating stars like the draft */
.box-house .title .type {
    margin-left: 4px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: lowercase;
    color: var(--muted);
}
.box-house .unit-stars {
    gap: 1px;
}
.box-house .unit-stars .icon {
    font-size: 15px;
}
.box-house .unit-stars .icon-star {
    color: var(--muted);
}
/* "6 ospiti", "2 bagni": the unit after a number in lower case, as in the draft */
.box-house .meta-list li span:nth-child(3) {
    text-transform: lowercase;
}

/* Agency photo: starts at the gutter and keeps all corners rounded (desktop) */
@media (min-width: 900px) {
    .home-agency {
        width: 1848px;
        max-width: 100%;
        margin-inline: auto;
        padding-left: clamp(16px, 2.8vw, 40px);
    }
    .home-agency-pic {
        border-radius: 16px;
    }
}

/* Excursions list: short subtitle under each name */
.exc-list .exc-item small {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--fg);
}
.exc-list .exc-item {
    height: 100%; /* items of a row centered on the same line, as in the draft */
}
.box-house .meta-list li span:not(.icon) {
    font-size: 14px;
}
.box-house:not(.style-list) .meta-list li .icon {
    font-size: 17px !important; /* .fs-4 */
}
/* Button label and arrow size of the draft */
.tf-btn {
    font-size: 15px;
}
.tf-btn .icon-arrow-down-right,
.reweb-search .tf-btn[type="submit"] .icon-arrow-down-right {
    font-size: 13px;
}
/*
 * Search button: "Cerca" with the arrow in the home hero and on phones; in the narrow
 * column of the listing bars only the magnifier, the label stays for screen readers.
 */
@media (min-width: 992px) {
    .reweb-search .search-btn-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .reweb-search .search-btn-arrow {
        display: none;
    }
    .home-hero .reweb-search .search-btn-label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
    }
    .home-hero .reweb-search .search-btn-arrow {
        display: inline-block;
    }
    .home-hero .reweb-search .search-btn-icon {
        display: none;
    }
}
@media (max-width: 991px) {
    .reweb-search .search-btn-icon {
        display: none;
    }
}
.reweb-search .search-btn-icon {
    font-size: 20px !important;
}

/* ---------- Main menu height, logo and flag (draft G: 66px bar, 36px logo, 30px flag) ---------- */
.header .header-logo {
    padding: 15px 0;
}
.header .header-logo img {
    width: 175px;
    height: 36px;
}
.main-menu .navigation > li > a,
.main-menu .navigation > li > button:not(.btn-lang-exchange) {
    padding-top: 21px;
    padding-bottom: 21px;
}
.main-menu .navigation > li > a,
.main-menu .navigation > li > button {
    font-size: 15px;
}
.btn-lang-exchange {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
}
.btn-lang-exchange img {
    width: 100%;
    height: 100%;
}

/* ---------- Search bar, second pass ---------- */
/* Icon 18px inside each field; the type select has no column gutter */
@media (min-width: 992px) {
    .home-hero .reweb-search form .search-field-icon {
        left: 22px;
    }
    .home-hero .reweb-search > .search-field .search-field-icon {
        left: 18px;
    }
}
/* Date field: label always small on top, the placeholder ("Aggiungi le date") visible in grey */
.reweb-search .form-floating > #daterange-display::placeholder {
    color: var(--muted);
}
.reweb-search .form-floating > #daterange-display {
    padding-top: 1.625rem;
    padding-bottom: .625rem;
}
.reweb-search .form-floating > #daterange-display ~ label {
    transform: scale(.85) translateY(-.5rem) translateX(.15rem);
}
/* Filter button: readable icon on the light hover, active-filter count in the accent */
.btn-icons:hover span.icon {
    color: var(--brand); /* the theme turns the button white on hover */
}
.btn-icons .badge.bg-color-tertiary {
    background-color: var(--accent) !important;
    color: var(--on-accent);
}

/* Compact info block of the grid cards */
.box-house:not(.style-list) .content > .title-wrapper {
    padding: 0;
}
.box-house:not(.style-list) .content .title-wrapper > .mb-15 {
    margin-bottom: 6px !important;
}
.box-house .content .title {
    margin-bottom: 10px;
}
.box-house .meta-list {
    gap: 4px 16px;
    margin: 0;
    padding-top: 10px;
}
.box-house .meta-list li .icon {
    font-size: 15px !important; /* .fs-4 */
}
/* The location sits on the lighter part of the fade: full text color for contrast */
.box-house .content .location {
    color: var(--fg);
}

/* ---------- Date range picker in the palette (was the theme grey) ---------- */
.daterangepicker {
    background-color: var(--surface);
    border-color: var(--line);
    color: var(--fg);
}
.daterangepicker td.available:hover,
.daterangepicker th.available:hover {
    background-color: rgba(45, 46, 131, .6); /* --brand */
    color: var(--fg);
}
.daterangepicker td.in-range {
    background-color: var(--brand) !important; /* styles.css: --bs-secondary !important */
    color: var(--fg);
}
.daterangepicker td.active,
.daterangepicker td.active:hover {
    background-color: var(--accent) !important; /* styles.css: #fff !important */
    color: var(--on-accent) !important;
}
/*
 * Grid cards: the photo used to show as a thin light seam on the rounded bottom corners
 * (antialiasing of the photo on the curve, under the info layer). The bottom of the card
 * is covered by the info layer anyway, so the photo fades out in its last 24px.
 */
.box-house:not(.style-list) .image-wrap {
    -webkit-mask-image: linear-gradient(to top, transparent 0, transparent 2px, #000 24px);
    mask-image: linear-gradient(to top, transparent 0, transparent 2px, #000 24px);
}
/* Photo count and video in one badge: a little air before the video icon */
.box-house .box-subtag .flat-tag .icon-circle-play {
    margin-left: 4px;
}
.box-house .box-subtag .flat-tag .icon-circle-play:first-child {
    margin-left: 0;
}
/* Hairlines only between excursions: none above the first row */
.exc-list li:nth-child(-n+2) .exc-item {
    border-top: 0;
}
@media (max-width: 575px) {
    .exc-list li:nth-child(2) .exc-item {
        border-top: 1px solid var(--line);
    }
}
/* Hero subtitle on one line on desktop (was capped at 46ch inside a 680px panel) */
.home-hero .hero-panel {
    max-width: 860px;
}
.home-hero .hero-lead {
    max-width: none;
}
/*
 * Default text rendering as in the draft: the theme sets -webkit-font-smoothing: antialiased
 * on body and form controls, which on macOS makes light text on the dark background thinner.
 */
body,
button,
input,
select,
textarea {
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}
/* Card titles without the negative tracking of the section headings, as in the draft */
.box-house .title {
    letter-spacing: normal;
}

/* ---------- Hero search bar, responsive ---------- */
@media (min-width: 992px) {
    /* Fields share the width by content instead of fixed columns: the date gets less, guests more */
    .home-hero .reweb-search form > .search-field {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        min-width: 0;
    }
    .home-hero .reweb-search form > .search-field:has(#daterange-display) {
        flex-grow: 1.1;
    }
    .home-hero .reweb-search form > div:last-child {
        flex: 0 0 auto;
        width: auto;
    }
}
/* Below 1300px the field icons go away, so labels and values keep their room */
@media (min-width: 992px) and (max-width: 1299px) {
    .home-hero .search-field-icon {
        display: none;
    }
    .home-hero .search-field .form-floating > .form-control,
    .home-hero .search-field .form-floating > .form-select,
    .home-hero .search-field .form-floating > label {
        padding-left: .75rem;
    }
}

/* ---------- Home rentals grid: 2, 3 or 4 per row ---------- */
@media (min-width: 768px) {
    .home-listings .swiper-wrapper.tf-layout-mobile-md {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1100px) {
    .home-listings .swiper-wrapper.tf-layout-mobile-md {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 1400px) {
    .home-listings .swiper-wrapper.tf-layout-mobile-md {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
/* 8 cards + tile fill 3 rows of 3; with 2 or 4 per row the 8th card would leave a hole */
@media (min-width: 768px) and (max-width: 1099px), (min-width: 1400px) {
    .home-listings .listing-extra {
        display: none;
    }
}
/* Mobile hero as in the previous site: text and search centered vertically in a tall hero */
@media (max-width: 760px) {
    .home-hero.page-title.home01 {
        justify-content: center;
        min-height: max(600px, calc(80vh - 66px));
        padding: 48px 0;
    }
    #header-video.home-hero .container-wrapper {
        flex: 1;
        justify-content: center;
    }
    .home-hero .hero-panel {
        text-align: center;
    }
}
/* Phones: excursions box with text, button and flamingo only */
@media (max-width: 767px) {
    .exc-list {
        display: none;
    }
}
/* Phones: "view all" under the carousels, buttons centered */
.sec-foot {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}
@media (max-width: 767px) {
    .home-agency-txt .tf-btn,
    .exc-txt .tf-btn {
        align-self: center;
        margin-inline: auto;
    }
    .home-agency-txt {
        align-items: stretch;
    }
}
/*
 * Place pages: the excursions box straddles the line between the "nearby properties"
 * section (.tf-spacing-16, large bottom padding and a bottom border) and the form below,
 * as in the previous site: it climbs into that padding, leaving about 100px of space above.
 */
.tf-spacing-16 + section > .exc:first-child {
    margin-top: -228px; /* padding-bottom 328px */
}
@media (max-width: 1199px) {
    .tf-spacing-16 + section > .exc:first-child {
        margin-top: -150px; /* 250px */
    }
}
@media (max-width: 1149px) {
    .tf-spacing-16 + section > .exc:first-child {
        margin-top: -60px; /* 150px */
    }
}
@media (max-width: 575px) {
    .tf-spacing-16 + section > .exc:first-child {
        margin-top: -40px; /* 100px */
    }
}
/*
 * Place and excursion pages without the nearby-properties section: the last paragraph sits on
 * the box colour (.bg-sub-primary). As in the home, that colour runs on behind the excursions
 * box and stops 200px above its bottom, so the box straddles the two sections.
 */
.bg-sub-primary:has(+ section > .exc:first-child) > .wg-partner {
    padding-bottom: 0;
}
.bg-sub-primary + section > .exc:first-child {
    margin-top: 0;
    padding-top: 200px;
    background: linear-gradient(var(--surface) calc(100% - 200px), transparent 0);
}
@media (max-width: 899px) {
    .bg-sub-primary + section > .exc:first-child {
        padding-top: 120px;
    }
}

/* ---------- Property detail ---------- */
/* Request form on the brand blue, as in the previous site, so the sidebar is not flat */
.form-contact-agent.bg-primary {
    background-color: var(--brand) !important;
    border-color: var(--brand);
}
.form-contact-agent.bg-primary p {
    color: var(--fg);
}
.form-contact-agent.bg-primary .form-control,
.form-contact-agent.bg-primary .form-select {
    background-color: #232563; /* --bg at 30% over --brand */
    border-color: #9a9bc0;
}
.form-contact-agent.bg-primary .form-floating > label::after {
    background-color: #232563 !important; /* Bootstrap paints the body colour behind the textarea label */
}
.form-contact-agent.bg-primary .form-control::placeholder,
.form-contact-agent.bg-primary .form-floating > label {
    color: #c9cae0;
}
/* The aqua accent on the detail icons, as on the home */
.box-overview .location .icon,
.box-overview .box-icon .icons .icon,
.prev-next a span.icon {
    color: var(--accent);
}
.box-overview .box-icon .icons {
    background-color: var(--bg);
}
.box-amenities .wrap-feature .box-feature .feature-item {
    display: inline-flex;
    align-items: center;
}
.box-amenities .wrap-feature .box-feature .feature-item::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: none;
    background-color: var(--accent);
    -webkit-mask: var(--icon-check) center / contain no-repeat;
    mask: var(--icon-check) center / contain no-repeat;
}
/* Breadcrumb dividers in the aqua accent, so it shows on every inner page */
.breadcrumb-item:not(:last-child)::before {
    color: var(--accent) !important; /* styles.css sets --Text-3 with !important */
}
/* Listing pages: the sticky search bar sits right under the sticky menu (66px tall, it was 78px) */
@media (min-width: 1150px) {
    .list-search-bar {
        top: 66px;
    }
}
/*
 * Horizontal property cards on phones (below 768px, where they stack): same look as the
 * grid cards of the home, info over the photo on the fade, no description.
 */
@media (max-width: 767px) {
    .box-house.style-list {
        position: relative;
        display: block;
        aspect-ratio: 4 / 5;
        overflow: hidden;
        isolation: isolate;
        background-color: var(--surface);
    }
    .box-house.style-list .image-wrap {
        position: absolute;
        inset: 0;
        width: auto;
        max-width: none !important; /* styles.css: 100% !important below 476px */
        min-height: 0;
        -webkit-mask-image: linear-gradient(to top, transparent 0, transparent 2px, #000 24px);
        mask-image: linear-gradient(to top, transparent 0, transparent 2px, #000 24px);
    }
    .box-house.style-list .image-wrap figure,
    .box-house.style-list .image-wrap img {
        width: 100%;
        height: 100% !important; /* styles.css: auto !important with a 4:3 ratio on phones */
        aspect-ratio: auto;
        object-fit: cover;
    }
    .box-house.style-list .content {
        position: absolute;
        inset: auto 0 0 0;
        z-index: 2;
        padding: 130px 24px 22px;
        background: linear-gradient(0deg, rgba(23, 26, 44, .96) 0%, rgba(23, 26, 44, .92) calc(100% - 125px), rgba(23, 26, 44, .6) calc(100% - 65px), rgba(23, 26, 44, 0) 100%);
    }
    .box-house.style-list .content > .title-wrapper {
        padding: 0;
    }
    .box-house.style-list .content .title-wrapper > .mb-15 {
        margin-bottom: 6px !important;
    }
    .box-house.style-list .content .title-wrapper > p {
        display: none;
    }
    .box-house.style-list .meta-list {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 16px;
        margin: 0;
    }
}
/* Phones: the buttons that open the search (home and listings) and the map show their icon in the accent */
.btn-icons[data-filter-form$="-m"] span.icon,
.btn-icons[data-bs-target="#mapCanvas"] span.icon,
#compact-search-open .icon {
    color: var(--accent);
}
/* The theme turns these buttons white on hover: the icon goes back to the blue there */
.btn-icons[data-filter-form$="-m"]:hover span.icon,
.btn-icons[data-bs-target="#mapCanvas"]:hover span.icon,
.btn-icons[data-filter-form$="-m"]:focus-visible span.icon,
.btn-icons[data-bs-target="#mapCanvas"]:focus-visible span.icon {
    color: var(--brand);
}
/* Listing pages, 576-767px: the photo cards two per row (one full-width 4:5 card was too tall) */
@media (min-width: 576px) and (max-width: 767px) {
    .section-property-map.list .wrap-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px; /* as between the rows */
    }
    .section-property-map.list .wrap-list > * {
        margin: 0;
    }
}
/* Location and stars (or price) on one line: keep some air, the location truncates first */
.box-house .title-wrapper > .d-flex {
    gap: 8px;
}
.box-house .title-wrapper > .d-flex > .location {
    min-width: 0;
}
.box-house .title-wrapper > .d-flex > .unit-stars,
.box-house .title-wrapper > .d-flex > .price {
    flex: none;
}

/* ---------- Contacts page ---------- */
/* Intro: title and direct channels on the left, form box on the right; map with address card; reviews */
.contacts-intro {
    padding: 72px 0 0;
}
.contacts-title {
    margin: 8px 0 16px;
}
.contacts-lead {
    margin: 0 0 32px;
    font-size: 18px;
    color: var(--muted);
}
.contacts-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}
.contacts-list li {
    border-bottom: 1px solid var(--line);
}
/* Each channel is one big link row: icon tile, label + value, arrow */
.contacts-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    color: var(--fg);
}
.contacts-item-icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background-color: var(--surface);
    color: var(--accent);
}
.contacts-item-icon .icon {
    font-size: 24px;
}
.contacts-item-icon .social-icon {
    width: 22px;
    height: 22px;
}
.contacts-item-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}
.contacts-item-label {
    font-size: 14px;
    color: var(--muted);
}
.contacts-item-value {
    font-size: 18px;
    font-weight: 400;
    overflow-wrap: anywhere;
}
.contacts-item-arrow {
    flex: none;
    font-size: 14px;
    color: var(--muted);
    transform: rotate(-90deg);
    transition: transform .2s, color .2s;
}
.contacts-item:hover,
.contacts-item:focus-visible {
    color: var(--fg);
}
.contacts-item:hover .contacts-item-arrow,
.contacts-item:focus-visible .contacts-item-arrow {
    color: var(--accent);
    transform: rotate(-90deg) translate(3px, 3px);
}
.contacts-social {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}
.contacts-social-label {
    font-size: 14px;
    color: var(--muted);
}
.contacts-social-list {
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.social-whatsapp { --icon: url("/immagini/whatsapp/whatsapp.svg"); }
/* Form box: same surface as the other forms, title in place of the old centred heading */
.contacts-form {
    padding: 40px;
}
.contacts-form-title {
    margin: 0;
    font-size: 28px;
}
.contacts-form form {
    margin-top: 16px !important; /* the partial sets .mt-4 */
}
/* Office: map in a rounded box, address card over its left side */
.contacts-office {
    padding-top: 96px;
}
.contacts-map-box {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--line);
    background-color: var(--surface);
}
.contacts-map {
    height: 480px;
}
.contacts-map-card {
    position: absolute;
    top: 32px;
    bottom: 32px;
    left: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 340px;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background-color: var(--surface);
}
.contacts-map-card .contacts-item-icon {
    margin-bottom: 20px;
}
.contacts-map-name {
    margin: 8px 0 4px;
    font-family: var(--font-head);
    font-size: 22px;
    line-height: 1.3;
    color: var(--fg);
}
.contacts-map-address span {
    display: block;
}
.contacts-map-address {
    margin: 0 0 24px;
    color: var(--muted);
}
.contacts-reviews {
    padding: 96px 0;
}
@media (max-width: 991px) {
    .contacts-intro {
        padding-top: 48px;
    }
    .contacts-office,
    .contacts-reviews {
        padding-top: 64px;
    }
    .contacts-reviews {
        padding-bottom: 64px;
    }
    /* The address card stacks under the map */
    .contacts-map {
        height: 340px;
    }
    .contacts-map-card {
        position: static;
        width: auto;
        border: 0;
        border-top: 1px solid var(--line);
        border-radius: 0;
    }
}
@media (max-width: 575px) {
    .contacts-form {
        padding: 28px 20px;
    }
    .contacts-map-card {
        padding: 24px 20px;
    }
}
