/* ==========================================================================
   AFFARINOLO NOLEGGIO — Design System & Components
   ========================================================================== */

/* ---------- CSS Custom Properties (defaults, overridden by config.json) ---------- */
:root {
    --afn-primary: #1a2332;
    --afn-primary-blue: #173f76;
    --afn-accent: #d4af37;
    --afn-accent-light: #e8c547;
    --afn-accent-dark: #b8972e;
    --afn-text-dark: #1a1a1a;
    --afn-text-medium: #555555;
    --afn-text-light: #888888;
    --afn-bg-light: #f8f9fa;
    --afn-bg-white: #ffffff;
    --afn-border: #e0e0e0;
    --afn-success: #28a745;
    --afn-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --afn-header-height: 100px;
    --afn-header-height-scrolled: 72px;
    --afn-container-max: 1200px;
    --afn-radius-sm: 8px;
    --afn-radius-md: 12px;
    --afn-radius-lg: 16px;
    --afn-radius-xl: 24px;
    --afn-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --afn-shadow-md: 0 4px 24px rgba(0, 0, 0, 0.08);
    --afn-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
    --afn-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --afn-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--afn-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--afn-text-dark);
    background: var(--afn-bg-white);
    overflow-x: hidden;
}

body.afn-modal-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--afn-transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---------- Container ---------- */
.afn-container {
    max-width: var(--afn-container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ---------- Buttons ---------- */
.afn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--afn-radius-sm);
    font-family: var(--afn-font);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all var(--afn-transition);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}
.afn-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.afn-btn--accent {
    background: var(--afn-accent);
    color: var(--afn-primary);
    border-color: var(--afn-accent);
}
.afn-btn--accent:hover {
    background: var(--afn-accent-light);
    border-color: var(--afn-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

.afn-btn--outline {
    background: transparent;
    color: var(--afn-primary);
    border-color: var(--afn-border);
}
.afn-btn--outline:hover {
    border-color: var(--afn-accent);
    color: var(--afn-accent-dark);
    background: rgba(212, 175, 55, 0.05);
}

.afn-btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.afn-btn--outline-light:hover {
    border-color: var(--afn-accent);
    color: var(--afn-accent);
}

.afn-btn--sm { padding: 10px 18px; font-size: 0.8125rem; }
.afn-btn--lg { padding: 16px 36px; font-size: 1.0625rem; }

/* ---------- HEADER ---------- */
.afn-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 28px 0;
    background: transparent;
    transition: all var(--afn-transition);
}

.afn-header--scrolled {
    padding: 14px 0;
    background: rgba(26, 35, 50, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.afn-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.afn-header__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #fff;
}

.afn-header__logo-img {
    width: auto;
    height: 82px;
    object-fit: contain;
    transition: all var(--afn-transition);
}

.afn-header--scrolled .afn-header__logo-img {
    height: 52px;
}

.afn-header__logo-placeholder {
    width: 56px;
    height: 56px;
    background: var(--afn-accent);
    color: var(--afn-primary);
    border-radius: var(--afn-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    transition: all var(--afn-transition);
}

.afn-header--scrolled .afn-header__logo-placeholder {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
}

.afn-header__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.afn-header__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.afn-header__tagline {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
}

.afn-header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.afn-header__link {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    padding: 4px 0;
}
.afn-header__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--afn-accent);
    transition: width var(--afn-transition);
}
.afn-header__link:hover {
    color: #fff;
}
.afn-header__link:hover::after {
    width: 100%;
}

/* Hamburger */
.afn-header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}
.afn-header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--afn-transition);
}
.afn-header__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.afn-header__hamburger.active span:nth-child(2) {
    opacity: 0;
}
.afn-header__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.afn-mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 50, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--afn-transition);
}
.afn-mobile-nav.active {
    opacity: 1;
    pointer-events: all;
}

.afn-mobile-nav__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.afn-mobile-nav__link {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color var(--afn-transition);
}
.afn-mobile-nav__link:hover {
    color: var(--afn-accent);
}

/* ---------- HERO ---------- */
.afn-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--afn-primary) url('../images/hero-bg.png') center center / cover no-repeat;
}

.afn-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 35, 50, 0.92) 0%,
        rgba(23, 63, 118, 0.75) 50%,
        rgba(26, 35, 50, 0.88) 100%
    );
    z-index: 1;
}

.afn-hero .afn-container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 80px;
}

.afn-hero__content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0 80px;
}

.afn-hero__headline {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.afn-hero__subheadline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Hero Stats */
.afn-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.afn-hero__stat {
    text-align: center;
}

.afn-hero__stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--afn-accent);
    line-height: 1.2;
}

.afn-hero__stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-top: 4px;
}

/* Scroll Indicator */
.afn-hero__scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.afn-hero__scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    position: relative;
}
.afn-hero__scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: rgba(255,255,255,0.5);
    animation: afn-scroll-bounce 2s ease-in-out infinite;
}

/* ---------- Scroll Bounce Keyframe ---------- */
@keyframes afn-scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ---------- SECTIONS ---------- */
.afn-section {
    padding: 100px 0;
}

.afn-section--white {
    background: var(--afn-bg-white);
}

.afn-section--light {
    background: var(--afn-bg-light);
}

.afn-section--dark {
    background: linear-gradient(
        135deg,
        var(--afn-primary) 0%,
        var(--afn-primary-blue) 60%,
        var(--afn-primary) 100%
    );
}

.afn-section__header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.afn-section__title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--afn-text-dark);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.afn-section__title--light {
    color: #fff;
}

.afn-section__subtitle {
    font-size: 1.0625rem;
    color: var(--afn-text-medium);
    line-height: 1.6;
    font-weight: 400;
}

.afn-section__subtitle--light {
    color: rgba(255,255,255,0.6);
}

/* ---------- BENEFITS ---------- */
.afn-section--compact {
    padding: 48px 0;
}

.afn-benefits-layout {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.afn-benefits-layout__left {
    flex: 0 0 280px;
    position: sticky;
    top: 120px;
}

.afn-benefits-layout__left .afn-section__title {
    text-align: left;
    margin-bottom: 12px;
}

.afn-benefits-layout__left .afn-section__subtitle {
    text-align: left;
}

.afn-benefits-layout__right {
    flex: 1;
}

.afn-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.afn-benefit-card {
    background: var(--afn-bg-white);
    border: 1px solid var(--afn-border);
    border-radius: var(--afn-radius-md);
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    transition: all var(--afn-transition);
}
.afn-benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--afn-shadow-sm);
    border-color: rgba(212, 175, 55, 0.3);
}

.afn-benefit-card__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--afn-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--afn-accent);
}
.afn-benefit-card__icon svg {
    width: 22px;
    height: 22px;
}

.afn-benefit-card__text {
    flex: 1;
}

.afn-benefit-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--afn-text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.afn-benefit-card__desc {
    font-size: 0.8125rem;
    color: var(--afn-text-medium);
    line-height: 1.5;
}

/* ---------- RENTAL CATEGORIES ---------- */
.afn-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    gap: 20px;
}

.afn-category-card {
    text-align: center;
    padding: 28px 16px;
    border-radius: 14px;
    background: var(--afn-bg-white);
    border: 1px solid var(--afn-border);
    transition: all var(--afn-transition);
}
.afn-category-card:hover {
    border-color: var(--afn-accent);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

.afn-category-card__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--afn-accent);
}
.afn-category-card__icon svg {
    width: 24px;
    height: 24px;
}

.afn-category-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--afn-text-dark);
    margin-bottom: 4px;
}
.afn-category-card__desc {
    font-size: 0.8125rem;
    color: var(--afn-text-light);
    line-height: 1.4;
}

/* ---------- FLEET CONTROLS ---------- */
.afn-fleet__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.afn-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.afn-filter-tab {
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.875rem;
    min-height: 44px;
    font-weight: 500;
    color: var(--afn-text-medium);
    background: var(--afn-bg-white);
    border: 1px solid var(--afn-border);
    cursor: pointer;
    transition: all var(--afn-transition);
}
.afn-filter-tab:hover {
    border-color: var(--afn-accent);
    color: var(--afn-accent-dark);
}
.afn-filter-tab--active {
    background: var(--afn-primary);
    color: #fff;
    border-color: var(--afn-primary);
}
.afn-filter-tab--active:hover {
    background: var(--afn-primary-blue);
    border-color: var(--afn-primary-blue);
    color: #fff;
}

.afn-sort-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.afn-sort-control__label {
    font-size: 0.8125rem;
    color: var(--afn-text-light);
    font-weight: 500;
    white-space: nowrap;
}

.afn-sort-control__select {
    padding: 8px 32px 8px 14px;
    border: 1px solid var(--afn-border);
    border-radius: var(--afn-radius-sm);
    font-family: var(--afn-font);
    font-size: 0.8125rem;
    color: var(--afn-text-dark);
    background: var(--afn-bg-white);
    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='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color var(--afn-transition);
}
.afn-sort-control__select:focus {
    outline: 2px solid var(--afn-accent);
    outline-offset: 2px;
    border-color: var(--afn-accent);
}

/* ---------- VEHICLE CARDS ---------- */
.afn-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 28px;
}

.afn-vehicle-card {
    background: var(--afn-bg-white);
    border-radius: var(--afn-radius-lg);
    overflow: hidden;
    box-shadow: var(--afn-shadow-sm);
    transition: all var(--afn-transition);
    border: 1px solid transparent;
}
.afn-vehicle-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--afn-shadow-lg);
    border-color: rgba(212, 175, 55, 0.2);
}

.afn-vehicle-card__image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #e8edf2, #d1d8e0);
}

.afn-vehicle-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.afn-vehicle-card:hover .afn-vehicle-card__image {
    transform: scale(1.05);
}

/* Placeholder for vehicles without images */
.afn-vehicle-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8edf2 0%, #d1d8e0 100%);
    color: var(--afn-text-light);
}
.afn-vehicle-card__image-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.4;
}
.afn-vehicle-card__image-placeholder span {
    margin-top: 8px;
    font-size: 0.75rem;
    opacity: 0.5;
}

.afn-vehicle-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.03em;
    z-index: 1;
}

.afn-vehicle-card__body {
    padding: 24px;
}

.afn-vehicle-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--afn-text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.afn-vehicle-card__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.afn-vehicle-card__spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--afn-text-medium);
}
.afn-vehicle-card__spec svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--afn-text-light);
}

.afn-vehicle-card__divider {
    height: 1px;
    background: var(--afn-border);
    margin-bottom: 20px;
}

.afn-vehicle-card__pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.afn-vehicle-card__price-label {
    font-size: 0.8125rem;
    color: var(--afn-text-light);
    font-weight: 400;
}

.afn-vehicle-card__price {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--afn-accent-dark);
    line-height: 1;
}

.afn-vehicle-card__price-suffix {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--afn-text-medium);
}

.afn-vehicle-card__price-note {
    font-size: 0.75rem;
    color: var(--afn-text-light);
    margin-bottom: 8px;
}

.afn-vehicle-card__duration {
    font-size: 0.75rem;
    color: var(--afn-text-light);
    margin-bottom: 20px;
}

.afn-vehicle-card__actions {
    display: flex;
    gap: 10px;
}
.afn-vehicle-card__actions .afn-btn {
    flex: 1;
    justify-content: center;
}

/* ---------- CHI SIAMO / ABOUT ---------- */
.afn-credentials-grid {
    margin-bottom: 48px;
}

.afn-about-mission {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}
.afn-about-mission__text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    font-weight: 400;
}

.afn-guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 20px;
}

.afn-guarantee-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    transition: all var(--afn-transition);
}
.afn-guarantee-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(212, 175, 55, 0.25);
}

.afn-guarantee-card__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--afn-accent);
}
.afn-guarantee-card__icon svg {
    width: 22px;
    height: 22px;
}

.afn-guarantee-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}
.afn-guarantee-card__desc {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

/* Certifications */
.afn-certifications {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.afn-certification-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    color: rgba(255,255,255,0.7);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all var(--afn-transition);
}
.afn-certification-chip:hover {
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--afn-accent);
}
.afn-certification-chip svg {
    width: 16px;
    height: 16px;
    color: var(--afn-accent);
}

/* ---------- FOOTER ---------- */
.afn-footer {
    background: #111821;
    padding: 60px 0 32px;
    color: rgba(255,255,255,0.5);
}

.afn-footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 28px;
}

.afn-footer__brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.afn-footer__logo-img {
    width: auto;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.afn-footer__logo-placeholder {
    width: 48px;
    height: 48px;
    background: var(--afn-accent);
    color: var(--afn-primary);
    border-radius: var(--afn-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    flex-shrink: 0;
}

.afn-footer__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.afn-footer__company {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

.afn-footer__piva,
.afn-footer__address {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.45);
}

.afn-footer__email {
    font-size: 0.875rem;
    color: var(--afn-accent);
    font-weight: 500;
    margin-top: 4px;
}
.afn-footer__email:hover {
    color: var(--afn-accent-light);
}

.afn-footer__links {
    display: flex;
    gap: 28px;
}
.afn-footer__links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    transition: color var(--afn-transition);
}
.afn-footer__links a:hover {
    color: var(--afn-accent);
}

.afn-footer__bottom {
    text-align: center;
}

.afn-footer__disclaimer {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 8px;
    line-height: 1.5;
}

.afn-footer__copyright {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

/* ---------- MODAL ---------- */
.afn-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 24px;
}
.afn-modal.active {
    opacity: 1;
    pointer-events: all;
}

.afn-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.afn-modal__container {
    position: relative;
    background: var(--afn-bg-white);
    border-radius: var(--afn-radius-xl);
    max-width: 950px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--afn-shadow-xl);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.afn-modal.active .afn-modal__container {
    transform: scale(1) translateY(0);
}

.afn-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--afn-text-medium);
    z-index: 10;
    transition: all var(--afn-transition);
    border: none;
    cursor: pointer;
    line-height: 1;
}
.afn-modal__close:hover {
    background: rgba(0,0,0,0.1);
    color: var(--afn-text-dark);
}

.afn-modal__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

/* Modal Gallery */
.afn-modal__gallery {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.afn-modal__main-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--afn-radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, #e8edf2, #d1d8e0);
}
.afn-modal__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.afn-modal__thumbnails {
    display: flex;
    gap: 8px;
}
.afn-modal__thumbnail {
    width: 64px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--afn-transition);
    background: linear-gradient(135deg, #e8edf2, #d1d8e0);
}
.afn-modal__thumbnail--active {
    border-color: var(--afn-accent);
}
.afn-modal__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal Details */
.afn-modal__details {
    padding: 40px 36px 36px 12px;
    display: flex;
    flex-direction: column;
}

.afn-modal__vehicle-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    width: fit-content;
}

.afn-modal__vehicle-name {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--afn-text-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.afn-modal__vehicle-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}
.afn-modal__vehicle-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--afn-accent-dark);
}
.afn-modal__vehicle-price-suffix {
    font-size: 1rem;
    color: var(--afn-text-medium);
    font-weight: 500;
}

.afn-modal__vehicle-meta {
    font-size: 0.8125rem;
    color: var(--afn-text-light);
    margin-bottom: 28px;
}

.afn-modal__section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--afn-text-light);
    margin-bottom: 12px;
    margin-top: 20px;
}

/* Modal Specs */
.afn-modal__specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.afn-modal__spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--afn-text-medium);
    padding: 6px 0;
}
.afn-modal__spec-item svg {
    width: 16px;
    height: 16px;
    color: var(--afn-text-light);
    flex-shrink: 0;
}
.afn-modal__spec-item strong {
    color: var(--afn-text-dark);
    font-weight: 600;
}

/* Modal Features / Included */
.afn-modal__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}
.afn-modal__list-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--afn-text-medium);
    padding: 3px 0;
}
.afn-modal__list-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.afn-modal__list-item--feature svg {
    color: var(--afn-text-light);
}
.afn-modal__list-item--included svg {
    color: var(--afn-success);
}

.afn-modal__cta {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    gap: 10px;
}
.afn-modal__cta .afn-btn {
    flex: 1;
    justify-content: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .afn-benefits-layout {
        gap: 40px;
    }
    .afn-benefits-layout__left {
        flex: 0 0 220px;
    }
    .afn-guarantees-grid {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .afn-header {
        padding: 16px 0;
    }
    .afn-header--scrolled {
        padding: 10px 0;
    }
    .afn-header__logo-img {
        height: 52px;
    }
    .afn-header--scrolled .afn-header__logo-img {
        height: 40px;
    }
    .afn-header__name {
        font-size: 1.125rem;
    }
    .afn-header__tagline {
        font-size: 0.625rem;
    }

    .afn-header__nav {
        display: none;
    }
    .afn-header__hamburger {
        display: flex;
    }

    .afn-section {
        padding: 64px 0;
    }

    .afn-section__header {
        margin-bottom: 40px;
    }

    .afn-hero__content {
        padding: 40px 0 60px;
    }

    .afn-categories-grid {
        gap: 12px;
    }

    .afn-benefits-layout {
        flex-direction: column;
        gap: 24px;
    }
    .afn-benefits-layout__left {
        flex: none;
        position: static;
        text-align: center;
    }
    .afn-benefits-layout__left .afn-section__title,
    .afn-benefits-layout__left .afn-section__subtitle {
        text-align: center;
    }
    .afn-benefits-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .afn-section--compact {
        padding: 40px 0;
    }

    .afn-fleet__controls {
        flex-direction: column;
        align-items: stretch;
        overflow: hidden;
    }
    .afn-filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        scrollbar-width: none;
    }
    .afn-filter-tabs::-webkit-scrollbar {
        display: none;
    }
    .afn-filter-tab {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .afn-vehicles-grid {
        grid-template-columns: 1fr;
    }

    /* Modal responsive */
    .afn-modal {
        padding: 0;
        align-items: flex-end;
    }
    .afn-modal__container {
        max-height: 95vh;
        border-radius: var(--afn-radius-xl) var(--afn-radius-xl) 0 0;
    }
    .afn-modal__body {
        grid-template-columns: 1fr;
    }
    .afn-modal__gallery {
        padding: 20px 20px 12px;
    }
    .afn-modal__details {
        padding: 12px 24px 32px;
    }
    .afn-modal__cta {
        flex-direction: column;
    }

    /* Footer responsive */
    .afn-footer__inner {
        flex-direction: column;
        gap: 32px;
    }
    .afn-footer__links {
        flex-wrap: wrap;
        gap: 16px 24px;
    }
}

@media (max-width: 480px) {
    .afn-hero__stat-value {
        font-size: 1.5rem;
    }
    .afn-credential-item__value {
        font-size: 2rem;
    }
    .afn-vehicle-card__price {
        font-size: 1.5rem;
    }
}

/* ---------- HIGH-DPI / RETINA ---------- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Hairline borders for crisp rendering on Retina */
    .afn-vehicle-card,
    .afn-benefit-card,
    .afn-category-card,
    .afn-guarantee-card,
    .afn-certification-chip,
    .afn-filter-tab,
    .afn-sort-control__select {
        border-width: 0.5px;
    }
    .afn-footer__inner {
        border-bottom-width: 0.5px;
    }

    /* Sharper shadows on high-DPI */
    .afn-vehicle-card {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
    }
    .afn-vehicle-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 36px rgba(0, 0, 0, 0.12);
    }
}

/* Touch target minimum sizes for mobile */
@media (pointer: coarse) {
    .afn-btn {
        min-height: 44px;
        min-width: 44px;
    }
    .afn-filter-tab {
        min-height: 44px;
    }
    .afn-sort-control__select {
        min-height: 44px;
    }
    .afn-modal__close {
        min-width: 44px;
        min-height: 44px;
    }
    .afn-modal__thumbnail {
        min-width: 44px;
        min-height: 44px;
    }
    .afn-footer__links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* ---------- Focus Visible (keyboard navigation) ---------- */
:focus-visible {
    outline: 2px solid var(--afn-accent);
    outline-offset: 2px;
}
.afn-btn:focus-visible {
    outline: 2px solid var(--afn-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
}
.afn-filter-tab:focus-visible {
    outline: 2px solid var(--afn-accent);
    outline-offset: 2px;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    html { scroll-behavior: auto; }
}

/* ---------- Print ---------- */
@media print {
    .afn-header, .afn-hero__scroll-arrow, .afn-modal,
    .afn-fleet__controls, .afn-vehicle-card__actions,
    .afn-hamburger, .afn-mobile-nav { display: none !important; }
    .afn-hero { min-height: auto; padding: 40px 0; background: #fff !important; color: #000 !important; }
    .afn-section { padding: 30px 0; }
    body { font-size: 12pt; color: #000; }
    .afn-footer { background: #fff !important; color: #000 !important; }
    .afn-footer__disclaimer, .afn-footer__copyright, .afn-footer__info { color: #333 !important; }
}
