/* ==========================================================================
   INVESTIRE IN SUPERCARS - V4
   Layout Style: Guida Sicura (stile-screenshoot.html)
   ========================================================================== */

/* Custom Font - Hero Title */
@font-face {
    font-family: 'Ethnocentric';
    src: url('../fonts/Ethnocentric-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Variables */
:root {
    --color-primary: #bc0000;
    --color-dark: #1a1a1a;
    --color-white: #ffffff;
    --color-text: #333333;
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Skip Link - Accessibilità */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 100000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   WOW ANIMATIONS
   ========================================================================== */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Scroll Reveal Base */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Hero Parallax & Animations */
.hero-cover {
    overflow: hidden;
}

.hero-cover__bg {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.hero-cover__bg img {
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Animated Gradient Overlay */
.hero-cover__overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(188, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Text Animation */
.hero-col-left h1 {
    overflow: hidden;
}

.hero-col-left h1,
.hero-col-left h3 {
    animation: slideInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.hero-col-left h3 {
    animation-delay: 0.3s;
}

.hero-col-center {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
    opacity: 0;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Button with Shine Effect */
.btn--primary {
    position: relative;
    overflow: hidden;
}

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

.btn--primary:hover::before {
    left: 100%;
}

/* 3D Tilt Effect on Cards */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.pricing-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.pricing-card__name {
    transition: transform 0.3s ease;
}

.pricing-card:hover .pricing-card__name {
    transform: translateZ(20px);
}

.pricing-card__amount {
    transition: transform 0.3s ease, color 0.3s ease;
}

.pricing-card:hover .pricing-card__amount {
    transform: scale(1.1);
    color: var(--color-primary);
}

/* Feature Items Hover */
.feature-item {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item__icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover .feature-item__icon {
    transform: scale(1.2) rotate(5deg);
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Image Grid Hover Effects */
.image-grid__item {
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-grid__item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.image-grid__item img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-grid__item:hover img {
    transform: scale(1.15);
}

/* Partner Cards */
.partner-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.partner-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* About Red Section Parallax */
.about-red__image img {
    transition: transform 0.6s ease;
}

.about-red:hover .about-red__image img {
    transform: scale(1.05);
}

/* Video Wrapper */
.video-wrapper {
    transition: transform 0.4s ease;
}

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

/* Counter Animation Class */
.counter {
    display: inline-block;
}

/* Text Gradient Animation */
.text-gradient-animated {
    background: linear-gradient(
        90deg,
        var(--color-primary),
        #ff4444,
        var(--color-primary)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradient 3s linear infinite;
}

@keyframes textGradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Underline Animation */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-primary);
    transition: width 0.4s ease;
}

.animated-underline:hover::after {
    width: 100%;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), #ff4444);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Ripple Effect on Click */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.ripple:active::after {
    transform: scale(0);
    opacity: 1;
    transition: 0s;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

/* Typography - Italic Bold Uppercase (come stile-screenshoot) */
h1, h2, h3 {
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Spacer */
.spacer-30 { height: 30px; }
.spacer-50 { height: 50px; }

/* ==========================================================================
   HEADER (minimal)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: background 0.3s ease;
}

.header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo-text {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.header__nav {
    display: none;
}

@media (min-width: 992px) {
    .header__nav {
        display: flex;
        gap: 30px;
    }

    .header__nav a {
        color: var(--color-white);
        font-size: 0.875rem;
        font-weight: 500;
        text-transform: uppercase;
        transition: color 0.3s;
    }

    .header__nav a:hover {
        color: var(--color-primary);
    }
}

/* ==========================================================================
   HERO SECTION (stile-screenshoot layout)
   ========================================================================== */
.hero-section {
    background-color: var(--color-dark);
    color: var(--color-white);
    position: relative;
}

/* Hero Animated Title */
.hero-title-animated {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
    pointer-events: none;
}

.hero-title-top,
.hero-title-bottom {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateX(0);
}

.hero-title-bottom {
    margin-top: -15px;
}

.hero-title-top span,
.hero-title-bottom span {
    font-family: 'Ethnocentric', sans-serif;
    font-size: clamp(2rem, 7vw, 5rem);
    font-weight: normal;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Animazioni partono solo quando .animate è aggiunta */
.hero-title-animated.animate .hero-title-top {
    animation: slideFromRight 1s ease-out forwards;
}

.hero-title-animated.animate .hero-title-bottom {
    animation: slideFromLeft 1s ease-out 0.2s forwards;
}

/* Checker pattern (scacchiera) 4x2 */
.hero-title-checker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3px;
}

.hero-title-checker i {
    width: clamp(8px, 1.5vw, 14px);
    height: clamp(8px, 1.5vw, 14px);
    display: block;
}

/* Pattern scacchiera: 1,3,6,8 bianchi - 2,4,5,7 rossi */
.hero-title-checker i:nth-child(1),
.hero-title-checker i:nth-child(3),
.hero-title-checker i:nth-child(6),
.hero-title-checker i:nth-child(8) {
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
}

.hero-title-checker i:nth-child(2),
.hero-title-checker i:nth-child(4),
.hero-title-checker i:nth-child(5),
.hero-title-checker i:nth-child(7) {
    background: var(--color-accent);
}

/* Animazione alternanza scacchiera F1 - parte dopo l'entrata delle scritte */
.hero-title-animated.animate .hero-title-checker i:nth-child(1),
.hero-title-animated.animate .hero-title-checker i:nth-child(3),
.hero-title-animated.animate .hero-title-checker i:nth-child(6),
.hero-title-animated.animate .hero-title-checker i:nth-child(8) {
    animation: checkerFlashWhite 0.2s ease-in-out 0.8s 4;
}

.hero-title-animated.animate .hero-title-checker i:nth-child(2),
.hero-title-animated.animate .hero-title-checker i:nth-child(4),
.hero-title-animated.animate .hero-title-checker i:nth-child(5),
.hero-title-animated.animate .hero-title-checker i:nth-child(7) {
    animation: checkerFlashRed 0.2s ease-in-out 0.8s 4;
}

@keyframes checkerFlashWhite {
    0%, 100% {
        background: #fff;
    }
    50% {
        background: var(--color-accent);
    }
}

@keyframes checkerFlashRed {
    0%, 100% {
        background: var(--color-accent);
    }
    50% {
        background: #fff;
    }
}

@keyframes slideFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100vw);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateX(100vw);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero-cover {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.hero-cover__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-cover__bg img,
.hero-cover__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 75%;
}

.hero-cover__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.hero-cover__content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 100px 20px 30px;
}

.hero-cover__top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 60px;
}

.hero-cover__logo {
    width: 200px;
}

/* Hero Content Columns (40% / 45% / 25% come stile-screenshoot) */
.hero-content {
    padding: 30px 20px 50px;
}

.hero-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.hero-col-left {
    flex: 1 1 100%;
}

.hero-col-center {
    flex: 1 1 100%;
}

.hero-col-right {
    flex: 1 1 100%;
}

@media (min-width: 992px) {
    .hero-columns {
        flex-wrap: nowrap;
    }

    .hero-col-left {
        flex: 0 0 40%;
    }

    .hero-col-center {
        flex: 0 0 45%;
    }

    .hero-col-right {
        flex: 0 0 15%;
    }
}

.hero-col-left h1 {
    margin-bottom: 20px;
}

.hero-col-left h3 {
    font-weight: 700;
}

.hero-col-center p {
    font-size: 1.125rem;
    margin-bottom: 20px;
}

.hero-col-center p strong {
    font-weight: 700;
}

/* Dotted List (come stile-screenshoot) */
.dotted-list {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.dotted-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.dotted-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* CTA Button (rosso #bc0000) */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: #9a0000;
    transform: translateY(-2px);
}

/* ==========================================================================
   SECTION LAYOUT (2 columns come stile-screenshoot)
   ========================================================================== */
.section {
    padding: 50px 0;
}

.section--dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.section--red {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.section-col-text {
    flex: 1 1 100%;
}

.section-col-features {
    flex: 1 1 100%;
}

@media (min-width: 992px) {
    .section-columns {
        flex-wrap: nowrap;
    }

    .section-col-text {
        flex: 0 0 45%;
    }

    .section-col-features {
        flex: 0 0 55%;
    }
}

.section-col-text h2 {
    margin-bottom: 30px;
}

.section-col-text p {
    margin-bottom: 20px;
}

/* ==========================================================================
   FEATURES GRID (icone con titolo rosso, come stile-screenshoot)
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
}

.feature-item__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
}

.feature-item__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-item__title {
    color: var(--color-primary);
    font-size: 1.125rem;
    font-weight: 700;
    font-style: normal;
    text-transform: none;
    margin-bottom: 10px;
}

.feature-item__text {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ==========================================================================
   ABOUT SECTION (rosso con immagine + testo, come stile-screenshoot)
   ========================================================================== */
.about-red {
    background-color: var(--color-primary);
}

.about-dark {
    background-color: #1a1a1a;
}

.about-red__columns {
    display: flex;
    flex-wrap: wrap;
}

.about-red__image {
    flex: 1 1 100%;
    min-height: 300px;
    overflow: hidden;
}

.about-red__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video hover effect */
.about-red__image--video {
    position: relative;
}

.about-red__image--video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-red__image--video:hover video {
    opacity: 1;
}

/* Video autoplay on scroll (Team section) */
.about-red__image--autoplay {
    position: relative;
}

.about-red__image--autoplay img {
    transition: opacity 0.5s ease;
}

.about-red__image--autoplay video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.about-red__image--autoplay.video-active video {
    opacity: 1;
}

.about-red__image--autoplay.video-active img {
    opacity: 0;
}

.about-red__content {
    flex: 1 1 100%;
    padding: 50px 30px;
    color: var(--color-white);
}

@media (min-width: 992px) {
    .about-red__columns {
        flex-wrap: nowrap;
    }

    .about-red__image {
        flex: 0 0 55%;
        min-height: 550px;
    }

    .about-red__content {
        flex: 0 0 45%;
        padding: 50px;
    }
}

.about-red__content h2 {
    margin-bottom: 30px;
}

.about-red__content p {
    margin-bottom: 20px;
}

/* ==========================================================================
   CONTACT SECTION (rosso con form, come stile-screenshoot)
   ========================================================================== */
.contact-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 100px 0;
}

.contact-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-col-text {
    flex: 1 1 100%;
}

.contact-col-form {
    flex: 1 1 100%;
}

@media (min-width: 992px) {
    .contact-columns {
        flex-wrap: nowrap;
    }

    .contact-col-text {
        flex: 0 0 45%;
    }

    .contact-col-form {
        flex: 0 0 55%;
    }
}

.contact-col-text h2 {
    margin-bottom: 30px;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.form-row .form-group {
    flex: 1 1 100%;
}

@media (min-width: 576px) {
    .form-row .form-group {
        flex: 1 1 calc(50% - 8px);
    }
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-family: var(--font-family);
    border: none;
    border-radius: 5px;
    background: var(--color-white);
    color: var(--color-text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-group--checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.form-group--checkbox label {
    font-size: 0.875rem;
    line-height: 1.4;
}

.form-group--checkbox a {
    text-decoration: underline;
}

.btn--submit {
    align-self: flex-start;
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 15px 40px;
}

.btn--submit:hover {
    background-color: #000;
}

/* ==========================================================================
   IMAGE GRID (cars showcase)
   ========================================================================== */
.image-grid {
    padding: 30px 0;
    background: var(--color-white);
}

.image-grid__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .image-grid__container {
        grid-template-columns: 1fr;
    }
}

.image-grid__item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/* ==========================================================================
   PRICING CARDS
   ========================================================================== */
.pricing-section {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 80px 0;
}

.pricing-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.pricing-section > .container > p {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    padding: 20px;
    margin-top: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-bottom: 50px;
}

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

.pricing-card {
    background: var(--color-white);
    color: var(--color-text);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
}

.pricing-card__name {
    font-size: 1.5rem;
    font-style: normal;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.pricing-card__amount {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.pricing-card__amount::before {
    content: '€';
    font-size: 1.5rem;
    vertical-align: super;
}

.pricing-card__features {
    margin-bottom: 30px;
}

.pricing-card__feature {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.pricing-card__feature:last-child {
    border-bottom: none;
}

.pricing-card__feature-label {
    font-size: 0.875rem;
    color: #666;
}

.pricing-card__feature-value {
    font-weight: 700;
    color: var(--color-primary);
}

.pricing-card .btn {
    width: 100%;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 80px 0;
}

.testimonials-title {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.testimonials-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-top: 60px; /* Spazio per le immagini che escono */
}

/* Testimonial Card moderna */
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 70px 30px 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Immagine circolare che esce dalla card */
.testimonial-card__image {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nome */
.testimonial-card__name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

/* Professione */
.testimonial-card__role {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* Stelle */
.testimonial-card__stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-card__stars span {
    color: #FFD700;
    font-size: 1.2rem;
}

/* Testo review */
.testimonial-card__text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
}

/* Responsive Tablet */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 30px;
    }

    .testimonials-grid .testimonial-card:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
}

/* Responsive Mobile */
@media (max-width: 576px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        padding-top: 70px;
    }

    .testimonials-grid .testimonial-card:last-child {
        max-width: none;
    }

    .testimonial-card {
        padding: 60px 25px 35px;
    }

    .testimonials-subtitle {
        font-size: 1rem;
    }

    .testimonials-subtitle br {
        display: none;
    }
}

/* ==========================================================================
   GARANZIE SECTION
   ========================================================================== */
.guarantees-section {
    background: #fff;
    padding: 80px 0;
}

.guarantees-title {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.guarantees-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 50px;
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.guarantee-card {
    text-align: center;
    padding: 40px 30px;
    background: #f9f9f9;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guarantee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.guarantee-card__icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.guarantee-card__icon img {
    width: 60px;
    height: 60px;
}

.guarantee-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.guarantee-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* ==========================================================================
   BENEFITS SECTION (Vantaggi Formula)
   ========================================================================== */
.benefits-section {
    background: linear-gradient(180deg, #f5f5f5 0%, #fff 100%);
    padding: 80px 0;
}

.benefits-title {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.benefits-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 15px;
    border: 2px solid #eee;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
}

.benefit-card__number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.benefit-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive Garanzie & Vantaggi */
@media (max-width: 992px) {
    .guarantees-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guarantees-grid .guarantee-card:last-child,
    .benefits-grid .benefit-card:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .guarantees-section,
    .benefits-section {
        padding: 60px 0;
    }

    .guarantees-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .guarantees-grid .guarantee-card:last-child,
    .benefits-grid .benefit-card:last-child {
        max-width: none;
    }

    .guarantee-card,
    .benefit-card {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   LOGHI GRID (6x2)
   ========================================================================== */
.loghi-section {
    padding: 50px 0;
}

.loghi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px 20px;
    align-items: center;
    justify-items: center;
}


.loghi-grid__item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    height: 120px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.loghi-grid__item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.loghi-grid__item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%) contrast(1.1) brightness(0.8);
    opacity: 0.7;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease, opacity 0.4s ease;
}

.loghi-grid__item:hover img {
    transform: scale(1.15);
    filter: grayscale(0%) contrast(1) brightness(0.8);
    opacity: 1;
}

@media (max-width: 992px) {
    .loghi-grid {
        grid-template-columns: repeat(4, 1fr);
    }

}

@media (max-width: 576px) {
    .loghi-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 15px;
    }

    .loghi-grid__item:last-child {
        grid-column: 2;
    }

    .loghi-grid__item img {
        max-height: 45px;
    }
}

/* ==========================================================================
   CARLOS SAINZ SECTION
   ========================================================================== */
.sainz-section {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 80px 0;
}

.sainz-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sainz-section__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sainz-section__content h2 {
    text-align: left;
    margin-bottom: 25px;
}

.sainz-section__content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.sainz-section__content em {
    color: var(--color-primary);
    font-style: italic;
    font-weight: 600;
}

.sainz-section__cta {
    margin-top: 25px;
}

.sainz-section__image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.sainz-section__image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 992px) {
    .sainz-section__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sainz-section__content {
        order: 2;
        text-align: center;
    }

    .sainz-section__content h2 {
        text-align: center;
    }

    .sainz-section__image {
        order: 1;
    }
}

/* ==========================================================================
   PARTNER SECTION
   ========================================================================== */
.partner-section {
    padding: 0;
}

/* Logo Strip - Dark background */
.partner-logos-strip {
    background: var(--color-dark);
    padding: 60px 0;
}

.partner-logos-strip h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-white);
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

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

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

.partner-logo img {
    height: 150px;
    width: auto;
    object-fit: contain;
}

.partner-logo:nth-child(1) img,
.partner-logo:nth-child(2) img {
    height: 170px;
}

/* Showroom Grid */
.partner-section > .container {
    padding: 50px 20px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.partner-item {
    border-radius: 15px;
    overflow: hidden;
}

.partner-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.partner-item:hover img {
    transform: scale(1.05);
}

/* Partner Item with Video Hover */
.partner-item--video {
    position: relative;
}

.partner-item--video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.partner-item--video:hover video,
.partner-item--video.video-active video {
    opacity: 1;
}

.partner-item--video:hover img,
.partner-item--video.video-active img {
    transform: none;
}

/* ==========================================================================
   VIDEO SECTION
   ========================================================================== */
.video-section {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 80px 0;
}

.video-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.video-section__video .video-wrapper {
    max-width: 100%;
}

.video-section__content h2 {
    text-align: left;
    margin-bottom: 25px;
}

.video-section__content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.video-section__content .btn {
    margin-top: 20px;
}

@media (max-width: 992px) {
    .video-section__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .video-section__content {
        text-align: center;
    }

    .video-section__content h2 {
        text-align: center;
    }
}

.video-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 50%;
    height: 0;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: calc(100% + 120px);
    pointer-events: auto;
}

/* YouTube Lazy Load */
.youtube-lazy {
    cursor: pointer;
}

.youtube-lazy img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

.youtube-play-btn svg {
    width: 100%;
    height: 100%;
}

.youtube-lazy:hover .youtube-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    filter: brightness(1.2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 50px 0 30px;
    text-align: center;
}

.footer__logo {
    font-size: 1.25rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.footer__logo span {
    color: var(--color-primary);
}

.footer__company {
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer__links a {
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer__links a:hover {
    color: var(--color-primary);
}

.footer__copyright {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.text-center {
    text-align: center;
}

.hidden-xs {
    display: none;
}

@media (min-width: 576px) {
    .hidden-xs {
        display: block;
    }
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 80px 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.faq-item__question {
    width: 100%;
    background-color: #2a2a2a;
    color: var(--color-white);
    border: none;
    padding: 20px 50px 20px 20px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}

.faq-item__question:hover {
    background-color: #3a3a3a;
}

.faq-item__question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item.active .faq-item__question::after {
    content: '−';
}

.faq-item__answer {
    background-color: #e5e5e5;
    color: #000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-item__answer {
    max-height: 1000px;
}

.faq-item__answer-inner {
    padding: 20px;
}

.faq-item__answer-inner p {
    margin-bottom: 15px;
}

.faq-item__answer-inner p:last-child {
    margin-bottom: 0;
}

/* Mobile Menu Toggle */
.header__menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.header__menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s;
}

@media (min-width: 992px) {
    .header__menu-toggle {
        display: none;
    }
}

/* Menu mobile aperto */
@media (max-width: 991px) {
    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 26, 26, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .header__nav.active {
        opacity: 1;
        visibility: visible;
    }

    .header__nav a {
        color: var(--color-white);
        font-size: 1.5rem;
        font-weight: 600;
        text-transform: uppercase;
        transition: color 0.3s;
    }

    .header__nav a:hover {
        color: var(--color-accent);
    }

    /* Hamburger animation */
    .header__menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .header__menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .header__menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .header__menu-toggle {
        z-index: 1000;
    }
}

/* ===========================================
   CAR GALLERY LIGHTBOX
   =========================================== */
.car-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.car-gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.car-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

.car-gallery-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.car-gallery-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.car-gallery-close:hover {
    color: var(--color-accent);
}

.car-gallery-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.car-gallery-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 60vh;
}

.car-gallery-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
}

.car-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    z-index: 10;
}

.car-gallery-arrow:hover {
    background: var(--color-accent);
    color: #fff;
}

.car-gallery-prev {
    left: 10px;
}

.car-gallery-next {
    right: 10px;
}

.car-gallery-counter {
    color: #888;
    font-size: 14px;
    margin: 15px 0;
}

.car-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    max-width: 100%;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) #333;
}

.car-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.car-gallery-thumbs::-webkit-scrollbar-track {
    background: #333;
    border-radius: 3px;
}

.car-gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 3px;
}

.car-gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
    flex-shrink: 0;
}

.car-gallery-thumb:hover {
    opacity: 0.8;
}

.car-gallery-thumb.active {
    opacity: 1;
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Mobile Gallery */
@media (max-width: 768px) {
    .car-gallery-title {
        font-size: 18px;
    }

    .car-gallery-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .car-gallery-prev {
        left: 5px;
    }

    .car-gallery-next {
        right: 5px;
    }

    .car-gallery-thumb {
        width: 60px;
        height: 45px;
    }
}
