/* ==========================================================================
   Viam Holiday Homes - Custom Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --viam-primary: #51172F;
    --viam-primary-light: #6B2440;
    --viam-primary-dark: #3A0F20;
    --viam-accent: #7A3558;

    /* Text */
    --viam-text: #181C23;
    --viam-text-light: #6F6F6F;

    /* Backgrounds */
    --viam-bg-light: #EAEAEA;
    --viam-bg-dark: #181C23;
    --viam-white: #FFFFFF;

    /* Borders */
    --viam-border: #E0E0E0;

    /* Typography */
    --viam-font-heading: 'Urbanist', sans-serif;
    --viam-font-body: 'Open Sans Hebrew', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Override ALL parent theme typography variables (from _typography.scss) */
    /* Paragraph */
    --wp-estate-paragraph-font-family: 'Open Sans Hebrew', sans-serif;
    --wp-estate-paragraph-font-family-option: 'Open Sans Hebrew', sans-serif;
    --wp-estate-paragraph-font-size: inherit;
    --wp-estate-paragraph-font-size-option: inherit;
    --wp-estate-paragraph-font-weight: inherit;
    --wp-estate-paragraph-font-weight-option: inherit;
    --wp-estate-paragraph-line-height: inherit;
    --wp-estate-paragraph-line-height-option: inherit;
    /* H1 */
    --wp-estate-h1-font-family: 'Urbanist', sans-serif;
    --wp-estate-h1-font-family-option: 'Urbanist', sans-serif;
    --wp-estate-h1-font-size: inherit;
    --wp-estate-h1-font-size-option: inherit;
    --wp-estate-h1-font-weight: inherit;
    --wp-estate-h1-font-weight-option: inherit;
    /* H2 */
    --wp-estate-h2-font-family: 'Urbanist', sans-serif;
    --wp-estate-h2-font-family-option: 'Urbanist', sans-serif;
    --wp-estate-h2-font-size: inherit;
    --wp-estate-h2-font-size-option: inherit;
    --wp-estate-h2-font-weight: inherit;
    --wp-estate-h2-font-weight-option: inherit;
    /* H3 */
    --wp-estate-h3-font-family: 'Urbanist', sans-serif;
    --wp-estate-h3-font-family-option: 'Urbanist', sans-serif;
    --wp-estate-h3-font-size: inherit;
    --wp-estate-h3-font-size-option: inherit;
    --wp-estate-h3-font-weight: inherit;
    --wp-estate-h3-font-weight-option: inherit;
    /* H4 */
    --wp-estate-h4-font-family: 'Urbanist', sans-serif;
    --wp-estate-h4-font-family-option: 'Urbanist', sans-serif;
    --wp-estate-h4-font-size: inherit;
    --wp-estate-h4-font-size-option: inherit;
    --wp-estate-h4-font-weight: inherit;
    --wp-estate-h4-font-weight-option: inherit;
    /* H5 */
    --wp-estate-h5-font-family: 'Urbanist', sans-serif;
    --wp-estate-h5-font-family-option: 'Urbanist', sans-serif;
    --wp-estate-h5-font-size: inherit;
    --wp-estate-h5-font-size-option: inherit;
    --wp-estate-h5-font-weight: inherit;
    --wp-estate-h5-font-weight-option: inherit;
    /* H6 */
    --wp-estate-h6-font-family: 'Urbanist', sans-serif;
    --wp-estate-h6-font-family-option: 'Urbanist', sans-serif;
    --wp-estate-h6-font-size: inherit;
    --wp-estate-h6-font-size-option: inherit;
    --wp-estate-h6-font-weight: inherit;
    --wp-estate-h6-font-weight-option: inherit;

    /* Spacing */
    --viam-section-padding: 80px;
    --viam-container-width: 1200px;

    /* Transitions */
    --viam-transition: 0.3s ease;
}

/* --------------------------------------------------------------------------
   1b. Neutralize parent theme typography rules (_typography.scss)
   These rules override h1-h6 and p with hardcoded sizes/weights via CSS vars.
   We reset them to inherit so our viam-* classes take full control.
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   2. CSS Reset (minimal)
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   3. Typography
   --------------------------------------------------------------------------
   NOTE: body and heading font-family are set globally (branding).
   Heading font-sizes are NOT set globally to avoid conflicts with
   parent theme internal pages (property listings, archives, search).
   Each viam-* section defines its own heading sizes explicitly.
   -------------------------------------------------------------------------- */
body {
    font-family: var(--viam-font-body);
    font-weight: 400;
    color: var(--viam-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--viam-font-heading);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.viam-container {
    max-width: var(--viam-container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

.viam-section {
    padding-top: var(--viam-section-padding);
    padding-bottom: var(--viam-section-padding);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.viam-btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--viam-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--viam-transition);
    background-color: var(--viam-primary);
    color: var(--viam-white);
}

.viam-btn:hover,
.viam-btn:focus {
    background-color: var(--viam-primary-dark);
    color: var(--viam-white);
    text-decoration: none;
}

.viam-btn-outline {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--viam-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    border: 2px solid var(--viam-white);
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--viam-transition);
    background-color: transparent;
    color: var(--viam-white);
}

.viam-btn-outline:hover,
.viam-btn-outline:focus {
    background-color: var(--viam-white);
    color: var(--viam-primary);
    text-decoration: none;
}

.viam-btn-outline--dark {
    border-color: var(--viam-primary);
    color: var(--viam-primary);
}

.viam-btn-outline--dark:hover,
.viam-btn-outline--dark:focus {
    background-color: var(--viam-primary);
    color: var(--viam-white);
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

/* --- 6.1 Main Header --- */
.viam-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: var(--viam-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    transition: background-color var(--viam-transition),
                box-shadow var(--viam-transition);
}

.viam-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 12px;
}

/* Body offset for fixed header (inner pages) */
body {
    padding-top: 90px;
}

/* --- 6.1b Homepage Transparent Header --- */
body.home {
    padding-top: 0;
}

body.home .viam-header {
    position: absolute;
    background-color: transparent;
    box-shadow: none;
}

body.home .viam-logo-text {
    color: var(--viam-white);
}

/* Logo visibility handled by .viam-logo--color / .viam-logo--white classes */

body.home .viam-nav > li > a {
    color: var(--viam-white);
    font-size: 15px;
    font-weight: 400;
}

body.home .viam-nav > li.current-menu-item > a,
body.home .viam-nav > li.current-menu-ancestor > a {
    font-weight: 700;
    color: var(--viam-white);
}

body.home .viam-nav > li > a:hover {
    color: rgba(255, 255, 255, 0.8);
}

body.home .viam-nav > li.menu-item-has-children > a::after {
    border-top-color: var(--viam-white);
}

body.home .viam-header__lang {
    color: var(--viam-white);
}

body.home .viam-header__cta {
    background-color: var(--viam-white);
    color: #181C23;
    border-color: var(--viam-white);
    border-radius: 5px;
    font-size: 16px;
    padding: 10px 20px;
}

body.home .viam-header__cta:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #181C23;
}

body.home .viam-hamburger span {
    background-color: var(--viam-white);
}

/* Homepage: scrolled solid — switches to fixed */
body.home .viam-header.header-scrolled {
    position: fixed;
    background-color: var(--viam-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.home .viam-header.header-scrolled .viam-logo-text {
    color: var(--viam-text);
}

/* Scrolled logo visibility handled by .viam-logo--color / .viam-logo--white */

body.home .viam-header.header-scrolled .viam-nav > li > a {
    color: var(--viam-text);
}

body.home .viam-header.header-scrolled .viam-nav > li > a:hover,
body.home .viam-header.header-scrolled .viam-nav > li.current-menu-item > a,
body.home .viam-header.header-scrolled .viam-nav > li.current-menu-ancestor > a {
    color: var(--viam-primary);
}

body.home .viam-header.header-scrolled .viam-nav > li.menu-item-has-children > a::after {
    border-top-color: currentColor;
}

body.home .viam-header.header-scrolled .viam-header__lang {
    color: var(--viam-text);
}

body.home .viam-header.header-scrolled .viam-header__cta {
    background-color: var(--viam-primary);
    color: var(--viam-white);
    border-color: var(--viam-primary);
}

body.home .viam-header.header-scrolled .viam-header__cta:hover {
    background-color: var(--viam-primary-light);
    color: var(--viam-white);
}

body.home .viam-header.header-scrolled .viam-hamburger span {
    background-color: var(--viam-primary);
}

/* Half-map page: account for fixed header within 100vh layout */
body.wpresidence_half_map_body_class {
    padding-top: 90px;
    box-sizing: border-box;
}

body.wpresidence_half_map_body_class.admin-bar {
    padding-top: 142px;
}

@media (max-width: 782px) {
    body.wpresidence_half_map_body_class.admin-bar {
        padding-top: 156px;
    }
}

@media (max-width: 575.98px) {
    body.wpresidence_half_map_body_class {
        padding-top: 86px;
    }
    body.wpresidence_half_map_body_class.admin-bar {
        padding-top: 132px;
    }
}

/* Half-map page: hide header when map is fullscreen */
.viam-header.viam-header--hidden {
    display: none !important;
}

/* Half-map page: hide footer (full-screen layout) */
body.wpresidence_half_map_body_class .viam-footer {
    display: none !important;
}

/* WP admin bar adjustment */
.admin-bar .viam-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .viam-header {
        top: 46px;
    }
}

/* --- 6.2 Logo --- */
.viam-header__logo {
    flex: 0 0 auto;
}

.viam-logo-link {
    display: block;
    line-height: 0;
    position: relative;
}

.viam-logo {
    height: 70px !important;
    width: auto !important;
    max-width: 200px;
    display: block;
    transition: opacity 0.3s ease;
}

/* Default (inner pages, solid header): color logo visible, white hidden */
.viam-logo--color { display: block; }
.viam-logo--white { display: none; }

/* Homepage transparent header: white visible, color hidden */
body.home .viam-header:not(.header-scrolled) .viam-logo--color { display: none; }
body.home .viam-header:not(.header-scrolled) .viam-logo--white { display: block; }

/* Homepage scrolled (solid): color visible, white hidden */
body.home .viam-header.header-scrolled .viam-logo--color { display: block; }
body.home .viam-header.header-scrolled .viam-logo--white { display: none; }

/* Fallback text logo */
.viam-logo-text {
    font-family: var(--viam-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--viam-primary);
    text-decoration: none;
    white-space: nowrap;
}

.viam-logo-text:hover {
    color: var(--viam-primary-dark);
    text-decoration: none;
}

/* --- 6.3 Desktop Navigation --- */
.viam-header__nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.viam-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.viam-nav > li {
    position: relative;
}

.viam-nav > li > a {
    display: block;
    padding: 8px 10px;
    font-family: var(--viam-font-heading);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--viam-text);
    transition: color var(--viam-transition);
    white-space: nowrap;
}

.viam-nav > li > a:hover,
.viam-nav > li.current-menu-item > a,
.viam-nav > li.current-menu-ancestor > a {
    color: var(--viam-primary);
}

.viam-nav > li.current-menu-item > a,
.viam-nav > li.current-menu-ancestor > a {
    font-weight: 700;
}

/* Dropdown arrow */
.viam-nav > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
}

/* --- 6.4 Dropdown Submenu --- */
.viam-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--viam-white);
    border-radius: 5px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--viam-transition);
    z-index: 100;
}

.viam-nav > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.viam-nav .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-family: var(--viam-font-body);
    font-size: 13px;
    font-weight: 400;
    color: var(--viam-text);
    text-decoration: none;
    transition: all var(--viam-transition);
}

.viam-nav .sub-menu li a:hover {
    background-color: var(--viam-bg-light);
    color: var(--viam-primary);
}

/* --- 6.5 Header Actions (right zone) --- */
.viam-header__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

/* Language selector */
.viam-header__lang,
.viam-mobile-menu__lang {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* WPML dropdown: compact flag-only */
.viam-header__lang .wpml-ls-legacy-dropdown {
    width: auto;
}

.viam-header__lang .wpml-ls-legacy-dropdown a {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

.viam-header__lang .wpml-ls-legacy-dropdown a:hover,
.viam-header__lang .wpml-ls-legacy-dropdown a:focus,
.viam-header__lang .wpml-ls-legacy-dropdown .wpml-ls-current-language:hover > a {
    background: none;
    color: inherit;
}

.viam-header__lang .wpml-ls-legacy-dropdown a.wpml-ls-item-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    padding-right: 0;
}

/* Caret triangle: override WPML absolute positioning to inline flow */
.viam-header__lang .wpml-ls-legacy-dropdown a.wpml-ls-item-toggle::after {
    position: static;
    display: inline-block;
    border: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
}

.viam-header__lang .wpml-ls-legacy-dropdown .wpml-ls-flag {
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 12px;
}

/* Dropdown submenu */
.viam-header__lang .wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
    visibility: hidden;
    min-width: 44px;
    background: var(--viam-white);
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    padding: 4px 0;
    z-index: 9999;
}

.viam-header__lang .wpml-ls-legacy-dropdown .wpml-ls-current-language:hover .wpml-ls-sub-menu,
.viam-header__lang .wpml-ls-legacy-dropdown .wpml-ls-current-language:focus-within .wpml-ls-sub-menu {
    visibility: visible;
}

.viam-header__lang .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border: none;
}

.viam-header__lang .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a:hover {
    background: var(--viam-bg-light);
}

/* Homepage transparent header: white caret */
body.home .viam-header:not(.header-scrolled) .wpml-ls-legacy-dropdown a.wpml-ls-item-toggle::after {
    border-top-color: var(--viam-white);
}

/* Scrolled / inner pages: dark caret */
.header-scrolled .wpml-ls-legacy-dropdown a.wpml-ls-item-toggle::after {
    border-top-color: var(--viam-text);
}


/* Header CTA button */
.viam-header__cta {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    white-space: nowrap;
    text-align: center;
}

/* --- 6.6 Hamburger Button --- */
.viam-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.viam-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--viam-primary);
    border-radius: 5px;
    transition: all var(--viam-transition);
}

/* --- 6.7 Mobile Menu --- */
.viam-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--viam-transition);
}

.viam-mobile-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.viam-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--viam-white);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--viam-transition);
    overflow-y: auto;
}

.viam-mobile-menu.is-active {
    transform: translateX(0);
}

.viam-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--viam-border);
    min-height: 60px;
}

.viam-mobile-menu__logo img {
    height: 40px;
    width: auto;
}

/* Close button (X) */
.viam-mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.viam-mobile-menu__close span {
    position: absolute;
    width: 22px;
    height: 2px;
    background-color: var(--viam-primary);
    border-radius: 5px;
}

.viam-mobile-menu__close span:first-child {
    transform: rotate(45deg);
}

.viam-mobile-menu__close span:last-child {
    transform: rotate(-45deg);
}

/* Mobile nav */
.viam-mobile-menu__nav {
    flex: 1;
    padding: 20px 0;
}

.viam-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.viam-mobile-nav li {
    border-bottom: 1px solid var(--viam-border);
}

.viam-mobile-nav li a {
    display: block;
    padding: 14px 20px;
    font-family: var(--viam-font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--viam-text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color var(--viam-transition);
}

.viam-mobile-nav li a:hover,
.viam-mobile-nav li.current-menu-item > a {
    color: var(--viam-primary);
}

/* Mobile submenu */
.viam-mobile-nav .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--viam-bg-light);
}

.viam-mobile-nav .sub-menu li a {
    padding-left: 40px;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
}

.viam-mobile-menu__footer {
    padding: 20px;
    border-top: 1px solid var(--viam-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.viam-mobile-menu__cta {
    text-align: center;
}

/* --- 6.8 Hide parent theme header/footer elements --- */
.master_header,
#master_header,
.wpresidence_header_wrapper,
.header_media,
#header_media {
    display: none !important;
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */

/* --- 7.1 Footer Main --- */
.viam-footer__main {
    background-color: var(--viam-bg-dark);
    padding: 80px 0 60px;
}

.viam-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 128px;
}

/* --- 7.2 Footer Brand (col 1) --- */
.viam-footer__logo {
    margin-bottom: 24px;
}

.viam-footer__logo img {
    height: 70px;
    width: auto;
}

.viam-footer__logo a {
    display: inline-block;
    line-height: 0;
}

.viam-footer__logo-text {
    font-family: var(--viam-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--viam-white);
    text-decoration: none;
}

.viam-footer__logo-text:hover {
    color: var(--viam-white);
    text-decoration: none;
}

.viam-footer__desc {
    font-family: var(--viam-font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--viam-white);
    margin: 0;
}

/* --- 7.3 Footer Links (col 2) --- */
.viam-footer__title {
    font-family: var(--viam-font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--viam-white);
    margin: 0 0 24px;
}

.viam-footer__nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.viam-footer__nav li {
    margin-bottom: 12px;
}

.viam-footer__nav li a {
    font-family: var(--viam-font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--viam-white);
    text-decoration: none;
    transition: opacity var(--viam-transition);
}

.viam-footer__nav li a:hover {
    opacity: 0.8;
}

/* --- 7.4 Footer Contact (col 3) --- */
.viam-footer__info {
    list-style: none;
    margin: 0;
    padding: 0;
}

.viam-footer__info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-family: var(--viam-font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--viam-white);
}

.viam-footer__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--viam-white);
}

.viam-footer__info li a {
    color: var(--viam-white);
    text-decoration: none;
    transition: opacity var(--viam-transition);
}

.viam-footer__info li a:hover {
    opacity: 0.8;
}

/* --- 7.5 Footer Social --- */
.viam-footer__social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.viam-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #555;
    border-radius: 50%;
    color: var(--viam-white);
    text-decoration: none;
    transition: all var(--viam-transition);
}

.viam-footer__social-link svg {
    width: 18px;
    height: 18px;
}

.viam-footer__social-link:hover {
    background-color: var(--viam-primary);
    border-color: var(--viam-primary);
    color: var(--viam-white);
}

/* --- 7.6 Footer Copyright Bar --- */
.viam-footer__bottom {
    background-color: rgba(234, 234, 234, 0.92);
    border-top: none;
    padding: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viam-footer__copyright {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--viam-text);
    text-align: center;
    margin: 0;
    line-height: 60px;
}

.viam-footer__legal a {
    color: var(--viam-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.viam-footer__legal a:hover {
    color: var(--viam-primary);
    text-decoration: underline;
}

/* ==========================================================================
   8. Hero Section
   ========================================================================== */

/* --- 8.1 Hero Container --- */
.viam-hero {
    position: relative;
    width: 100%;
    height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Fallback gradient when no slideshow images */
    background:
        linear-gradient(135deg, #3A0F20 0%, #181C23 40%, #51172F 100%);
    overflow: visible;
}

/* --- 8.1b Slideshow --- */
.viam-hero__slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.viam-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.viam-hero__slide.active {
    opacity: 1;
}

/* Dual gradient overlay: top darkening + bottom darkening */
.viam-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 45%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, transparent 65%),
        rgba(0, 0, 0, 0.15);
    z-index: 1;
    pointer-events: none;
}

/* --- 8.2 Hero Content --- */
.viam-hero__content {
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
}

.viam-hero__text {
    max-width: 570px;
}

.viam-hero__title {
    font-family: var(--viam-font-heading);
    font-weight: 700;
    font-size: 43.9px;
    line-height: 1.15;
    color: var(--viam-white);
    margin: 0 0 24px;
}

.viam-hero__desc {
    font-family: var(--viam-font-body) !important;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    color: var(--viam-white);
    opacity: 0.9;
    margin: 0 0 32px;
}

.viam-hero__cta {
    font-family: var(--viam-font-body);
    font-weight: 400;
    font-size: 17px;
    padding: 14px 36px;
    border-width: 1px;
    text-transform: none;
    letter-spacing: 0;
}

/* ==========================================================================
   9. Booking Bar
   ========================================================================== */

.viam-booking {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: -50px auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* WuBook / external booking iframe widget inside container */
.viam-booking iframe {
    width: 100% !important;
    max-width: 100%;
    border: none;
    display: block;
    border-radius: 5px;
    background: #fff;
}

/* Style raw embed wrapper (WuBook injects its iframe in a div id="the_place_where_iframe_will_be_installed") */
.viam-booking > div {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.viam-booking__inner {
    display: flex;
    align-items: center;
    gap: 0;
    background: #EAEAEA;
    border-radius: 5px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    padding: 16px 24px;
}

/* --- 9.1 Booking Fields --- */
.viam-booking__field {
    flex: 1;
    padding: 8px 16px;
    min-width: 0;
}

.viam-booking__label {
    display: block;
    font-family: var(--viam-font-body);
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--viam-text-light);
    margin-bottom: 6px;
}

.viam-booking__value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--viam-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--viam-text);
    white-space: nowrap;
    cursor: pointer;
}

.viam-booking__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--viam-primary);
}

.viam-booking__chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--viam-text-light);
}

/* --- 9.2 Separator --- */
.viam-booking__separator {
    width: 1px;
    height: 40px;
    background-color: var(--viam-border);
    flex-shrink: 0;
}

/* --- 9.3 Extra Links --- */
.viam-booking__extras {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 16px;
    flex-shrink: 0;
}

.viam-booking__link {
    font-family: var(--viam-font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--viam-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--viam-transition);
}

.viam-booking__link:hover {
    color: var(--viam-primary-dark);
    text-decoration: underline;
}

/* --- 9.4 Submit Button --- */
.viam-booking__submit {
    flex-shrink: 0;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.06em;
    white-space: nowrap;
    border: none;
    margin-left: 8px;
    background-color: #51172F;
    color: var(--viam-white);
}

/* Space after hero for the overlapping booking bar */
.viam-hero + .viam-section,
.viam-hero + section {
    padding-top: calc(var(--viam-section-padding) + 60px);
}

/* ==========================================================================
   10. About / Chi Siamo
   ========================================================================== */

.viam-about {
    background-color: var(--viam-white);
    padding-top: 120px;
    padding-bottom: var(--viam-section-padding);
}

.viam-about__grid {
    display: grid;
    grid-template-columns: 47fr 53fr;
    gap: 48px;
    align-items: center;
}

/* --- 10.1 Image Column --- */
.viam-about__image {
    border-radius: 5px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background-color: var(--viam-bg-light);
    box-shadow: 0 5px 70px rgba(38, 42, 76, 0.1);
}

.viam-about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.viam-about__image--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e8e8e8 0%, #d4d4d4 100%);
}

.viam-about__image--fallback::after {
    content: 'Image';
    font-family: var(--viam-font-body);
    font-size: 14px;
    color: #999;
}

/* --- 10.2 Text Column --- */
.viam-about__label {
    display: inline-block;
    font-family: var(--viam-font-heading);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--viam-primary);
    margin-bottom: 16px;
}

.viam-about__title {
    font-family: var(--viam-font-heading);
    font-weight: 700;
    font-size: 40px;
    line-height: 1.3;
    color: var(--viam-bg-dark);
    margin: 0 0 24px;
}

.viam-about__desc {
    font-family: var(--viam-font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    color: var(--viam-text-light);
    margin: 0 0 32px;
}

.viam-about__cta {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
}

/* ==========================================================================
   11. Map + CTA
   ========================================================================== */

.viam-map-cta {
    display: grid;
    grid-template-columns: 60fr 40fr;
    min-height: 500px;
}

/* --- 11.1 Image Side (left) --- */
.viam-map-cta__image {
    position: relative;
    overflow: hidden;
    background-color: #E8E8E8;
    border-radius: 5px 0 0 5px;
}

.viam-map-cta__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left,
        rgba(81, 23, 47, 1) 0%,
        rgba(81, 23, 47, 0.73) 30%,
        rgba(81, 23, 47, 0) 65%
    );
    z-index: 1;
    pointer-events: none;
}

.viam-map-cta__slides {
    position: absolute;
    inset: 0;
}

/* Desktop/mobile slide visibility */
.viam-map-cta__slides--mobile {
    display: none;
}

@media (max-width: 768px) {
    .viam-map-cta__slides--desktop {
        display: none;
    }
    .viam-map-cta__slides--mobile {
        display: block;
    }
}

.viam-map-cta__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.viam-map-cta__slide.active {
    opacity: 1;
}

.viam-map-cta__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.viam-map-cta__placeholder span {
    font-family: var(--viam-font-body);
    font-size: 14px;
    font-weight: 500;
    color: #999;
    letter-spacing: 0.05em;
}

/* --- 11.2 CTA Side (right) --- */
.viam-map-cta__content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    background-color: var(--viam-primary);
    border-radius: 0 5px 5px 0;
}

.viam-map-cta__inner {
    text-align: center;
    max-width: 440px;
}

.viam-map-cta__title {
    font-family: var(--viam-font-heading);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.3;
    color: var(--viam-white);
    margin: 0 0 20px;
}

.viam-map-cta__desc {
    font-family: var(--viam-font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.viam-map-cta__btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--viam-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--viam-white);
    background: transparent;
    border: 2px solid var(--viam-white);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color var(--viam-transition), color var(--viam-transition);
}

.viam-map-cta__btn:hover {
    background-color: var(--viam-white);
    color: var(--viam-primary);
    text-decoration: none;
}

/* ==========================================================================
   12. Suites Grid
   ========================================================================== */

/* --- 12.1 Section --- */
.viam-suites {
    background-color: var(--viam-white);
    position: relative;
    overflow: hidden;
}

/* Decorative diamonds (4 rhombus shapes) */
.viam-suites::before,
.viam-suites::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background-color: rgba(81, 23, 47, 0.15);
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 0;
}

.viam-suites::before {
    top: 60px;
    left: -40px;
}

.viam-suites::after {
    bottom: 80px;
    right: -40px;
}

.viam-suites .viam-container::before,
.viam-suites .viam-container::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: rgba(81, 23, 47, 0.15);
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 0;
}

.viam-suites .viam-container {
    position: relative;
    z-index: 1;
}

.viam-suites .viam-container::before {
    top: -20px;
    right: 80px;
}

.viam-suites .viam-container::after {
    bottom: 20px;
    left: 60px;
}

.viam-suites__header {
    text-align: center;
    margin-bottom: 48px;
}

.viam-suites__label {
    display: inline-block;
    font-family: var(--viam-font-heading);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--viam-primary);
    margin-bottom: 16px;
}

.viam-suites__title {
    font-family: var(--viam-font-heading);
    font-weight: 700;
    font-size: 40px;
    line-height: 1.3;
    color: var(--viam-bg-dark);
    margin: 0;
}

.viam-suites__empty {
    text-align: center;
    font-family: var(--viam-font-body);
    font-size: 16px;
    color: var(--viam-text-light);
    padding: 40px 0;
}

/* --- 12.2 Grid --- */
.viam-suites__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* --- 12.3 Property Card --- */
.viam-card {
    background: var(--viam-bg-light);
    border-radius: 5px;
    overflow: hidden;
    transition: box-shadow var(--viam-transition), transform var(--viam-transition);
    display: flex;
    flex-direction: column;
}

.viam-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
    transform: translateY(-4px);
}

.viam-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.viam-card__link:hover {
    text-decoration: none;
    color: inherit;
}

/* --- 12.4 Card Image --- */
.viam-card__image {
    position: relative;
    aspect-ratio: 100 / 57.8;
    overflow: hidden;
    background-color: var(--viam-bg-light);
}

.viam-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.viam-card:hover .viam-card__img {
    transform: scale(1.05);
}

.viam-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #e8e8e8 0%, #d4d4d4 100%);
}

.viam-card__photo-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--viam-white);
    border-radius: 5px;
    font-family: var(--viam-font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.viam-card__photo-badge svg {
    flex-shrink: 0;
}

/* --- 12.5 Card Content --- */
.viam-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.viam-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.viam-card__title {
    font-family: var(--viam-font-body);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: var(--viam-text);
    margin: 0;
}

.viam-card__structure {
    display: inline-block;
    font-family: var(--viam-font-body);
    font-size: 17px;
    font-weight: 400;
    color: var(--viam-text);
    margin-bottom: 12px;
}

.viam-card__desc {
    font-family: var(--viam-font-body);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.65;
    color: var(--viam-text-light);
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 12.6 Card Footer --- */
.viam-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--viam-border);
}

.viam-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.viam-card__meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--viam-font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--viam-text-light);
    white-space: nowrap;
}

.viam-card__meta-item svg {
    flex-shrink: 0;
    color: var(--viam-text-light);
}

.viam-card__cta {
    display: inline-block;
    padding: 10px 16px;
    background-color: var(--viam-text);
    color: var(--viam-white);
    font-family: var(--viam-font-body);
    font-size: 14px;
    font-weight: 400;
    border-radius: 5px;
    white-space: nowrap;
    transition: background-color var(--viam-transition);
}

.viam-card__link:hover .viam-card__cta {
    background-color: var(--viam-primary);
}

/* ==========================================================================
   13. CTA Relax
   ========================================================================== */

.viam-cta-relax {
    display: grid;
    grid-template-columns: 42fr 58fr;
    min-height: 450px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

/* Decorative diamond (overflows left/top) */
.viam-cta-relax::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background-color: var(--viam-primary);
    transform: rotate(45deg);
    top: -200px;
    left: -280px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

/* --- 13.1 CTA Content (left) --- */
.viam-cta-relax__content {
    display: flex;
    align-items: center;
    padding: 80px;
    background: var(--viam-primary);
    position: relative;
    z-index: 2;
}

.viam-cta-relax__inner {
    max-width: 500px;
}

.viam-cta-relax__title {
    font-family: var(--viam-font-heading);
    font-weight: 700;
    font-size: 40px;
    line-height: 1.24;
    color: var(--viam-white);
    margin: 0;
}

.viam-cta-relax__desc {
    font-family: var(--viam-font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: var(--viam-white);
    margin: 16px 0 0;
}

.viam-cta-relax__btn {
    display: inline-block;
    margin-top: 32px;
    padding: 10px 16px;
    font-family: var(--viam-font-body);
    font-size: 17px;
    font-weight: 400;
    color: var(--viam-text);
    background-color: var(--viam-white);
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color var(--viam-transition), color var(--viam-transition);
}

.viam-cta-relax__btn:hover {
    background-color: var(--viam-bg-light);
    color: var(--viam-text);
    text-decoration: none;
}

/* --- 13.2 Image (right) --- */
.viam-cta-relax__image {
    position: relative;
    overflow: hidden;
    background-color: #E0E0E0;
}

.viam-cta-relax__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(81, 23, 47, 1) 0%,
        rgba(81, 23, 47, 0.73) 30%,
        rgba(81, 23, 47, 0) 65%
    );
    z-index: 1;
    pointer-events: none;
}

.viam-cta-relax__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.viam-cta-relax__img--mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .viam-cta-relax__img--desktop {
        display: none !important;
    }
    .viam-cta-relax__img--mobile {
        display: block !important;
    }
}

.viam-cta-relax__image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e8e8e8 0%, #d4d4d4 100%);
}

/* ==========================================================================
   14. Social Proof
   ========================================================================== */

.viam-social-proof {
    background-color: var(--viam-white);
}

/* --- 14.1 Outer Grid (2 cards side by side) --- */
.viam-social-proof__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* --- 14.2 Card (image only) --- */
.viam-social-proof__card {
    border-radius: 5px;
    overflow: hidden;
}

.viam-social-proof__card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* Desktop/mobile image visibility */
.viam-social-proof__img--mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .viam-social-proof__img--desktop {
        display: none !important;
    }
    .viam-social-proof__img--mobile {
        display: block !important;
    }
}

/* ==========================================================================
   14.5 Property Detail Page Cleanup (Holiday Rental)
   Most sections removed via PHP (inc/cleanup.php + template overrides).
   Only floating UI elements that can't be removed via PHP remain here.
   ========================================================================== */

/* Hide floating buttons (rendered by parent theme JS, not template-overridable) */
.home .backtop,
.home .contact-box,
.home .contactformwrapper,
.single-estate_property .backtop,
.single-estate_property .contact-box,
.single-estate_property .contactformwrapper {
    display: none !important;
}

/* --------------------------------------------------------------------------
   14.5b Lightbox gallery — 70% width without contact form
   -------------------------------------------------------------------------- */
.lightbox_property_wrapper .lightbox_property_content.row .lightbox_property_slider.col-md-12.lightbox_no_contact {
    max-width: 100%;
    margin: 0 auto;
}

.lightbox_property_wrapper_level2.lightbox_wrapped_no_contact.ligtbox_no_crop {
    max-width: 85%;
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
}

/* --------------------------------------------------------------------------
   14.5c Gallery — subtle bottom rounding
   -------------------------------------------------------------------------- */
.single-estate_property .wpestate_property_header_extended {
    overflow: hidden;
    border-radius: 0 0 5px 5px;
}

.wpestate_property_header_extended.wpestate_lay6_header-masonry-gallery {
    margin-bottom: 30px;
}

/* --------------------------------------------------------------------------
   14.6 Parent Theme Color Overrides
   --------------------------------------------------------------------------
   WPResidence uses --wp-estate-main-color-option (default #0073e1 blue)
   and --wp-estate-second-color-option (default #69c17d green).
   Override both to Viam brand bordeaux.
   -------------------------------------------------------------------------- */
:root {
    --wp-estate-main-color-option: var(--viam-primary);
    --wp-estate-second-color-option: var(--viam-primary);
    --wp-estate-main-color: var(--viam-primary);
    --wp-estate-second-color: var(--viam-primary);
}

/* Google Maps button in address section */
.acc_google_maps {
    background-color: var(--viam-primary) !important;
    color: #fff !important;
    border-radius: 5px;
    padding: 4px 12px;
    transition: background-color var(--viam-transition);
}

.acc_google_maps:hover {
    background-color: var(--viam-primary-light) !important;
    color: #fff !important;
}

/* Accordion buttons */
.single-estate_property .accordion-button:not(.collapsed) {
    color: var(--viam-primary);
    background-color: transparent;
}

.single-estate_property .accordion-button:focus {
    box-shadow: 0 0 0 0.15rem rgba(81, 23, 47, 0.25);
}

/* Theme buttons */
.wpresidence_button,
.property_listing .property-unit-information-detail-slider a,
.prop_details .wpresidence_button {
    background-color: var(--viam-primary) !important;
    border-color: var(--viam-primary) !important;
}

.wpresidence_button:hover,
.property_listing .property-unit-information-detail-slider a:hover,
.prop_details .wpresidence_button:hover {
    background-color: var(--viam-primary-light) !important;
    border-color: var(--viam-primary-light) !important;
    color: #fff !important;
}

/* Inverse buttons: bordeaux bg + white text → hover: white bg + bordeaux text */
.wpresidence_button.wpresidence_button_inverse {
    background-color: var(--viam-primary) !important;
    color: #fff !important;
}
.wpresidence_button.wpresidence_button_inverse:hover {
    background-color: #fff !important;
    color: var(--viam-primary) !important;
}

/* Links inside property page */
.single-estate_property .accordion-body a {
    color: var(--viam-primary);
}

.single-estate_property .accordion-body a:hover {
    color: var(--viam-primary-light);
}

/* Sticky nav active state */
.wpestate_top_property_navigation a.active_tab,
.wpestate_top_property_navigation a:hover {
    color: var(--viam-primary) !important;
    border-bottom-color: var(--viam-primary) !important;
}

/* Property card "Scopri" button */
.property_listing .property_unit_details_x a.unit_details_x {
    color: var(--viam-primary) !important;
}

.property_listing .property_unit_details_x a.unit_details_x:hover {
    color: var(--viam-primary-light) !important;
}

/* Parent theme card border-radius overrides */
.listing_wrapper,
.property_listing,
.property_unit_type5,
[class*="listing_wrapper"] {
    border-radius: 5px !important;
}

.listing_wrapper img,
.property_listing img,
.property_unit_type5 img {
    border-radius: 5px 5px 0 0 !important;
}

/* --------------------------------------------------------------------------
   14.7 Property Feature Icons Grid
   -------------------------------------------------------------------------- */
.viam-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.viam-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 5px;
    transition: background-color var(--viam-transition);
}

.viam-feature-item:hover {
    background-color: var(--viam-bg-light);
}

.viam-feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--viam-primary);
}

.viam-feature-icon svg {
    width: 32px;
    height: 32px;
}

.viam-feature-label {
    font-family: var(--viam-font-body);
    font-weight: 400;
    font-size: 15px;
    color: var(--viam-text);
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   14.8 Half-Map Page Brand Colors
   -------------------------------------------------------------------------- */

/* Search bar dropdowns */
.wpresidence_half_map_body_class .wpresidence_dropdown .dropdown-menu li:hover,
.wpresidence_half_map_body_class .wpresidence_dropdown .dropdown-menu li.active {
    background-color: var(--viam-primary);
    color: #fff;
}

/* Search submit button */
.wpresidence_half_map_body_class .advanced_submit_4 {
    background-color: var(--viam-primary) !important;
    border-color: var(--viam-primary) !important;
}

.wpresidence_half_map_body_class .advanced_submit_4:hover {
    background-color: var(--viam-primary-light) !important;
    border-color: var(--viam-primary-light) !important;
}

/* Filter bar toggle active state */
.wpresidence_half_map_body_class .half_map_selected {
    color: var(--viam-primary) !important;
    border-bottom-color: var(--viam-primary) !important;
}

/* Sort dropdown active item */
.wpresidence_half_map_body_class .sort_by_filters .dropdown-menu li:hover,
.wpresidence_half_map_body_class .sort_by_filters .dropdown-menu li.active {
    color: var(--viam-primary);
}

/* Property cards on half-map: "Scopri" link */
.wpresidence_half_map_body_class .property_listing .property_unit_details_x a.unit_details_x {
    color: var(--viam-primary) !important;
}

.wpresidence_half_map_body_class .property_listing .property_unit_details_x a.unit_details_x:hover {
    color: var(--viam-primary-light) !important;
}

/* Property card featured badge */
.wpresidence_half_map_body_class .featured_div {
    background-color: var(--viam-primary) !important;
}

/* Map marker clusters — !important needed to override MarkerCluster.Default.css */
.marker-cluster-small {
    background-color: rgba(81, 23, 47, 0.4) !important;
}

.marker-cluster-small div {
    background-color: rgba(81, 23, 47, 0.8) !important;
}

.marker-cluster-medium {
    background-color: rgba(81, 23, 47, 0.5) !important;
}

.marker-cluster-medium div {
    background-color: rgba(81, 23, 47, 0.85) !important;
}

.marker-cluster-large {
    background-color: rgba(81, 23, 47, 0.6) !important;
}

.marker-cluster-large div {
    background-color: var(--viam-primary) !important;
}

.marker-cluster div {
    color: #fff !important;
}

.marker-cluster span {
    color: #fff !important;
}

/* Map control buttons (geolocation, fullscreen) */
.wpresidence_half_map_body_class #geolocation-button:hover,
.wpresidence_half_map_body_class #gmap-full:hover {
    color: #fff;
}

/* Beds/Baths popup selected items */
.wpresidence_half_map_body_class .wp_estate_beds_component_item.beds_baths_selected,
.wpresidence_half_map_body_class .wp_estate_baths_component_item.beds_baths_selected {
    background-color: var(--viam-primary) !important;
    border-color: var(--viam-primary) !important;
    color: #fff !important;
}

/* Pagination active */
.wpresidence_half_map_body_class .pagination .active a {
    background-color: var(--viam-primary) !important;
    border-color: var(--viam-primary) !important;
}

/* Half-map border-radius overrides */
.wpresidence_half_map_body_class .wpresidence_dropdown .dropdown-menu,
.wpresidence_half_map_body_class .sort_by_filters .dropdown-menu {
    border-radius: 5px !important;
}

.wpresidence_half_map_body_class .advanced_submit_4 {
    border-radius: 5px !important;
}

.wpresidence_half_map_body_class .wp_estate_beds_component_item,
.wpresidence_half_map_body_class .wp_estate_baths_component_item {
    border-radius: 5px !important;
}

#google_map_prop_list_sidebar .single-content {
    min-height: 0 !important;
}

/* Half-map sidebar: ensure last listings are fully visible when scrolling */
#google_map_prop_list_sidebar {
    margin-bottom: 0 !important;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    #google_map_prop_list_sidebar {
        padding-bottom: 0;
    }
}

/* --------------------------------------------------------------------------
   14.9 Property Content — Airbnb-style Restyling
   -------------------------------------------------------------------------- */

/* ── 14.9.1 General Section Titles ── */
.single-estate_property .viam-section {
    margin-bottom: 0;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid #eee;
}

.single-estate_property .viam-section:first-child {
    border-top: none;
    padding-top: 0;
}

.single-estate_property .viam-section__title,
.single-estate_property .agent_listings_title_similar {
    font-family: var(--viam-font-heading);
    font-size: 22px;
    font-weight: 600;
    font-style: normal;
    color: #181C23;
    margin: 0 0 20px;
    padding: 0;
    border-bottom: none;
    line-height: 1.3;
}

.single-estate_property .viam-section__content {
    padding: 0;
    margin-bottom: 32px;
}

/* Hide any leftover accordion artifacts */
.single-estate_property .accordion-button::after {
    display: none;
}

/* ── 14.9.2 Title Area (replaces parent's wpresidence_property_page_title_area) ── */

/* Hide parent's title area wrapper — we use .viam-title-area instead */
.single-estate_property .wpresidence_property_page_title_area {
    display: none !important;
}

/* Viam title area: stacked rows */
.viam-title-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 24px;
    margin-bottom: 0;
}

/* Row 1: Title */
.viam-title-area__title {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-family: var(--viam-font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #181C23;
    margin: 0 0 8px;
}

/* Row 2: Structure badge */
.viam-title-area__badge {
    display: inline-block;
    font-family: var(--viam-font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--viam-primary);
    border: 1.5px solid var(--viam-primary);
    border-radius: 20px;
    padding: 4px 14px;
    line-height: 1.3;
}

/* Row 3: Address */
.viam-title-area__address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--viam-font-body);
    font-size: 15px;
    font-weight: 400;
    color: #777;
    margin: 12px 0 0;
    line-height: 1.4;
}

.viam-title-area__address svg {
    flex-shrink: 0;
    color: var(--viam-primary);
}

/* Row 4: Info grid (5 stat boxes) */
.viam-info-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: 16px;
    margin-bottom: 32px;
}

.viam-info-grid__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 16px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.viam-info-grid__box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.viam-info-grid__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--viam-primary);
    line-height: 0;
}

.viam-info-grid__value {
    font-family: var(--viam-font-body);
    font-size: 24px;
    font-weight: 700;
    color: #181C23;
    margin-top: 8px;
    line-height: 1;
}

.viam-info-grid__label {
    font-family: var(--viam-font-body);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-top: 4px;
    line-height: 1.2;
}

/* ── 14.9.3 Description Section Typography ── */
.single-estate_property .viam-section#wpestate_property_description_section .viam-section__content p {
    font-family: var(--viam-font-body);
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* ── 14.9.4 "Dove dormirai" Bed Cards ── */
.viam-beds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.viam-bed-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.viam-bed-card__icon {
    color: var(--viam-primary);
    line-height: 0;
}

.viam-bed-card__icon svg {
    width: 40px;
    height: 40px;
}

.viam-bed-card__label {
    font-family: var(--viam-font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--viam-text);
}

.viam-bed-card__type {
    font-family: var(--viam-font-body);
    font-size: 14px;
    color: #666;
}

/* ── 14.9.4b Room Details Section ── */
.viam-room-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.viam-room-detail-card {
    background: #fff;
    border: 1px solid var(--viam-border);
    border-radius: 5px;
    padding: 20px;
}

.viam-room-detail-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.viam-room-detail-card__icon {
    color: var(--viam-primary);
    flex-shrink: 0;
}

.viam-room-detail-card__title {
    font-family: var(--viam-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--viam-text);
    margin: 0;
}

.viam-room-detail-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.viam-room-detail-card__list li {
    font-family: var(--viam-font-body);
    font-size: 14px;
    color: var(--viam-text-light);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.viam-room-detail-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--viam-primary);
    border-radius: 50%;
    transform: translateY(-50%);
}

@media (max-width: 575px) {
    .viam-room-details-grid {
        grid-template-columns: 1fr;
    }
}

/* ── 14.9.5 Posizione Section ── */
.single-estate_property .viam-section--posizione .viam-posizione__address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--viam-font-body);
    font-size: 16px;
    color: #555;
    margin: 0 0 20px;
}

.single-estate_property .viam-section--posizione .viam-posizione__address svg {
    flex-shrink: 0;
    color: var(--viam-primary);
}

.single-estate_property .viam-posizione__map {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
}

.single-estate_property .viam-posizione__map .google_map_shortcode_wrapper,
.single-estate_property .viam-posizione__map #googleMap_shortcode,
.single-estate_property .viam-posizione__map .gm-style {
    min-height: 400px !important;
    border-radius: 5px;
}

.single-estate_property .viam-posizione__gmaps-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--viam-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--viam-primary);
    background: transparent;
    border: 1.5px solid var(--viam-primary);
    border-radius: 5px;
    padding: 10px 20px;
    text-decoration: none;
    transition: background-color var(--viam-transition), color var(--viam-transition);
}

.single-estate_property .viam-posizione__gmaps-btn:hover {
    background: var(--viam-primary);
    color: #fff;
}

/* ── 14.9.5b Nei Dintorni Section ── */
.viam-nearby-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.viam-nearby-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.viam-nearby-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.viam-nearby-card__icon {
    color: var(--viam-primary);
    flex-shrink: 0;
    display: flex;
}

.viam-nearby-card__title {
    font-family: var(--viam-font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--viam-text);
    margin: 0;
}

.viam-nearby-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.viam-nearby-poi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.viam-nearby-poi:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.viam-nearby-poi__name {
    font-family: var(--viam-font-body);
    font-size: 14px;
    color: var(--viam-text);
    flex: 1;
    min-width: 0;
}

.viam-nearby-poi__info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 12px;
}

.viam-nearby-poi__distance {
    font-family: var(--viam-font-body);
    font-size: 14px;
    color: #888;
    white-space: nowrap;
}

.viam-nearby-poi__time {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: var(--viam-font-body);
    font-size: 13px;
    color: #aaa;
    white-space: nowrap;
}

.viam-nearby-poi__time svg {
    flex-shrink: 0;
}

/* ── 14.9.6 Features Section ── */
.single-estate_property .viam-section#accordion_features_details {
    background: #fafafa;
    padding: 30px;
    border-radius: 5px;
}

/* ── 14.9.7 Similar Listings ── */
.single-estate_property .agent_listings_title_similar {
    margin-top: 0;
    padding-top: 32px;
    border-top: 1px solid #eee;
}

.single-estate_property #property_similar_listings {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.single-estate_property #property_similar_listings > .listing_wrapper {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    padding: 0;
}

.single-estate_property #property_similar_listings .listing_unit_price_wrapper {
    display: none;
}

/* ── 14.9.8 Unified card meta row (all pages) ── */
.viam-card-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-family: var(--viam-font-body);
    font-size: 13px;
    color: #666;
    padding: 6px 0;
    line-height: 1;
}

.viam-card-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.viam-card-meta__icon {
    color: var(--viam-primary);
    flex-shrink: 0;
}

.viam-card-meta__sep {
    color: #ccc;
    margin: 0 5px;
    font-size: 10px;
    line-height: 1;
}

/* ── 14.9.9 Sticky Navigation Bar ── */
.single-estate_property #wpestate_top_property_navigation {
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 0 20px;
}

.single-estate_property #wpestate_top_property_navigation a {
    font-family: var(--viam-font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #888;
    padding: 14px 16px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color var(--viam-transition), border-color var(--viam-transition);
}

.single-estate_property #wpestate_top_property_navigation a:hover,
.single-estate_property #wpestate_top_property_navigation a.active_nav {
    color: var(--viam-primary);
    border-bottom-color: var(--viam-primary);
}

/* ── 14.9.10 Sidebar bed type row ── */
.viam-sidebar-stats__beds {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    font-family: var(--viam-font-body);
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.viam-sidebar-stats__beds svg {
    color: var(--viam-primary);
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── 14.9.11 Homepage card meta (reuses unified .viam-card-meta-row) ── */
.viam-card__footer .viam-card-meta-row {
    padding: 4px 0 0;
}

/* ── 14.9.13 Structure logo on property cards ── */
.viam-card__header,
.viam-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.viam-card__header h3,
.viam-card-title-row h3,
.viam-card-title-row h4 {
    flex: 1;
    min-width: 0;
}

.viam-card-logo {
    flex-shrink: 0;
}

/* Inside parent theme cards, add right padding so logo doesn't touch edge */
.property_listing .viam-card-logo {
    margin-right: 15px;
}

.viam-card-logo img {
    max-height: 35px;
    max-width: 120px;
    width: auto;
    height: auto;
}

.viam-card-logo--fallback img {
    filter: brightness(0);
}

/* ── 14.9.12 Responsive ── */
@media (max-width: 991px) {
    .single-estate_property #property_similar_listings > .listing_wrapper {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 767px) {
    .single-estate_property .viam-section__title,
    .single-estate_property .agent_listings_title_similar {
        font-size: 20px;
    }

    .single-estate_property .viam-section#accordion_features_details {
        padding: 20px;
    }

    .single-estate_property .viam-posizione__map .google_map_shortcode_wrapper,
    .single-estate_property .viam-posizione__map #googleMap_shortcode,
    .single-estate_property .viam-posizione__map .gm-style {
        min-height: 280px !important;
    }

    .viam-title-area__title {
        font-size: 28px;
    }

    .viam-title-area__badge {
        font-size: 11px;
        padding: 3px 12px;
    }

    .viam-title-area__address {
        font-size: 14px;
    }

    .viam-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .viam-info-grid__value {
        font-size: 20px;
    }

    .single-estate_property #wpestate_top_property_navigation a {
        font-size: 12px;
        padding: 12px 10px;
    }

    .viam-beds-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .viam-nearby-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .single-estate_property #property_similar_listings > .listing_wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .viam-beds-grid {
        grid-template-columns: 1fr;
    }

    .viam-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .viam-info-grid__box {
        padding: 12px 8px;
    }

    .viam-info-grid__value {
        font-size: 18px;
    }

    .viam-info-grid__label {
        font-size: 11px;
    }
}

/* --------------------------------------------------------------------------
   14.10 Property Detail Sidebar
   -------------------------------------------------------------------------- */

/* Two-column layout: content 65% + sidebar 35% */
.viam-property-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
}

@media (min-width: 1024px) {
    .viam-property-layout {
        grid-template-columns: 65fr 35fr;
    }
}

/* Sidebar wrapper — sticky on desktop */
.viam-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 1024px) {
    .viam-sidebar {
        position: sticky;
        top: 130px;
        align-self: start;
    }
}

/* Common box style */
.viam-sidebar-box {
    background: var(--viam-white);
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── BOX 1: CTA ── */
.viam-sidebar-cta {
    background: linear-gradient(135deg, var(--viam-primary), var(--viam-primary-dark));
    border: none;
    color: #fff;
    text-align: center;
    padding: 30px;
}

.viam-sidebar-cta__title {
    font-family: var(--viam-font-heading);
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #fff;
}

.viam-sidebar-cta__subtitle {
    font-family: var(--viam-font-body);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px;
}

.viam-sidebar-cta__btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-family: var(--viam-font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    transition: background-color var(--viam-transition), color var(--viam-transition);
}

.viam-sidebar-cta__btn:hover {
    background: #fff;
    color: var(--viam-primary);
}

.viam-sidebar-cta__contacts {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.viam-sidebar-cta__contact {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--viam-font-body);
    font-size: 13px;
    text-decoration: none;
    transition: color var(--viam-transition);
}

.viam-sidebar-cta__contact:hover {
    color: #fff;
}

.viam-sidebar-cta__contact svg {
    flex-shrink: 0;
}

/* ── BOX 2: Stats ── */
.viam-sidebar-stats__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.viam-sidebar-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.viam-sidebar-stat__icon {
    color: var(--viam-primary);
    margin-bottom: 4px;
}

.viam-sidebar-stat__value {
    font-family: var(--viam-font-body);
    font-size: 24px;
    font-weight: 700;
    color: var(--viam-text);
    line-height: 1.1;
}

.viam-sidebar-stat__label {
    font-family: var(--viam-font-body);
    font-size: 13px;
    color: var(--viam-text-light);
}

/* ── BOX 3: Structure ── */
.viam-sidebar-structure__logo {
    margin-bottom: 12px;
    padding: 12px;
    background: #333;
    border-radius: 5px;
    text-align: center;
}

.viam-sidebar-structure__logo img {
    max-height: 50px;
    width: auto;
}

.viam-sidebar-structure__name {
    font-family: var(--viam-font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--viam-text);
    margin: 0 0 4px;
}

.viam-sidebar-structure__address {
    font-family: var(--viam-font-body);
    font-size: 13px;
    color: var(--viam-text-light);
    margin: 0 0 12px;
}

.viam-sidebar-structure__desc {
    font-family: var(--viam-font-body);
    font-size: 14px;
    color: var(--viam-text);
    line-height: 1.5;
    margin: 0 0 14px;
}

.viam-sidebar-structure__link {
    font-family: var(--viam-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--viam-primary);
    text-decoration: none;
    transition: color var(--viam-transition);
}

.viam-sidebar-structure__link:hover {
    color: var(--viam-primary-light);
}

/* ── BOX 4: Ratings ── */
.viam-sidebar-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}

.viam-sidebar-rating:first-child {
    padding-top: 0;
}

.viam-sidebar-rating + .viam-sidebar-rating {
    border-top: 1px solid #f0f0f0;
}

.viam-sidebar-rating__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.viam-sidebar-rating__platform {
    font-family: var(--viam-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--viam-text);
    min-width: 85px;
}

.viam-sidebar-rating__score {
    font-family: var(--viam-font-body);
    font-size: 15px;
    font-weight: 700;
    color: var(--viam-text);
}

.viam-sidebar-rating__count {
    font-family: var(--viam-font-body);
    font-size: 12px;
    color: var(--viam-text-light);
    margin-left: auto;
}

.viam-sidebar-ratings__note {
    font-family: var(--viam-font-body);
    font-size: 12px;
    color: var(--viam-text-light);
    margin: 8px 0 0;
    text-align: center;
}

/* ── BOX 5: Info Pratiche ── */
.viam-sidebar-info__title {
    font-family: var(--viam-font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--viam-text);
    margin: 0 0 14px;
}

.viam-sidebar-info__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.viam-sidebar-info__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--viam-font-body);
    font-size: 14px;
    color: var(--viam-text);
}

.viam-sidebar-info__list li svg {
    flex-shrink: 0;
    color: var(--viam-primary);
}

.viam-sidebar-info__list li strong {
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   14.11 Taxonomy Archive — Structure Hub Pages
   -------------------------------------------------------------------------- */

/* ── Hero ── */
.viam-taxonomy-hero {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-top: -90px;
}

.viam-taxonomy-hero--structure {
    height: 450px;
}

.viam-taxonomy-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
    z-index: 1;
}

.viam-taxonomy-hero--structure .viam-taxonomy-hero__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.viam-taxonomy-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    height: 100%;
    padding-bottom: 50px;
    padding-top: 90px;
}

.viam-taxonomy-hero__badge {
    position: absolute;
    top: 130px;
    right: 30px;
    z-index: 3;
    font-family: var(--viam-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 20px;
}

.viam-taxonomy-hero__logo {
    margin-bottom: 20px;
}

.viam-taxonomy-hero__logo img {
    max-height: 70px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.viam-taxonomy-hero__title {
    font-family: var(--viam-font-heading);
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.1;
}

.viam-taxonomy-hero__address {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--viam-font-body);
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 10px;
}

.viam-taxonomy-hero__address svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.viam-taxonomy-hero__info {
    font-family: var(--viam-font-body);
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.viam-taxonomy-hero__desc {
    font-family: var(--viam-font-body);
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
}

/* ── Body layout ── */
.viam-taxonomy-body {
    padding: 40px 0 60px;
}

.viam-taxonomy-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.viam-taxonomy-main {
    min-width: 0;
}

/* ── Content sections ── */
.viam-taxonomy-section {
    margin-bottom: 40px;
}

.viam-taxonomy-section__title {
    font-family: var(--viam-font-heading);
    font-size: 22px;
    font-weight: 600;
    color: #181C23;
    margin: 0 0 16px;
}

.viam-taxonomy-section__text {
    font-family: var(--viam-font-body);
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* ── Sidebar (sticky) ── */
.viam-taxonomy-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Reuse .viam-sidebar-box from property detail */

/* Contacts box */
.viam-sidebar-contacts__title {
    font-family: var(--viam-font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--viam-text);
    margin: 0 0 14px;
}

.viam-sidebar-contacts__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.viam-sidebar-contacts__list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--viam-font-body);
    font-size: 14px;
    color: var(--viam-text);
    text-decoration: none;
    transition: color var(--viam-transition);
}

.viam-sidebar-contacts__list li a:hover {
    color: var(--viam-primary);
}

.viam-sidebar-contacts__list li svg {
    flex-shrink: 0;
    color: var(--viam-primary);
}

/* Nei Dintorni inside taxonomy main uses default grid */
.viam-taxonomy-main .viam-section--nearby {
    margin-bottom: 0;
}

.viam-taxonomy-main .viam-section--nearby .viam-section__title {
    font-family: var(--viam-font-heading);
    font-size: 22px;
    font-weight: 600;
    color: #181C23;
}

/* ── Taxonomy Gallery (masonry + lightbox) ── */
.viam-taxonomy-gallery-wrap {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 0 0 5px 5px;
}

/* Lightbox overlay — full-screen, no contact form */
.viam-tax-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.viam-tax-lightbox .lighbox_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
    z-index: 1;
}

.viam-tax-lightbox .lightbox_property_wrapper_level2 {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 40px auto;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.viam-tax-lightbox .lightbox_property_content {
    width: 100%;
}

.viam-tax-lightbox .lightbox_property_slider {
    width: 100%;
}

.viam-tax-lightbox #viam-tax-owl {
    height: calc(100vh - 120px);
}

.viam-tax-lightbox #viam-tax-owl .item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 120px);
}

.viam-tax-lightbox #viam-tax-owl .item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.viam-tax-lightbox .lighbox-image-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    transition: background 0.2s;
}

.viam-tax-lightbox .lighbox-image-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Carousel arrows */
.viam-tax-lightbox .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 10px;
}

.viam-tax-lightbox .owl-nav button {
    pointer-events: auto;
}

@media (max-width: 767px) {
    .viam-taxonomy-gallery-wrap .gallery_wrapper {
        height: auto;
    }
    .viam-taxonomy-gallery-wrap .gallery-right-column {
        height: 250px !important;
    }
    .viam-taxonomy-gallery-wrap .gallery-left-column {
        display: none;
    }
    .viam-tax-lightbox .lightbox_property_wrapper_level2 {
        margin: 10px;
        height: calc(100vh - 20px);
    }
    .viam-tax-lightbox #viam-tax-owl,
    .viam-tax-lightbox #viam-tax-owl .item {
        height: calc(100vh - 60px);
    }
}

/* ── Structure Info (inside left column, logo aligned right) ── */
.viam-taxonomy-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.viam-taxonomy-info__left {
    flex: 1;
    min-width: 0;
}

.viam-taxonomy-info__logo {
    flex-shrink: 0;
    align-self: center;
}

.viam-taxonomy-info__logo img {
    max-height: 70px;
    width: auto;
}

.viam-taxonomy-info__logo--fallback img {
    filter: brightness(0);
}

.viam-taxonomy-info__title {
    font-family: var(--viam-font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--viam-text);
    margin: 0 0 8px;
}

.viam-taxonomy-info__address {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--viam-font-body);
    font-size: 15px;
    color: var(--viam-text-light);
    margin: 0 0 12px;
}

.viam-taxonomy-info__address svg {
    flex-shrink: 0;
    color: var(--viam-primary);
}

.viam-taxonomy-info__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.viam-taxonomy-info__badge {
    display: inline-block;
    background: var(--viam-primary);
    color: #fff;
    font-family: var(--viam-font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
}

.viam-taxonomy-info__details {
    font-family: var(--viam-font-body);
    font-size: 14px;
    color: var(--viam-text-light);
}

@media (max-width: 767px) {
    .viam-taxonomy-info {
        flex-direction: column;
        gap: 16px;
    }

    .viam-taxonomy-info__title {
        font-size: 28px;
    }
}

/* ── Zone hero variant (gradient, smaller) ── */
.viam-taxonomy-hero--zone {
    height: 250px;
    background: linear-gradient(135deg, #3A0F20 0%, #51172F 50%, #181C23 100%);
}

.viam-taxonomy-hero--zone .viam-taxonomy-hero__overlay {
    background: rgba(0, 0, 0, 0.20);
}

.viam-taxonomy-hero__label {
    font-family: var(--viam-font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 8px;
}

/* ── Card overrides on taxonomy archives ── */
.tax-property_category .listing_unit_price_wrapper,
.tax-property_area .listing_unit_price_wrapper {
    display: none !important;
}

.tax-property_category .featured_div,
.tax-property_area .featured_div {
    display: none !important;
}

.tax-property_category .property_listing .property_unit_details_x a.unit_details_x,
.tax-property_area .property_listing .property_unit_details_x a.unit_details_x {
    color: var(--viam-primary) !important;
}

.tax-property_category .property_listing .property_unit_details_x a.unit_details_x:hover,
.tax-property_area .property_listing .property_unit_details_x a.unit_details_x:hover {
    color: var(--viam-primary-light) !important;
}

/* ── Taxonomy responsive ── */
@media (max-width: 991px) {
    .viam-taxonomy-layout {
        grid-template-columns: 1fr;
    }

    .viam-taxonomy-sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    .viam-taxonomy-hero--structure {
        height: 300px;
    }

    .viam-taxonomy-hero__title {
        font-size: 32px;
    }

    .viam-taxonomy-hero__badge {
        top: 130px;
        right: 16px;
        font-size: 11px;
        padding: 5px 12px;
    }

    .viam-taxonomy-hero__content {
        padding-bottom: 30px;
    }

    .viam-taxonomy-hero__address {
        font-size: 14px;
    }

    .viam-taxonomy-hero__info {
        font-size: 13px;
    }

    .viam-taxonomy-section__title {
        font-size: 20px;
    }
}

/* --------------------------------------------------------------------------
   15. Media Queries
   -------------------------------------------------------------------------- */

/* Tablet: < 1024px */
@media (max-width: 1023px) {
    :root {
        --viam-section-padding: 60px;
    }

    /* Header tablet */
    .viam-header__nav {
        display: none;
    }

    .viam-header__lang {
        display: none;
    }

    .viam-hamburger {
        display: flex;
    }

    /* Hero tablet */
    .viam-hero__title {
        font-size: 40px;
    }

    /* Booking bar tablet */
    .viam-booking__inner {
        flex-wrap: wrap;
        gap: 8px;
        padding: 20px;
    }

    .viam-booking__field {
        flex: 1 1 40%;
    }

    .viam-booking__separator {
        display: none;
    }

    .viam-booking__extras {
        flex-direction: row;
        gap: 16px;
        flex-basis: 100%;
        padding: 4px 16px;
    }

    .viam-booking__submit {
        flex-basis: 100%;
        margin-left: 0;
        margin-top: 4px;
    }

    /* Map+CTA tablet */
    .viam-map-cta__title {
        font-size: 28px;
    }

    .viam-map-cta__content {
        padding: 40px 30px;
    }

    /* About tablet */
    .viam-about__title {
        font-size: 32px;
    }

    .viam-about__grid {
        gap: 36px;
    }

    /* Suites tablet */
    .viam-suites__title {
        font-size: 32px;
    }

    .viam-suites__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* CTA Relax tablet */
    .viam-cta-relax__content {
        padding: 50px;
    }

    .viam-cta-relax__title {
        font-size: 34px;
    }

    /* Feature icons tablet */
    .viam-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Social Proof tablet — no changes needed, 2-col holds */

    /* Footer tablet */
    .viam-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .viam-footer__brand {
        grid-column: 1 / -1;
    }
}

/* Mobile: < 768px */
@media (max-width: 767px) {
    :root {
        --viam-section-padding: 40px;
    }

    .viam-btn,
    .viam-btn-outline {
        padding: 12px 24px;
    }

    /* Header mobile */
    .viam-header {
        height: 86px;
    }

    body {
        padding-top: 86px;
    }

    body.home {
        padding-top: 0;
    }

    .viam-logo {
        height: 50px !important;
    }

    .viam-header__cta {
        display: none;
    }

    /* Mobile header layout: logo left, hamburger right */
    .viam-header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .viam-header__nav {
        display: none;
    }

    .viam-header__actions {
        gap: 8px;
    }

    /* Map+CTA mobile */
    .viam-map-cta {
        grid-template-columns: 1fr;
    }

    .viam-map-cta__image {
        min-height: 300px;
        border-radius: 0;
    }

    .viam-map-cta__image::after {
        display: none;
    }

    .viam-map-cta__content {
        padding: 50px 30px;
        border-radius: 0;
    }

    .viam-map-cta__title {
        font-size: 26px;
    }

    .viam-map-cta__desc {
        font-size: 15px;
    }

    /* About mobile — no booking bar overlap on mobile */
    .viam-about {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .viam-about__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .viam-about__image {
        max-height: 400px;
        aspect-ratio: auto;
    }

    .viam-about__title {
        font-size: 28px;
    }

    .viam-about__desc {
        font-size: 15px;
    }

    /* Feature icons mobile */
    .viam-features-grid {
        grid-template-columns: 1fr;
    }

    /* Hero mobile */
    .viam-hero {
        height: 500px;
    }

    .viam-hero__content {
        padding-bottom: 80px;
    }

    .viam-hero__title {
        font-size: 24.2px;
    }

    .viam-hero__text {
        max-width: 100%;
    }

    .viam-hero__desc {
        font-size: 14.1px;
    }

    .viam-hero__cta {
        width: auto;
        font-size: 15.2px;
    }

    /* Booking bar mobile: compact margins */
    .viam-booking {
        margin-top: -30px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    /* Suites mobile */
    .viam-suites__title {
        font-size: 28px;
    }

    .viam-suites__header {
        margin-bottom: 32px;
    }

    .viam-suites__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .viam-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .viam-card__cta {
        width: 100%;
        text-align: center;
    }

    /* CTA Relax mobile */
    .viam-cta-relax {
        grid-template-columns: 1fr;
        border-radius: 0;
    }

    .viam-cta-relax__image::after {
        display: none;
    }

    .viam-cta-relax::before {
        width: 300px;
        height: 300px;
        top: -120px;
        left: -160px;
    }

    .viam-cta-relax__content {
        padding: 50px 30px;
        order: 1;
    }

    .viam-cta-relax__image {
        min-height: 300px;
        order: 2;
    }

    .viam-cta-relax__title {
        font-size: 28px;
    }

    .viam-cta-relax__desc {
        font-size: 16px;
    }

    /* Social Proof mobile */
    .viam-social-proof__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Footer mobile */
    .viam-footer__main {
        padding: 50px 0 40px;
    }

    .viam-footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .viam-footer__brand {
        grid-column: auto;
    }

    .viam-footer__info li {
        justify-content: center;
    }

    .viam-footer__social {
        justify-content: center;
    }

    /* Taxonomy hero mobile */
    .viam-taxonomy-hero {
        height: 250px;
        margin-top: -86px;
    }

    .viam-taxonomy-hero__content {
        padding-bottom: 24px;
        padding-top: 86px;
    }

    .viam-taxonomy-hero__title {
        font-size: 30px;
    }

    .viam-taxonomy-hero__address {
        font-size: 14px;
    }

    .viam-taxonomy-hero__desc {
        font-size: 14px;
    }

    .viam-taxonomy-hero--zone {
        height: 220px;
    }

    .viam-taxonomy-subtitle {
        font-size: 24px;
        margin: 30px 0 20px;
    }

    .viam-page__hero {
        height: 200px;
        padding-top: 100px;
    }

    .viam-page__title {
        font-size: 30px;
    }

    .viam-page__content {
        padding: 40px 20px 60px;
    }
}


/* ==========================================================================
   16. Internal Pages (Chi Siamo, Contatti, etc.)
   ========================================================================== */

.viam-page__hero {
    position: relative;
    background: var(--viam-color-primary, #4a2035);
    height: 280px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
    margin-top: -86px;
    padding-top: 86px;
}

.viam-page__title {
    font-family: var(--viam-font-heading, 'Playfair Display', serif);
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.viam-page__content {
    padding: 60px 0 80px;
    max-width: 900px;
    margin: 0 auto;
    font-family: var(--viam-font-body, 'Inter', sans-serif);
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.viam-page__content h2 {
    font-family: var(--viam-font-heading, 'Playfair Display', serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--viam-color-primary, #4a2035);
    margin: 40px 0 16px;
}

.viam-page__content h3 {
    font-family: var(--viam-font-heading, 'Playfair Display', serif);
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 32px 0 12px;
}

.viam-page__content p {
    margin-bottom: 20px;
}

.viam-page__content ul,
.viam-page__content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.viam-page__content li {
    margin-bottom: 8px;
}

.viam-page__content a {
    color: var(--viam-color-primary, #4a2035);
    text-decoration: underline;
}

.viam-page__content a:hover {
    color: #333;
}

.viam-page__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Contact info styling within page content */
.viam-page__content .wp-block-columns {
    gap: 40px;
    margin: 40px 0;
}

.viam-page__content .wp-block-group {
    margin: 30px 0;
}


/* ==========================================================================
   16.1 Chi Siamo Page (viam-cs-*)
   ========================================================================== */

/* --- Hero variant --- */
.viam-taxonomy-hero--chi-siamo {
    min-height: 350px;
    height: auto;
    padding: 80px 0 50px;
    margin-bottom: 80px;
    background-size: cover;
    background-position: center top;
}

.viam-cs-hero__center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.viam-cs-hero__label {
    display: inline-block;
    font-family: var(--viam-font-body, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

/* --- Intro (La Nostra Storia) --- */
.viam-chi-siamo .viam-section {
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top: none;
}

.viam-cs-intro {
    padding: 60px 0;
    margin-bottom: 80px;
}

.viam-cs-intro__grid {
    display: grid;
    grid-template-columns: 47fr 53fr;
    gap: 60px;
    align-items: center;
}

.viam-cs-intro__image {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.viam-cs-intro__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.viam-cs-intro__label {
    display: inline-block;
    font-family: var(--viam-font-body, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--viam-color-primary, #4a2035);
    margin-bottom: 12px;
}

.viam-cs-intro__title {
    font-family: var(--viam-font-heading, 'Playfair Display', serif);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    color: #222;
    margin: 0 0 24px;
}

.viam-cs-intro__desc {
    font-family: var(--viam-font-body, 'Inter', sans-serif);
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}

/* No-image variant: text centered, full width */
.viam-cs-intro--no-image .viam-cs-intro__grid {
    display: block;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

/* --- Strutture section --- */
.viam-cs-strutture {
    padding: 60px 0;
    margin-top: 80px;
    margin-bottom: 80px;
    background: #f9f7f5;
}

.viam-cs-strutture__header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 48px;
}

.viam-cs-strutture__label {
    display: inline-block;
    font-family: var(--viam-font-body, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--viam-color-primary, #4a2035);
    margin-bottom: 12px;
}

.viam-cs-strutture__title {
    font-family: var(--viam-font-heading, 'Playfair Display', serif);
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin: 0 0 16px;
}

.viam-cs-strutture__subtitle {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
}

.viam-cs-strutture__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* --- Struttura card --- */
.viam-cs-struttura-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.viam-cs-struttura-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.viam-cs-struttura-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.viam-cs-struttura-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.viam-cs-struttura-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
}

.viam-cs-struttura-card__logo {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viam-cs-struttura-card__content .viam-cs-struttura-card__logo {
    position: relative;
    bottom: auto;
    right: auto;
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

.viam-cs-struttura-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.viam-cs-struttura-card__content {
    padding: 20px 24px 24px;
    flex: 1;
}

.viam-cs-struttura-card__name {
    font-family: var(--viam-font-heading, 'Playfair Display', serif);
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
}

.viam-cs-struttura-card__address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    margin: 0 0 12px;
}

.viam-cs-struttura-card__address svg {
    flex-shrink: 0;
    color: var(--viam-color-primary, #4a2035);
}

.viam-cs-struttura-card__desc {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 16px;
}

.viam-cs-struttura-card__meta {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--viam-color-primary, #4a2035);
}

/* --- Valori section --- */
.viam-cs-valori {
    padding: 60px 0;
    margin-top: 80px;
    margin-bottom: 80px;
}

.viam-cs-valori__header {
    text-align: center;
    margin-bottom: 48px;
}

.viam-cs-valori__label {
    display: inline-block;
    font-family: var(--viam-font-body, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--viam-color-primary, #4a2035);
    margin-bottom: 12px;
}

.viam-cs-valori__title {
    font-family: var(--viam-font-heading, 'Playfair Display', serif);
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.viam-cs-valori__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.viam-cs-valore {
    text-align: center;
    padding: 32px 20px;
}

.viam-cs-valore__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(74, 32, 53, 0.08);
    color: var(--viam-color-primary, #4a2035);
    margin-bottom: 20px;
}

.viam-cs-valore__title {
    font-family: var(--viam-font-heading, 'Playfair Display', serif);
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px;
}

.viam-cs-valore__desc {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* --- Numeri (stats bar) --- */
.viam-cs-numeri {
    background: var(--viam-color-primary, #4a2035);
    padding: 40px 0;
}

.viam-cs-numeri__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.viam-cs-numero__value {
    display: block;
    font-family: var(--viam-font-heading, 'Playfair Display', serif);
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.viam-cs-numero__label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- CTA section --- */
.viam-cs-cta {
    padding: 60px 0;
    text-align: center;
    background: var(--viam-white, #fff);
    margin-top: 0;
    margin-bottom: 80px;
}

.viam-cs-cta__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
}

.viam-cs-cta__title {
    font-family: var(--viam-font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--viam-text, #181C23);
    margin: 0 0 16px;
}

.viam-cs-cta__desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--viam-text-light, #6F6F6F);
    margin: 0 0 32px;
}

.viam-cs-cta__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.viam-cs-cta .viam-btn {
    background: var(--viam-primary, #51172F);
    color: var(--viam-white);
    border: none;
    padding: 14px 32px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.2s;
}

.viam-cs-cta .viam-btn:hover {
    background: var(--viam-primary-light, #6B2440);
    transform: translateY(-1px);
}

.viam-cs-cta .viam-btn-outline--dark {
    background: transparent;
    color: var(--viam-text, #181C23);
    border: 2px solid var(--viam-border, #E0E0E0);
    padding: 14px 32px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: border-color 0.2s, background 0.2s;
}

.viam-cs-cta .viam-btn-outline--dark:hover {
    border-color: var(--viam-primary);
    background: var(--viam-primary);
    color: #fff;
}

.viam-btn-outline--dark {
    border-color: #333;
    color: #333;
}

.viam-btn-outline--dark:hover {
    background: #333;
    color: #fff;
}

/* --- Chi Siamo responsive --- */
@media (max-width: 992px) {
    .viam-cs-intro__grid {
        gap: 40px;
    }
    .viam-cs-intro__title {
        font-size: 28px;
    }
    .viam-cs-strutture__grid {
        grid-template-columns: 1fr;
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;
    }
    .viam-cs-valori__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .viam-cs-numeri__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .viam-taxonomy-hero--chi-siamo {
        min-height: 280px;
        padding: 60px 0 40px;
    }
    .viam-cs-intro {
        padding: 40px 0;
    }
    .viam-cs-intro__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .viam-cs-intro__image {
        aspect-ratio: 16 / 10;
    }
    .viam-cs-intro__title {
        font-size: 26px;
    }
    .viam-cs-intro,
    .viam-cs-strutture,
    .viam-cs-valori,
    .viam-cs-numeri,
    .viam-cs-cta {
        margin-bottom: 50px;
    }
    .viam-taxonomy-hero--chi-siamo {
        margin-bottom: 50px;
    }
    .viam-cs-strutture,
    .viam-cs-valori,
    .viam-cs-cta {
        padding: 40px 0;
    }
    .viam-cs-strutture__title,
    .viam-cs-valori__title,
    .viam-cs-cta__title {
        font-size: 28px;
    }
    .viam-cs-valori__grid {
        grid-template-columns: 1fr;
    }
    .viam-cs-numeri__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .viam-cs-numero__value {
        font-size: 36px;
    }
}


/* --- 16.2 Chi Siamo Page (old layout, kept for fallback) --- */

.viam-about-page__label {
    display: inline-block;
    font-family: var(--viam-font-body, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--viam-color-primary, #4a2035);
    margin-bottom: 16px;
}

.viam-about-page__image {
    margin-bottom: 32px;
}

.viam-about-page__image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
}

.viam-about-page__text {
    margin-bottom: 32px;
}

.viam-about-page__cta {
    margin-top: 16px;
}


/* --- 16.3 Contatti Page --- */

/* Hero variant */
.viam-taxonomy-hero--contatti {
    min-height: 340px;
}

/* Main grid: form + sidebar */
.viam-contatti-main {
    padding: 60px 0;
}

.viam-contatti-main__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

.viam-contatti-main__title {
    font-family: var(--viam-font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--viam-text);
    margin: 0 0 8px;
}

.viam-contatti-main__subtitle {
    font-size: 15px;
    color: var(--viam-text-light);
    margin: 0 0 28px;
}

/* Info sidebar blocks */
.viam-contatti-info {
    padding: 24px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 20px;
}

.viam-contatti-info__title {
    font-family: var(--viam-font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--viam-text);
    margin: 0 0 16px;
}

.viam-contatti-info__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.viam-contatti-info__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--viam-text);
    line-height: 1.5;
}

.viam-contatti-info__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--viam-primary);
    margin-top: 2px;
}

.viam-contatti-info__list a {
    color: var(--viam-primary);
    text-decoration: none;
    font-weight: 600;
}

.viam-contatti-info__list a:hover {
    text-decoration: underline;
}

.viam-contatti-info__note {
    display: block;
    font-size: 12px;
    color: var(--viam-text-light);
    margin-top: 2px;
}

/* Social links in sidebar */
.viam-contatti-info__social {
    display: flex;
    gap: 16px;
}

.viam-contatti-info__social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--viam-white);
    border: 1px solid var(--viam-border);
    border-radius: 8px;
    color: var(--viam-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
}

.viam-contatti-info__social-link:hover {
    border-color: var(--viam-primary);
    color: var(--viam-primary);
}

.viam-contatti-info__social-link svg {
    width: 18px;
    height: 18px;
}

/* --- CF7 Form Styling --- */
.viam-cf7-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

.viam-cf7-col p {
    margin: 0 0 16px;
}

.viam-cf7-col label,
.viam-contatti-main__form-col > .wpcf7 label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--viam-text);
    margin-bottom: 6px;
}

.viam-cf7-input,
.viam-contatti-main__form-col .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: var(--viam-font-body);
    border: 1px solid var(--viam-border);
    border-radius: 8px;
    background: var(--viam-white);
    color: var(--viam-text);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.viam-cf7-input:focus,
.viam-contatti-main__form-col .wpcf7-form-control:focus {
    outline: none;
    border-color: var(--viam-primary);
    box-shadow: 0 0 0 3px rgba(81, 23, 47, 0.08);
}

.viam-cf7-input::placeholder {
    color: #aaa;
}

select.viam-cf7-input {
    appearance: auto;
    cursor: pointer;
}

textarea.viam-cf7-input {
    min-height: 100px;
    resize: vertical;
}

.viam-cf7-submit,
.viam-contatti-main__form-col .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background: var(--viam-primary);
    color: var(--viam-white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--viam-font-body);
    cursor: pointer;
    transition: background 0.2s;
}

.viam-cf7-submit:hover,
.viam-contatti-main__form-col .wpcf7-submit:hover {
    background: var(--viam-primary-dark);
}

/* CF7 validation */
.wpcf7-not-valid {
    border-color: #e74c3c !important;
}

.wpcf7-not-valid-tip {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
}

.wpcf7-response-output {
    margin: 16px 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .viam-contatti-main__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .viam-contatti-main {
        padding: 40px 0;
    }
    .viam-cf7-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .viam-contatti-info__social {
        flex-direction: column;
    }
}


/* ==========================================================================
   17. WordPress Login Logo
   ========================================================================== */

.login h1 a {
    background-size: contain !important;
    width: 200px !important;
    height: 100px !important;
}
