/* CSS Variables */
:root {
    --italian-green: #009246;
    --italian-white: #ffffff;
    --italian-red: #ce2b37;
    --dark-green: #006633;
    --light-green: #e8f5e9;
    --text-dark: #1a1a2e;
    --text-light: #6b7280;
    --background: #fafafa;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    width: 36px;
    height: 24px;
    border-radius: 3px;
    overflow: hidden;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--italian-green) 0%, var(--dark-green) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 40px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--italian-green) 33%, var(--italian-white) 33%, var(--italian-white) 66%, var(--italian-red) 66%);
}

.hero-content {
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: white;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: var(--italian-green);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 60px;
    color: var(--text-dark);
}

/* About Section */
.about {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--background);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.about-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--italian-green);
}

.about-icon svg {
    width: 100%;
    height: 100%;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--italian-green);
}

.about-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Join Section */
.join {
    background: linear-gradient(135deg, var(--light-green) 0%, #f0fff4 100%);
}

.join-card {
    background: white;
    border-radius: 24px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.join-content {
    flex: 1;
}

.join-content h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.join-content p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.classroom-code {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--background);
    padding: 16px 24px;
    border-radius: 12px;
    border: 2px solid var(--italian-green);
}

.code-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-value {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--italian-green);
    letter-spacing: 2px;
}

.copy-btn {
    background: var(--italian-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--dark-green);
}

.join-decoration {
    position: absolute;
    right: 40px;
    opacity: 0.8;
}

.join-decoration img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* Features Section */
.features {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--background);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: scale(1.05);
    background: var(--light-green);
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    color: var(--italian-green);
    display: block;
}

.feature-item h4 {
    font-size: 1rem;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.footer-content p {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-icon {
    width: 48px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
}

.footer-tagline {
    opacity: 0.7;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 16px 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .join-card {
        padding: 40px 30px;
        flex-direction: column;
        text-align: center;
    }

    .classroom-code {
        flex-direction: column;
        gap: 12px;
    }

    .join-decoration {
        position: relative;
        right: auto;
        margin-top: 20px;
    }

    .join-decoration img {
        width: 80px;
        height: 80px;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

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

    .code-value {
        font-size: 1.2rem;
    }
}
