/* 
Theme Name: Planet Quiz Patente - Modern 2026
Description: Modern overrides for the Planet Quiz theme.
Version: 2.0.0
*/

:root {
    /* Brand Colors */
    --primary-color: #00BF6F;
    /* Vibrant Green from logo/images */
    --primary-dark: #008f53;
    --secondary-color: #00529b;
    /* Blue from text */
    --accent-color: #FFD700;
    /* Gold/Yellow for highlights */
    --text-main: #2d3748;
    --text-light: #718096;
    --bg-body: #f7fafc;
    --bg-card: #ffffff;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 1200px;

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition-base: all 0.3s ease;
}

/* Base Resets & Typography */
body {
    background: var(--bg-body);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    min-width: 0 !important;
    /* Override legacy fixed width */
}

a {
    transition: var(--transition-base);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout Containers */
.pqp-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
}

.main {
    width: 100% !important;
    /* Override legacy */
    max-width: 100% !important;
}

/* Header Styling */
header {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
    height: auto !important;
    /* Override legacy fixed height */
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .pqp-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.pqp-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Navigation Modernization */
nav {
    float: none !important;
    width: auto !important;
    background: transparent !important;
}

nav ul {
    display: flex;
    gap: var(--spacing-sm);
    margin: 0;
    padding: 0;
}

nav li {
    float: none !important;
    background: none !important;
    /* Remove legacy bg images */
    width: auto !important;
    padding: 0 !important;
}

nav li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-main);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

nav li a:hover,
nav li.current-menu-item a {
    background: var(--secondary-color);
    color: white !important;
}

/* Hero Section */
.pqp-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    text-align: center;
}

.pqp-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.pqp-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Images Collage */
.pqp-hero-images {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-img {
    border-radius: var(--radius-md);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
    max-width: 300px;
    width: 30%;
    object-fit: cover;
}

.hero-img:hover {
    transform: translateY(-5px) scale(1.02);
    z-index: 10;
    border-color: white;
}

.img-2 {
    transform: translateY(-15px);
    /* Lift the middle image slightly */
}

@media (max-width: 768px) {
    .pqp-hero-images {
        display: none;
        /* Hide on small mobile to save space, or stack them */
    }
}


/* Feature Cards Grid */
.pqp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.pqp-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pqp-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.pqp-card h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.pqp-card img {
    margin: var(--spacing-md) auto;
    max-height: 120px;
    object-fit: contain;
}

.pqp-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 191, 111, 0.3);
    transition: var(--transition-base);
}

.pqp-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    color: white;
}

/* Driving Schools Section */
.pqp-autoscuole-section {
    background: white;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid #e2e8f0;
}

.pqp-autoscuole-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pqp-autoscuole-grid {
        grid-template-columns: 1fr;
    }

    header .pqp-container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}