/* CSS Moderno 2025 - Design System Completo */

/* Variabili CSS per design consistente */
:root {
    --primary-color: #1A4A5E;
    --secondary-color: #2A7A9E;
    --accent-color: #25D366;
    --text-dark: #1a1a1a;
    --text-medium: #444;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset e Base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Sections - Pulite senza overlay */
.hero {
    position: relative;
    height: 70vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    animation: fadeIn 1s ease-in;
}

/* IMPORTANTE: Nessun overlay blu - solo immagine pulita */
.hero-background::after,
.hero::after {
    display: none !important;
    content: none !important;
}

.hero .hero-content {
    text-align: left;
    color: #ffffff !important;
    padding: 40px;
    max-width: 700px;
    margin-left: 8%;
    position: relative;
    z-index: 1;
    animation: slideInLeft 0.8s ease-out;
}

.hero .hero-content * {
    color: #ffffff !important;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff !important;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    opacity: 1;
    font-weight: 400;
    color: #ffffff !important;
}

.hero button,
.hero .btn {
    color: #ffffff !important;
}

/* Cards Moderne */
.modern-card,
.annuncio-card,
.collaboration-card,
.veicolo-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.modern-card:hover,
.annuncio-card:hover,
.collaboration-card:hover,
.veicolo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 74, 94, 0.15);
}

/* Grid Moderni */
.annunci-grid,
.collaborations-grid,
.veicoli-grid {
    display: grid;
    gap: 2rem;
    animation: fadeIn 0.6s ease-out;
}

.annunci-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.collaborations-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Immagini nelle Card */
.annuncio-card img,
.collaboration-card img,
.veicolo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.annuncio-card:hover img,
.collaboration-card:hover img,
.veicolo-card:hover img {
    transform: scale(1.08);
}

/* Tipografia Moderna */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-dark);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

/* Bottoni Moderni */
.btn-primary,
.btn-modern {
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(26, 74, 94, 0.25);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary:hover,
.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 74, 94, 0.35);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.btn-primary:active,
.btn-modern:active {
    transform: translateY(-1px);
}

/* Form Moderni */
.form-select,
.form-control {
    border-radius: var(--radius-sm);
    border: 2px solid rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-select:focus,
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 74, 94, 0.1);
    outline: none;
}

/* Sezioni */
section {
    padding: 4rem 0;
    animation: fadeIn 0.8s ease-out;
}

/* Filtri Bar Moderna */
.filters-bar {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

/* Animazioni */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Utility Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideInUp 0.8s ease-out;
}

/* Responsive */
@media (max-width: 992px) {
    .annunci-grid,
    .collaborations-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .annunci-grid,
    .collaborations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero .hero-content {
        margin-left: 5%;
        padding: 20px;
    }
}
