/* ==========================================================================
   Emilio Galbiati Automobili - foglio di stile
   Bootstrap 5.3 + tema scuro "racing"
   ========================================================================== */

:root {
    --ga-black: #0a0a0b;
    --ga-ink: #111113;
    --ga-steel: #18181b;
    --ga-steel-2: #202024;
    --ga-line: rgba(255, 255, 255, .09);
    --ga-line-strong: rgba(255, 255, 255, .18);
    --ga-text: #ecebe8;
    --ga-muted: #a1a1a8;
    /* accento (ex rosso, ora bianco - la versione rossa e' in style-rosso.css) */
    --ga-red: #ffffff;
    --ga-red-dark: #cfcfd3;
    --ga-on-accent: #0a0a0b;
    --ga-chrome: linear-gradient(180deg, #ffffff 0%, #c9c9cd 55%, #8e8e94 100%);
    --ga-font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    --ga-font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
    --ga-skew: -18deg;
    --ga-header-h: 150px;   /* aggiornata via JS (sotto-menu sticky) */
    --ga-header-top: 150px; /* spazio fisso sotto l'header nelle testate */
    --ga-ease: cubic-bezier(.2, .7, .1, 1);

    --bs-body-bg: var(--ga-black);
    --bs-body-color: var(--ga-text);
    --bs-body-font-family: var(--ga-font-body);
    --bs-link-color: #fff;
    --bs-link-hover-color: #cfcfd3;
    --bs-link-color-rgb: 255, 255, 255;
    --bs-link-hover-color-rgb: 207, 207, 211;
    --bs-border-color: var(--ga-line);
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
    background: var(--ga-black);
    color: var(--ga-text);
    font-family: var(--ga-font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; transition: color .2s; }
::selection { background: var(--ga-red); color: var(--ga-on-accent); }

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
    font-family: var(--ga-font-head);
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.02;
    color: #fff;
}
/* parole in evidenza nei titoli: testo "a contorno" */
em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px #fff; }
p em, li em { color: inherit; -webkit-text-stroke: 0; font-style: italic; }
.text-accent { color: var(--ga-red) !important; }

.skip-link { position: absolute; z-index: 2000; top: 8px; left: 8px; background: var(--ga-red); color: var(--ga-on-accent); padding: 8px 16px; }

/* ---------- elementi tipografici ---------- */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-family: var(--ga-font-head);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ga-muted);
    margin-bottom: 1rem;
}
.kicker::before {
    content: "";
    width: 34px;
    height: 4px;
    background: var(--ga-red);
    transform: skewX(var(--ga-skew));
}
.display-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 1.25rem;
}
.section-title {
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 1.25rem;
}
.lead-text { font-size: 1.2rem; color: #d3d2cf; line-height: 1.65; }
.link-arrow {
    font-family: var(--ga-font-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}
.link-arrow i { transition: transform .3s var(--ga-ease); color: var(--ga-red); }
.link-arrow:hover { color: #fff; }
.link-arrow:hover i { transform: translateX(6px); }

/* ---------- pulsanti ---------- */
.btn {
    font-family: var(--ga-font-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    border-radius: 0;
}
.btn-slash {
    position: relative;
    color: var(--ga-on-accent);
    background: transparent;
    border: 0;
    padding: .8rem 1.9rem;
    margin-left: 10px;
    margin-right: 28px; /* spazio per la striscia obliqua (::after) che sporge a destra */
    z-index: 0;
    isolation: isolate;
}
.btn-slash::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ga-red);
    transform: skewX(var(--ga-skew));
    z-index: -1;
    transition: background .25s, transform .35s var(--ga-ease);
}
.btn-slash::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    right: -14px;
    width: 6px;
    background: var(--ga-red);
    transform: skewX(var(--ga-skew));
    transition: right .35s var(--ga-ease), opacity .35s;
    opacity: .7;
}
.btn-slash:hover, .btn-slash:focus-visible { color: var(--ga-on-accent); }
.btn-slash:hover::before { background: var(--ga-red-dark); }
.btn-slash:hover::after { right: -18px; opacity: 1; }
.btn-slash.btn-lg { padding: 1rem 2.3rem; font-size: 1.05rem; }
.btn-slash.w-100 { width: calc(100% - 38px) !important; }

.btn-ghost {
    color: #fff;
    border: 1px solid var(--ga-line-strong);
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(6px);
    padding: .8rem 1.6rem;
}
.btn-ghost.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-ghost.btn-sm { padding: .45rem .9rem; font-size: .85rem; letter-spacing: .08em; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1030;
    transition: background .35s, box-shadow .35s, transform .35s;
    background: linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, 0) 100%);
}
.site-header.scrolled {
    background: rgba(10, 10, 11, .94);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--ga-line);
}
.topbar {
    font-size: .82rem;
    color: var(--ga-muted);
    border-bottom: 1px solid var(--ga-line);
    max-height: 40px;
    overflow: hidden;
    transition: max-height .35s, opacity .35s, border-color .35s;
}
.topbar .container-xxl { height: 38px; white-space: nowrap; }
.topbar-claim { letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }
.topbar-contacts a { color: var(--ga-muted); margin-left: 1.5rem; }
.topbar-contacts a:hover { color: #fff; }
.topbar-contacts strong { color: #fff; font-weight: 500; }
.site-header.scrolled .topbar { max-height: 0; opacity: 0; border-color: transparent; }

.main-nav { padding: .9rem 0; transition: padding .35s; }
.site-header.scrolled .main-nav { padding: .45rem 0; }

.brand { display: flex; align-items: center; gap: .9rem; padding: 0; margin-right: 2rem; }
.brand-logo { height: 80px; width: auto; transition: height .35s; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.site-header.scrolled .brand-logo { height: 60px; }

.main-nav .nav-link {
    font-family: var(--ga-font-head);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #e4e4e4;
    padding: .6rem 1rem !important;
    position: relative;
}
.main-nav .nav-link::after { display: none; }
.main-nav .nav-link::before {
    content: "";
    position: absolute;
    left: 1rem; right: 1rem; bottom: .2rem;
    height: 3px;
    background: var(--ga-red);
    transform: scaleX(0) skewX(var(--ga-skew));
    transform-origin: left;
    transition: transform .3s var(--ga-ease);
}
.main-nav .nav-link:hover, .main-nav .nav-link.active, .main-nav .nav-link.show { color: #fff; }
.main-nav .nav-link:hover::before, .main-nav .nav-link.active::before { transform: scaleX(1) skewX(var(--ga-skew)); }

.dropdown-menu-dark {
    --bs-dropdown-bg: rgba(16, 16, 18, .97);
    --bs-dropdown-border-color: var(--ga-line);
    --bs-dropdown-link-active-bg: var(--ga-red);
    --bs-dropdown-link-active-color: var(--ga-on-accent);
    --bs-dropdown-link-hover-bg: rgba(255, 255, 255, .06);
    --bs-dropdown-border-radius: 0;
    --bs-dropdown-padding-y: .6rem;
    min-width: 230px;
    border-top: 3px solid var(--ga-red);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
}
.dropdown-item { font-size: .95rem; padding: .5rem 1.25rem; }
.dropdown-item-overview { font-family: var(--ga-font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--ga-muted); font-size: .85rem; border-bottom: 1px solid var(--ga-line); margin-bottom: .3rem; padding-bottom: .6rem; }

/* hamburger */
.menu-toggle { border: 0; width: 46px; height: 46px; display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; padding: 0 6px; box-shadow: none !important; }
.menu-toggle span { display: block; height: 2px; background: #fff; width: 28px; transition: width .3s; }
.menu-toggle span:nth-child(2) { width: 20px; background: var(--ga-red); }
.menu-toggle span:nth-child(3) { width: 14px; }
.menu-toggle:hover span { width: 28px; }

@media (min-width: 992px) {
    .main-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; animation: dd-in .25s var(--ga-ease); }
    .main-nav .dropdown-menu { margin-top: 0; }
}
@keyframes dd-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 991.98px) {
    .main-menu.offcanvas { background: var(--ga-ink); width: min(88vw, 400px) !important; border-left: 3px solid var(--ga-red) !important; }
    .main-menu .offcanvas-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--ga-line); }
    .main-menu .offcanvas-body { padding: 1rem 1.5rem 2rem; display: flex; flex-direction: column; }
    .main-nav .nav-link { font-size: 1.5rem; padding: .7rem 0 !important; border-bottom: 1px solid var(--ga-line); display: flex; justify-content: space-between; align-items: center; }
    .main-nav .nav-link::before { display: none; }
    .main-nav .nav-link.dropdown-toggle::after { display: inline-block; border: 0; content: "\F282"; font-family: "bootstrap-icons"; font-size: 1rem; transition: transform .3s; }
    .main-nav .nav-link.show::after { transform: rotate(180deg); }
    .main-nav .dropdown-menu { position: static !important; transform: none !important; background: transparent; border: 0; box-shadow: none; padding: .3rem 0 .6rem 1rem; border-left: 2px solid var(--ga-red); margin: .4rem 0 .6rem; }
    .main-nav .dropdown-item { padding: .4rem .5rem; font-size: 1.05rem; }
    .menu-contacts { margin-top: auto; padding-top: 2rem; display: grid; gap: .9rem; }
    .menu-contacts a { color: #fff; display: flex; flex-direction: column; font-size: 1.05rem; }
    .menu-contacts small { color: var(--ga-muted); text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; }
    .brand-logo, .site-header.scrolled .brand-logo { height: 58px; }
}

/* ==========================================================================
   HERO HOME
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1100px; background: #000; overflow: hidden; }
.hero .carousel, .hero .carousel-inner, .hero .carousel-item { height: 100%; }
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    transform: scale(1.12);
}
.carousel-item.active .hero-bg { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .68) 0%, rgba(0, 0, 0, .32) 45%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(0deg, rgba(10, 10, 11, 1) 0%, rgba(10, 10, 11, 0) 30%);
}
.hero-shade::after {
    /* grande "slash" decorativo ispirato alla testata del vecchio sito */
    content: "";
    position: absolute;
    top: -10%; bottom: -10%;
    left: 52%;
    width: 9px;
    background: var(--ga-red);
    transform: skewX(var(--ga-skew));
    opacity: .85;
    box-shadow: 26px 0 0 -2px rgba(255, 255, 255, .12);
}
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: calc(var(--ga-header-top) + 2rem);
    padding-bottom: 130px;
}
.hero-title {
    /* limitato anche dall'altezza dello schermo, per non finire sotto l'header */
    font-size: clamp(2.6rem, min(8.4vw, 10.5vh), 7.6rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: .92;
    margin-bottom: 1.5rem;
    max-width: 11ch;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.hero-text { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 34rem; color: #dcdcdc; margin-bottom: 2.2rem; }
.hero .kicker { color: #fff; }

.carousel-item.active .hero-content > * { animation: rise .9s var(--ga-ease) both; }
.carousel-item.active .hero-content > *:nth-child(2) { animation-delay: .12s; }
.carousel-item.active .hero-content > *:nth-child(3) { animation-delay: .24s; }
.carousel-item.active .hero-content > *:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.hero-controls {
    position: absolute;
    left: 0; right: 0; bottom: 2.2rem;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}
.hero-indicators { display: flex; gap: 1.5rem; flex: 1; max-width: 760px; }
.hero-indicators button {
    flex: 1;
    background: none;
    border: 0;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .55);
    font-family: var(--ga-font-head);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .8rem;
    cursor: pointer;
}
.hero-indicators .hi-num { font-weight: 700; color: #fff; margin-right: .5rem; }
.hero-indicators .hi-bar { display: block; height: 2px; background: rgba(255, 255, 255, .2); margin-top: .7rem; overflow: hidden; }
.hero-indicators .hi-bar i { display: block; height: 100%; width: 0; background: var(--ga-red); }
.hero-indicators button.active { color: #fff; }
.hero-indicators button.active .hi-bar i { animation: progress 6.5s linear forwards; }
@keyframes progress { from { width: 0; } to { width: 100%; } }
.hero-arrows { display: flex; gap: .5rem; }
.hero-arrows button {
    width: 54px; height: 54px;
    border: 1px solid var(--ga-line-strong);
    background: rgba(0, 0, 0, .3);
    color: #fff;
    font-size: 1.2rem;
    transition: background .25s, border-color .25s;
}
.hero-arrows button:hover { background: var(--ga-red); border-color: var(--ga-red); color: var(--ga-on-accent); }

.scroll-cue {
    position: absolute; z-index: 6;
    right: 50%; bottom: 2.4rem;
    width: 26px; height: 42px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 14px;
    display: none;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: #fff; border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 767.98px) {
    .hero-indicators .hi-label { display: none; }
    .hero-indicators { gap: .8rem; }
    .hero-arrows button { width: 44px; height: 44px; }
    .hero-shade { background: linear-gradient(0deg, rgba(10, 10, 11, 1) 3%, rgba(0, 0, 0, .4) 55%, rgba(0, 0, 0, .2) 100%); }
    .hero-shade::after { left: 82%; opacity: .5; }
    .hero-content { justify-content: flex-end; padding-bottom: 120px; }
}

/* ==========================================================================
   SEZIONI
   ========================================================================== */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section-alt { background: var(--ga-ink); }
.section-head { margin-bottom: 3rem; }

/* intro + numeri */
.intro { background:
    radial-gradient(1200px 500px at 85% 0%, rgba(255, 255, 255, .06), transparent 60%),
    var(--ga-black); }
.stats {
    margin-top: clamp(3.5rem, 7vw, 6rem);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--ga-line);
}
.stat { padding: 2rem 1.5rem 0 0; position: relative; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--ga-line); }
.stat-num {
    font-family: var(--ga-font-head);
    font-weight: 800;
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: 1;
    background: var(--ga-chrome);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-unit { font-family: var(--ga-font-head); font-weight: 700; font-size: 1.4rem; text-transform: uppercase; color: var(--ga-red); margin-left: .4rem; }
.stat-label { display: block; color: var(--ga-muted); margin-top: .6rem; font-size: .98rem; max-width: 18rem; }
@media (max-width: 991.98px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--ga-line); margin-top: 2rem; }
}

/* card servizi */
.service-card {
    position: relative;
    display: block;
    height: clamp(420px, 52vw, 560px);
    overflow: hidden;
    color: #fff;
    background: #000;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 38px), calc(100% - 38px) 100%, 0 100%);
}
.service-img {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s var(--ga-ease), filter .6s;
    filter: grayscale(.35) brightness(.7);
}
.service-card::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .1) 100%);
}
.service-num {
    position: absolute; z-index: 2; top: 1.4rem; left: 1.6rem;
    font-family: var(--ga-font-head); font-weight: 800; font-size: 1.1rem; letter-spacing: .2em;
    color: var(--ga-on-accent);
    padding: .1rem .7rem;
}
.service-num::before { content: ""; position: absolute; inset: 0; background: var(--ga-red); transform: skewX(var(--ga-skew)); z-index: -1; }
.service-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.8rem 1.6rem 2.2rem; display: flex; flex-direction: column; }
.service-title { font-family: var(--ga-font-head); font-weight: 800; font-size: 2.3rem; text-transform: uppercase; line-height: 1; }
.service-text { color: #cfcfcf; margin-top: .6rem; font-size: .98rem; line-height: 1.5; }
.service-links {
    display: flex; flex-wrap: wrap; gap: .35rem .9rem;
    margin-top: .9rem;
    font-family: var(--ga-font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--ga-muted);
    max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height .5s var(--ga-ease), opacity .4s;
}
.service-go {
    position: absolute; right: 1.4rem; top: -1.6rem;
    width: 52px; height: 52px; display: grid; place-items: center;
    border: 1px solid var(--ga-line-strong); color: #fff; font-size: 1.2rem;
    transition: background .3s, border-color .3s, transform .3s var(--ga-ease);
}
.service-card:hover .service-img { transform: scale(1.08); filter: grayscale(0) brightness(.85); }
.service-card:hover .service-links { max-height: 80px; opacity: 1; }
.service-card:hover .service-go { background: var(--ga-red); border-color: var(--ga-red); color: var(--ga-on-accent); transform: rotate(-45deg); }
@media (hover: none) { .service-links { max-height: 80px; opacity: 1; } }

/* storia home */
.story { min-height: 640px; display: flex; align-items: center; background: var(--ga-ink); overflow: hidden; }
.story-photo {
    position: absolute; top: 0; bottom: 0; left: 0;
    width: 55%;
    background-size: cover; background-position: center;
    filter: grayscale(1) contrast(1.1);
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}
.story-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 17, 19, 0) 50%, rgba(17, 17, 19, .9) 100%); }
.story-text { padding-left: 3rem; }
@media (max-width: 991.98px) {
    .story { flex-direction: column; padding-top: 0; }
    .story-photo { position: relative; width: 100%; height: 340px; clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); }
    .story-text { padding: 3rem 12px 0; }
}

/* marquee marchi */
.marquee { overflow: hidden; border-block: 1px solid var(--ga-line); background: var(--ga-black); padding: 1.6rem 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span {
    font-family: var(--ga-font-head); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 3rem);
    text-transform: uppercase; letter-spacing: .04em;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .35);
    padding: 0 2rem; display: inline-flex; align-items: center; gap: 4rem; white-space: nowrap;
}
.marquee span::after { content: ""; width: 14px; height: 14px; background: var(--ga-red); transform: skewX(var(--ga-skew)); margin-left: 2rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* showcase gallery home */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 240px;
    gap: 1rem;
}
.showcase-item { position: relative; overflow: hidden; display: block; background: #000; }
.showcase-1 { grid-column: span 7; grid-row: span 2; }
.showcase-2 { grid-column: span 5; }
.showcase-3 { grid-column: span 5; }
.showcase-4 { grid-column: span 12; grid-row: span 1; }
.showcase-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ga-ease), opacity .4s; opacity: .85; }
.showcase-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent 55%); }
.showcase-cap { position: absolute; z-index: 2; left: 1.5rem; bottom: 1.2rem; display: flex; flex-direction: column; }
.showcase-tipo { font-family: var(--ga-font-head); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; color: var(--ga-red); font-weight: 700; }
.showcase-name { font-family: var(--ga-font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 2.2rem); color: #fff; line-height: 1.05; }
.showcase-item:hover img { transform: scale(1.06); opacity: 1; }
@media (max-width: 767.98px) {
    .showcase-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .showcase-item { grid-column: auto !important; grid-row: auto !important; }
}

/* feature mini */
.feature { position: relative; padding: clamp(6rem, 12vw, 10rem) 0; overflow: hidden; }
.feature-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; }
.feature-mini .feature-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .65) 50%, rgba(0, 0, 0, .15) 100%); }
@media (max-width: 991.98px), (hover: none) { .feature-bg { background-attachment: scroll; } }
.steps-mini { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: s; border-top: 1px solid var(--ga-line-strong); }
.steps-mini li { border-bottom: 1px solid var(--ga-line-strong); }
.steps-mini a {
    display: flex; align-items: baseline; gap: 1.2rem; padding: 1rem 0;
    font-family: var(--ga-font-head); font-size: 1.5rem; font-weight: 600; text-transform: uppercase; color: #fff;
    transition: padding .3s var(--ga-ease), color .3s;
}
.steps-mini a span { font-size: .85rem; letter-spacing: .2em; color: var(--ga-red); min-width: 7.5rem; }
.steps-mini a:hover { padding-left: .8rem; color: #fff; }

/* serbatoi home */
.tanks-photos { position: relative; padding-bottom: 18%; }
.tanks-photos img { width: 78%; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.tanks-photos img + img { position: absolute; right: 0; bottom: 0; width: 55%; border: 6px solid var(--ga-black); }
.badges { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0; }
.badges span {
    font-family: var(--ga-font-head); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    padding: .35rem 1rem; border: 1px solid var(--ga-line-strong); color: #fff; font-size: .95rem;
    position: relative;
}
.badges span::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: var(--ga-red); }

/* banda revisioni */
.revisioni-band h2 { color: var(--ga-on-accent); }
.revisioni-band .btn-light { background: var(--ga-on-accent); border-color: var(--ga-on-accent); color: #fff !important; }
.revisioni-band .btn-light:hover { background: #2a2a2e; border-color: #2a2a2e; }
.revisioni-band { background: var(--ga-red); color: var(--ga-on-accent); padding: 2.6rem 0; position: relative; overflow: hidden; }
.revisioni-band::before { content: ""; position: absolute; right: 22%; top: -20%; bottom: -20%; width: 180px; background: rgba(0, 0, 0, .12); transform: skewX(var(--ga-skew)); }
.revisioni-band .container-xxl { position: relative; }
.revisioni-icon { font-size: 3.4rem; line-height: 1; }
.revisioni-band .btn-light { letter-spacing: .06em; }
.revisioni-band::before { background: rgba(0, 0, 0, .05) !important; }

/* sedi home */
.sede-card { background: var(--ga-ink); border: 1px solid var(--ga-line); height: 100%; display: flex; flex-direction: column; }
.sede-img { height: 260px; background-size: cover; background-position: center; position: relative; }
.sede-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ga-red); }
.sede-body { padding: 1.8rem; }
.sede-name { font-size: 2.2rem; text-transform: uppercase; font-weight: 800; margin-bottom: .2rem; }
.sede-note { color: var(--ga-muted); margin-bottom: .8rem; }
.sede-addr { margin-bottom: 1.2rem; }
.sede-addr i { color: var(--ga-red); }

/* CTA band */
.cta-band {
    padding: clamp(4rem, 8vw, 6.5rem) 0;
    background:
        linear-gradient(90deg, rgba(10, 10, 11, .96) 30%, rgba(10, 10, 11, .7)),
        url("../img/texture.jpg") center / cover;
    border-top: 1px solid var(--ga-line);
}
.cta-title { font-size: clamp(2.4rem, 5vw, 4rem); text-transform: uppercase; font-weight: 800; margin: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #050506; padding: 5rem 0 2rem; color: var(--ga-muted); font-size: .97rem; border-top: 4px solid var(--ga-red); }
.footer-brand img { height: 48px; width: auto; margin-bottom: 1.2rem; }
.footer-claim { max-width: 24rem; }
.footer-mail { color: #fff; }
.footer-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .18em; color: #fff; margin-bottom: 1.1rem; }
.site-footer address { line-height: 1.8; margin: 0; }
.site-footer a { color: #d0d0d0; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; line-height: 2; }
.footer-bottom { margin-top: 4rem; padding-top: 1.6rem; border-top: 1px solid var(--ga-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }

/* ==========================================================================
   PAGINE INTERNE
   ========================================================================== */
.page-hero {
    position: relative;
    min-height: clamp(440px, 62vh, 620px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #000;
}
.page-hero-bg { position: absolute; inset: -4%; background-size: cover; background-position: center; animation: zoomout 2.2s var(--ga-ease) both; }
@keyframes zoomout { from { transform: scale(1.12); } to { transform: scale(1); } }
.page-hero-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(0deg, rgba(10, 10, 11, 1) 0%, rgba(10, 10, 11, .35) 38%, rgba(0, 0, 0, .15) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, .5), transparent 60%);
}
.page-hero-shade::after {
    content: ""; position: absolute; right: 12%; top: -10%; bottom: -10%; width: 7px;
    background: var(--ga-red); transform: skewX(var(--ga-skew)); opacity: .8;
}
.page-hero-content { position: relative; z-index: 2; padding-top: calc(var(--ga-header-top) + 2.5rem); padding-bottom: 3.5rem; }
.page-hero-content > * { animation: rise .9s var(--ga-ease) both; }
.page-hero-content > *:nth-child(2) { animation-delay: .1s; }
.page-hero-content > *:nth-child(3) { animation-delay: .2s; }
.page-hero-content > *:nth-child(4) { animation-delay: .3s; }
.page-title { font-size: clamp(2.8rem, 7vw, 6rem); text-transform: uppercase; font-weight: 800; line-height: .95; margin-bottom: 1rem; max-width: 16ch; }
.page-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #d8d8d8; max-width: 40rem; margin: 0; }
.page-hero .kicker { color: #fff; }
/* leggibilita' del testo sulle foto ora piu' chiare */
.page-title, .hero-title { text-shadow: 0 2px 24px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .4); }
.page-lead, .hero-text, .breadcrumb, .page-hero .kicker, .hero .kicker { text-shadow: 0 1px 12px rgba(0, 0, 0, .8), 0 1px 2px rgba(0, 0, 0, .6); }

.breadcrumb { --bs-breadcrumb-divider-color: var(--ga-muted); --bs-breadcrumb-item-active-color: var(--ga-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1.6rem; }
.breadcrumb a { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; }

/* sotto-navigazione */
.subnav { position: sticky; top: var(--ga-header-h, 58px); z-index: 1020; background: rgba(10, 10, 11, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ga-line); }
.subnav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; }
.subnav-list::-webkit-scrollbar { display: none; }
.subnav-list a {
    display: block; padding: 1.05rem 1.1rem; white-space: nowrap;
    font-family: var(--ga-font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .92rem;
    color: var(--ga-muted); position: relative;
}
.subnav-list a::after { content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: -1px; height: 3px; background: var(--ga-red); transform: scaleX(0); transition: transform .3s var(--ga-ease); }
.subnav-list a:hover, .subnav-list a.active { color: #fff; }
.subnav-list a.active::after, .subnav-list a:hover::after { transform: scaleX(1); }

/* testo */
.prose p { color: #cfcfcc; margin-bottom: 1.2rem; }
.prose p.first { font-size: 1.3rem; color: #fff; line-height: 1.55; }
.prose strong { color: #fff; font-weight: 600; }
.prose a { color: #fff; border-bottom: 1px solid var(--ga-red); }
.prose a:hover { color: var(--ga-red-dark); }
.list-title { font-size: 1.5rem; text-transform: uppercase; letter-spacing: .06em; margin: 2.5rem 0 1.2rem; }
.feature-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ga-line); }
.feature-list.two-cols { columns: 2; column-gap: 2.5rem; }
.feature-list li { padding: .85rem 0 .85rem 2.1rem; border-bottom: 1px solid var(--ga-line); position: relative; break-inside: avoid; color: #e3e3e0; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 1.4rem; width: 16px; height: 4px; background: var(--ga-red); transform: skewX(var(--ga-skew)); }
@media (max-width: 767.98px) { .feature-list.two-cols { columns: 1; } }

/* foto */
.photo-main { display: block; position: relative; overflow: hidden; margin-bottom: 2rem; background: #000; }
.photo-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ga-ease); }
.photo-main:hover img { transform: scale(1.05); }
.photo-main::before { content: ""; position: absolute; z-index: 2; left: 0; top: 0; width: 70px; height: 5px; background: var(--ga-red); }
.photo-zoom { position: absolute; right: 1rem; bottom: 1rem; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(0, 0, 0, .6); color: #fff; opacity: 0; transition: opacity .3s; }
.photo-main:hover .photo-zoom { opacity: 1; }

/* foto mostrata per intero, senza ritaglio */
.photo-full { display: block; position: relative; overflow: hidden; background: #000; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.photo-full img { display: block; width: 100%; height: auto; transition: transform 1s var(--ga-ease); }
.photo-full:hover img { transform: scale(1.03); }
.photo-full::before { content: ""; position: absolute; z-index: 2; left: 0; top: 0; width: 70px; height: 5px; background: var(--ga-red); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.photo-grid a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ga-ease), opacity .3s; opacity: .9; }
.photo-grid a:hover img { transform: scale(1.06); opacity: 1; }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); color: #fff; font-size: .9rem; }

/* box laterale */
.aside-card { background: var(--ga-steel); border: 1px solid var(--ga-line); padding: 2rem; position: relative; }
.aside-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--ga-red); }
.aside-title { font-size: 2rem; text-transform: uppercase; font-weight: 800; }
.aside-card p { color: var(--ga-muted); }
.aside-contacts { list-style: none; padding: 0; margin: 1.5rem 0; }
.aside-contacts a { display: flex; gap: 1rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--ga-line); color: #fff; }
.aside-contacts i { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--ga-line-strong); color: var(--ga-red); flex-shrink: 0; }
.aside-contacts span { display: flex; flex-direction: column; line-height: 1.3; }
.aside-contacts small { color: var(--ga-muted); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; }
.aside-contacts a:hover i { background: var(--ga-red); color: var(--ga-on-accent); border-color: var(--ga-red); }

/* tile sottopagine */
.tile { position: relative; display: block; height: 380px; overflow: hidden; color: #fff; background: #000; }
.tile-sm { height: 260px; }
.tile-img { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.55); transition: transform 1s var(--ga-ease), filter .5s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .9), transparent 65%); }
.tile-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.6rem; display: flex; flex-direction: column; }
.tile-icon { font-size: 1.7rem; color: var(--ga-red); margin-bottom: .6rem; }
.tile-title { font-family: var(--ga-font-head); font-weight: 800; font-size: 1.9rem; text-transform: uppercase; line-height: 1; }
.tile-sm .tile-title { font-size: 1.5rem; }
.tile-text { color: #cfcfcf; font-size: .95rem; margin-top: .5rem; line-height: 1.5; }
.tile-go { margin-top: 1rem; font-family: var(--ga-font-head); text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; color: var(--ga-red); font-weight: 700; }
.tile-go i { transition: transform .3s var(--ga-ease); display: inline-block; }
.tile:hover .tile-img { transform: scale(1.07); filter: brightness(.75); }
.tile:hover .tile-go i { transform: translateX(6px); }
.tile { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); }

/* gallery */
.gallery-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 4rem; }
.gallery-filter button {
    background: transparent; color: var(--ga-muted); border: 1px solid var(--ga-line-strong);
    font-family: var(--ga-font-head); text-transform: uppercase; letter-spacing: .12em; font-weight: 600;
    padding: .55rem 1.2rem; transition: all .25s;
}
.gallery-filter button:hover { color: #fff; border-color: #fff; }
.gallery-filter button.active { background: var(--ga-red); border-color: var(--ga-red); color: var(--ga-on-accent); }
.car { margin-bottom: 5rem; scroll-margin-top: 140px; }
.car.is-hidden { display: none; }
.car-head { display: flex; align-items: center; gap: 1.5rem; padding-bottom: 1.2rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--ga-line); }
.car-num { font-family: var(--ga-font-head); font-weight: 800; font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--ga-red); }
.car-name { font-size: clamp(1.8rem, 3.5vw, 2.8rem); text-transform: uppercase; font-weight: 800; margin: 0; }
.car-tipo { font-family: var(--ga-font-head); text-transform: uppercase; letter-spacing: .2em; color: var(--ga-red); font-weight: 700; font-size: .9rem; }
.car-count { margin-left: auto; color: var(--ga-muted); font-size: .9rem; white-space: nowrap; }
.car-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: .8rem; }
.car-photo { position: relative; overflow: hidden; display: block; background: #000; }
.car-photo-main { grid-column: span 2; grid-row: span 2; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ga-ease), opacity .3s; opacity: .9; }
.car-photo:hover img { transform: scale(1.06); opacity: 1; }
.car-photo-tag { position: absolute; left: .8rem; top: .8rem; font-family: var(--ga-font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; background: rgba(0, 0, 0, .65); color: #fff; padding: .15rem .55rem; }
@media (max-width: 767.98px) {
    .car-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .car-num { font-size: 2.4rem; }
    .car-count { display: none; }
}

/* mini */
.mini-steps-nav { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--ga-line); margin: 3rem 0 5rem; }
.mini-steps-nav a { padding: 1.2rem 1.2rem; color: #fff; font-family: var(--ga-font-head); font-weight: 600; text-transform: uppercase; font-size: 1.1rem; line-height: 1.15; transition: background .25s; }
.mini-steps-nav a + a { border-left: 1px solid var(--ga-line); }
.mini-steps-nav a span { display: block; color: var(--ga-red); font-size: .78rem; letter-spacing: .2em; margin-bottom: .3rem; }
.mini-steps-nav a:hover { background: var(--ga-steel); color: #fff; }
@media (max-width: 991.98px) {
    .mini-steps-nav { grid-template-columns: repeat(2, 1fr); }
    .mini-steps-nav a + a { border-left: 0; }
    .mini-steps-nav a { border-bottom: 1px solid var(--ga-line); }
}
.step { padding: 3rem 0; border-top: 1px solid var(--ga-line); scroll-margin-top: 140px; }
.step .photo-main { aspect-ratio: 4 / 3; margin: 0; }
.step-label { font-family: var(--ga-font-head); font-weight: 800; font-size: 4.5rem; line-height: .9; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .3); display: block; }
.step-title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); text-transform: uppercase; font-weight: 800; margin: .3rem 0 1.4rem; }
.step-title::after { content: ""; display: block; width: 60px; height: 4px; background: var(--ga-red); margin-top: 1rem; transform: skewX(var(--ga-skew)); }

/* storia */
.photo-stack { position: relative; padding-bottom: 22%; }
.photo-stack .ps-1 { display: block; width: 82%; overflow: hidden; }
.photo-stack .ps-2 { position: absolute; right: 0; bottom: 0; width: 52%; border: 6px solid var(--ga-black); overflow: hidden; }
.photo-stack img { transition: transform 1s var(--ga-ease); width: 100%; }
.photo-stack a:hover img { transform: scale(1.05); }
.timeline-intro { top: 140px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7.5rem; top: .6rem; bottom: .6rem; width: 1px; background: var(--ga-line-strong); }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 2.5rem; padding: 1.4rem 0; position: relative; }
.timeline li::after { content: ""; position: absolute; left: calc(7.5rem - 6px); top: 2.15rem; width: 13px; height: 13px; background: var(--ga-red); transform: skewX(var(--ga-skew)); }
.tl-year { font-family: var(--ga-font-head); font-weight: 800; font-size: 2.3rem; line-height: 1; color: #fff; text-align: right; padding-right: .5rem; }
.tl-text { margin: .3rem 0 0; color: #d0d0cd; font-size: 1.1rem; }
.official { margin-top: 3rem; }
@media (max-width: 575.98px) {
    .timeline::before { left: 5rem; }
    .timeline li { grid-template-columns: 5rem 1fr; gap: 1.6rem; }
    .timeline li::after { left: calc(5rem - 6px); }
    .tl-year { font-size: 1.6rem; }
}

/* sedi */
.sede-block { padding: 2rem 0 5rem; }
.sede-block + .sede-block { border-top: 1px solid var(--ga-line); padding-top: 5rem; }
.sede-block .photo-main { min-height: 360px; margin: 0; }
.info-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.info-list li { display: flex; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--ga-line); }
.info-list i { color: var(--ga-red); font-size: 1.2rem; width: 1.5rem; flex-shrink: 0; }
.info-list small { display: block; color: var(--ga-muted); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; }
.info-list small.d-inline { display: inline; }
.map-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ga-steel); border: 1px solid var(--ga-line); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* contatti */
.form-card { background: var(--ga-steel); border: 1px solid var(--ga-line); padding: clamp(1.5rem, 4vw, 3rem); position: relative; }
.form-card::before { content: ""; position: absolute; top: 0; left: 0; width: 120px; height: 4px; background: var(--ga-red); }
.form-title { font-size: 2rem; text-transform: uppercase; font-weight: 800; margin-bottom: 1.6rem; }
.form-label { font-family: var(--ga-font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--ga-muted); font-weight: 600; }
.form-control, .form-select {
    background-color: var(--ga-black); color: #fff;
    border: 1px solid var(--ga-line-strong); border-radius: 0;
    padding: .8rem 1rem;
}
.form-control::placeholder { color: #66666c; }
.form-control:focus, .form-select:focus { background-color: var(--ga-black); color: #fff; border-color: var(--ga-red); box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .15); }
.form-select { --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-select option { background: var(--ga-ink); }
.form-check-input { background-color: var(--ga-black); border-color: var(--ga-line-strong); border-radius: 0 !important; }
.form-check-input:checked { background-color: var(--ga-red); border-color: var(--ga-red); --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%230a0a0b' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); }
.form-check-label { color: var(--ga-muted); font-size: .95rem; }
.form-check-label a { color: #fff; text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 2rem 0; }
.form-success i { font-size: 4rem; color: var(--ga-red); }
.form-success h2 { text-transform: uppercase; margin: 1rem 0; }

/* 404 */
.notfound { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 140px 0 80px; }
.notfound-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .25; filter: grayscale(1); }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox .modal-content { background: rgba(5, 5, 6, .97); border: 0; border-radius: 0; display: flex; align-items: center; justify-content: center; }
.lb-figure { margin: 0; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lb-img { max-width: 92vw; max-height: 80vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); transition: opacity .25s; }
.lb-img.loading { opacity: 0; }
.lb-caption { display: flex; justify-content: space-between; gap: 2rem; width: 100%; padding-top: 1rem; color: #ddd; font-size: .95rem; }
.lb-count { font-family: var(--ga-font-head); letter-spacing: .14em; color: var(--ga-muted); }
.lb-close, .lb-nav { position: absolute; z-index: 5; background: rgba(255, 255, 255, .06); border: 1px solid var(--ga-line-strong); color: #fff; width: 54px; height: 54px; font-size: 1.4rem; display: grid; place-items: center; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: var(--ga-red); border-color: var(--ga-red); color: var(--ga-on-accent); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 767.98px) {
    .lb-prev, .lb-next { top: auto; bottom: 1.2rem; transform: none; }
}

/* ==========================================================================
   ANIMAZIONI ALLO SCROLL
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ga-ease), transform 1s var(--ga-ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}
