* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    color: white;
    padding: 2rem;
    transition: all 1s cubic-bezier(.215, .61, .355, 1);
}

.hero-container {
    position: relative;
    max-width: 100%;
    margin: 5% auto;
    border: 2px solid #FFD700;
    border-radius: 15px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
}

.hero-container__padding {
    position: relative;
    max-width: 100%;
    padding: 5rem 0;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
}

.hero-brand {
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: space-between;
}

.hero-brand-col {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
}

.hero-brand-1 {
    width: 25px;
    height: 7px;
    background-color: #E40313;
    border-color: #E40313;
}

.hero-brand-2 {
    width: 25px;
    height: 7px;
    background-color: #005CA9;
    border-color: #005CA9;
}

.hero-brand-3 {
    width: 25px;
    height: 7px;
    background-color: #FEED00;
    border-color: #FEED00;
}

/* Header */
.hero-header {
    text-align: center;
    /*margin-bottom: 3rem;*/
}

.brand {
    font-size: 1rem;
    letter-spacing: 2px;
    color: white;
    margin-bottom: 1rem;
    font-weight: 500;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 1.5rem;
    line-height: 1;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin: 20px auto 20px;
    padding-bottom: 40px;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    margin-top: 20px;
    flex-wrap: wrap;
}
.hero-index {
    width: 11.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffd700;
}
.hero-index-n {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #ffd700;
    border: 1px solid #ffd700;
    border-radius: 50px;
}
.hero-index-n p {
    font-size: 1.3rem;
}
.btn {
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: #FFD700;
    color: #1a1a1a;
}

.btn-primary:hover {
    background: #e5c735;
    transform: translateY(-2px);
    color: #1a1a1a;
}

.btn-secondary {
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

/* Video section */
.video-section {
    text-align: center;
    margin: 0 0 5rem;
}

.video-container {
    position: relative;
    display: inline-block;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.video-container:hover {
    transform: scale(1.02);
}

.video-placeholder {
    width: 350px;
    height: 220px;
    /* background: linear-gradient(135deg, #2a2a2a, #1a1a1a); */
    background-image: url('https://www.gbcargroup.com/wp-content/uploads/2025/09/marc-kleen-h8UQV31X5AI-unsplash-1.jpg'); /* percorso immagine */
    background-size: cover;       /* l’immagine copre tutto il div */
    background-position: center;  /* centrata */
    background-repeat: no-repeat; /* niente ripetizione */
    color: #fff;                  /* testo leggibile sullo sfondo */
    display: flex;                /* opzionale: centrare contenuto */
    align-items: center;
    justify-content: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-btn {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: white;
    transform: scale(1.1);
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #1a1a1a;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 3px;
}

.video-label {
    position: absolute;
    width: 75%;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFD700;
    color: #1a1a1a;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Cards grid */
.cards-grid {
    position: absolute;
    width: 85%;
    top: 90%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    flex: 1;
}

.card {
    background: #2a2a2a;
    border-radius: 15px;
    /* padding: 2rem; */
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* transition: all 1s cubic-bezier(.215, .61, .355, 1); */

}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.card-content {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
}

.card-txt {
    height: 0;
    overflow: hidden;
}


.card-1 {
    background-image: url('https://www.gbcargroup.com/wp-content/uploads/2025/09/joey-banks-YApiWyp0lqo-unsplash-1.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    margin: 20px;
}

.card-2 {
    background-image: url('https://www.gbcargroup.com/wp-content/uploads/2025/09/wolf-schram-19t6J2RVqQE-unsplash-1-1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    margin: 20px;
}
.card-3 {
    background-image: url('https://www.gbcargroup.com/wp-content/uploads/2025/10/Meccatronica-1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    margin: 20px;
}

.card-4 {
    background-image: url('https://www.gbcargroup.com/wp-content/uploads/2025/09/carmarini-restauro-auto-epoca-gallery-01.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    margin: 20px;
}


.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card:hover .card-txt {
    height: 35%;
}


.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

.card-image {
    width: 100%;
    height: 120px;
    background: #1a1a1a;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

/* BMW Card - Auto moderne */
.card:nth-child(1) .card-image {
    background: linear-gradient(135deg, #0066cc, #004499);
}

/* Auto d'epoca */
.card:nth-child(2) .card-image {
    background: linear-gradient(135deg, #8B4513, #654321);
}

/* Primo restauro */
.card:nth-child(3) .card-image {
    background: linear-gradient(135deg, #2E8B57, #228B22);
}

/* 37 Interventi - Special card */
.card:nth-child(4) {
    display: flex;
    justify-content: end;
}

.card:nth-child(4) .card-image {
    display: none;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    font-size: 0.95rem;
}

.card-number {
    font-size: 3rem;
    font-weight: 700;
    color: #FFD700;
    transition: color 0.3s ease;
}

.card:hover .card-number {
    color: #FFC107;
}

.card-title-mec {
    width: 100%;
}

.card-mec-btn {
    border: 1px solid;
    border-radius: 20px;
    padding: 5px;
}


/* .card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1);
} */

.trapezoid {
    width: 300px;
    height: 200px;
    transform: perspective(600px) rotateX(-5deg) rotateY(-10deg);
    border-radius: 8px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    margin: 0 auto 30px auto;
    position: relative;
}

.trapezoid-skew {
    display: flex;
    align-items: flex-end;
    width: 300px;
    height: 200px;
    transform: perspective(300px) rotateY(-9deg);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin: 0 auto 30px auto;
    transition: all 1s cubic-bezier(.215, .61, .355, 1);
}

.trapezoid-clippath {
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto 30px auto;
}


.hero-cover-img {
    width: 100%;
    overflow: hidden;
}

.hero-cover-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Se vuoi un'altezza fissa con l'immagine che si adatta */
.hero-cover-img {
    width: 100%;
    height: 400px; /* Modifica in base alle tue esigenze */
    overflow: hidden;
}

.hero-cover-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .hero-cover-img {
        height: 250px; /* Altezza ridotta per mobile */
    }
}

@media (max-width: 480px) {
    .hero-cover-img {
        height: 200px; /* Ancora più piccola su schermi molto piccoli */
    }
}
/* hexagon style */
.hexagon-container-link {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hexagon-link {
    border: 1px solid #f4c430;
    padding: 10px;
    color: #000;
    background-color: #f4c430;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.hexagon-link a {
    color: #000;
}
.gb-container-hexagon {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 10vh 0 5vh 0;
}
    .hexagon-container {
            position: relative;
            width: 328px;
            height: 330px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .hexagon-svg {
            position: absolute;
            width: 90%;
            height: 90%;
        }

        .content {
            position: relative;
            text-align: center;
            color: #f4c430;
            z-index: 1;
            padding: 60px 40px;
        }

        .title {
            font-size: 40px;
            font-weight: 700;
            margin: 0 0 30px 0;
            letter-spacing: 1px;
        }

        .description {
            font-size: 17px;
            font-weight: 600;
            line-height: 1.6;
            margin: 0 0 30px 0;
        }

        .link {
            font-size: 18px;
            font-weight: 500;
            text-decoration: none;
            color: #f4c430;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: transform 0.3s ease;
        }

        .hexagon-link:hover {
            transform: scale(1.1);
        }

        .link::after {
            content: '▶';
            font-size: 14px;
            line-height: normal;
        }

/* Stili per laptop */
@media (min-width: 1025px) and (max-width: 1500px) { 
.hero-index {
    width: 19%;
}
	/*.trapezoid-skew {
		width: 175px;
	}*/
	.cards-grid {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	}

}
/* Stili per smartphone */
@media (max-width: 768px) {
	font-size-m{
		font-size: 2.5rem;
	}
    body {
        padding: 0;
    }
    .hero-index {
        width: 75%;
    }
    .hero-brand {
        display: none;
    }
    .card {
        width: 250px;
        height: 200px;
    }
    .container {
        padding: 2rem 1.5rem;
    }
    .video-placeholder {
        width: 280px;
        height: 180px;
    }
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        position: relative;
        margin: 0 auto;
    }
    .trapezoid-skew {
        transform: none;
    }
    .hero-container__padding {
        padding: 0;
    }
    .hero-header {
        padding: 10% 0% 0 0%;
    }
    .hero-container {
        margin-top: 40px;
		border: none;
    }
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        min-width: 250px;
    }
    .gb-container-hexagon {
    flex-direction: column;
    align-items: center;
}
.subtitle {
    font-size: 1.2rem;
	padding: 10px 5%;
}
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }
    .title {
        font-size: 2.1rem;
		font-weight: 700;
    }

}
.hero-cover-container {
	height: 400px;
 background-image: url('https://www.gbcargroup.com/wp-content/uploads/2025/11/GB-car-group-Cover-.jpg');
	/*background-attachment: fixed;*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}