/* ============================================================
   FONT SELF-HOSTED — nessuna richiesta a Google al caricamento
   ============================================================ */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('public/fonts/Outfit.woff2') format('woff2');
}

:root {
    /* Premium Dark Racing Palette */
    --primary-color: #e4002b;
    --primary-light: #ff3d5a;
    --primary-dark: #a00020;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-light: #1a1a1a;

    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --text-light: #cccccc;

    --font-main: 'Outfit', sans-serif;
    --transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);

    --shadow-glow: 0 0 40px rgba(228, 0, 43, 0.3);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.65);
}

/* ============================================
   CUSTOM FONTS
   ============================================ */
@font-face {
    font-family: 'Blippo Heavy';
    src: url('public/Blippo Heavy/Blippo Heavy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ============================================
   RESET — pseudo-elements inclusi
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    overflow-wrap: break-word;
    word-break: break-word;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* FIX: img e video sempre fluidi */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   CONTAINER — padding fluido con clamp
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 40px);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: clamp(12px, 2vw, 20px) clamp(1rem, 3vw, 40px);
    background: transparent;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: clamp(10px, 1.5vw, 15px) clamp(1rem, 3vw, 40px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: clamp(55px, 7vw, 80px);
    width: auto;
    filter: none;
    transition: var(--transition);
    object-fit: contain;
    display: block;
}

.nav-list {
    display: flex;
    gap: 50px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-white);
    transition: var(--transition);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::before {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.bar {
    width: 30px;
    height: 2px;
    background-color: var(--text-white);
    transition: var(--transition);
}

/* ============================================
   HERO — Cinematic Full Screen
   ============================================ */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}

/* Overlay scuro sopra le slide */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.3) 50%, rgba(10,10,10,0.65) 100%);
    z-index: 1;
}

/* Slide di sfondo — galleria automatica */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-slide.slide-1 {
    background-image: url('public/img/Suzuki_sfondo.webp');
    animation: slideKenBurns1 14s ease-in-out infinite;
}

.hero-slide.slide-2 {
    background-image: url('public/img/Benelli_sfondo.webp');
    animation: slideKenBurns2 14s ease-in-out infinite;
}

@keyframes slideKenBurns1 {
    0%, 40%  { opacity: 1; transform: scale(1.05); }
    50%, 90% { opacity: 0; transform: scale(1.10); }
    100%     { opacity: 1; transform: scale(1.05); }
}

@keyframes slideKenBurns2 {
    0%, 40%  { opacity: 0; transform: scale(1.10); }
    50%, 90% { opacity: 1; transform: scale(1.05); }
    100%     { opacity: 0; transform: scale(1.10); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: clamp(80px, 10vh, 120px) clamp(1rem, 4vw, 40px) 0;
    margin-left: 5%;
}

.hero-content h1 {
    font-size: clamp(3rem, min(7vw, 9vh), 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -3px;
    color: var(--text-white);
    margin-top: 0;
    margin-bottom: 20px;
    word-break: normal;
    overflow-wrap: normal;
}

.hero-h1-accent {
    display: block;
    color: var(--primary-color);
    font-size: 0.45em;
    line-height: 1.3;
    letter-spacing: 1px;
}

.hero-dots {
    letter-spacing: 5px;
    margin-left: 4px;
}

.hero-content h1 .hero-brand-name {
    display: inline;
    font-family: 'Blippo Heavy', sans-serif;
    color: var(--primary-color);
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 4px;
    margin-top: 0;
    transition: all 0.4s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 10px !important;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.8rem;
    }
}

.hero-content > p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 100%, 15px 100%);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateX(5px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--text-white);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--bg-dark);
}

/* Hero Scroll Indicator — 3 cascading chevrons */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeInChevron 0.8s ease 2s forwards;
}

.chev { display: block; }
.chev-1 { color: rgba(255,255,255,0.18); animation: cascadeChev 2s ease-in-out 2.8s infinite; }
.chev-2 { color: rgba(255,255,255,0.45); animation: cascadeChev 2s ease-in-out 3.1s infinite; margin-top: -5px; }
.chev-3 { color: rgba(255,255,255,0.75); animation: cascadeChev 2s ease-in-out 3.4s infinite; margin-top: -5px; }

@keyframes fadeInChevron {
    to { opacity: 1; }
}

@keyframes cascadeChev {
    0%, 100% { transform: translateY(0); opacity: inherit; }
    45%       { transform: translateY(6px); }
}


/* ============================================
   SECTION STYLES — padding fluido con clamp
   ============================================ */
.section {
    padding: clamp(60px, 10vw, 120px) 0;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
    margin-bottom: 40px;
}

.section-header--centered {
    text-align: center;
    margin-bottom: 50px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ============================================
   FEATURED MOTORCYCLES — auto-fit minmax
   ============================================ */
.featured-section {
    background: var(--bg-dark);
}

/* FIX: repeat(auto-fit, minmax) adatta colonne automaticamente */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
    cursor: pointer;
}

.product-info .product-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.modal-info-col .product-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--primary-color);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(228, 0, 43, 0.3);
    box-shadow: var(--shadow-glow);
}

.product-card:hover::before {
    height: 100%;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
}


.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.img-front { opacity: 1; }
.img-side  { opacity: 0; }

.product-card:hover .product-image,
.product-card:hover .img-front {
    opacity: 0;
    transform: scale(1.05);
}

.product-card:hover .img-side {
    opacity: 1;
    transform: scale(1.05);
}

.product-info {
    padding: 30px;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 5px;
}

.product-model {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.btn--card {
    flex: 1;
    justify-content: center;
}

.product-info .product-actions .btn {
    font-size: 0.8rem;
}

.btn--icon-moto {
    padding: 10px 15px;
    border-color: rgba(255,255,255,0.2);
}

.btn--icon-moto img {
    width: 24px;
    height: 24px;
}


/* ============================================
   PRODUCT SPECS (Anno / ABS / Prezzo)
   ============================================ */
.product-specs {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin: 14px 0 18px;
}

.spec-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.spec-item:last-child {
    border-right: none;
}

.spec-label {
    font-size: 0.6rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 4px;
}

.spec-value {
    font-size: 0.9rem;
    color: var(--text-white);
    font-weight: 600;
}


/* ============================================
   BRANDS SCROLLER
   ============================================ */
.brands-section {
    background: var(--bg-light);
    padding: 80px 0 50px;
    overflow: hidden;
    position: relative;
}

.brands-header {
    text-align: center;
    margin-bottom: 40px;
}

.brands-header h2 {
    font-size: 2rem;
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.brands-header p {
    color: var(--text-gray);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.brands-cta {
    text-align: center;
    margin: 50px auto 0;
    width: 90%;
    max-width: 800px;
}

.brands-cta .btn {
    font-size: 1.1rem;
    padding: 15px 40px;
    display: inline-flex;
}

.brands-cta p {
    margin-top: 15px;
    color: var(--text-gray);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brands-scroller {
    width: 100%;
    overflow: hidden;
}

.brands-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.brands-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}

@keyframes scroll-reverse {
    0%   { transform: translateX(calc(-250px * 7)); }
    100% { transform: translateX(0); }
}

.brand-item {
    flex: 0 0 auto;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.brand-item img {
    width: 200px;
    height: 100px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 1;
    filter: none;
    transition: var(--transition);
}

.brand-item:hover img {
    transform: scale(1.1);
}


/* Reverse scroller — nascosto su desktop, visibile su mobile */
.brands-scroller-reverse {
    display: none;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    margin-top: 20px;
}

/* ============================================
   SERVICES — auto-fit minmax (dichiarazione unica)
   ============================================ */
.services-section {
    background: var(--bg-dark);
    padding-top: 50px;
}

/* FIX: deduplicated + auto-fit minmax */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Service card — dichiarazione unica consolidata */
.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(228, 0, 43, 0.2);
    transform: translateY(-5px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card p {
    text-align: center;
}


.service-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-white);
}

.service-content h3 a {
    color: inherit;
    transition: var(--transition);
}

.service-content h3 a:hover {
    color: var(--primary-color);
}

.service-content p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #050505;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
    margin-bottom: 20px;
}

.footer-brand .logo-img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-col--brand h4 {
    margin-bottom: 5px;
}

.footer-tagline {
    margin-bottom: 20px !important;
    font-weight: 500;
}

.footer-brand p {
    color: var(--text-gray);
    line-height: 1.8;
}

.page-title {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.text-accent { color: var(--primary-color); }

.policy-section { margin-bottom: 40px; }

.policy-list { margin-left: 20px; }

.page-cta {
    text-align: center;
    margin-top: 50px;
}

.footer-map {
    border-radius: 10px;
    overflow: hidden;
    height: 150px;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--text-white);
    position: relative;
    padding-bottom: 15px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col p,
.footer-col a {
    display: block;
    margin-bottom: 12px;
    color: var(--text-gray);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}


.site-version {
    opacity: 0.5;
    margin-left: 10px;
}


/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   INNER PAGES — clears fixed header
   ============================================ */
.page-header {
    padding: clamp(130px, 15vw, 160px) 0 clamp(40px, 5vw, 60px);
}

.page-main {
    padding-top: clamp(100px, 12vw, 140px);
    min-height: 80vh;
}

.page-main--narrow {
    padding: clamp(120px, 15vw, 160px) clamp(1rem, 4vw, 20px) 80px;
    max-width: 900px;
    margin: 0 auto;
}

.footer-content--3col {
    grid-template-columns: 2fr repeat(2, 1fr);
}

/* ============================================
   MAP CONSENT PLACEHOLDER
   ============================================ */
.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    background: var(--bg-card);
    border-radius: 10px;
    text-align: center;
    padding: 16px;
}

.map-placeholder__icon { font-size: 1.8rem; }

.map-placeholder__address {
    color: var(--text-gray);
    font-size: 0.8rem;
    line-height: 1.5;
}

.map-placeholder__btn {
    font-size: 0.8rem;
    padding: 8px 18px;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: background 0.2s;
}

.map-placeholder__btn:hover { background: var(--primary-dark); }

.map-placeholder__link {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-decoration: underline;
}

.map-placeholder__link:hover { color: var(--text-white); }

/* ============================================
   SERVICE DETAIL PAGE — gap e padding fluidi
   ============================================ */
.service-detail-section {
    padding: clamp(60px, 8vw, 100px) 0;
}

.service-detail-row {
    display: flex;
    align-items: center;
    gap: clamp(40px, 6vw, 80px);
    margin-bottom: clamp(60px, 8vw, 100px);
}

.service-detail-row.reverse {
    flex-direction: row-reverse;
}

.service-detail-text {
    flex: 1;
}

.service-detail-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-white);
}

.service-detail-text p {
    margin-bottom: 15px;
    line-height: 1.9;
    color: var(--text-gray);
}

.service-detail-image {
    flex: 1;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-detail-image:hover img { transform: scale(1.05); }

/* ============================================
   CHI SIAMO / REVIEWS GRIDS — auto-fit minmax
   FIX: aggiunto display:grid mancante + auto-fit
   ============================================ */
.chi-siamo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
}

.chi-siamo-image {
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
}

.chi-siamo-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.chi-siamo-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.chi-siamo-text .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: left;
    margin-bottom: 20px;
}

.modal-info-col .product-actions .btn {
    font-size: 0.9rem;
}

.section--dark-gradient {
    background: linear-gradient(135deg, rgba(20,20,20,0.9) 0%, rgba(5,5,5,1) 100%);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.section--reviews {
    background: #111;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 30px;
}

.review-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.review-google-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
}

.stars {
    color: #fbbc04;
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
}

.review-card p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.review-card h3 {
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

/* ============================================
   MODAL
   ============================================ */
.modal-backdrop {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-card);
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.modal-backdrop.show .modal-content { transform: translateY(0); }

/* FIX: modal-close deduplicated in unica regola */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
    background: #111;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
    opacity: 1 !important;
}

.modal-close:hover { color: var(--primary-color); }

.modal-body {
    display: flex;
    flex-direction: row;
    min-height: 500px;
}

.modal-image-col {
    flex: 1.2;
    background: #000;
    display: flex;
    flex-direction: column;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    position: relative;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modal-prev { left: 8px; }
#modal-next { right: 8px; }

.modal-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.modal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.modal-brand-name {
    margin-bottom: 5px;
    color: var(--text-white);
}

.modal-model-name {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: none;
    letter-spacing: 0;
}

.modal-desc {
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-image-col img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.modal-info-col {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

/* ============================================
   GLOW CARDS
   ============================================ */
.glow-card {
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glow-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.glow-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.05),
            transparent 40%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-card:hover::before { opacity: 1; }

.service-icon-svg {
    color: var(--primary-color);
    flex-shrink: 0;
    z-index: 2;
}

.glow-card .service-content { z-index: 2; }

.glow-card .service-content h3 {
    color: var(--text-white);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.glow-card .service-content p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ============================================
   MODAL CAROUSEL
   ============================================ */
#modal-carousel {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
    border-radius: 0;
    background: #111;
}

#modal-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    border-radius: 10px;
    transition: opacity 0.45s ease-in-out;
}


/* ============================================
   ACCORDION (SERVIZI)
   ============================================ */
.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.accordion-trigger {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    background: none;
    border: none;
    padding: 22px 0;
    cursor: pointer;
    text-align: left;
    color: var(--text-white);
}

.accordion-trigger:hover .accordion-title { color: var(--primary-color); }

.accordion-icon-box {
    min-width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.accordion-title {
    flex: 1;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.accordion-chevron {
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-item.open .accordion-icon-box { transform: scale(1.08); }

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 68px;
}

.accordion-body p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1rem;
    padding-bottom: 20px;
}

/* ============================================
   RESPONSIVE — 1024px (Tablet landscape)
   ============================================ */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Force chi-siamo to single column on tablets (portrait) */
    .chi-siamo-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESPONSIVE — 768px (Tablet portrait + Mobile)
   Blocco unico consolidato — nessuna duplicazione
   ============================================ */
@media (max-width: 768px) {

    html { font-size: 15px; }

    /* --- Container --- */
    .container { padding: 0 1rem; }

    /* --- Header --- */
    .header,
    .header.scrolled {
        padding: 10px 1rem;
    }

    .logo-img { height: 62px; }

    /* --- Grids: guaranteed single column on mobile --- */
    .chi-siamo-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    /* --- Nav mobile panel --- */
    .nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        bottom: auto;
        width: auto;
        min-width: 180px;
        height: 100vh;
        background: #050505;
        padding: 100px 40px 40px 30px;
        gap: 20px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.9);
        z-index: 1000;
        visibility: hidden;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
        visibility: visible;
    }

    .nav.active .nav-link {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    /* --- Overlay: FIX width 100vw → 100% --- */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;       /* FIX: era 100vw → causava scrollbar orizzontale */
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    body.no-scroll { overflow: hidden !important; }

    /* --- Hero mobile: testo portato in basso ---
       FIX: background-attachment scroll (iOS Safari non supporta fixed)
    ============================================ */
    .hero {
        align-items: flex-end;
    }

    /* Slide mobile: immagini verticali dedicate */
    .hero-slide {
        background-attachment: scroll;
        background-color: #0a0a0a;
    }

    .hero-slide.slide-1 {
        background-image: url('public/img/Suzuki_sfondo_mobile.webp');
        background-position: center center;
        background-size: cover;
    }

    .hero-slide.slide-2 {
        background-image: url('public/img/Benelli_sfondo_mobile.webp');
        background-position: center center;
        background-size: cover;
    }

    .hero {
        min-height: 100svh;
    }

    .hero-content {
        margin-left: 0;
        text-align: center;
        padding-top: 0;
        padding-bottom: clamp(50px, 9svh, 90px);
        padding-left: 20px;
        padding-right: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: relative;
        z-index: 2;
    }

    .hero-content h1 {
        font-size: clamp(1.55rem, 5.2vw, 2rem);
        line-height: 1.1;
        letter-spacing: -1px;
        margin-bottom: 20px;
    }

    .hero-h1-accent {
        font-size: 0.62em;
    }

    .hero-content h1 .hero-brand-name {
        font-size: 0.9em;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 0.82rem;
        font-weight: 600;
        letter-spacing: 1.5px;
        color: #e8e8e8 !important;
        background: rgba(0, 0, 0, 0.55);
        padding: 8px 14px;
        border-radius: 10px;
        display: inline-block;
        border: 1px solid rgba(255, 255, 255, 0.12);
        margin-bottom: 14px !important;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .scroll-indicator {
        display: none;
    }


    /* --- Section header --- */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    /* --- Service detail --- */
    .service-detail-row,
    .service-detail-row.reverse {
        flex-direction: column;
        gap: 40px;
    }

    /* --- Footer --- */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* --- Logo strip --- */
    .logo-section-inner {
        gap: 30px;
    }

    .logo-section-inner img {
        height: 45px;
    }

    /* --- Modal --- */
    .modal-body { flex-direction: column; }
    .modal-content { max-height: 92vh; overflow-y: auto; border-radius: 12px; }
    .modal-image-col {
        height: 55vw;
        min-height: 220px;
        max-height: 320px;
        border-radius: 12px 12px 0 0;
        background: #111;
    }
    .modal-info-col { padding: 20px 20px 30px; }

    /* --- Product cards: 1 colonna su mobile, immagine proporzionata --- */
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-img-wrapper {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    /* --- Double brand scroller su mobile --- */
    .brands-scroller-reverse {
        display: block;
    }

    .brands-scroller-reverse .brands-track,
    .brands-track--reverse {
        animation: scroll-reverse 35s linear infinite;
    }
}

/* ============================================
   RESPONSIVE — 480px (Small mobile)
   ============================================ */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
        letter-spacing: -1px;
    }

    .hero-h1-accent {
        font-size: 0.65em;
    }

    .btn {
        padding: 14px 25px;
        font-size: 0.8rem;
    }

    /* Hero CTA buttons stack vertically on very small screens */
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        justify-content: center;
        text-align: center;
    }

    .product-info { padding: 20px; }
    .product-title { font-size: 1.2rem; }
    .product-price { font-size: 1.5rem; }

    .logo-section-inner img {
        height: 35px;
        width: 90px;
    }

    .service-card,
    .glow-card {
        padding: 20px;
    }

    /* On tiny screens the glow-card icon+text stack vertically */
    .glow-card {
        flex-direction: column;
        gap: 12px;
    }

    /* Accordion padding shrink */
    .accordion-body {
        padding-left: 20px;
    }

    /* Section header stacked */
    .section-header {
        margin-bottom: 40px;
    }
}
