/* ===================================
   LANDING PAGE - EduFlow
   File: /css/landing.css
   =================================== */

/* Reset e Variabili */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
}

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

/* ===================================
   HEADER / NAVIGATION
   =================================== */

.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 5rem 0;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-feature i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-hero-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-note {
    font-size: 0.875rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-image {
    position: relative;
}

.hero-image .screenshot {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.hero-badge {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background: white;
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-badge i {
    font-size: 2rem;
    color: var(--primary-color);
}

.hero-badge strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.hero-badge span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-medium);
}

/* ===================================
   SECTIONS
   =================================== */

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-medium);
}

/* ===================================
   FEATURES
   =================================== */

.features {
    padding: 5rem 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
}

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

.feature-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.feature-badge {
    position: absolute;
    top: -0.75rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card > p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-medium);
}

.feature-list i {
    color: var(--secondary-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* ===================================
   SCREENSHOTS
   =================================== */

.screenshots {
    padding: 5rem 0;
    background: var(--bg-light);
}

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

.screenshot-item {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-caption {
    padding: 1.5rem;
}

.screenshot-caption h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.screenshot-caption p {
    color: var(--text-medium);
}

/* ===================================
   BENEFITS / TABS
   =================================== */

.benefits {
    padding: 5rem 0;
    background: var(--bg-white);
}

.benefits-tabs {
    margin-top: 3rem;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.tab-btn i {
    font-size: 1.25rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.benefit-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.benefit-text h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefit-list i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-list strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.benefit-list p {
    color: var(--text-medium);
}

.benefit-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

/* ===================================
   PRICING
   =================================== */

.pricing {
    padding: 5rem 0;
    background: var(--bg-light);
}

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

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    border-width: 3px;
}

.pricing-card.recommended {
    border-color: var(--accent-color);
    border-width: 3px;
}

.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-card.recommended .pricing-badge {
    background: var(--accent-color);
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.pricing-description {
    color: var(--text-medium);
}

.pricing-price {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.pricing-price .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.pricing-price .period {
    color: var(--text-medium);
    font-size: 1rem;
}

.pricing-limits {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.limit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-medium);
}

.limit-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-medium);
}

.pricing-features i {
    color: var(--secondary-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.pricing-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.pricing-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.pricing-note {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-medium);
}

.pricing-note i {
    color: var(--primary-color);
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.cta-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text > p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cta-feature i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.cta-form {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
}

.cta-form-content {
    text-align: center;
}

.cta-form-content h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.cta-form-content > p {
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.btn-cta-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.btn-cta-large:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cta-login {
    margin-top: 1.5rem;
    color: var(--text-medium);
    font-size: 0.875rem;
}

.cta-login a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.cta-login a:hover {
    text-decoration: underline;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

/* La prima colonna e' larga il doppio: ospita logo, claim e badge di
   conformita'. Le altre quattro sono gli elenchi di link. */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul a:hover {
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
    display: block;
    /* Logo reso tutto bianco su fondo scuro del footer (sfondo trasparente preservato) */
    filter: brightness(0) invert(1);
}

.footer-section > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.footer-compliance {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.compliance-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.compliance-badge i {
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-tech {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.footer-tech i {
    color: #ef4444;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .hero-content,
    .benefit-content,
    .cta-content {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    /* Con Guide e Blog il menu ha sei voci: fra i 768 e i 1024px lo spazio
       accanto a logo e pulsanti non basta piu' con un gap di 2rem, e le voci
       andrebbero a capo. */
    .nav-menu {
        gap: 1.25rem;
        font-size: 0.94rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid,
    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-link {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 3rem 0;
    }

    .pricing-price .price {
        font-size: 2.25rem;
    }
}
