/* ============================================================
   TOP CAR SERVICE — style.css  v2 (fedele al template AutoSer)
   Mobile first · Poppins · blu #0b63b8 · niente giallo
   ============================================================ */

:root {
    --blue:        #0b63b8;
    --blue-dark:   #094f93;
    --navy:        #223645;
    --grey-text:   #7b8594;
    --grey-line:   #e4e8ec;
    --grey-bg:     #f5f6f8;
    --dark:        #1c2430;
    --dark-2:      #242e3d;
    --white:       #ffffff;
    --icon-soft:   #8fb4d9;
    --radius:      4px;
    --shadow:      0 4px 18px rgba(16, 42, 67, .10);
    --font:        'Poppins', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--grey-text);
    background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
}

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

h1, h2, h3 {
    font-family: var(--font);
    color: var(--navy);
    line-height: 1.3;
    margin: 0 0 .6em;
    font-weight: 600;
}

/* Bottoni */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s;
}

/* ============================================================
   PREBAR grigia (indirizzo + social) — come template
   ============================================================ */
.prebar {
    background: var(--grey-bg);
    border-bottom: 1px solid var(--grey-line);
    font-size: 13px;
    display: none;
}
.prebar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}
.prebar-address { margin: 0; color: var(--grey-text); }
.prebar-address i { color: var(--icon-soft); margin-right: 4px; }

.prebar-social { display: flex; align-items: center; gap: 8px; }
.prebar-social span { color: var(--grey-text); margin-right: 4px; }
.prebar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-width: 28px;
    min-height: 28px;
    aspect-ratio: 1;
    flex-shrink: 0;
    border-radius: 50%;
    background: #dde2e8;
    color: var(--white);
    font-size: 13px;
    transition: background .2s;
}
.prebar-social a:hover { background: var(--blue); color: var(--white); }

/* ============================================================
   TOPBAR bianca — come template: icone grandi SENZA cerchi
   ============================================================ */
.topbar { background: var(--white); }

.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.topbar-logo img { width: 150px; height: auto; }

.topbar-info {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
}

.topbar-item { display: none; align-items: center; gap: 14px; }

/* Icona contorno grande, grigio chiaro come nel template */
.topbar-icon {
    font-size: 40px;
    line-height: 1;
    color: #c6cdd5;
    flex-shrink: 0;
}

.topbar-text { display: flex; flex-direction: column; font-size: 13px; line-height: 1.5; }
.topbar-text a, .topbar-text span { color: var(--grey-text); }
.topbar-strong {
    font-weight: 600;
    color: var(--blue) !important;
    font-size: 17px;
}
.topbar-text a:hover { color: var(--blue); }

/* Bottone outlined come "BOOK YOUR MOT" */
.btn-appointment {
    background: var(--white);
    border-color: #d4dae1;
    color: var(--blue);
    padding: 13px 24px;
}
.btn-appointment:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

/* ============================================================
   MENU blu — come template
   ============================================================ */
.main-nav {
    background: var(--blue);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
}
.nav-search-desktop { display: none; }

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 12px 8px;
    margin-left: auto;
    cursor: pointer;
}
.nav-toggle-bar {
    width: 26px; height: 3px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
}
.nav-menu.is-open { display: flex; }

.nav-menu a {
    display: block;
    padding: 13px 16px;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-top: 1px solid rgba(255,255,255,.12);
    transition: background .2s;
}
.nav-menu a:hover { background: var(--blue-dark); color: var(--white); }
.nav-menu .active a { background: var(--blue-dark); box-shadow: inset 0 -3px 0 var(--white); }

.nav-menu-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.12);
}
/* Specificità maggiore di .nav-menu a (che imposta testo bianco) */
.nav-menu .nav-menu-actions .btn-appointment-menu {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-dark);
    color: var(--white);
    padding: 12px 16px;
    font-size: 12px;
    border-top: 0;
}
.nav-menu .nav-menu-actions .btn-appointment-menu:hover {
    background: var(--white);
    color: var(--blue);
}
.nav-search-menu {
    border: 1px solid rgba(255,255,255,.5) !important;
}

.nav-search-toggle {
    background: none;
    border: 0;
    color: var(--white);
    font-size: 18px;
    padding: 0;
    min-width: 44px;
    min-height: 44px;
    aspect-ratio: 1;
    flex-shrink: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s;
}
.nav-search-toggle:hover,
.nav-search-toggle[aria-expanded="true"] { background: var(--blue-dark); }

/* Pannello ricerca */
.search-panel {
    background: var(--blue-dark);
    padding: 18px 0 22px;
    animation: searchDown .25s ease;
}
@keyframes searchDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.search-label {
    display: block;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}
.search-row { display: flex; gap: 8px; }
.search-row input {
    flex: 1;
    padding: 11px 14px;
    border: 0;
    border-radius: var(--radius);
    font-size: 16px;
    font-family: var(--font);
}
.search-row input:focus { outline: 3px solid rgba(255,255,255,.6); }
.btn-search { background: var(--white); color: var(--blue); }
.btn-search:hover { background: var(--navy); color: var(--white); }
.search-hint { display: block; color: rgba(255,255,255,.75); font-size: 12px; margin-top: 8px; }

/* ============================================================
   SLIDER hero — caption centrata come template
   ============================================================ */
.hero-slider { position: relative; }

.slider {
    position: relative;
    height: 62vw;
    min-height: 340px;
    max-height: 680px;
    overflow: hidden;
    background: var(--dark);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility .9s;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.slide-bg {
    position: absolute;
    inset: -6%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* Animazioni configurabili da admin */
.slide.is-active[data-animation="zoom-in"]     .slide-bg { animation: kbZoomIn 7s ease-out forwards; }
.slide.is-active[data-animation="zoom-out"]    .slide-bg { animation: kbZoomOut 7s ease-out forwards; }
.slide.is-active[data-animation="slide-left"]  .slide-bg { animation: kbLeft 7s ease-out forwards; }
.slide.is-active[data-animation="slide-right"] .slide-bg { animation: kbRight 7s ease-out forwards; }

@keyframes kbZoomIn  { from { transform: scale(1); }    to { transform: scale(1.12); } }
@keyframes kbZoomOut { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes kbLeft    { from { transform: translateX(3%); }  to { transform: translateX(-3%); } }
@keyframes kbRight   { from { transform: translateX(-3%); } to { transform: translateX(3%); } }

@media (prefers-reduced-motion: reduce) {
    .slide-bg { animation: none !important; }
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 24, 38, .45);
}

/* Caption CENTRATA come nel template */
.slide-caption {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}
.slide-caption h2 {
    color: var(--white);
    font-size: clamp(28px, 6.4vw, 60px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: .35em;
    animation: capUp .8s ease .2s both;
}
.slide-caption p {
    font-size: clamp(14px, 2.4vw, 18px);
    font-weight: 400;
    max-width: 640px;
    margin: 0 0 1.5em;
    animation: capUp .8s ease .4s both;
}
@keyframes capUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.slide:not(.is-active) .slide-caption h2,
.slide:not(.is-active) .slide-caption p,
.slide:not(.is-active) .btn-slide { animation: none; opacity: 0; }

/* Bottone blu pieno come "GET FREE QUOTES" */
.btn-slide {
    background: var(--blue);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 0;
    animation: capUp .8s ease .6s both;
}
.btn-slide:hover { background: var(--blue-dark); color: var(--white); }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(12,24,38,.45);
    color: var(--white);
    border: 0;
    padding: 0;
    min-width: 44px;
    min-height: 44px;
    aspect-ratio: 1;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background .2s;
    display: none;
}
.slider-arrow:hover { background: var(--blue); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }

.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 0; right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.slider-dot {
    padding: 0;
    min-width: 11px;
    min-height: 11px;
    aspect-ratio: 1;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.slider-dot.is-active { background: var(--white); transform: scale(1.15); }

/* ============================================================
   FEATURES strip — "Cosa offriamo" (testi da topcarservice.eu)
   ============================================================ */
.features-strip {
    background: var(--white);
    border-bottom: 1px solid var(--grey-line);
    padding: 28px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.feature-item { display: flex; align-items: center; gap: 14px; }
.feature-icon {
    font-size: 34px;
    line-height: 1;
    color: var(--blue);
    flex-shrink: 0;
}
.feature-item h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 2px;
}
.feature-item p { margin: 0; font-size: 13px; color: var(--grey-text); }

@media (min-width: 600px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .features-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   TITOLI sezione — come template: navy + linea grigia corta
   ============================================================ */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 {
    font-size: clamp(24px, 4.4vw, 34px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--navy);
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 2px;
    background: #cdd4db;
}
.section-title p { color: var(--grey-text); margin: 12px auto 0; max-width: 640px; }

/* ============================================================
   SEZIONE servizi
   ============================================================ */
.services-section { padding: 56px 0; background: var(--grey-bg); }

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(16,42,67,.18); }

.service-card-link { display: block; color: inherit; }

.service-card-img { margin: 0; overflow: hidden; aspect-ratio: 10 / 7; }
.service-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.07); }

.service-card-body { padding: 20px 22px 24px; }
.service-card-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}
.service-card-more {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s;
}
.service-card:hover .service-card-more { gap: 12px; }

/* ============================================================
   CHI SIAMO — sfondo fisso, testo che scorre
   ============================================================ */
.about-section {
    position: relative;
    padding: 64px 0;
    background-image: url('/images/content/about-bg.jpg');
    background-size: cover;
    background-position: center;
}
@media (min-width: 1024px) {
    .about-section { background-attachment: fixed; }
}
.about-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12, 24, 38, .35);
}

.about-box {
    position: relative;
    background: rgba(255,255,255,.85);
    border-radius: var(--radius);
    padding: 30px 26px 34px;
    max-width: none;
    box-shadow: var(--shadow);
    text-align: center;
}
.about-eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 6px;
}
.about-box h2 {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--navy);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blue);
    display: inline-block;
}
.about-content { color: var(--grey-text); text-align: left; }
.about-content ul { padding-left: 20px; margin: 12px 0; }
.about-content li { margin-bottom: 6px; break-inside: avoid; }
@media (min-width: 768px) {
    .about-content ul { columns: 2; column-gap: 48px; }
}

.btn-about { background: var(--blue); color: var(--white); margin-top: 14px; }
.btn-about:hover { background: var(--blue-dark); color: var(--white); }

/* ============================================================
   RECENSIONI — card come template (bianche, foto rotonda)
   ============================================================ */
.reviews-section { padding: 56px 0; }

.reviews-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.reviews-summary strong { color: var(--navy); }
.reviews-stars, .review-stars { color: #f0a500; font-size: 14px; letter-spacing: 2px; }

.reviews-carousel { position: relative; }

.reviews-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.reviews-viewport::-webkit-scrollbar { display: none; }

.reviews-track {
    display: flex;
    gap: 20px;
    padding: 4px;
}
.reviews-track .review-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.car-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: var(--white);
    border: 1px solid var(--grey-line);
    color: var(--blue);
    padding: 0;
    min-width: 44px;
    min-height: 44px;
    aspect-ratio: 1;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background .2s, color .2s;
    display: none;
}
.car-arrow:hover { background: var(--blue); color: var(--white); }
.car-prev { left: -8px; }
.car-next { right: -8px; }

.car-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}
.car-dot {
    padding: 0;
    min-width: 11px;
    min-height: 11px;
    aspect-ratio: 1;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid #c3ccd5;
    background: transparent;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.car-dot.is-active { background: var(--blue); border-color: var(--blue); }

.review-card {
    background: var(--white);
    border: 1px solid var(--grey-line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar { border-radius: 50%; flex-shrink: 0; }
.review-author { font-weight: 600; color: var(--navy); margin: 0 0 2px; }
.review-card blockquote {
    margin: 0;
    font-size: 14px;
    color: var(--grey-text);
    font-style: italic;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-time { margin-top: 10px; font-size: 12px; color: #a3abb5; }

/* ============================================================
   SEZIONE testi SEO
   ============================================================ */
.seo-section {
    padding: 48px 0 56px;
    background: var(--grey-bg);
    border-top: 1px solid var(--grey-line);
}
.seo-block { max-width: 960px; margin: 0 auto 36px; }
.seo-block:last-child { margin-bottom: 0; }
.seo-block h2 {
    font-size: clamp(20px, 3.4vw, 26px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 18px;
}
.seo-block p {
    margin: 0 0 14px;
    font-size: 14.5px;
    text-align: justify;
}

/* ============================================================
   CTA strip + FOOTER — come template
   ============================================================ */
.cta-strip { background: var(--blue); color: var(--white); padding: 28px 0; }
.cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
.cta-text { display: flex; align-items: center; gap: 14px; }
.cta-icon { font-size: 32px; }
.cta-text h3 { margin: 0; color: var(--white); font-size: clamp(17px, 3.2vw, 22px); font-weight: 600; }
.btn-cta { background: var(--white); color: var(--blue); }
.btn-cta:hover { background: var(--navy); color: var(--white); }

.site-footer { background: var(--dark); color: #aeb6c0; font-size: 14px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 50px 0 38px;
}
.footer-logo img { width: 150px; filter: brightness(1.2); margin-bottom: 14px; }

.footer-title {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding-bottom: 10px;
    position: relative;
    margin-bottom: 18px;
}
.footer-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 2px;
    background: var(--blue);
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-links a {
    display: block;
    padding: 8px 0;
    color: #aeb6c0;
    transition: color .2s, padding-left .2s;
}
.footer-links a:hover { color: var(--white); padding-left: 6px; }

.footer-gallery {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.footer-gallery img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 3px;
    transition: opacity .2s;
}
.footer-gallery a:hover img { opacity: .75; }

.footer-contacts { list-style: none; margin: 0; padding: 0; }
.footer-contacts li { display: flex; gap: 10px; margin-bottom: 10px; }
.footer-contacts i { color: var(--blue); margin-top: 3px; }
.footer-contacts a { color: #aeb6c0; }
.footer-contacts a:hover { color: var(--white); }
.footer-indent { display: inline-block; }

.footer-social {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    gap: 10px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-width: 40px;
    min-height: 40px;
    aspect-ratio: 1;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--dark-2);
    color: var(--white);
    font-size: 16px;
    transition: background .2s;
}
.footer-social a:hover { background: var(--blue); color: var(--white); }

.footer-credit { background: #151c26; padding: 16px 0; }
.footer-credit p { margin: 0; font-size: 12.5px; text-align: center; color: #848d98; }
.footer-credit a { color: var(--white); }
.footer-credit a:hover { color: var(--blue); }

/* Footer mobile: logo e social centrati */
@media (max-width: 991px) {
    .footer-col:first-child { text-align: center; }
    .footer-logo img { margin-left: auto; margin-right: auto; }
    .footer-social { justify-content: center; }
}

/* Focus visibile */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

/* ============================================================
   BREAKPOINT ≥ 600px
   ============================================================ */
@media (min-width: 600px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-track .review-card { flex-basis: calc((100% - 20px) / 2); }
}

/* ============================================================
   BREAKPOINT ≥ 992px — desktop
   ============================================================ */
@media (min-width: 768px) {
    .slider {
        height: calc(100vh - var(--header-h, 200px));
        max-height: none;
    }
}

@media (min-width: 992px) {
    .prebar { display: block; }

    .topbar-logo img { width: 170px; }
    .topbar-item { display: flex; }
    .topbar-info { gap: 52px; }

    .nav-toggle { display: none; }
    .nav-inner { min-height: 56px; }
    .nav-search-desktop { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
    .nav-menu-actions { display: none; }
    .topbar-info { display: flex; }
    .nav-menu {
        display: flex !important;
        flex-direction: row;
        width: auto;
        order: 0;
    }
    .nav-menu a { border-top: 0; padding: 18px 22px; }
    .nav-menu .active a { box-shadow: inset 0 -3px 0 var(--white); }

    .slider-arrow { display: inline-flex; align-items: center; justify-content: center; }

    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .reviews-track .review-card { flex-basis: calc((100% - 40px) / 3); }
    .car-arrow { display: inline-flex; align-items: center; justify-content: center; }

    .cta-inner { flex-direction: row; justify-content: space-between; text-align: left; }

    .footer-grid { grid-template-columns: 1.3fr 0.9fr 1fr 1fr 1.1fr; }

    .services-section, .reviews-section { padding: 76px 0; }
    .about-section { padding: 150px 0; }
}


/* ============================================================
   PAGINE INTERNE
   ============================================================ */
.page-hero {
    background: var(--grey-bg);
    border-bottom: 1px solid var(--grey-line);
    padding: 26px 0;
}
.page-hero .container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.page-hero h1 {
    color: var(--navy);
    font-size: clamp(20px, 3.4vw, 26px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0;
}

.breadcrumbs ol {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--grey-text);
}
.breadcrumbs li + li::before { content: '›'; margin-right: 6px; opacity: .6; }
.breadcrumbs a { color: var(--grey-text); }
.breadcrumbs a:hover { color: var(--blue); }

@media (min-width: 768px) {
    .page-hero .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.content-page { padding: 44px 0 64px; }

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.content-main h2, .content-main h3 { margin-top: 1.2em; }
.content-main ul { padding-left: 20px; }
.content-main li { margin-bottom: 6px; }

.detail-img { margin: 0 0 22px; border-radius: var(--radius); overflow: hidden; }
.detail-img img { width: 100%; height: auto; }

.side-card {
    background: var(--grey-bg);
    border: 1px solid var(--grey-line);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 22px;
}
.side-card h2 { font-size: 17px; text-transform: uppercase; letter-spacing: .04em; }
.side-card-img { padding: 0; overflow: hidden; }
.side-card-img img { width: 100%; display: block; }
.side-card-cta p { font-size: 14px; }

.side-list { list-style: none; margin: 0 0 16px; padding: 0; }
.side-list li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.side-list i { color: var(--blue); }

.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { border-bottom: 1px solid var(--grey-line); }
.side-links a { display: block; padding: 9px 0; font-size: 14px; }

.back-link { margin-top: 28px; }
.back-link a { font-weight: 600; font-size: 14px; }

.empty-note {
    background: var(--grey-bg);
    border: 1px solid var(--grey-line);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.notfound-code { font-size: 90px; font-weight: 800; color: var(--blue); line-height: 1; margin: 0 0 10px; font-family: var(--font); }

/* ---------- Media: tabs foto/video ---------- */
.media-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 32px; }
.media-tab {
    padding: 10px 28px;
    border: 1px solid var(--grey-line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--navy);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.media-tab:hover { border-color: var(--blue); color: var(--blue); }
.media-tab.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); }

.media-intro { max-width: 860px; margin: 0 auto 28px; }

.video-thumb { position: relative; }
.video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--white);
}
.video-play i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-width: 58px;
    min-height: 58px;
    aspect-ratio: 1;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(11,99,184,.85);
    transition: background .2s, transform .2s;
}
.service-card:hover .video-play i { background: var(--blue); transform: scale(1.1); }

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Gallery + lightbox ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.gallery-item { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery-item img {
    width: 100%; height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-main { grid-column: span 2; }
.gallery-main img { aspect-ratio: 16 / 9; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(10, 16, 24, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 4px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255,255,255,.12);
    border: 0;
    color: var(--white);
    font-size: 22px;
    padding: 0;
    min-width: 48px;
    min-height: 48px;
    aspect-ratio: 1;
    flex-shrink: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--blue); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Veicoli ---------- */
.vehicles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.vehicle-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.vehicle-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(16,42,67,.18); }
.vehicle-card-specs {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--grey-text);
}
.vehicle-card-specs i { color: var(--blue); margin-right: 4px; }
.vehicle-card-price { margin: 0; font-size: 20px; font-weight: 700; color: var(--blue); font-family: var(--font); }

.vehicle-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 36px;
}
.vehicle-price { font-size: 28px; font-weight: 700; color: var(--blue); margin: 0 0 16px; font-family: var(--font); }
.vehicle-specs { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14px; }
.vehicle-specs th, .vehicle-specs td { padding: 9px 4px; border-bottom: 1px solid var(--grey-line); text-align: left; }
.vehicle-specs th { color: var(--navy); font-weight: 600; width: 45%; }
.btn-block { width: 100%; margin-bottom: 10px; }
.vehicle-description { max-width: 860px; }

/* ---------- Contatti ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}
.contact-list { list-style: none; margin: 0 0 26px; padding: 0; }
.contact-list li { display: flex; gap: 12px; margin-bottom: 12px; }
.contact-list i { color: var(--blue); font-size: 18px; margin-top: 2px; }

.map-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--grey-line);
}
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.contact-form-wrap h2 { margin-top: 0; }
.contact-form .form-row { margin-bottom: 16px; }
.contact-form .form-row-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contact-form label, .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d4dae1;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 15px;
    color: var(--dark);
    background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form-hint { display: block; font-size: 12px; color: #98a1ab; margin: 6px 0 14px; }
.hp-field { position: absolute; left: -9999px; }

.form-success, .form-error {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 20px;
}
.form-success { background: #e8f6ec; border: 1px solid #bfe4c8; color: #1d6a34; }
.form-success i { font-size: 22px; }
.form-success p { margin: 0; }
.form-error { background: #fdeeee; border: 1px solid #f2c6c6; color: #9c2b2b; }

/* ---------- Ricerca ---------- */
.search-form-page { max-width: 640px; margin: 0 auto 36px; }
.search-form-page input { border: 1px solid #d4dae1; }
.search-count { text-align: center; color: var(--grey-text); margin-bottom: 24px; }
.search-results { list-style: none; margin: 0; padding: 0; max-width: 760px; margin: 0 auto; }
.search-results li { border-bottom: 1px solid var(--grey-line); padding: 16px 0; }
.search-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--blue);
    background: #e8f0f9;
    border-radius: 3px;
    padding: 2px 8px;
    margin-bottom: 6px;
}
.search-title { display: block; font-weight: 600; font-size: 16px; }
.search-results p { margin: 6px 0 0; font-size: 13.5px; }

@media (min-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-main { grid-column: span 3; }
    .vehicles-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-form .form-row-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
    .content-grid { grid-template-columns: 2.2fr 1fr; }
    .content-page { padding: 64px 0 84px; }
    .page-hero { padding: 62px 0 56px; }
    .vehicles-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery-main { grid-column: span 4; }
    .vehicle-detail { grid-template-columns: 1.8fr 1fr; }
    .contact-grid { grid-template-columns: 1.2fr 1fr; }
}


/* Pagina carrozzeria */
.content-narrow { max-width: 880px; }

.why-band {
    background: var(--grey-bg);
    border: 1px solid var(--grey-line);
    border-radius: var(--radius);
    padding: 28px 26px;
    margin: 36px 0;
}
.why-band h2 { font-size: 20px; text-transform: uppercase; margin-bottom: 18px; }
.why-grid {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px 32px;
}
.why-grid li { display: flex; gap: 10px; font-size: 15px; }
.why-grid i { color: var(--blue); font-size: 17px; }
.why-cta { text-align: left; }

@media (min-width: 600px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .why-grid { grid-template-columns: 1fr 1fr 1fr; } }

.officina-gallery { margin-top: 8px; }
.officina-gallery h2 { font-size: 20px; text-transform: uppercase; margin-bottom: 18px; }

/* Griglia forzata a 3 colonne (officina, ecc.) */
@media (min-width: 768px) {
    .gallery-3 { grid-template-columns: repeat(3, 1fr) !important; }
    .gallery-3 .gallery-main { grid-column: auto; }
}

.hero-sub { display: block; font-size: 14px; font-weight: 400; color: var(--grey-text); text-transform: none; letter-spacing: 0; margin-top: 2px; }

/* ============================================================
   VEICOLI — список и карточка (структура Melnyk Auto)
   ============================================================ */
.vl-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.vl-grid > * { min-width: 0; }
.vl-filter-title { font-size: 17px; text-transform: uppercase; letter-spacing: .04em; margin-top: 0; }
.vl-select {
    width: 100%; padding: 10px 12px; border: 1px solid #d4dae1; border-radius: var(--radius);
    font-family: var(--font); font-size: 14px; color: var(--dark); background: var(--white);
}
.vl-select:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.vl-filter .form-row { margin-bottom: 12px; }
.vl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.vl-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0 16px; cursor: pointer; }
.vl-reset { display: block; text-align: center; margin-top: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--grey-text); }
.vl-reset:hover { color: var(--blue); }

.vl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.vl-count { margin: 0; font-size: 17px; }
.vl-order { display: flex; align-items: center; gap: 8px; }
.vl-order label { font-size: 14px; color: var(--grey-text); }
.vl-order .vl-select { width: auto; min-width: 210px; }

.vl-row {
    display: grid; grid-template-columns: 1fr; gap: 0;
    background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--radius);
    overflow: hidden; margin-bottom: 20px; transition: box-shadow .25s;
}
.vl-row:hover { box-shadow: 0 10px 26px rgba(16,42,67,.14); }
.vl-row-img { display: block; }
.vl-row-img img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.vl-row-body { padding: 18px 20px; position: relative; }
.vl-row-body h3 { margin: 0 0 2px; font-size: 21px; }
.vl-row-body h3 a { color: var(--navy); }
.vl-row-body h3 a:hover { color: var(--blue); }
.vl-row-equip { margin: 0 0 8px; color: var(--grey-text); font-size: 14px; }
.vl-row-price { margin: 0 0 12px; font-family: var(--font); font-size: 24px; font-weight: 700; color: var(--blue); }
.vl-row-price span { font-size: 13px; font-weight: 400; color: var(--grey-text); }
.vl-row-specs { border-top: 1px solid var(--grey-line); }
.vl-row-specs > div {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 8px 0; border-bottom: 1px solid var(--grey-line); font-size: 14px;
    color: var(--dark);
}
.vl-row-specs > div:last-child { border-bottom: none; }
.vl-row-specs span:last-child { text-align: right; }
.vl-neopat { position: absolute; top: 16px; right: 16px; }

.vl-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.vl-pagination .dots { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--grey-text); }
.vl-pagination a, .vl-pagination .current {
    min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--grey-line); border-radius: var(--radius); font-weight: 600; font-size: 14px;
}
.vl-pagination .current { background: var(--blue); border-color: var(--blue); color: var(--white); }
.vl-pagination a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Карточка авто ---------- */
.vd-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.vd-grid > * { min-width: 0; }
.vd-card {
    background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--radius);
    padding: 20px 22px; margin-bottom: 22px;
}
.vd-card h2 { font-size: 17px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--blue); display: inline-block; }
.vd-card h2 i { color: var(--blue); }

.vd-price-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.vd-price { margin: 0; font-family: var(--font); font-size: 32px; font-weight: 700; color: var(--blue); }
.vd-iva { font-size: 14px; font-weight: 400; color: var(--grey-text); }
.vd-neopat {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
    background: #d4f4dd; color: #166534; border-radius: 6px; font-size: 14px; font-weight: 500;
}

.vd-gallery { margin-bottom: 22px; max-width: 100%; overflow: hidden; }

.vd-strip {
    display: grid; grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--grey-line); border-radius: var(--radius);
    overflow: hidden; margin-bottom: 22px; background: var(--white);
}
.vd-strip-item { padding: 14px 10px; text-align: center; border-bottom: 1px solid var(--grey-line); border-right: 1px solid var(--grey-line); }
.vd-strip-item span { display: block; color: #999; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.vd-strip-item span i { color: var(--blue); }
.vd-strip-item strong { font-size: 15px; color: var(--navy); }

.vd-scheda-row {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 9px 0; border-bottom: 1px solid var(--grey-line); font-size: 14px;
}
.vd-scheda-row:last-child { border-bottom: none; }
.vd-scheda-row .vd-val { color: var(--dark); text-align: right; }

.btn-whatsapp {
    background: #25d366; color: var(--white) !important; border: 2px solid #25d366;
    padding: 12px 26px; border-radius: var(--radius); display: inline-flex; align-items: center;
    justify-content: center; gap: 8px; font-family: var(--font); font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .05em; transition: background .25s;
}
.btn-whatsapp:hover { background: #1fb455; border-color: #1fb455; }
.vd-side .btn-block { margin-bottom: 10px; }
.vd-form-intro { font-size: 13.5px; color: var(--grey-text); }
#vd-contact-form input, #vd-contact-form textarea {
    width: 100%; padding: 10px 13px; border: 1px solid #d4dae1; border-radius: var(--radius);
    font-family: var(--font); font-size: 14px; color: var(--dark); background: var(--white);
}
#vd-contact-form input:focus, #vd-contact-form textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
#vd-contact-form .form-row { margin-bottom: 12px; }
#vd-contact-form label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }

/* Fotorama в тон сайта */
.fotorama__thumb-border { border-color: var(--blue) !important; }

@media (min-width: 768px) {
    .vl-row { grid-template-columns: 360px 1fr; }
    .vd-strip { grid-template-columns: repeat(3, 1fr); }
    .vd-strip-item:nth-child(3n) { border-right: none; }
    .vd-strip-item:nth-child(n+4) { border-bottom: none; }
}
@media (min-width: 992px) {
    .vl-grid { grid-template-columns: 300px 1fr; align-items: start; }
    .vl-filter { position: sticky; top: 90px; }
    .vd-grid { grid-template-columns: 1.9fr 1fr; align-items: start; }
}


/* Карточка авто: правки по замечаниям */
.vd-page { padding-top: 34px; }
.vd-breadcrumbs { margin-bottom: 10px; }
.vd-breadcrumbs .breadcrumbs ol { color: var(--grey-text); }
.vd-breadcrumbs .breadcrumbs a { color: var(--grey-text); }
.vd-breadcrumbs .breadcrumbs a:hover { color: var(--blue); }
.vd-title {
    margin: 0 0 2px; color: var(--navy);
    font-size: clamp(24px, 3.6vw, 32px); font-weight: 700;
    text-transform: uppercase; letter-spacing: .03em;
}
.vd-subtitle { margin: 0 0 16px; color: var(--grey-text); font-size: 15px; }

/* Scheda / Dimensioni в 2 колонки (как Melnyk) */
@media (min-width: 700px) {
    .vd-scheda-2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; }
}



/* CTA AutoBay24 (pagine veicoli): текст компактнее, кнопка в одну строку */
.cta-strip--ab h3 {
    font-size: clamp(15px, 1.6vw, 19px);
    font-weight: 400;
    line-height: 1.45;
    text-transform: none;
    letter-spacing: 0;
}
.cta-strip--ab .cta-text { flex: 1 1 auto; min-width: 0; }
.cta-strip--ab .btn-cta { white-space: nowrap; flex-shrink: 0; }


/* П.2: лайтбокс — фулскрин (слева) и счётчик (снизу по центру) */
.lightbox-fs {
    position: fixed; top: 18px; left: 18px; z-index: 3;
    width: 44px; height: 44px; border: none; border-radius: 50%;
    padding: 0; min-width: 44px; min-height: 44px; aspect-ratio: 1; flex-shrink: 0;
    background: rgba(255,255,255,.14); color: #fff; font-size: 18px;
    cursor: pointer; transition: background .2s;
}
.lightbox-fs:hover { background: rgba(255,255,255,.28); }
.lightbox-counter {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 3;
    padding: 6px 16px; border-radius: 20px;
    background: rgba(0,0,0,.55); color: #fff;
    font-family: var(--font); font-size: 14px; letter-spacing: .06em;
    pointer-events: none;
}

/* П.5: Area riservata в синей панели */
.nav-area-riservata {
    display: inline-flex; align-items: center; gap: 7px;
    margin-left: 6px; padding: 0 16px; height: 100%;
    color: var(--white); font-family: var(--font); font-size: 13px;
    font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
    white-space: nowrap; transition: background .2s;
}
.nav-area-riservata i { font-size: 16px; }
.nav-area-riservata:hover { background: rgba(255,255,255,.12); color: var(--white); }
@media (max-width: 991px) { .nav-area-riservata { display: none; } }


/* Единый счётчик фото для всех галерей Fotorama */
.fotorama__wrap { position: relative; }
.ftr-counter {
    position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 12;
    padding: 5px 14px; border-radius: 20px;
    background: rgba(0,0,0,.55); color: #fff;
    font-family: var(--font); font-size: 13px; letter-spacing: .06em;
    pointer-events: none;
}
.fotorama--fullscreen .ftr-counter { bottom: 90px; }


/* Оверлей единой галереи */
.ftr-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(10, 16, 22, .96);
    display: flex; align-items: stretch; justify-content: stretch;
}
.ftr-overlay-stage { flex: 1; min-width: 0; padding: 20px 0 0; display: block; }
.ftr-overlay-stage .fotorama { width: 100%; }
.ftr-overlay-close {
    position: fixed; top: 16px; right: 16px; z-index: 3;
    width: 44px; height: 44px; border: none; border-radius: 50%;
    padding: 0; min-width: 44px; min-height: 44px; aspect-ratio: 1; flex-shrink: 0;
    background: rgba(255,255,255,.14); color: #fff; font-size: 18px;
    cursor: pointer; transition: background .2s;
}
.ftr-overlay-close:hover { background: rgba(255,255,255,.28); }
.ftr-overlay .ftr-counter { bottom: 78px; }


/* Pagine legali */
.legal-text { max-width: 860px; }
.legal-text h2 { font-size: 21px; margin: 28px 0 12px; color: var(--navy); }
.legal-text h3 { font-size: 17px; margin: 22px 0 10px; color: var(--navy); }
.legal-text p, .legal-text li { font-size: 15px; line-height: 1.7; color: var(--dark); }
.legal-text ul { padding-left: 22px; margin: 10px 0 16px; }
.legal-text a { color: var(--blue); text-decoration: underline; }
