/*
 * AllPay Landing Page - Custom Styles
 * Ispirato a BrightHub SaaS - Modern Design
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Primary Colors - Verde/Green accent */
    --primary: #1a9444;
    --primary-light: #2ab556;
    --primary-dark: #147a38;
    --primary-rgb: 26, 148, 68;

    /* Blue Colors - From Logo */
    --blue: #1B5299;
    --blue-light: #3B7DD8;
    --blue-dark: #143d73;
    --blue-rgb: 27, 82, 153;

    /* Secondary Colors - Light */
    --secondary: #f8fafc;
    --secondary-light: #ffffff;
    --secondary-dark: #e2e8f0;
    --secondary-rgb: 248, 250, 252;

    /* Accent Colors */
    --accent: #1a9444;
    --accent-light: #2ab556;

    /* Text Colors */
    --text-dark: #1e293b;
    --text-body: #64748b;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-lighter: #f1f5f9;
    --bg-dark: #e2e8f0;
    --bg-darker: #cbd5e1;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
    --gradient-text: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-card: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.02) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(var(--primary-rgb), 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* Spacing */
    --section-padding: 120px;
    --section-padding-mobile: 80px;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Admin Bar Support */
body.admin-bar .site-header {
    top: 32px;
}

body.admin-bar .hero-section {
    padding-top: 172px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
    body.admin-bar .hero-section {
        padding-top: 166px;
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar .site-header {
        top: 0;
        position: absolute;
    }
    body.admin-bar .site-header.scrolled {
        position: fixed;
        top: 0;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.75rem; font-weight: 700; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    color: var(--text-body);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

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

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

/* Text Gradient */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Styles */
.section-padding {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(26, 148, 68, 0.1);
    border: 1px solid rgba(26, 148, 68, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title-main {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-dark);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-body);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary);
    color: var(--bg-white);
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    opacity: 0;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-primary-custom:hover::before {
    opacity: 1;
}

.btn-primary-custom span,
.btn-primary-custom i {
    position: relative;
    z-index: 1;
}

.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.btn-secondary-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-white);
    color: var(--primary);
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-white:hover {
    background: var(--bg-light);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--bg-white);
    color: var(--bg-white);
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar {
    padding: 0;
}

/* Navbar menu wrapper - pill style like reference */
.navbar-collapse {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 8px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.site-header.scrolled .navbar-brand img {
    height: 60px;
}

.navbar-nav .nav-link {
    color: var(--text-body);
    font-weight: 500;
    padding: 10px 20px;
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem;
}

.site-header.scrolled .navbar-nav .nav-link {
    color: var(--text-body);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-dark);
}

.navbar-nav .nav-link::after {
    display: none;
}

/* Dropdown indicators */
.navbar-nav .nav-item.has-dropdown .nav-link::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    vertical-align: middle;
    margin-top: -3px;
}

.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830, 41, 59, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-header.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830, 41, 59, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.header-cta .btn-primary-custom {
    padding: 12px 28px;
    font-size: 0.9rem;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
    border-radius: 50px;
}

.header-cta .btn-primary-custom:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
    color: var(--text-dark);
    box-shadow: none;
}

.header-cta .btn-primary-custom::before {
    display: none;
}

/* Logo switching for header */
.navbar-brand .logo-dark {
    display: none;
}

.navbar-brand .logo-light {
    display: block;
}

.site-header.scrolled .navbar-brand .logo-dark {
    display: none;
}

.site-header.scrolled .navbar-brand .logo-light {
    display: block;
}

/* ============================================
   HERO SECTION V2 - BrightHub Style
   ============================================ */

/* Main hero container */
.hero-section-v2 {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Background image - B&W photo */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: grayscale(30%);
    z-index: 1;
    opacity: 0.15;
}

/* Light overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 250, 252, 0.98) 100%
    );
    z-index: 2;
}

/* Content wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding-top: 140px; /* header height + extra spacing */
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 40px;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Main content area */
.hero-content-v2 {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: auto;
}

/* Headline styles */
.hero-headline {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-style: normal;
    color: var(--text-dark);
    line-height: 1.1;
    margin: 0 0 28px 0;
    /* Responsive font size using clamp */
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.02em;
}

.hero-headline .line-1,
.hero-headline .line-2 {
    display: block;
}

.hero-headline .line-2 {
    margin-top: 0.1em;
}

/* Gradient text for "for your growth" */
.hero-headline .gradient-text {
    background: linear-gradient(135deg, #1a9444 0%, #2ab556 40%, #4a7fc7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.hero-subtitle-v2 {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
    font-weight: 400;
    color: var(--text-body);
    line-height: 1.75;
    max-width: 680px;
    margin: 0 auto 40px;
}

/* CTA Button Group */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

/* Primary CTA - Gradient green/blue pill */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 32px;
    background: linear-gradient(135deg, #1a9444 0%, #2ab556 50%, #1a9444 100%);
    background-size: 200% 200%;
    color: #ffffff;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-primary:hover {
    background-position: 100% 100%;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(26, 148, 68, 0.4);
    color: #ffffff;
}

.cta-primary svg {
    width: 16px;
    height: 16px;
}

/* Secondary CTA - Light pill with border */
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 32px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: var(--bg-light);
    border-color: rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.cta-secondary svg {
    width: 16px;
    height: 16px;
}

/* Trust line text */
.hero-trust-line {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.02em;
}

/* ============================================
   INFINITE BRAND MARQUEE
   ============================================ */
.brand-marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 30px 0 20px;
    position: relative;
    margin-top: auto;
}

/* Fade edges */
.brand-marquee-container::before,
.brand-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.brand-marquee-container::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, transparent 100%);
}

.brand-marquee-container::after {
    right: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 1) 0%, transparent 100%);
}

/* Marquee track */
.brand-marquee-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: marquee-scroll 30s linear infinite;
    width: max-content;
}

/* Pause on hover */
.brand-marquee-container:hover .brand-marquee-track {
    animation-play-state: paused;
}

/* Brand logo item */
.brand-logo {
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    color: var(--text-dark);
}

.brand-logo:hover {
    opacity: 0.7;
}

.brand-logo svg,
.brand-logo img {
    height: 140px;
    width: auto;
    max-width: 360px;
    display: block;
    object-fit: contain;
}

/* Marquee animation */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   HERO V2 RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .hero-content-wrapper {
        padding-top: 120px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 40px;
    }

    .hero-headline {
        font-size: clamp(2.2rem, 5.5vw, 3.5rem);
    }

    .hero-subtitle-v2 {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-cta-group {
        gap: 12px;
    }

    .cta-primary,
    .cta-secondary {
        padding: 16px 28px;
        font-size: 0.8rem;
    }

    .brand-marquee-track {
        gap: 40px;
    }

    .brand-logo svg,
    .brand-logo img {
        height: 110px;
    }
}

@media (max-width: 767px) {
    .hero-content-wrapper {
        padding-top: 110px;
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 30px;
    }

    .hero-headline {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .hero-subtitle-v2 {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 16px 24px;
    }

    .hero-trust-line {
        font-size: 0.8rem;
        padding: 0 20px;
    }

    .brand-marquee-container::before,
    .brand-marquee-container::after {
        width: 40px;
    }

    .brand-marquee-track {
        gap: 30px;
        animation-duration: 20s;
    }

    .brand-logo svg,
    .brand-logo img {
        height: 90px;
    }
}

/* Hide old hero styles */
.hero-section {
    display: none !important;
}

.trusted-section {
    display: none !important;
}

/* ============================================
   TRUSTED BY SECTION
   ============================================ */
.trusted-section {
    padding: 80px 0;
    background: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.trusted-section .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 0.05em;
}

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

.logo-item {
    opacity: 0.5;
    filter: grayscale(100%) brightness(2);
    transition: var(--transition);
}

.logo-item:hover {
    opacity: 0.9;
    filter: grayscale(0%) brightness(1);
}

.logo-item img {
    height: 32px;
    width: auto;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: var(--bg-white);
}

.service-card {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0.1);
    background: var(--bg-white);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrapper {
    margin-bottom: 24px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(26, 148, 68, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition);
}

.service-icon i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
}

.service-card:hover .service-icon i {
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.service-link i {
    transition: var(--transition);
}

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

.service-link:hover i {
    transform: translateX(4px);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works-section {
    background: var(--bg-light);
}

.how-it-works-section .section-header.text-start {
    margin-left: 0;
    margin-right: 0;
    text-align: left !important;
}

.steps-list {
    margin-top: 40px;
}

.step-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.step-item:last-child {
    border-bottom: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 0;
}

.how-it-works-image {
    position: relative;
}

.how-it-works-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   CASHBACK OFFERS SECTION - Carousel V2
   ============================================ */
.offers-section {
    background: var(--bg-white);
}

/* Carousel Wrapper con frecce */
.offers-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Carousel container */
.offers-carousel {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

/* Track che contiene le card */
.offers-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
}

/* Card V2 - Più grande e pulita */
.offer-card-v2 {
    flex: 0 0 calc(25% - 18px);
    min-width: 260px;
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.offer-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.offer-card-v2:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Categoria sopra il logo */
.offer-card-category {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 6px 14px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
}

/* Logo area */
.offer-card-logo {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.offer-card-logo img {
    max-width: 240px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.offer-card-v2:hover .offer-card-logo img {
    transform: scale(1.05);
}

/* Info area */
.offer-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.offer-card-name {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.offer-card-cashback {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(26, 148, 68, 0.1);
    padding: 10px 16px;
    border-radius: var(--radius);
    display: inline-block;
}

/* Frecce del carosello */
.carousel-arrow {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--bg-white);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}

.carousel-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-arrow:disabled:hover {
    background: var(--bg-white);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    transform: none;
    box-shadow: var(--shadow);
}

/* Responsive Carousel */
@media (max-width: 1199px) {
    .offer-card-v2 {
        flex: 0 0 calc(33.333% - 16px);
        min-width: 240px;
    }
}

@media (max-width: 991px) {
    .offers-carousel-wrapper {
        flex-direction: column;
        gap: 24px;
    }

    .offers-carousel {
        width: 100%;
        order: 1;
    }

    .offer-card-v2 {
        flex: 0 0 calc(50% - 12px);
        min-width: 220px;
    }

    /* Frecce sotto il carosello */
    .carousel-arrow {
        position: static;
    }

    .offers-carousel-wrapper::after {
        content: '';
        display: flex;
        order: 2;
    }

    .carousel-arrow-left,
    .carousel-arrow-right {
        order: 2;
    }

    .offers-carousel-wrapper {
        position: relative;
    }

    .carousel-arrow-left {
        position: absolute;
        bottom: -70px;
        left: calc(50% - 70px);
    }

    .carousel-arrow-right {
        position: absolute;
        bottom: -70px;
        right: calc(50% - 70px);
    }

    .offers-section {
        padding-bottom: 140px;
    }
}

@media (max-width: 767px) {
    .offer-card-v2 {
        flex: 0 0 calc(100% - 24px);
        min-width: 280px;
        padding: 24px 20px;
    }

    .offer-card-logo {
        height: 120px;
    }

    .offer-card-logo img {
        max-width: 210px;
        max-height: 90px;
    }

    .carousel-arrow {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .carousel-arrow-left {
        left: calc(50% - 60px);
    }

    .carousel-arrow-right {
        right: calc(50% - 60px);
    }
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section {
    background: var(--bg-white);
}

.team-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0.1);
}

.team-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 40px 20px 20px;
    opacity: 0;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-card:hover .team-social {
    opacity: 1;
}

.team-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1rem;
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.team-info {
    padding: 24px 20px;
}

.team-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.team-info span {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.cta-wrapper {
    position: relative;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    text-align: center;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--bg-white);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.decoration-circle.circle-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
}

.decoration-circle.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -100px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--bg-light);
}

.contact-form-wrapper {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-form .form-control {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
    color: var(--text-dark);
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 148, 68, 0.15);
    background: var(--bg-white);
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    justify-content: center;
}

.contact-info-wrapper {
    padding-left: 40px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-info-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h5 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-details p {
    margin-bottom: 4px;
    color: var(--text-body);
    font-size: 0.95rem;
}

.contact-social {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-social h5 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: var(--bg-lighter);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-body);
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--text-dark);
    color: #ffffff;
    padding: 80px 0 0;
}

.footer-widget h5 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-weight: 600;
}

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

.footer-widget p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--primary);
    margin-right: 0;
    transition: var(--transition);
}

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

.footer-links a:hover::before {
    width: 10px;
    margin-right: 8px;
}

.footer-newsletter .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 18px;
    border-radius: var(--radius);
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.footer-newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter .form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.footer-newsletter .btn-primary-custom {
    width: 100%;
    justify-content: center;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Footer Contact */
.footer-contact h5 i {
    margin-right: 8px;
    color: var(--primary);
}

.footer-contact-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-links li {
    margin-bottom: 12px;
}

.footer-contact-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.footer-contact-links a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.footer-contact-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1199px) {
    :root {
        --section-padding: 100px;
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }

    .hero-content h1 {
        font-size: 3rem;
    }

    .section-title-main {
        font-size: 2.25rem;
    }
}

@media (max-width: 991px) {
    :root {
        --section-padding: 80px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero-section {
        padding: 120px 0 80px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: 24px;
        border-radius: var(--radius-lg);
        margin-top: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-link {
        color: var(--text-body);
        padding: 12px 16px;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .contact-info-wrapper {
        padding-left: 0;
        margin-top: 50px;
    }

    .how-it-works-section .row {
        flex-direction: column-reverse;
    }

    .how-it-works-image {
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 60px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero-content h1 {
        font-size: 2.25rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-primary-custom,
    .hero-buttons .btn-secondary-custom {
        width: 100%;
        justify-content: center;
    }

    .section-title-main {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-wrapper {
        padding: 50px 30px;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .contact-form-wrapper {
        padding: 30px 24px;
    }

    .trusted-logos {
        gap: 30px;
    }

    .logo-item img {
        height: 24px;
    }
}

@media (max-width: 576px) {
    .section-header {
        margin-bottom: 40px;
    }

    .service-card {
        padding: 30px 24px;
    }

    .testimonial-card {
        padding: 24px;
    }

    .team-info {
        padding: 20px 16px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn-white,
    .cta-buttons .btn-outline-white {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 100px;
}

/* ============================================
   BRIGHTHUB HEADER - Pure CSS (No Bootstrap)
   ============================================ */

/* Reset header styles */
.bh-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Header container - flexbox layout */
.bh-header-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.bh-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.bh-logo img {
    height: 60px;
    width: auto;
}

/* Navigation Pill - centered menu inside pill */
.bh-nav-pill {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 6px 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Nav menu - horizontal list */
.bh-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Nav items */
.bh-nav-item {
    position: relative;
}

/* Nav links */
.bh-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    color: var(--text-body);
    text-decoration: none;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.bh-nav-link:hover,
.bh-nav-link.active {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.05);
}

.bh-nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

/* Dropdown arrow */
.bh-nav-link .dropdown-arrow {
    width: 10px;
    height: 6px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.bh-nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown menu */
.bh-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 12px;
    min-width: 180px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.bh-nav-item:hover .bh-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.bh-dropdown li {
    margin: 0;
}

.bh-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.bh-dropdown a:hover {
    color: var(--text-dark);
    background: rgba(26, 148, 68, 0.1);
}

/* CTA Button - gradient pill */
.bh-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: linear-gradient(135deg, #1a9444 0%, #2ab556 50%, #1a9444 100%);
    background-size: 200% 200%;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.bh-cta-button:hover {
    background-position: 100% 100%;
    box-shadow: 0 8px 30px rgba(26, 148, 68, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Mobile toggle - hamburger */
.bh-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.bh-mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.bh-mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.bh-mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.bh-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bh-mobile-menu.active {
    max-height: 600px;
    padding: 24px;
}

.bh-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bh-mobile-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.bh-mobile-item:last-child {
    border-bottom: none;
}

.bh-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    color: var(--text-body);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.bh-mobile-link:hover,
.bh-mobile-link.active {
    color: var(--primary);
}

.bh-mobile-link.active {
    font-weight: 600;
}

.bh-mobile-link .dropdown-arrow {
    transition: transform 0.3s ease;
}

.bh-mobile-item.open .dropdown-arrow {
    transform: rotate(180deg);
}

.bh-mobile-dropdown {
    list-style: none;
    margin: 0;
    padding: 0 0 16px 16px;
    display: none;
}

.bh-mobile-item.open .bh-mobile-dropdown {
    display: block;
}

.bh-mobile-dropdown a {
    display: block;
    padding: 10px 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.bh-mobile-dropdown a:hover {
    color: var(--primary);
}

.mobile-cta {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

/* Admin bar support */
body.admin-bar .bh-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .bh-header {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar .bh-header {
        top: 0;
    }
}

/* Responsive - Tablet */
@media (max-width: 1200px) {
    .bh-nav-pill {
        position: relative;
        left: auto;
        transform: none;
    }

    .bh-header-container {
        gap: 20px;
    }
}

/* Responsive - Mobile */
@media (max-width: 991px) {
    .bh-nav-pill {
        display: none;
    }

    .bh-cta-button:not(.mobile-cta) {
        display: none;
    }

    .bh-mobile-toggle {
        display: flex;
    }

    .bh-mobile-menu {
        display: block;
        max-height: 0;
        padding: 0 24px;
    }

    .bh-mobile-menu.active {
        max-height: 80vh;
        padding: 24px;
        overflow-y: auto;
    }
}

/* Hide old header styles */
.site-header,
.navbar,
.navbar-collapse,
.navbar-brand,
.navbar-toggler,
.navbar-nav,
.header-cta {
    display: none !important;
}

/* ============================================
   TROVA NEGOZI SECTION
   ============================================ */
.trova-negozi-section {
    background: var(--bg-light);
    position: relative;
}

.trova-negozi-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 148, 68, 0.2), transparent);
}

/* Search Form Wrapper */
.search-form-wrapper {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.store-search-form .form-group {
    margin-bottom: 20px;
}

.store-search-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.store-search-form label i {
    color: var(--primary);
    font-size: 0.85rem;
}

.store-search-form .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--bg-dark);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: all 0.3s ease;
}

.store-search-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 148, 68, 0.1);
}

.store-search-form .form-control::placeholder {
    color: var(--text-muted);
}

.store-search-form select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Cashback Range Inputs */
.cashback-range-wrapper {
    margin-top: 4px;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-inputs .form-control {
    width: 100px;
    text-align: center;
    flex-shrink: 0;
}

.range-separator {
    color: var(--text-muted);
    font-weight: 500;
}

.range-unit {
    color: var(--text-body);
    font-weight: 600;
    font-size: 1rem;
}

/* Search Button */
.btn-search-stores {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 28px;
}

.btn-search-stores:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 148, 68, 0.35);
}

.btn-search-stores:active {
    transform: translateY(0);
}

.btn-search-stores i {
    font-size: 1rem;
}

/* Map Wrapper */
.map-wrapper {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

#stores-map {
    width: 100%;
    flex: 1;
    min-height: 400px;
    background: #e8e8e8;
}

/* Hide Leaflet attribution */
.leaflet-control-attribution {
    display: none !important;
}

/* Map Results Preview */
.map-results-preview {
    padding: 10px 16px;
    background: var(--bg-white);
    border-top: 1px solid var(--bg-dark);
    flex-shrink: 0;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.results-count {
    color: var(--text-body);
    font-size: 0.85rem;
}

.results-count strong {
    color: var(--primary);
    font-weight: 700;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* Leaflet Custom Styles */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
    margin: 12px 16px;
}

.store-popup {
    min-width: 200px;
}

.store-popup h4 {
    margin: 0 0 8px 0;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 700;
}

.store-popup .store-address {
    color: var(--text-body);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.store-popup .store-cashback {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.store-popup .store-link {
    display: block;
    margin-top: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

.store-popup .store-link:hover {
    text-decoration: underline;
}

/* Trova Negozi Responsive */
@media (max-width: 991px) {
    .trova-negozi-section .row {
        flex-direction: column-reverse;
    }

    .search-form-wrapper {
        padding: 24px;
        margin-top: 24px;
    }

    #stores-map {
        height: 350px;
    }

    .range-inputs .form-control {
        width: 80px;
    }
}

@media (max-width: 575px) {
    .search-form-wrapper {
        padding: 20px;
        border-radius: 16px;
    }

    .store-search-form .form-control {
        padding: 12px 14px;
    }

    .range-inputs {
        flex-wrap: wrap;
    }

    .range-inputs .form-control {
        width: calc(50% - 30px);
    }

    #stores-map {
        height: 300px;
    }

    .map-wrapper {
        border-radius: 16px;
    }
}

/* Custom Marker Styles */
.store-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(26, 148, 68, 0.4);
    transition: all 0.3s ease;
}

.marker-pin:hover {
    transform: rotate(-45deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(26, 148, 68, 0.5);
}

.marker-pin i {
    transform: rotate(45deg);
    color: white;
    font-size: 14px;
}

/* Map Loading Overlay */
.map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: var(--primary);
    border-radius: 20px;
}

/* Store Popup Logo */
.store-popup-logo {
    max-width: 80px;
    max-height: 40px;
    object-fit: contain;
    margin-bottom: 8px;
    display: block;
}

/* Store Popup Type */
.store-popup .store-type {
    color: var(--text-muted, #888);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

/* Store Popup Category Badges */
.store-popup .store-type-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.store-popup .store-type-badge {
    background: #f0f2f5;
    color: #65676b;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Geolocation Button */
.btn-geolocation {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-white);
    color: var(--primary);
    border: 2px dashed var(--primary);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-geolocation:hover {
    background: rgba(26, 148, 68, 0.05);
    border-style: solid;
}

.btn-geolocation.active {
    background: rgba(26, 148, 68, 0.08);
    border-style: solid;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-geolocation.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Radius hint */
.radius-hint {
    display: block;
    color: var(--text-muted, #888);
    font-size: 0.75rem;
    margin-top: 4px;
    font-style: italic;
}

/* Disabled radius select */
.store-search-form select.form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--bg-light, #f5f5f5);
}

/* User Location Marker */
.user-location-marker {
    background: transparent;
    border: none;
}

.user-marker-dot {
    width: 16px;
    height: 16px;
    background: #4285f4;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   BLUE ACCENT VARIANTS
   ============================================ */

/* Blue Gradient */
.gradient-blue {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
}

/* Blue Text Gradient */
.text-gradient-blue {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Blue Section Tag */
.section-tag.tag-blue {
    background: rgba(27, 82, 153, 0.1);
    border: 1px solid rgba(27, 82, 153, 0.3);
    color: var(--blue);
}

/* Blue Service Cards (2nd and 4th) */
.service-card.card-blue::before {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
}

.service-card.card-blue .service-icon {
    background: rgba(27, 82, 153, 0.1);
}

.service-card.card-blue .service-icon i {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card.card-blue:hover .service-icon {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
}

.service-card.card-blue:hover .service-icon i {
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff;
}

.service-card.card-blue .service-link {
    color: var(--blue);
}

.service-card.card-blue .service-link:hover {
    color: var(--blue-dark);
}

/* Blue Step Numbers (alternating) */
.step-item.step-blue .step-number {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
}

/* Blue CTA Secondary Button */
.cta-secondary.cta-blue {
    border-color: var(--blue);
    color: var(--blue);
}

.cta-secondary.cta-blue:hover {
    background: rgba(27, 82, 153, 0.08);
    border-color: var(--blue-dark);
    color: var(--blue-dark);
}

/* Blue Contact Icons */
.contact-icon.icon-blue {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
}

/* Blue Social Links hover */
.social-links a.social-blue:hover {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
}

/* Blue Offer Card Variant */
.offer-card-v2.card-blue:hover {
    border-color: var(--blue);
}

.offer-card-v2.card-blue .offer-card-cashback {
    color: var(--blue);
    background: rgba(27, 82, 153, 0.1);
}

/* Blue Carousel Arrow hover */
.carousel-arrow.arrow-blue:hover {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 0 40px rgba(var(--blue-rgb), 0.3);
}

/* Blue Header CTA Button */
.bh-cta-button.cta-blue {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 50%, var(--blue) 100%);
    background-size: 200% 200%;
}

.bh-cta-button.cta-blue:hover {
    box-shadow: 0 8px 30px rgba(27, 82, 153, 0.4);
}

/* Blue Form Focus */
.form-control:focus.input-blue {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(27, 82, 153, 0.15);
}

/* Blue Search Button */
.btn-search-stores.btn-blue {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
}

.btn-search-stores.btn-blue:hover {
    box-shadow: 0 8px 25px rgba(27, 82, 153, 0.35);
}

/* ============================================
   PAGE TEMPLATE STYLES
   ============================================ */
.site-main .page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 140px 24px 80px;
}

.site-main .page-content h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
    line-height: 1.2;
}

.site-main .page-content p,
.site-main .page-content li {
    text-align: justify;
    color: var(--text-body);
    line-height: 1.8;
}

/* Admin bar support for pages */
body.admin-bar .site-main .page-content {
    padding-top: 172px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-main .page-content {
        padding-top: 186px;
    }
}

@media screen and (max-width: 767px) {
    .site-main .page-content {
        padding: 120px 20px 60px;
    }

    body.admin-bar .site-main .page-content {
        padding-top: 166px;
    }
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.error-404-section .container {
    position: relative;
    z-index: 3;
}

.error-404-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.error-404-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.error-404-code .digit {
    font-size: clamp(80px, 15vw, 140px);
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-404-code .coin-digit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(80px, 15vw, 140px);
    height: clamp(80px, 15vw, 140px);
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: coinSpin 3s ease-in-out infinite;
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.3);
}

.error-404-code .coin-digit i {
    font-size: clamp(32px, 6vw, 56px);
    color: white;
    -webkit-text-fill-color: white;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

@keyframes coinSpin {
    0%, 100% {
        transform: rotateY(0deg) scale(1);
    }
    50% {
        transform: rotateY(180deg) scale(0.95);
    }
}

.error-404-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.error-404-description {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 36px;
}

.error-404-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.error-404-actions .cta-primary,
.error-404-actions .cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.error-404-actions .cta-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.error-404-actions .cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
}

.error-404-actions .cta-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.error-404-actions .cta-secondary:hover {
    background: rgba(var(--primary-rgb), 0.05);
    transform: translateY(-2px);
}

.error-404-links {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 28px;
}

.error-404-links p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.error-404-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.error-404-links ul li a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.error-404-links ul li a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 575px) {
    .error-404-content {
        padding: 100px 16px 60px;
    }

    .error-404-actions {
        flex-direction: column;
    }

    .error-404-actions .cta-primary,
    .error-404-actions .cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .error-404-links ul {
        gap: 16px;
    }
}
