/*
Theme Name:  Il Respiro degli Ulivi Child
Theme URI:   https://www.ilrespirodegliulivi.it
Description: Child theme per Il Respiro degli Ulivi — B&B slow tourism / wellness, Campania. Palette "Ulivo & Calcare", font Cormorant Garamond + Inter. Basato su Bellevue 4.2.8.
Author:      wp-factory / pubblisystem
Version:     1.0.1
Template:    bellevuex
Text Domain: respiroulivi-child
*/

/* PALETTE — "Ulivo & Calcare" v2 (logo-driven 2026-04-30)
   Primary       : #2D7A28  (verde foglia saturo — dal logo)
   Primary dark  : #1A4D17  (verde scuro testo — dal logo, CTA bg WCAG AA)
   Text          : #1A2914  (verde notte profondo)
   Accent        : #C9A961  (oro pallido — armonia con verde)
   Accent dark   : #A88B4F  (oro hover)
   Secondary     : #F5F1E8  (calcare crema — sfondo pagine)
   Decorative    : #B8AE9B  (pietra — borders, dividers)
   Leaf light    : #96B791  (NEW — verde foglia chiaro highlights)
   CTA bg        : #1A4D17 (allineato primary-dark, white text 9.5:1 PASS AAA)
   CTA hover bg  : #2D7A28 (allineato primary, white text 4.7:1 PASS AA)
*/

/* ---- Skip-to-content (a11y WCAG 2.4.1) ---- */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    padding: 12px 20px;
    background: var(--ru-text);
    color: #F5F1E8;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0 0 6px 0;
}
.skip-to-content:focus {
    left: 0;
    outline: 3px solid #C9A961;
    outline-offset: 2px;
}

/* ---- CSS Custom Properties ---- */
:root {
    --ru-primary:      #2D7A28;   /* verde foglia saturo, da logo */
    --ru-secondary:    #F5F1E8;   /* calcare crema — KEEP */
    --ru-accent:       #C9A961;   /* oro pallido — KEEP */
    --ru-accent-dark:  #A88B4F;   /* oro hover — KEEP */
    --ru-text:         #1A2914;   /* verde notte profondo */
    --ru-decorative:   #B8AE9B;   /* pietra — KEEP */
    --ru-primary-dark: #1A4D17;   /* verde scuro logo testo */
    --ru-leaf-light:   #96B791;   /* verde foglia chiaro per highlights */
    --ru-cta-bg:       #1A4D17;   /* allineato a primary-dark, white 9.5:1 AAA */
    --ru-cta-bg-hover: #2D7A28;   /* allineato a primary, white 4.7:1 AA */

    /*
     * CTA primary usa --ru-cta-bg (=primary-dark) per WCAG AA compliance.
     * --ru-accent e' riservato a accent decorativi grandi (eyebrow, badge, focus glow).
     * --ru-leaf-light e' per highlights, sfondi chiari, badge secondari.
     */

    --ru-section-sand-bg:       #E8E2D2;  /* flat sand — replaces gradient (client req.) */
    --ru-section-divider-line:  var(--ru-decorative); /* minimal section separator */

    --ru-font-heading: 'Cormorant Garamond', Georgia, serif;
    --ru-font-body:    'Inter', Arial, sans-serif;
    --ru-font-quote:   'Playfair Display', Georgia, serif;
    --ru-font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
}

/* =========================================================
   TYPOGRAPHY GLOBAL OVERRIDES
   ========================================================= */

body,
p,
li,
td,
input,
textarea,
select,
.elementor-widget-text-editor,
.mphb-booking-form,
.mphb-booking-form label,
.woocommerce,
.woocommerce p {
    font-family: var(--ru-font-body);
    color: var(--ru-text);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.widget-title,
.mphb-room-type-title,
.room-name,
.elementor-heading-title {
    font-family: var(--ru-font-heading);
    color: var(--ru-text);
}

/* Hero H1 — Playfair Display italic per richiamare il flourish del logo */
h1.hero-title {
    font-family: var(--ru-font-display);
    font-style: italic;
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* Section H2 */
h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 600;
}

/* Playfair italic per citazioni */
blockquote,
.ru-quote,
.ulivi-quote-caption {
    font-family: var(--ru-font-quote);
    font-style: italic;
    color: var(--ru-primary);
}

/* =========================================================
   GLOBAL COLORS
   ========================================================= */

body {
    background-color: var(--ru-secondary);
}

a {
    color: var(--ru-accent);
}

a:hover,
a:focus {
    color: var(--ru-accent-dark);
    text-decoration: underline;
}

/* =========================================================
   GLOBAL CONTAINER — max-width 1366px ovunque
   ========================================================= */

.container {
    max-width: 1366px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Header e footer: sfondo full-width, contenuto centrato largo */
.ru-topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* =========================================================
   TOP BAR
   ========================================================= */

.ru-topbar {
    background-color: var(--ru-text);
    color: rgba(255,255,255,0.75);
    font-family: var(--ru-font-body);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    padding: 6px 0;
}

.ru-topbar__contact {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.ru-topbar__item {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}

.ru-topbar__item:hover {
    color: var(--ru-primary);
}

.ru-topbar__item svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.ru-topbar__social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.ru-topbar__social a {
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.ru-topbar__social a:hover {
    color: var(--ru-primary);
}

.ru-topbar__social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Topbar hide is now inside the 960px block below */

/* =========================================================
   HEADER WRAPPER — sticky topbar + header
   ========================================================= */

/* Default (inner pages): sticky, sfondo solido */
.ru-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--ru-secondary);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#header {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--ru-decorative);
}

/* Homepage: fisso, trasparente, sopra l'hero */
body.transparent-header .ru-header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
}

body.transparent-header .ru-topbar {
    background: rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
}

body.transparent-header #header {
    border-bottom-color: transparent;
    position: relative;
    z-index: 1;
}

/* Gradiente scuro per leggibilita' testo su header trasparente */
body.transparent-header .ru-header-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.20) 50%,
        transparent 100%
    );
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.transparent-header .ru-header-wrap.scrolled::before {
    opacity: 0;
}

/* Homepage dopo scroll: diventa solido */
body.transparent-header .ru-header-wrap.scrolled {
    background-color: var(--ru-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.transparent-header .ru-header-wrap.scrolled .ru-topbar {
    background-color: var(--ru-text);
}

body.transparent-header .ru-header-wrap.scrolled #header {
    border-bottom-color: var(--ru-decorative);
}

/* Quando scrolled, testo torna scuro */
body.transparent-header .ru-header-wrap.scrolled #header .main-navigation a,
body.transparent-header .ru-header-wrap.scrolled #header .site-logo__text {
    color: var(--ru-text);
}

body.transparent-header .ru-header-wrap.scrolled #header .header-cta {
    border-color: var(--ru-cta-bg);
    color: #ffffff;
    background-color: var(--ru-cta-bg);
}

body.transparent-header .ru-header-wrap.scrolled .hamburger-inner,
body.transparent-header .ru-header-wrap.scrolled .hamburger-inner::before,
body.transparent-header .ru-header-wrap.scrolled .hamburger-inner::after {
    background-color: var(--ru-text);
}

.site-logo {
    flex-shrink: 0;
}

.main-navigation {
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    justify-content: center;
}

.header-cta {
    flex-shrink: 0;
    background-color: var(--ru-cta-bg);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 4px;
    font-family: var(--ru-font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.header-cta:hover {
    background-color: var(--ru-cta-bg-hover);
    color: #ffffff;
    text-decoration: none;
}

/* Hamburger: nascosto su desktop, visibile su mobile */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-box {
    width: 28px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 8px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 28px;
    height: 2px;
    background-color: var(--ru-text);
    border-radius: 2px;
    position: absolute;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-inner::before {
    content: '';
    top: -8px;
}

.hamburger-inner::after {
    content: '';
    top: 8px;
}

/* Hamburger active state (X): barra centrale trasparente, le esterne formano la X */
.hamburger.is-active .hamburger-inner {
    background-color: transparent;
}

.hamburger.is-active .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
}

.hamburger.is-active .hamburger-inner::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 960px) {

    /* --- 1. Layout base mobile (TUTTE le pagine) --- */
    .ru-topbar { display: none; }
    .header-inner {
        position: relative;
        justify-content: center;
    }
    .main-navigation {
        display: none;
        flex: none;
    }
    .header-cta { display: none !important; }
    .hamburger {
        display: flex;
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
    }
    .site-logo {
        margin: 0 auto;
    }
    .nav-menu .menu-item-prenota-mobile {
        display: list-item;
    }

    /* --- 2. Homepage mobile: transparent fixed header --- */
    body.transparent-header .ru-header-wrap {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        background: transparent;
        box-shadow: none !important;
    }
    body.transparent-header .ru-header-wrap::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 150px;
        background: linear-gradient(to bottom,
            rgba(0,0,0,0.4) 0%,
            rgba(0,0,0,0.15) 50%,
            transparent 100%);
        z-index: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    body.transparent-header #header {
        border-bottom-color: transparent;
        position: relative;
        z-index: 1;
    }
    body.transparent-header .site-logo__img {
        filter: brightness(0) invert(1);
    }
    body.transparent-header .hamburger-inner,
    body.transparent-header .hamburger-inner::before,
    body.transparent-header .hamburger-inner::after {
        background-color: #ffffff !important;
    }

    /* --- 3. Homepage scrolled: solid --- */
    body.transparent-header .ru-header-wrap.scrolled {
        background-color: var(--ru-secondary) !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    body.transparent-header .ru-header-wrap.scrolled::before {
        opacity: 0;
    }
    body.transparent-header .ru-header-wrap.scrolled #header {
        border-bottom-color: var(--ru-decorative);
    }
    body.transparent-header .ru-header-wrap.scrolled .site-logo__img {
        filter: none;
    }
    body.transparent-header .ru-header-wrap.scrolled .hamburger-inner,
    body.transparent-header .ru-header-wrap.scrolled .hamburger-inner::before,
    body.transparent-header .ru-header-wrap.scrolled .hamburger-inner::after {
        background-color: var(--ru-text) !important;
    }

    /* --- 4. Menu mobile aperto (TUTTE le pagine) --- */
    .main-navigation.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--ru-secondary) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 1rem 0;
        z-index: 999;
    }
    .main-navigation.is-open .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .main-navigation.is-open .nav-menu > li {
        width: 100%;
        text-align: center;
    }
    .main-navigation.is-open .nav-menu > li > a {
        display: block;
        padding: 0.75rem 1.5rem;
        color: var(--ru-text) !important;
        font-size: 1rem;
    }
    .main-navigation.is-open .nav-menu > li > a:hover {
        background-color: var(--ru-decorative);
    }
    .main-navigation.is-open .nav-menu > li > a::after {
        display: none;
    }

    /* Prenota nel menu mobile: stile CTA */
    .main-navigation.is-open .menu-item-prenota-mobile > a {
        background-color: var(--ru-cta-bg);
        color: #ffffff !important;
        margin: 0.5rem 1.5rem;
        border-radius: 4px;
        font-weight: 700;
    }
    .main-navigation.is-open .menu-item-prenota-mobile > a:hover {
        background-color: var(--ru-cta-bg-hover);
    }
}

/* Menu item Prenota: nascosto su desktop, visibile solo nel menu mobile */
.nav-menu .menu-item-prenota-mobile {
    display: none;
}

/* Testo bianco su header trasparente (homepage hero scuro) */
body.transparent-header #header .main-navigation a,
body.transparent-header #header .site-logo__text {
    color: #ffffff;
}

body.transparent-header #header .header-cta {
    border-color: #ffffff;
    color: #ffffff;
    background-color: transparent;
}

body.transparent-header #header .header-cta:hover {
    background-color: rgba(255,255,255,0.15);
    border-color: #ffffff;
}

body.transparent-header .hamburger-inner,
body.transparent-header .hamburger-inner::before,
body.transparent-header .hamburger-inner::after {
    background-color: #ffffff;
}

/* Logo */
#header .logo img,
.site-logo__img {
    max-height: 70px;
    width: auto;
    transition: filter 0.3s ease;
}

/* Homepage trasparente: logo diventa bianco */
body.transparent-header .site-logo__img {
    filter: brightness(0) invert(1);
}

/* Dopo scroll: logo torna normale */
body.transparent-header .ru-header-wrap.scrolled .site-logo__img {
    filter: none;
}

/* Menu */
#header .main-navigation a {
    font-family: var(--ru-font-body);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--ru-text);
}

/* Nav link hover: sliding underline from center */
#header .main-navigation .nav-menu > li > a {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    transition: color 0.3s ease;
    text-decoration: none;
}

#header .main-navigation .nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--ru-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

#header .main-navigation .nav-menu > li > a:hover::after {
    transform: scaleX(1);
}

#header .main-navigation .nav-menu > li > a:hover {
    color: var(--ru-primary);
    text-decoration: none;
}

/* Transparent header: underline + text bianco */
body.transparent-header #header .main-navigation .nav-menu > li > a::after {
    background-color: #ffffff;
}

body.transparent-header #header .main-navigation .nav-menu > li > a:hover {
    color: #ffffff;
}

/* Scrolled: underline + text torna terracotta */
body.transparent-header .ru-header-wrap.scrolled #header .main-navigation .nav-menu > li > a::after {
    background-color: var(--ru-primary);
}

body.transparent-header .ru-header-wrap.scrolled #header .main-navigation .nav-menu > li > a:hover {
    color: var(--ru-primary);
}

/* Active menu item — underline permanente */
#header .main-navigation .nav-menu > li.current-menu-item > a::after {
    transform: scaleX(1);
}

/* Escludi pulsante Prenota dal underline */
#header .main-navigation .menu-prenota > a::after,
#header .main-navigation li.cta-prenota > a::after {
    display: none;
}

/* Pulsante "Prenota" nel menu */
#header .main-navigation .menu-prenota > a,
#header .main-navigation li.cta-prenota > a {
    background-color: var(--ru-cta-bg);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: background-color 0.2s ease;
}

#header .main-navigation .menu-prenota > a:hover,
#header .main-navigation li.cta-prenota > a:hover {
    background-color: var(--ru-cta-bg-hover);
    text-decoration: none;
}


/* =========================================================
   HERO SECTION
   ========================================================= */

.ru-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .ru-hero {
        height: 85vh;
    }
}

.ru-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.ru-hero__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(26, 41, 20, 0.52);
}

.ru-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

.ru-hero__label {
    font-family: var(--ru-font-body);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.ru-hero__title {
    font-family: var(--ru-font-display);
    font-style: italic;
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.ru-hero__subtitle {
    font-family: var(--ru-font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
}

.ru-hero__cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Scroll indicator */
.ru-hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: ru-bounce 1.8s infinite;
}

.ru-hero__scroll svg {
    fill: rgba(255, 255, 255, 0.7);
    width: 32px;
    height: 32px;
}

@keyframes ru-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%        { transform: translateX(-50%) translateY(8px); }
}

/* =========================================================
   BUTTONS
   ========================================================= */

/* Primary solid button (accent) */
.btn-ru-primary,
.ru-btn-solid,
input[type="submit"],
.mphb-button,
.mphb_sc_search-submit-button,
.woocommerce #place_order,
.woocommerce-Button.button {
    display: inline-block;
    background-color: var(--ru-cta-bg);
    color: #ffffff !important;
    font-family: var(--ru-font-body);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 4px;
    border: 2px solid var(--ru-cta-bg);
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    line-height: 1.4;
}

.btn-ru-primary:hover,
.ru-btn-solid:hover,
input[type="submit"]:hover,
.mphb-button:hover,
.mphb_sc_search-submit-button:hover,
.woocommerce #place_order:hover {
    background-color: var(--ru-cta-bg-hover);
    border-color: var(--ru-cta-bg-hover);
}

/* Outline button (su sfondo scuro — hero) */
.btn-ru-outline,
.ru-btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #ffffff !important;
    font-family: var(--ru-font-body);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-ru-outline:hover,
.ru-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

/* =========================================================
   MPHB ROOM TYPE CARDS
   ========================================================= */

.mphb-room-type-card,
.mphb-room-type {
    border: 1px solid var(--ru-decorative);
    box-shadow: none;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.mphb-room-type-card:hover {
    box-shadow: 0 4px 20px rgba(44, 31, 14, 0.1);
}

.mphb-room-type-title,
.mphb-room-type-card .room-name {
    font-family: var(--ru-font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--ru-text);
}

/* MPHB form fields */
.mphb-booking-form input[type="text"],
.mphb-booking-form input[type="email"],
.mphb-booking-form input[type="tel"],
.mphb-booking-form select,
.mphb-booking-form textarea {
    border-color: rgba(193, 122, 58, 0.4); /* primary/40% */
    border-radius: 4px;
    font-family: var(--ru-font-body);
    color: var(--ru-text);
}

.mphb-booking-form input:focus,
.mphb-booking-form select:focus,
.mphb-booking-form textarea:focus {
    border-color: var(--ru-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(193, 122, 58, 0.15);
}

.mphb-booking-form label {
    font-family: var(--ru-font-body);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: var(--ru-text);
}

/* =========================================================
   SERVICES GRID (icons)
   ========================================================= */

.ru-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 3rem 0;
}

@media (max-width: 768px) {
    .ru-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ru-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.ru-service-item svg,
.ru-service-item .service-icon {
    width: 40px;
    height: 40px;
    color: var(--ru-primary);
    fill: var(--ru-primary);
}

.ru-service-item span {
    font-family: var(--ru-font-body);
    font-size: 0.875rem;
    color: var(--ru-text);
}

/* =========================================================
   SECTION BACKGROUNDS
   ========================================================= */

.ru-section-light {
    background-color: var(--ru-secondary);
}

.ru-section-sand {
    background-color: var(--ru-decorative);
}

.ru-section-dark {
    background-color: var(--ru-primary-dark);
    color: #ffffff;
}

.ru-section-dark h2,
.ru-section-dark h3,
.ru-section-dark p {
    color: #ffffff;
}

/* =========================================================
   CTA STICKY (mobile bottom bar / desktop floating)
   ========================================================= */

#vg-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background-color: var(--ru-cta-bg);
    color: #ffffff;
    text-align: center;
    padding: 12px 20px;
    font-family: var(--ru-font-body);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: none; /* shown via JS after 300px scroll */
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

#vg-sticky-cta:hover {
    background-color: var(--ru-cta-bg-hover);
    color: #ffffff;
    text-decoration: none;
}

#vg-sticky-cta svg {
    vertical-align: middle;
    margin-right: 6px;
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

@media (min-width: 1024px) {
    #vg-sticky-cta {
        left: auto;
        right: 30px;
        bottom: 30px;
        border-radius: 50px;
        padding: 14px 28px;
        box-shadow: 0 4px 16px rgba(74, 103, 65, 0.4);
        width: auto;
    }
}

/* =========================================================
   FOOTER
   ========================================================= */

#footer {
    background-color: var(--ru-primary-dark);
    color: rgba(255, 255, 255, 0.9);
}

#footer a {
    color: rgba(255, 255, 255, 0.75);
}

#footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

#footer h3,
#footer .widget-title {
    font-family: var(--ru-font-heading);
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Legal row */
.ru-footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 2rem;
    padding-top: 1rem;
    padding-bottom: 2rem;
    font-family: var(--ru-font-body);
    font-weight: 300;
    font-size: 0.6875rem; /* 11px */
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* =========================================================
   GALLERY PAGE
   ========================================================= */

.ru-gallery-filter {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.ru-gallery-filter button {
    background: transparent;
    border: 1px solid var(--ru-decorative);
    border-radius: 50px;
    padding: 6px 18px;
    font-family: var(--ru-font-body);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--ru-text);
}

.ru-gallery-filter button:hover,
.ru-gallery-filter button.active {
    background-color: var(--ru-accent);
    border-color: var(--ru-accent);
    color: #ffffff;
}

/* =========================================================
   CONTACT FORM (CF7)
   ========================================================= */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    border: 1px solid rgba(193, 122, 58, 0.4);
    border-radius: 4px;
    padding: 10px 14px;
    font-family: var(--ru-font-body);
    color: var(--ru-text);
    background-color: #ffffff;
    transition: border-color 0.2s ease;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: var(--ru-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(193, 122, 58, 0.1);
}

.wpcf7 .wpcf7-submit {
    background-color: var(--ru-cta-bg);
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    font-family: var(--ru-font-body);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wpcf7 .wpcf7-submit:hover {
    background-color: var(--ru-cta-bg-hover);
}

/* =========================================================
   DIRECTIONS SECTION
   ========================================================= */

.ru-section--directions {
    background-color: var(--ru-secondary);
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.directions-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.directions-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.directions-card__icon {
    color: var(--ru-primary);
    margin-bottom: 1rem;
}

.directions-card__title {
    font-family: var(--ru-font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ru-text);
    margin-bottom: 0.75rem;
}

.directions-card__text {
    font-family: var(--ru-font-body);
    font-size: 0.9rem;
    color: var(--ru-text);
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

/* Map section */
.ru-section--map {
    padding-top: 0;
}

@media (max-width: 768px) {
    .directions-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Contact info items — SVG icons */
.contact-info-item__icon svg {
    fill: currentColor;
    color: var(--ru-primary);
}

/* CF7 privacy checkbox */
.cf7-privacy {
    font-size: 0.85rem;
    color: var(--ru-text);
    opacity: 0.75;
    margin: 1rem 0;
}

.cf7-privacy a {
    color: var(--ru-primary);
    text-decoration: underline;
}

/* =========================================================
   SOCIAL SECTION
   ========================================================= */

.ru-section--social {
    background-color: #ffffff;
    text-align: center;
}

.ru-section--social .ru-section-body {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 14px 32px;
    border-radius: 6px;
    border: 2px solid;
    background-color: transparent;
    font-family: var(--ru-font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: #ffffff;
}

.social-btn svg {
    fill: currentColor;
}

.social-btn--facebook {
    color: #1877F2;
    border-color: #1877F2;
}

.social-btn--facebook:hover {
    background-color: #1877F2;
    color: #ffffff;
}

.social-btn--instagram {
    color: #E1306C;
    border-color: #E1306C;
}

.social-btn--instagram:hover {
    background-color: #E1306C;
    color: #ffffff;
}

/* =========================================================
   UTILITIES
   ========================================================= */

.ru-text-primary { color: var(--ru-primary); }
.ru-text-accent  { color: var(--ru-accent); }
.ru-bg-sand      { background-color: var(--ru-decorative); }

/* Section separator */
.ru-divider {
    border: none;
    border-top: 1px solid var(--ru-decorative);
    margin: 3rem 0;
}

/* Accessibility: focus visible */
:focus-visible {
    outline: 3px solid var(--ru-primary);
    outline-offset: 2px;
}

/* Remove Bellevue "powered by" if present */
.bellevue-powered-by,
.themo-powered-by {
    display: none !important;
}

/* Disable Revolution Slider styles if somehow enqueued */
/* (Covered by functions.php dequeue — this is a CSS safety net) */

/* =========================================================
   FINISHING — anchor offset + tipografia balanced
   ========================================================= */

/* Offset per ancore con header sticky */
section[id],
[id^="dintorni"],
#benvenuto,
#hero {
    scroll-margin-top: 90px;
}

/* ---- Tipografia espressiva ---- */
.ru-section-title,
.ru-hero__title,
.ru-page-hero__title {
    /* Bilancia line breaks su titoli multi-riga (Chrome 114+, Safari 17.4+, FF 121+) */
    text-wrap: balance;
}

.ru-section-subtitle,
.ru-hero__subtitle,
.welcome-teaser p {
    text-wrap: pretty;
}

/* ---- Subtle eyebrow polish ---- */
.ru-section-eyebrow {
    /* Non altera dimensione, solo polish */
    font-feature-settings: "ss01", "ss02";
}
