/* ═══════════════════════════════════════════════════════════════════════════
   Baresto Custom — Intesa Grandi Impianti
   Palette: #009444 verde principale | #4d8065 verde medio | #0e1a12 dark
   Font: Montserrat
═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS variables override (sovrascrive style.css) ─────────────────────── */
* {
    --body-font:            'Montserrat';
    --title-font:           'Montserrat', sans-serif;
    --deco-font-1:          'Montserrat';          /* era Sacramento */
    --body-font-color:      #3d3d3d;               /* testo su sfondo chiaro */
    --body-font-color-dark: #d0d0d0;               /* testo su sfondo scuro  */
    --body-font-size:       16px;
    --body-font-weight:     400;
    --title-font-color:     #111111;
    --title-font-color-dark:#ffffff;
}


/* ── Font base ───────────────────────────────────────────────────────────── */
body,
h1, h2, h3, h4, h5, h6,
p, a, li, span, button,
input, textarea, select,
nav, header, footer,
.btn, .btn-line, .btn-custom, .btn-slider {
    font-family: 'Montserrat', sans-serif !important;
}

/* Testo body: colore leggibile su sfondo bianco */
body.de_light {
    color: #3d3d3d !important;
    background: #fff !important;
}
body.de_light p,
body.de_light li,
body.de_light span:not(.id-color):not(.id-color-2) {
    color: #3d3d3d;
}

/* Headings su sfondo chiaro: nero */
body.de_light h1,
body.de_light h2,
body.de_light h3,
body.de_light h4,
body.de_light h5,
body.de_light h6 {
    color: #111 !important;
}

/* Headings su sezioni scure: bianco */
.text-light h1,
.text-light h2,
.text-light h3,
.text-light h4,
.text-light p,
.text-light li,
.text-light span {
    color: #fff !important;
}


/* ── SCALA TIPOGRAFICA ───────────────────────────────────────────────────── */

/* h2.s1 — eyebrow label sopra ogni sezione
   Era: Sacramento 100px. Ora: Montserrat 11px uppercase tracciato stretto */
h2.s1 {
    font-family: 'Montserrat', sans-serif !important;
    font-size:   11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.4em !important;
    text-transform: uppercase !important;
    color: var(--primary-color) !important;
    line-height: 1.2 !important;
    margin-bottom: 14px !important;
    display: block !important;
}
/* Su sezioni scure: bianco traslucido */
.text-light h2.s1 {
    color: rgba(255, 255, 255, .6) !important;
}

/* h2.s2 — titolo principale di sezione
   Era: 40px uppercase, border, letter-spacing 10px. Ora: 38px, clean */
h2.s2,
h2.s4 {
    font-size:      38px !important;
    font-weight:    800 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
    border:         none !important;
    line-height:    1.15 !important;
    color:          #111 !important;
    margin:         0 0 24px 0 !important;
    display:        block !important;
}
.text-light h2.s2,
.text-light h2.s4 {
    color:       #fff !important;
    border:      none !important;
}

/* h3 */
h3 {
    font-size:   22px !important;
    font-weight: 700 !important;
    color:       #111 !important;
}
.text-light h3 { color: #fff !important; }

/* h4 */
h4 {
    font-size:   16px !important;
    font-weight: 600 !important;
}

/* Testo lead / paragrafo principale */
p.lead {
    font-size:   17px !important;
    font-weight: 300 !important;
    line-height: 1.85 !important;
    color:       #555 !important;
}

/* Testo normale */
p {
    font-size:   15px !important;
    line-height: 1.8 !important;
}


/* ── LOGO ────────────────────────────────────────────────────────────────── */
/* In header_center, designesia.js nasconde #logo e inietta il logo
   dentro #mainmenu come <li class="logo_pos"><img class="c_logo_light">.
   style.css forza header.header_center img { height:125px } → override qui. */
header.header_center .logo_pos img,
header .c_logo_light,
header .c_logo_dark {
    height: 68px !important;
    width:  auto !important;
    margin: 0 28px !important;
    vertical-align: middle !important;
    transition: height .3s ease, opacity .3s ease !important;
}
header.smaller .logo_pos img,
header.smaller .c_logo_light,
header.smaller .c_logo_dark {
    height: 46px !important;
    margin: 12px 20px 0 20px !important; /* centra verticalmente in header h=70px: (70-46)/2=12 */
}

/* ── Header fluid transition ─────────────────────────────────────────────
   ::before porta lo sfondo scrollato — jQuery UI non tocca i pseudo-element
   quindi non può interferire. opacity è GPU-composited: transizione fluida.
   height transizionata direttamente sull'elemento.
   Su mobile (< 993px) l'header è position:absolute e scorre con la pagina:
   il glass non ha senso e creerebbe glitch → ::before disabilitato. */
header {
    transition: height 0.38s cubic-bezier(.4,0,.2,1) !important;
}
@media (max-width: 992px) {
    header::before { display: none !important; }
}
header::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0; /* fallback for inset */
    inset: 0;
    background: rgba(0,0,0,0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.38s cubic-bezier(.4,0,.2,1);
    z-index: 0;
    pointer-events: none;
}
/* bg-dark escluso: quando menu mobile aperto, lascia lo sfondo al tema */
header.smaller:not(.bg-dark)::before,
header.clone:not(.bg-dark)::before {
    opacity: 1;
}
/* .clone non viene rimosso tornando in cima — header-at-top forza ::before off */
header.header-at-top:not(.bg-dark)::before {
    opacity: 0 !important;
}
/* smaller/clone senza menu aperto: background gestito da ::before */
header.smaller:not(.bg-dark),
header.clone:not(.bg-dark) {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}
/* z-index per tenere contenuto header sopra ::before */
header #logo,
header nav,
header #mainmenu,
header .logo_pos,
header #menu-btn {
    position: relative;
    z-index: 1;
}

/* ── MENU HEADER ─────────────────────────────────────────────────────────── */
header nav ul#mainmenu > li > a {
    font-size:      12px !important;
    font-weight:    600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    transition:     color 0.38s cubic-bezier(.4,0,.2,1), text-shadow 0.38s ease !important;
}

/* Header dopo lo scroll (semi-trasparente scuro) — testo bianco */
header.smaller #mainmenu > li > a,
header.clone   #mainmenu > li > a {
    color: #fff !important;
    text-shadow: none !important;
}
header.smaller #mainmenu a:hover,
header.clone   #mainmenu a:hover,
header.smaller #mainmenu a.active,
header.clone   #mainmenu a.active {
    color: rgba(255,255,255,0.65) !important;
}

/* Header sopra lo hero — .header-at-top gestito da baresto-init.js.
   I selettori includono anche .smaller e .clone per vincere il conflitto
   quando designesia.js mantiene entrambe le classi contemporaneamente.
   Specificità (0,2,2) > (0,1,2) delle regole .smaller sopra. */
header.header-at-top #mainmenu > li > a,
header.header-at-top.smaller #mainmenu > li > a,
header.header-at-top.clone   #mainmenu > li > a {
    color: #fff !important;
    text-shadow: 0 1px 6px rgba(0,0,0,.45) !important;
}
header.header-at-top #mainmenu a:hover,
header.header-at-top #mainmenu a.active,
header.header-at-top.smaller #mainmenu a:hover,
header.header-at-top.clone   #mainmenu a:hover {
    color: rgba(255,255,255,.65) !important;
}


/* ── BOTTONI ─────────────────────────────────────────────────────────────── */
.btn-custom,
a.btn-custom,
.btn-slider {
    background:     linear-gradient(135deg, #009444 0%, #00b356 100%) !important;
    border:         none !important;
    color:          #fff !important;
    font-size:      11px !important;
    font-weight:    700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    border-radius:  50px !important;
    padding:        13px 32px !important;
    box-shadow:     0 4px 18px rgba(0, 148, 68, .32) !important;
    transition:     all .28s ease !important;
    position:       relative !important;
    overflow:       hidden !important;
}
.btn-custom:hover,
a.btn-custom:hover,
.btn-slider:hover {
    background:  linear-gradient(135deg, #007a38 0%, #009444 100%) !important;
    box-shadow:  0 6px 24px rgba(0, 148, 68, .45) !important;
    transform:   translateY(-2px) !important;
    color:       #fff !important;
}

.btn-line,
a.btn-line {
    border:         2px solid var(--primary-color) !important;
    color:          var(--primary-color) !important;
    font-size:      11px !important;
    font-weight:    700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border-radius:  50px !important;
    padding:        11px 30px !important;
    background:     transparent !important;
    transition:     all .28s ease !important;
}
.btn-line:hover,
a.btn-line:hover {
    background:  var(--primary-color) !important;
    color:       #fff !important;
    box-shadow:  0 4px 18px rgba(0, 148, 68, .32) !important;
    transform:   translateY(-2px) !important;
}


/* ── SEZIONE CTA ─────────────────────────────────────────────────────────── */
section.call-to-action {
    background-color: #4d8065 !important;
}
section.call-to-action h3,
section.call-to-action a,
section.call-to-action p {
    color: #fff !important;
}
.btn-line-black {
    border-color: #fff !important;
    color:        #fff !important;
}
.btn-line-black:hover {
    background:  #fff !important;
    color:       var(--primary-color) !important;
}


/* ── SEZIONE ABOUT ───────────────────────────────────────────────────────── */
#about {
    background: #fff;
    padding: 80px 0;
}
#about h2,
#about p,
#about .lead {
    color: #111 !important;
}


/* ── SEZIONI PARALLAX (text-light) ──────────────────────────────────────── */
section.jarallax.text-light p,
section.jarallax.text-light li {
    color: rgba(255,255,255,.82) !important;
}

/* Titoli su sezioni con background image (jarallax + text-light):
   body.de_light h2 usa !important → serve selettore più specifico */
body.de_light section.text-light h1,
body.de_light section.text-light h2,
body.de_light section.text-light h3,
body.de_light section.text-light h4,
body.de_light section.text-light h5,
body.de_light section.text-light h6,
body.de_light .text-light h2.s2,
body.de_light .text-light h2.s4,
body.de_light .text-light h2.s1,
body.de_light .text-light h3 {
    color: #fff !important;
}
body.de_light .text-light h2.s1 {
    color: rgba(255,255,255,.6) !important;
}


/* ── CARD SERVIZI e PORTFOLIO HOVER ─────────────────────────────────────── */
/* body.de_light h3 = specificità (0,1,2). Per vincere con !important servono
   almeno (0,2,1): usiamo body.de_light .svc-card h3 = (0,2,2). */
body.de_light .svc-card h3,
body.de_light .svc-card h4,
body.de_light .svc-card p {
    color: #fff !important;
}
body.de_light .portfolio-hover h4,
body.de_light .portfolio-hover p {
    color: #fff !important;
}

/* ── SPACER mb-40 ────────────────────────────────────────────────────────── */
.mb-40 { margin-bottom: 16px !important; } /* ridotto: era troppo gap sotto eyebrow */


/* ══════════════════════════════════════════════════════════════════════════
   FOOTER REDESIGN
══════════════════════════════════════════════════════════════════════════ */
#contatti-footer {
    background: #111111 !important;
    color: #c8d0cc !important;
    padding: 0 !important;
    border-top: none !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Barra accent top */
.footer-accent-bar {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 30%, var(--primary-color) 70%, transparent 100%);
}

/* Logo */
.footer-logo-wrap {
    text-align: center;
    padding: 52px 20px 0;
}
.footer-logo-img {
    height: 72px;
    max-width: 240px;
    width: auto;
    object-fit: contain;
    filter: brightness(1) drop-shadow(0 0 16px rgba(0, 148, 68, .3));
    transition: filter .3s ease;
}
.footer-logo-img:hover {
    filter: brightness(1.1) drop-shadow(0 0 22px rgba(0, 148, 68, .5));
}
.footer-tagline {
    margin-top: 10px !important;
    font-size:  10px !important;
    letter-spacing: .28em !important;
    text-transform: uppercase !important;
    color: rgba(200, 208, 204, .45) !important;
    font-weight: 500 !important;
}

/* Divisore */
.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 32px auto 36px;
    padding: 0 60px;
}
.footer-divider span {
    flex: 1;
    max-width: 180px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 148, 68, .35));
}
.footer-divider span:last-child {
    background: linear-gradient(270deg, transparent, rgba(0, 148, 68, .35));
}
.footer-divider i {
    color: var(--primary-color);
    font-size: 13px;
    opacity: .6;
}

/* Info columns */
.footer-info-row {
    padding-bottom: 48px;
}
.footer-col-label {
    font-size:   10px !important;
    font-weight: 700 !important;
    letter-spacing: .22em !important;
    text-transform: uppercase !important;
    color: var(--primary-color) !important;
    margin-bottom: 16px !important;
}
.footer-col-label i { margin-right: 6px; }

.footer-addr {
    font-size:   13px !important;
    line-height: 1.75 !important;
    color: #c8d0cc !important;
    margin-bottom: 8px !important;
}
.footer-addr strong {
    color:       #eaeeed !important;
    font-weight: 600 !important;
    display: block;
    margin-bottom: 2px;
}

.footer-contact-line {
    font-size:     14px !important;
    margin-bottom: 6px !important;
    color: #c8d0cc !important;
}
.footer-contact-line a,
#contatti-footer a {
    color: #c8d0cc !important;
    text-decoration: none !important;
    transition: color .2s ease !important;
}
.footer-contact-line a:hover,
#contatti-footer a:hover {
    color: var(--primary-color) !important;
}

/* Social */
.footer-socials {
    margin-top: 16px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
}
.footer-socials a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width:  34px !important;
    height: 34px !important;
    border: 1px solid rgba(0, 148, 68, .3) !important;
    border-radius: 50% !important;
    color: #c8d0cc !important;
    font-size: 13px !important;
    transition: all .22s ease !important;
}
.footer-socials a:hover {
    background:   var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* Link rapidi */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: center;
}
.footer-nav a {
    font-size:   12px !important;
    font-weight: 500 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
    color: #c8d0cc !important;
    text-decoration: none !important;
    transition: color .2s ease !important;
    position: relative;
}
.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width .22s ease;
}
.footer-nav a:hover { color: var(--primary-color) !important; }
.footer-nav a:hover::after { width: 100%; }

/* Copyright bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 16px 24px;
    text-align: center;
    font-size: 11px !important;
    color: rgba(200, 208, 204, .45) !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    align-items: center;
}
.footer-bottom a { color: rgba(200, 208, 204, .45) !important; }
.footer-bottom a:hover { color: var(--primary-color) !important; }
.footer-sep { color: var(--primary-color); opacity: .45; }

/* Sovrascrive footer h3 generico che style.css potrebbe mostrare */
#contatti-footer h3 { display: none !important; }


/* ── SLIDER / REVOLUTION CAPTIONS ───────────────────────────────────────── */

/* .big-s1 → eyebrow: brand name piccolo, bianco traslucido, uppercase tracciato.
   Serve come ancora di contesto, non come focus visivo. */
.big-s1 {
    font-family:    'Montserrat', sans-serif !important;
    font-size:      clamp(12px, 1.1vw, 15px) !important;
    font-weight:    700 !important;
    letter-spacing: 0.38em !important;
    text-transform: uppercase !important;
    color:          rgba(255,255,255,.95) !important;
    line-height:    1.4 !important;
}

/* .very-big-white → hero title: raffinato, non schiacciante.
   Posizionato nel terzo inferiore dove l'overlay è più scuro → verde leggibile. */
.very-big-white {
    font-family:    'Montserrat', sans-serif !important;
    font-size:      clamp(36px, 4vw, 58px) !important;
    font-weight:    700 !important;
    letter-spacing: -0.02em !important;
    color:          #009444 !important;
    line-height:    1.1 !important;
    text-transform: none !important;
}

/* Testi generici caption slider sempre leggibili */
.tp-caption {
    font-family: 'Montserrat', sans-serif !important;
}
.tp-caption.text-center p {
    color: rgba(255, 255, 255, .85) !important;
    font-size:   15px !important;
    font-weight: 300 !important;
    letter-spacing: 0.02em !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   SLIDER OVERLAY — testo sempre leggibile sulle foto reali
═══════════════════════════════════════════════════════════════════════════ */

/* Overlay doppio: bottom-up per leggibilità testo + top-down per header nav.
   La foto resta visibile nella fascia centrale. */
.rev_slider .slotholder::after {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 28%),
        linear-gradient(to top,    rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 35%, transparent 65%);
    z-index: 5;
    pointer-events: none;
}

/* Ken-burns zoom sulle immagini slider */
.rev_slider .slotholder img {
    animation: kb-zoom 8s ease-in-out infinite alternate !important;
}
@keyframes kb-zoom {
    0%   { transform: scale(1.00) translate(0, 0); }
    100% { transform: scale(1.06) translate(-1%, -1%); }
}

/* Text-shadow calibrato per tipo:
   very-big-white (verde brillante su foto) → shadow scuro forte per leggibilità.
   big-s1 (eyebrow bianco traslucido) → shadow leggero.
   tp-caption generiche → shadow standard. */
.very-big-white {
    text-shadow: 0 2px 24px rgba(0,0,0,.85), 0 1px 6px rgba(0,0,0,.6) !important;
}
.big-s1 {
    text-shadow: 0 1px 14px rgba(0,0,0,.9), 0 0 6px rgba(0,0,0,.75) !important;
}
.tp-caption {
    text-shadow: 0 2px 14px rgba(0,0,0,.6), 0 1px 4px rgba(0,0,0,.4) !important;
}

/* Bottone slider: contorno bianco + glow verde al hover */
.btn-slider {
    box-shadow: 0 0 0 2px rgba(255,255,255,.55), 0 4px 18px rgba(0,148,68,.32) !important;
    transition: all .32s cubic-bezier(.4,0,.2,1) !important;
}
.btn-slider:hover {
    box-shadow: 0 0 0 2px #fff, 0 8px 30px rgba(0,148,68,.55) !important;
    transform: translateY(-3px) scale(1.03) !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   ANIMAZIONI SEZIONI — reveal headings + stagger + hover lift
═══════════════════════════════════════════════════════════════════════════ */

/* Reveal line: linea verde che cresce sotto i titoli di sezione */
h2.s2::after,
h2.s4::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin-top: 14px;
    border-radius: 2px;
    transition: width 1.1s cubic-bezier(.4,0,.2,1);
}
.wow.animated h2.s2::after,
.wow.animated h2.s4::after,
h2.s2.wow.animated::after,
h2.s4.wow.animated::after {
    width: 80px;
}

/* Stagger automatico sui figli diretti di .row con wow */
.row > .wow:nth-child(1) { animation-delay: 0s !important; }
.row > .wow:nth-child(2) { animation-delay: .12s !important; }
.row > .wow:nth-child(3) { animation-delay: .24s !important; }
.row > .wow:nth-child(4) { animation-delay: .36s !important; }
.row > .wow:nth-child(5) { animation-delay: .48s !important; }
.row > .wow:nth-child(6) { animation-delay: .60s !important; }

/* Hover lift su card servizi */
.svc-card {
    transition: transform .32s cubic-bezier(.4,0,.2,1),
                box-shadow  .32s cubic-bezier(.4,0,.2,1) !important;
}
.svc-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 48px rgba(0,0,0,.22) !important;
}

/* Hover lift su card news */
#news .col-lg-4 > div {
    transition: transform .32s cubic-bezier(.4,0,.2,1),
                box-shadow  .32s cubic-bezier(.4,0,.2,1) !important;
}
#news .col-lg-4 > div:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 48px rgba(0,0,0,.14) !important;
}

/* Zoom immagini news card al hover */
#news .col-lg-4 > div > div:first-child img {
    transition: transform .5s cubic-bezier(.4,0,.2,1) !important;
}
#news .col-lg-4 > div:hover > div:first-child img {
    transform: scale(1.06) !important;
}

/* Pulsing glow sui bottoni CTA principali */
@keyframes btn-glow {
    0%, 100% { box-shadow: 0 4px 18px rgba(0,148,68,.32); }
    50%       { box-shadow: 0 4px 28px rgba(0,148,68,.58), 0 0 0 5px rgba(0,148,68,.10); }
}
.btn-custom,
a.btn-custom {
    animation: btn-glow 2.8s ease-in-out infinite !important;
}
.btn-custom:hover,
a.btn-custom:hover {
    animation: none !important;
}

/* Sezioni jarallax — fade-in dell'overlay al load */
@keyframes overlay-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
section.jarallax.text-light {
    animation: overlay-fadein .8s ease both;
}

/* Icone "3 punti di forza" — bounce al hover */
section .col-lg-4 img {
    transition: transform .3s cubic-bezier(.34,1.56,.64,1) !important;
}
section .col-lg-4:hover img {
    transform: scale(1.12) rotate(-2deg) !important;
}

/* Smooth scroll su tutto il sito */
html {
    scroll-behavior: smooth;
}


/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE (≤ 767px)
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* Sezioni heading: scala giù */
    h2.s2,
    h2.s4 { font-size: 26px !important; letter-spacing: 0 !important; }
    h3     { font-size: 18px !important; }

    /* Slider captions mobile: big-s1 visibile ma compatto, nowrap per non wrappare */
    .big-s1 {
        font-size:      10px !important;
        letter-spacing: 0.28em !important;
        white-space:    nowrap !important;
    }
    .very-big-white {
        font-size:      clamp(22px, 6vw, 26px) !important;
        letter-spacing: -0.01em !important;
        white-space:    nowrap !important;
        text-align:     center !important;
        line-height:    1.1 !important;
    }

    /* Nascondi descrizione (testo lungo, occupa spazio su mobile) */
    .tp-caption.text-center {
        display: none !important;
    }

    /* ── Burger menu aperto (classe bg-dark aggiunta da designesia.js) ─────
       header-at-top mantiene testo bianco traslucido → su bg nero serve
       bianco pieno e text-shadow rimosso per leggibilità. */
    header.bg-dark #mainmenu > li > a,
    header.header-at-top.bg-dark #mainmenu > li > a {
        color: #fff !important;
        text-shadow: none !important;
        font-size: 14px !important;
        padding: 12px 20px !important;
        display: block !important;
    }
    header.bg-dark #mainmenu > li > a:hover {
        color: var(--primary-color) !important;
    }
    /* Riga separatrice tra voci menu */
    header.bg-dark #mainmenu > li {
        border-bottom: 1px solid rgba(255,255,255,.08) !important;
    }
    header.bg-dark #mainmenu > li:last-child {
        border-bottom: none !important;
    }

    /* Jarallax: disabilita parallax su mobile per scroll fluido.
       Dopo jarallax("destroy") l'img torna figlio diretto della section. */
    section.jarallax {
        position: relative !important;
        overflow: hidden !important;
        background-attachment: scroll !important;
    }
    section.jarallax > .jarallax-img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: center !important;
        transform: none !important;
        will-change: auto !important;
        z-index: 0 !important;
    }
    section.jarallax > .container,
    section.jarallax > .container-fluid {
        position: relative !important;
        z-index: 1 !important;
    }

    /* Ken-burns: off su mobile */
    .rev_slider .slotholder img { animation: none !important; }

    /* Reviews: nascondi immagine laterale, full-width testo */
    #reviews .col-lg-6.pull-right.image-container { display: none !important; }
    #reviews .col-lg-6.offset-lg-6 {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Burger menu: fix hover stuck su touch/mobile */
@media (hover: none) {
    #menu-btn:hover { background-color: transparent !important; }
    #menu-btn.click { background-color: var(--primary-color) !important; }
}
