/* ==========================================================
   main.css  –  Autocarrozzeria Gori
   Architettura: file unico, Tema Bianco / Rosso
   ========================================================== */

/* ========================================================
   VARIABILI  –  Tema Bianco / Rosso
   ======================================================== */
:root {
    /* Palette */
    --primary:      #111827;
    --accent:       #e10513;
    --accent-hover: #c0000f;
    --dark:         #111827;
    --mid:          #1e2d40;
    --light:        #f0f4f8;
    --white:        #ffffff;
    --text:         #111827;
    --text-muted:   #5a6a7a;
    --text-light:   #e2e8f0;

    /* Layout */
    --header-h:     70px;
    --max-w:        1200px;
    --r-card:       48px 8px;
    --r-card-img:   40px 6px;
    --r-btn:        999px;
    --r-input:      14px;
    --r-section:    48px 8px;

    /* Shadows / transitions */
    --shadow:       0 6px 28px rgba(0,0,0,0.09);
    --shadow-dark:  0 10px 40px rgba(0,0,0,0.22);
    --transition:   all 0.3s ease;

    /* Overlay per sezione */
    --ov-chi:   rgba(10,18,30,0.40);
    --ov-serv:  rgba(10,18,30,0.46);
    --ov-sin:   rgba(10,18,30,0.36);
    --ov-amb:   rgba(10,18,30,0.26);
    --ov-gall:  rgba(10,18,30,0.46);
    --ov-stats: rgba(10,18,30,0.58);
    --ov-rec:   rgba(10,18,30,0.38);
    --ov-con:   rgba(10,18,30,0.44);

    /* Header: diventa BIANCO allo scroll */
    --header-scrolled-bg:     var(--white);
    --header-scrolled-shadow: 0 2px 24px rgba(0,0,0,0.08);
    --header-scrolled-border: 1px solid rgba(0,0,0,0.07);

    /* Logo: colori naturali (sfondo bianco fisso) */
    --logo-filter:        none;
    --logo-filter-scroll: none;

    /* Nav + phone */
    --nav-color:        #003399;
    --nav-color-scroll: #003399;
    --nav-hover-bg:     #e10513;
    --nav-hover-color:  #ffffff;
    --nav-hover-bg-scroll:    #e10513;
    --nav-hover-color-scroll: #ffffff;
    --phone-color-scroll: #003399;
    --hamburger-color:        #003399;
    --hamburger-color-scroll: #003399;

    /* Hero text – glass box */
    --hero-text-maxw:      860px;
    --hero-text-bg:        rgba(10,18,30,0.50);
    --hero-text-backdrop:  blur(12px);
    --hero-text-border:    1px solid rgba(255,255,255,0.12);
    --hero-text-radius:    48px 12px;
    --hero-text-padding:   52px 60px;

    /* Hero badge rgba */
    --badge-bg:     rgba(225,5,19,0.12);
    --badge-border: rgba(225,5,19,0.30);

    /* Hero overlay */
    --hero-ov1: rgba(10,18,30,0.78);
    --hero-ov2: rgba(10,18,30,0.42);
    --hero-ov3: rgba(10,18,30,0.06);

    /* Section label – badge pill */
    --label-color:      var(--text);
    --label-bg:         rgba(255,255,255,0.70);
    --label-backdrop:   blur(4px);
    --label-padding:    5px 14px 5px 10px;
    --label-radius:     20px;
    --label-mb:         14px;
    --label-line-color: var(--accent);
    --label-line-w:     16px;
    --label-line-mr:    8px;

    /* dark-card → bianco */
    --dc-bg:        rgba(255,255,255,0.88);
    --dc-border:    rgba(0,0,0,0.06);
    --dc-h3:        var(--accent);
    --dc-p:         var(--text-muted);

    /* card (sinistri/plus) */
    --card-bg:           rgba(255,255,255,0.88);
    --card-border:       rgba(0,0,0,0.05);
    --card-h3:           var(--accent);
    --card-p:            var(--text-muted);

    /* stat item → bianco */
    --stat-bg:           rgba(255,255,255,0.88);
    --stat-border:       rgba(0,0,0,0.05);
    --stat-label-color:  var(--text-muted);

    /* ambiente card → bianco */
    --amb-card-bg:    rgba(255,255,255,0.88);
    --amb-card-text:  var(--text);

    /* footer navy */
    --footer-bg: #0f1828;

    /* Mobile nav bianco */
    --nav-mobile-bg: var(--white);
}






/* ========================================================
   RESET
   ======================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Barlow', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

@media (max-width: 480px) {
    .section,
    .hero-inner,
    .section-inner,
    .chi-siamo-section,
    .chi-siamo-card,
    .ambiente-text-card {
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .gallery-strip img {
        width: 380px !important;
        height: 260px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }
    .ambiente-photos img,
    .card-image img,
    .dark-card img {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
}
h1, h2, h3, .stat-number, .section-title { font-family: 'Buga', 'Barlow Condensed', 'Barlow', sans-serif; }
h3 { color: var(--accent); }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }


/* ========================================================
   PRELOADER
   ======================================================== */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--dark);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}
#preloader img {
    height: 100vh;
    width: auto;
    max-width: none;
    filter: none;
    animation: preloaderShrink 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}
@keyframes preloaderShrink {
    0%   { height: 100vh; opacity: 1; }
    70%  { height: 80px;  opacity: 1; }
    100% { height: 72px;  opacity: 1; }
}
body.preloader-active { overflow: hidden; }
body.preloader-done #preloader { opacity: 0; visibility: hidden; pointer-events: none; }


/* ========================================================
   SCROLL REVEAL
   ======================================================== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Fade-in images on scroll */
.img-fade {
    opacity: 0;
    transition: opacity 2s ease;
}
.img-fade.img-visible { opacity: 1; }


/* ========================================================
   HEADER
   ======================================================== */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: transparent;
    height: var(--header-h);
    overflow: hidden;
    box-shadow: none;
    transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
/* Sfondo bianco: sfumato ai bordi */
header::before {
    content: '';
    position: absolute;
    top: 5px; bottom: 0; left: 0; right: 0;
    z-index: 0; pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(
        to right,
        transparent 0,
        white 20px,
        white calc(100% - 20px),
        transparent 100%
    );
}
header.header--scrolled::before { opacity: 1; }

/* Strisce: visibili solo quando scrolled */
header::after {
    content: '';
    position: absolute;
    top: 5px; bottom: 55px; left: 0; right: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(to bottom,
        #ffffff  0px, #ffffff 2px,
        #e10513  2px, #e10513 5px,
        #ffffff  5px, #ffffff 6px,
        #003399  6px, #003399 10px
    );
}
header.header--scrolled {
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.20);
}
header.header--scrolled::after {
    opacity: 1;
}
header.header--hidden {
    transform: translateY(-100%);
    box-shadow: none;
}
.header-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo – sfondo bianco + alone quando scrolled, trasparente altrimenti */
.logo-link {
    display: flex; align-items: center; flex-shrink: 0;
    align-self: center;
    background: transparent;
    padding: 2px 8px;
    position: relative;
    border-radius: 4px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
header.header--scrolled .logo-link {
    background: white;
    box-shadow: none;
}
.logo-link img {
    height: 52px; width: auto;
    filter: none;
}
header.header--scrolled .logo-link img {
    filter: none;
}

/* Nav */
.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav ul { display: flex; align-items: center; gap: 4px; justify-content: center; }
.site-nav ul li a {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: white;
    background: transparent;
    border-radius: 0;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}
.site-nav ul li a:hover { color: var(--accent); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }
/* WhatsApp: cerchio bianco che interrompe la striscia blu */
.header-wa {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: transparent;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.header-wa:hover { opacity: 0.75; }
.header-wa svg { width: 20px; height: 20px; fill: white; display: block; transition: fill 0.3s ease; }
header.header--scrolled .header-wa svg { fill: #25d366; }
.header-phone {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}
header.header--scrolled .header-phone { color: white; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}
header.header--scrolled .nav-toggle span { background: #1a2540; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ========================================================
   HERO
   ======================================================== */
.hero {
    min-height: 100svh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}
.hero-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        105deg,
        var(--hero-ov1) 0%,
        var(--hero-ov2) 50%,
        var(--hero-ov3) 100%
    );
    z-index: 1;
}
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 120px 48px 80px;
    width: 100%;
}
.hero-text {
    max-width: var(--hero-text-maxw);
    background: var(--hero-text-bg);
    border-radius: var(--hero-text-radius);
    padding: var(--hero-text-padding);
    border: var(--hero-text-border);
}
.hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    padding: 6px 16px;
    border-radius: var(--r-btn);
    margin-bottom: 24px;
}
.hero-text h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hero-text h1 em { font-style: normal; color: var(--accent); font-size: 1.7em; line-height: 1; }
.hero-text h1 .hero-small { font-size: 0.7em; }
.hero-gori-wrap {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.18em;
    vertical-align: middle;
}
.hero-gori-logo {
    height: 1.4em;
    width: auto;
    display: block;
    flex-shrink: 0;
}
.hero-tagline {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,0.88);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 14px;
    white-space: nowrap;
}
.hero-sub {
    font-size: 0.96rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 36px;
    line-height: 1.75;
    white-space: nowrap;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-hero-primary {
    background: var(--accent);
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--r-btn);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}
.btn-hero-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(225,5,19,0.45);
}
.btn-hero-secondary {
    background: transparent;
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--r-btn);
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.35);
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.7);
}


/* ========================================================
   GENERIC SECTION LAYOUT
   ======================================================== */
.section { padding: 80px 32px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-header {
    position: relative;
    background: rgba(0,0,0,0.12);
    margin: 0 -32px 40px;
    padding: 15px 32px 0;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}
.section-header::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.12), transparent);
    pointer-events: none;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--label-color);
    background: var(--label-bg);
    padding: var(--label-padding);
    border-radius: var(--label-radius);
    margin-bottom: var(--label-mb);
}
.section-label::before {
    content: '';
    display: inline-block;
    width: var(--label-line-w);
    height: 2px;
    background: var(--label-line-color);
    vertical-align: middle;
    margin-right: var(--label-line-mr);
    border-radius: 2px;
}
.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--h2-color, var(--primary));
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.section-title.light { color: var(--h2-color, var(--white)); }
.section-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 14px auto 0;
    line-height: 1.75;
}
.section-lead.light { color: rgba(255,255,255,0.68); }


/* ========================================================
   CHI SIAMO
   ======================================================== */
.chi-siamo-section {
    position: relative;
    background-color: var(--bg-color, #0f1828);
    background-image: linear-gradient(var(--bg-overlay, var(--ov-chi)), var(--bg-overlay, var(--ov-chi))), var(--bg, none);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 32px 0;
}
.chi-siamo-section .section-header { margin-bottom: 36px; }
.chi-siamo-card {
    background: rgba(15,24,40,var(--chi-card-alpha, 0.52));
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid var(--accent);
    border-radius: var(--hero-text-radius);
    padding: 36px 52px;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.20);
    transition: background 0.3s ease;
}
.chi-siamo-logo-wrap {
    display: flex;
    justify-content: center;
    margin-top: 64px;
    padding-bottom: 120px;
}
.chi-siamo-logo-grow {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0;
    transform: scale(0.15);
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.30, 1), opacity 0.6s ease;
    will-change: transform, opacity;
}
.chi-siamo-logo-grow.grow-visible {
    transform: scale(2.8);
    opacity: 1;
}
.chi-siamo-card p {
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.75;
}
.chi-siamo-card p:last-child { margin-bottom: 0; }
/* p1: uppercase rosso — etichetta/claim */
.chi-siamo-card p:first-child {
    font-family: 'Buga', 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: clamp(0.72rem, 1.6vw, 0.88rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
}
/* p2: grande bianco — frase principale */
.chi-siamo-card p:nth-child(2) {
    font-family: 'Buga', 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: clamp(1.0rem, 2.7vw, 1.45rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: 0.01em;
}
/* p3: citazione — sottotitolo descrittivo */
.chi-siamo-card p:last-child {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(0.85rem, 2.05vw, 1.05rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(255,255,255,0.60);
    letter-spacing: 0;
    line-height: 1.85;
}
.chi-siamo-card p:last-child::before { content: '\201C'; }
.chi-siamo-card p:last-child::after  { content: '\201D'; }


/* ========================================================
   I NOSTRI SERVIZI
   ======================================================== */
.servizi-section {
    position: relative;
    background-color: var(--bg-color, transparent);
    background-image: linear-gradient(var(--bg-overlay, var(--ov-serv)), var(--bg-overlay, var(--ov-serv))), var(--bg, none);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 32px;
}
.dark-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.dark-card {
    background: var(--dc-bg);
    border: 1px solid var(--dc-border);
    border-radius: var(--r-card);
    padding: 0 0 24px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.dark-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.28);
    border-color: rgba(225,5,19,0.30);
    background: rgba(255,255,255,0.97);
}
.dark-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--r-card-img) 0 0;
    margin: 8px;
    width: calc(100% - 16px);
    /* margin removed for uniformity */
    display: block;
    transition: transform 0.5s ease;
}
.dark-card:hover img { transform: scale(1.05); }
.dark-card-body { padding: 20px 22px 0; }
.dark-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dc-h3);
    margin-bottom: 8px;
    line-height: 1.3;
}
.dark-card p {
    font-size: 0.9rem;
    color: var(--dc-p);
    line-height: 1.65;
}


/* ========================================================
   PRATICHE & SINISTRI
   ======================================================== */
.sinistri-section {
    position: relative;
    background-color: var(--bg-color, transparent);
    background-image: linear-gradient(var(--bg-overlay, var(--ov-sin)), var(--bg-overlay, var(--ov-sin))), var(--bg, none);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 32px;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.card {
    background: var(--card-bg);
    border-radius: var(--r-card);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid var(--card-border);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
    border-color: rgba(225,5,19,0.18);
    background: rgba(255,255,255,0.97);
}
.card-image {
    overflow: hidden;
    border-radius: var(--r-card-img);
}
.card-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, border-radius 0.4s ease;
    border-radius: var(--r-card-img);
    margin: 8px;
    width: calc(100% - 16px);
    /* margin removed for uniformity */
}
.card:hover .card-image img { transform: scale(1.05); }
.card-content { padding: 18px 20px 22px; flex: 1; }
.card-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--card-h3);
    margin-bottom: 6px;
    line-height: 1.3;
}
.card-content p {
    font-size: 0.88rem;
    color: var(--card-p);
    line-height: 1.6;
}


/* ========================================================
   SERVIZI PLUS / EXTRA
   ======================================================== */
.extra-section {
    position: relative;
    background-color: var(--bg-color, transparent);
    background-image: linear-gradient(var(--bg-overlay, var(--ov-extra)), var(--bg-overlay, var(--ov-extra))), var(--bg, none);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 32px;
}
/* Sezione extra: sfondo chiaro con supporto immagine */
.extra-section {
    background-color: var(--bg-color, #f0f4f8);
    background-attachment: unset;
}
.extra-section .section-title.light { color: var(--white) !important; }
.extra-section .section-label       { color: var(--text); }


/* ========================================================
   AMBIENTE
   ======================================================== */
.ambiente-section {
    position: relative;
    background-color: var(--bg-color, transparent);
    background-image: linear-gradient(var(--bg-overlay, var(--ov-amb)), var(--bg-overlay, var(--ov-amb))), var(--bg, none);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 32px;
}
.ambiente-section > * { position: relative; z-index: 1; }
.ambiente-inner { max-width: 1100px; margin: 0 auto; }
.ambiente-text-card {
    background: rgba(15,24,40,0.42);
    border: 1px solid rgba(255,255,255,0.18);
    border-left: 3px solid var(--accent);
    border-radius: var(--r-card);
    padding: 36px 44px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.20);
}
/* Layout affiancato/impilato per i div in ambiente */
.ambiente-flex {
    display: flex;
    gap: 32px;
}
.ambiente-half {
    flex: 1 1 50%;
    min-width: 0;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .ambiente-flex {
        flex-direction: column;
        gap: 24px;
    }
    .ambiente-half {
        max-width: 100%;
    }
}
.ambiente-text-card p {
    font-size: 1.02rem;
    color: rgba(255,255,255,0.92);
    line-height: 1.9;
    margin-bottom: 14px;
    font-weight: 700;
}
.ambiente-text-card p:last-child { margin-bottom: 0; }
.ambiente-photos { display: flex; flex-wrap: wrap; gap: 16px; }
.ambiente-photos img {
    flex: 1 1 45%;
    min-width: 260px;
    max-height: 320px;
    object-fit: cover;
    border-radius: 24px 6px;
    margin: 8px;
    width: calc(100% - 16px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.28);
}


/* ========================================================
   GALLERIA
   ======================================================== */
.galleria-section {
    position: relative;
    background-color: var(--bg-color, transparent);
    background-image: linear-gradient(var(--bg-overlay, var(--ov-gall)), var(--bg-overlay, var(--ov-gall))), var(--bg, none);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
    overflow: hidden;
}
.galleria-section .section-header { margin: 0; }
.galleria-title { color: var(--white); }
.gallery-strip-wrap { overflow: hidden; width: 100%; padding: 8px 0; }
.gallery-strip {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: scrollGallery 55s linear infinite;
}
.gallery-strip:hover { animation-play-state: paused; }
@keyframes scrollGallery {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.gallery-strip img {
    width: 380px; height: 260px;
    object-fit: cover;
    border-radius: 24px 6px;
    margin: 8px;
    margin: 8px;
    flex-shrink: 0;
    display: block;
    transition: transform 0.4s ease, border-radius 0.4s ease;
}
.gallery-strip img:hover { transform: scale(1.04); border-radius: 32px 8px; }


/* ========================================================
   STATS
   ======================================================== */
.stats-section {
    position: relative;
    background-color: var(--bg-color, transparent);
    background-image: linear-gradient(var(--bg-overlay, var(--ov-stats)), var(--bg-overlay, var(--ov-stats))), var(--bg, none);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 32px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: var(--max-w);
    margin: 0 auto;
    text-align: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 16px;
    border-radius: var(--r-card);
    background: var(--stat-bg);
    border: 1px solid var(--stat-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    transition: var(--transition);
}
.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.97);
}
.stat-number {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--stat-label-color);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}


/* ========================================================
   RECENSIONI
   ======================================================== */
.recensioni-section {
    position: relative;
    background-color: var(--bg-color, transparent);
    background-image: linear-gradient(var(--bg-overlay, var(--ov-rec)), var(--bg-overlay, var(--ov-rec))), var(--bg, none);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
    overflow: hidden;
}
.recensioni-section .section-header { margin: 0; }
.recensioni-track-wrap { overflow: hidden; width: 100%; padding: 10px 0; }
.recensioni-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollRec 80s linear infinite;
}
.recensioni-track:hover { animation-play-state: paused; }
@keyframes scrollRec {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.recensione-card {
    background: rgba(255,255,255,0.88);
    border-radius: var(--r-card);
    padding: 24px 28px;
    width: 300px;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.rec-stars { color: #f59e0b; font-size: 1.05rem; margin-bottom: 10px; letter-spacing: 2px; }
.rec-text {
    font-size: 0.9rem;
    color: rgba(0,0,0,0.80);
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 12px;
}
.rec-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* ========================================================
   CONTATTI
   ======================================================== */
.contact-section {
    position: relative;
    background-color: var(--bg-color, transparent);
    background-image: linear-gradient(var(--bg-overlay, var(--ov-con)), var(--bg-overlay, var(--ov-con))), var(--bg, none);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 32px;
}
.contact-section .section-header { margin-bottom: 48px; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: var(--max-w);
    margin: 0 auto;
    align-items: start;
}
.contact-info-block > p {
    color: rgba(0,0,0,0.60);
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.75;
}
.contact-details { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.88);
    border-radius: 14px 4px;
    border: 1px solid rgba(0,0,0,0.07);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.contact-item:hover {
    background: rgba(255,255,255,0.98);
    border-color: rgba(225,5,19,0.25);
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.ci-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: #f0f4f8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.ci-body { display: flex; flex-direction: column; padding-top: 1px; flex: 1; min-width: 0; }
.ci-addr-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.ci-nav-links { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.ci-nav-links .ci-nav-link {
    font-size: 0.60rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.18s;
    white-space: nowrap;
}
.ci-nav-links .ci-nav-link:hover { color: var(--text); }
.contact-item strong {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--accent);
    margin-bottom: 3px;
    font-family: 'Inter', sans-serif;
}
.contact-item span,
.contact-item a { font-size: 0.97rem; color: #1a1d28; transition: var(--transition); }
.contact-item a:hover { color: var(--accent); }

/* Form */
.contact-form-intro {
    color: rgba(0,0,0,0.60);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 24px;
}
.contact-form {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: var(--r-card);
    padding: 36px 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.form-success {
    background: #1e2d40;
    border: 1px solid #1e2d40;
    border-radius: 12px;
    padding: 20px 24px;
    color: #ffffff;
    font-size: 0.95rem;
}
.form-error {
    background: rgba(225,5,19,0.07);
    border: 1px solid #e10513;
    border-radius: 12px;
    padding: 14px 18px;
    color: #e10513;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
/* Honeypot antispam – invisibile agli umani */
.form-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--text-muted);
    margin-bottom: 7px;
    font-family: 'Inter', sans-serif;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border-radius: var(--r-input);
    background: #f7f8fa;
    border: 1px solid rgba(0,0,0,0.12);
    color: #1a1d28;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(0,0,0,0.30); }
.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(225,5,19,0.50);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(225,5,19,0.10);
}
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: var(--accent);
    background: rgba(225,5,19,0.04);
    box-shadow: 0 0 0 3px rgba(225,5,19,0.12);
}
.field-error-msg {
    display: none;
    margin-top: 5px;
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}
.form-group.has-error .field-error-msg { display: block; }
.form-privacy { margin-bottom: 20px; }
.privacy-label { display: block; cursor: pointer; }
.privacy-label input[type="checkbox"] { display: none; }
.privacy-text { font-size: 0.78rem; color: rgba(0,0,0,0.50); line-height: 1.6; }
.privacy-sub  { font-size: 0.78rem; color: rgba(0,0,0,0.40); line-height: 1.55; display: block; margin-top: 3px; }
/* Checkbox custom – pallino rosso quando selezionato */
.privacy-check-ui {
    display: inline-block;
    width: 14px; height: 14px;
    vertical-align: middle;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.25);
    background: transparent;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 1;
    margin-left: 4px;
}
.privacy-check-ui.checked {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(225,5,19,0.18);
}
.form-privacy.has-error .privacy-check-ui {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(225,5,19,0.14);
}
.form-privacy.has-error .field-error-msg { display: block; margin-top: 8px; }
.privacy-label a { color: var(--accent); text-decoration: underline; }
.privacy-label a:hover { color: var(--accent-hover); }
.btn-submit {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 28px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--r-btn);
    font-size: 0.90rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}
.btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(225,5,19,0.40);
}


/* ========================================================
   SEZIONI: BORDO + STRISCIA H2
   ======================================================== */

/* Linea di separazione tra sezioni */
.chi-siamo-section,
.servizi-section,
.sinistri-section,
.extra-section,
.ambiente-section,
.galleria-section,
.stats-section,
.recensioni-section,
.contact-section {
    border-top: 2px solid var(--footer-bg);
}

/* Padding-top azzerato: la striscia gestisce la sommità */
section.servizi-section,
section.sinistri-section,
section.extra-section,
section.ambiente-section,
section.galleria-section,
section.recensioni-section,
section.contact-section {
    padding-top: 0;
}

/* Testo nella striscia: sempre leggibile su sfondo scuro */
.section-header .section-label {
    color: rgba(255,255,255,0.80);
    background: rgba(255,255,255,0.10);
}
.section-header .section-title,
.section-header .section-title.light {
    color: #fff !important;
}
.section-header .section-lead,
.section-header .section-lead.light {
    color: rgba(255,255,255,0.60);
}


/* ========================================================
   FOOTER
   ======================================================== */
footer {
    background: var(--footer-bg);
    padding: 22px 40px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-slim {
    max-width: var(--max-w);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-slim-logo {
    height: 34px; width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.70;
}
.footer-slim-sep {
    color: rgba(255,255,255,0.15);
    font-size: 1rem;
    line-height: 1;
}
.footer-slim-text {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.38);
    line-height: 1.5;
}
.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}
.footer-by {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.28);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.footer-copy {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.28);
}
.footer-wowii-link {
    display: inline-flex; align-items: center; gap: 5px;
    color: rgba(255,255,255,0.28);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-wowii-logo {
    height: 18px; width: auto;
    opacity: 0.28;
    transition: opacity 0.2s;
    filter: grayscale(1) brightness(10);
}
.footer-wowii-text {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
}
.footer-wowii-link:hover { color: #ff0080; }
.footer-wowii-link:hover .footer-wowii-logo { opacity: 1; filter: none; }
.footer-disclaimer-link {
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
    text-decoration: underline;
    transition: color 0.2s;
}
.footer-disclaimer-link:hover { color: var(--accent); }


/* ========================================================
   FLOAT ACTIONS
   ======================================================== */
.float-actions {
    position: fixed;
    bottom: 28px; right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 300;
}
.float-btn {
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
}
.float-btn:hover { transform: translateY(-3px); }
.float-wa { width: 46px; height: 46px; border-radius: 50%; background: #25d366; }
.float-wa svg { width: 22px; height: 22px; fill: #fff; }
.float-top {
    flex-direction: column;
    gap: 1px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s ease, background 0.2s ease;
}
.float-top:hover { background: var(--accent); color: var(--white); }
.float-top.visible { opacity: 1; pointer-events: auto; }
.float-top svg { width: 12px; height: 12px; fill: var(--accent); }
.float-top:hover svg { fill: var(--white); }

/* Admin shortcut */
.admin-link {
    position: fixed;
    bottom: 28px; left: 24px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.45);
    z-index: 300;
    transition: background 0.2s ease, color 0.2s ease;
}
.admin-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }


/* ========================================================
   RESPONSIVE
   ======================================================== */

/* ---- 1024px ---- */
@media (max-width: 1024px) {
    .dark-grid   { grid-template-columns: repeat(2, 1fr); }
    .cards-grid  { grid-template-columns: repeat(2, 1fr); }
    .header-phone { display: none; }

}

/* ---- 768px ---- */
@media (max-width: 768px) {
    .header-inner { padding: 0 20px; gap: 16px; }
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        transform: none;
        height: auto;
        background: var(--nav-mobile-bg);
        padding: 16px 20px 24px;
        box-shadow: 0 12px 32px rgba(0,0,0,0.25);
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        z-index: 199;
    }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; gap: 2px; }
    .site-nav ul li a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: 12px;
    }
    /* Nav links scuri sul dropdown bianco */
    .site-nav ul li a            { color: var(--text) !important; }
    .site-nav ul li a:hover      { background: rgba(225,5,19,0.08) !important; color: var(--accent) !important; }
    /* Mobile nav border */
    .site-nav { border-bottom: 2px solid rgba(225,5,19,0.20); }

    /* Fix: header overflow:hidden clips il dropdown mobile */
    header { overflow: visible; }
    .nav-toggle { display: flex; }
    .hero-inner { padding: 80px 24px 60px; }
    .hero-text { max-width: 100%; }
    /* Glass box: ridotto su mobile */
    .hero-text { padding: 36px 28px; border-radius: 16px; }
    .section { padding: 60px 20px; }
    .chi-siamo-section { padding: 60px 20px; }
    .chi-siamo-card { padding: 28px 22px; }
    .dark-grid  { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .contact-form { padding: 28px 24px; }
    .ambiente-section,
    .servizi-section,
    .recensioni-section,
    .chi-siamo-section,
    .sinistri-section,
    .extra-section,
    .galleria-section,
    .stats-section,
    .contact-section { background-attachment: scroll; }
    footer { padding: 18px 20px 14px; }
    .hero-text h1 { white-space: normal; font-size: clamp(2rem, 9vw, 3rem); }
    .hero-tagline  { white-space: normal; font-size: 1rem; }
    .hero-sub      { white-space: normal; font-size: 0.9rem; }
    .float-actions { bottom: 20px; right: 20px; }
}

/* ---- 480px ---- */
@media (max-width: 480px) {
    .cards-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-actions { flex-direction: column; }
    .btn-hero-primary,
    .btn-hero-secondary { text-align: center; }
}


/* ========================================================
   HEADER: CLASSICO
   body[data-header-style="classico"]
   – trasparente in cima, bianco (old-site) quando scrollato
   ======================================================== */
[data-header-style="classico"] header {
    background: transparent;
    box-shadow: none;
}
[data-header-style="classico"] header::before,
[data-header-style="classico"] header::after {
    display: none;
}
[data-header-style="classico"] header.header--scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
/* Nav links: bianchi in cima, scuri quando scrollato */
[data-header-style="classico"] .site-nav ul li a { color: #fff; }
[data-header-style="classico"] .site-nav ul li a:hover { color: var(--accent); background: none; border-radius: 0; }
[data-header-style="classico"] header.header--scrolled .site-nav ul li a { color: #303747; }
[data-header-style="classico"] header.header--scrolled .site-nav ul li a:hover { color: #fff; background: #303747; border-radius: 3px; }
[data-header-style="classico"] .header-phone { color: #fff; }
[data-header-style="classico"] header.header--scrolled .header-phone { color: #333; }
/* Logo: nessun box */
[data-header-style="classico"] .logo-link,
[data-header-style="classico"] header.header--scrolled .logo-link {
    background: transparent !important;
    box-shadow: none !important;
}
/* WA e hamburger: bianchi in cima, scuri quando scrollato */
[data-header-style="classico"] .header-wa svg { fill: #fff; }
[data-header-style="classico"] header.header--scrolled .header-wa svg { fill: #25d366; }
[data-header-style="classico"] .nav-toggle span { background: #fff; }
[data-header-style="classico"] header.header--scrolled .nav-toggle span { background: #303747; }

/* ========================================================
   NO ANIMATIONS MODE  [data-no-anim="1"]
   ======================================================== */
[data-no-anim="1"] #preloader { display: none !important; }
[data-no-anim="1"] .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
[data-no-anim="1"] .img-fade {
    opacity: 1 !important;
    transition: none !important;
}
[data-no-anim="1"] .grow-logo {
    transform: none !important;
    transition: none !important;
}


/* ========================================================
   LIGHTBOX GALLERIA
   ======================================================== */
#lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 600;
    background: rgba(6,12,24,0.90);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.30s ease;
}
#lb-overlay.lb-active {
    opacity: 1;
    pointer-events: auto;
}
#lb-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 88vh;
}
#lb-img {
    max-width: 90vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    max-width: none;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.65);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: block;
}
#lb-img.lb-loaded { opacity: 1; }
#lb-close {
    position: absolute;
    top: 18px; right: 20px;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.10);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
#lb-close:hover { background: rgba(255,255,255,0.22); }
#lb-prev, #lb-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.10);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
#lb-prev { left: 18px; }
#lb-next { right: 18px; }
#lb-prev:hover, #lb-next:hover { background: rgba(255,255,255,0.22); }
#lb-counter {
    position: absolute;
    bottom: 18px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.76rem;
    color: rgba(255,255,255,0.40);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.10em;
    pointer-events: none;
    white-space: nowrap;
}
@media (max-width: 768px) {
    #lb-prev { left: 8px; }
    #lb-next { right: 8px; }
    #lb-prev, #lb-next { width: 36px; height: 36px; font-size: 1.1rem; }
}

.ambiente-img-bg {
    min-height: 393px;
    background-size: cover !important;
    background-position: center !important;
}
