/* CSS Variables per una palette chiara, moderna e tecnologica */
:root {
    --bg-color: #f4f7f6;
    --text-color: #2c3e50;
    --primary-color: #27ae60;
    --secondary-color: #064e3b;
    --accent-color: #20c997;
    --card-bg: rgba(255, 255, 255, 0.85);
    --border-color: rgba(39, 174, 96, 0.1);
    --shadow: 0 8px 32px 0 rgba(39, 174, 96, 0.07);
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-tech: 'Space Mono', monospace;
    --motherboard-color: '%2327ae60';
}

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

body {
    font-family: var(--font-tech);
    color: var(--text-color);
    background-color: var(--bg-color);
    /* Pattern scheda madre leggero nello sfondo */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.83v58.34l-.83.83H5.373l-.83-.83V.83l.83-.83h49.254zM53.5 2V58H6.5V2h47zM30 40.5c1.38 0 2.5 1.12 2.5 2.5s-1.12 2.5-2.5 2.5-2.5-1.12-2.5-2.5 1.12-2.5 2.5-2.5zm0-2c-2.485 0-4.5 2.015-4.5 4.5S27.515 47 30 47s4.5-2.015 4.5-4.5-2.015-4.5-4.5-4.5zm0-6.5c1.38 0 2.5 1.12 2.5 2.5s-1.12 2.5-2.5 2.5-2.5-1.12-2.5-2.5 1.12-2.5 2.5-2.5zm0-2c-2.485 0-4.5 2.015-4.5 4.5s2.015 4.5 4.5 4.5 4.5-2.015 4.5-4.5-2.015-4.5-4.5-4.5zm3.5-16.5c0-1.38-1.12-2.5-2.5-2.5s-2.5 1.12-2.5 2.5 1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5zm2 0c0 2.485-2.015 4.5-4.5 4.5S26.5 15.985 26.5 13.5 28.515 9 31 9s4.5 2.015 4.5 4.5z' fill='%2327ae60' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    line-height: 1.6;
    font-size: 1.05rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex-grow: 1;
}

/* Header Navbar */
.app-header {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header .logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-header .logo .icon {
    font-size: 1.8rem;
}

.app-header nav {
    display: flex;
    gap: 1.5rem;
}

.app-header nav a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.app-header nav a:hover,
.app-header nav a.active {
    background-color: var(--primary-color);
    color: white;
    border-radius: 0;
}

/* Pannelli con effetto glassmorphism */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

/* Badge Tech */
.tech-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-family: var(--font-tech);
    font-size: 1rem;
    font-weight: bold;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

/* Testi Home */
.hero {
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.hero h1 span {
    color: var(--primary-color);
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #555;
}

p {
    font-size: 1.15rem;
    color: #444;
}

.hero p {
    max-width: 750px;
    margin: 0.5rem auto 1.5rem;
}

/* Griglia Card */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: rgba(39, 174, 96, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Pulsanti */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.primary-btn:hover {
    background-color: #0056b3;
    color: white;
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: white;
}

.secondary-btn:hover {
    background-color: #032d22;
    color: white;
}

.btn .arrow {
    transition: transform 0.3s ease;
}

.btn:hover .arrow {
    transform: translateX(5px);
}

/* Video Section */
.video-section {
    text-align: center;
}

.video-section h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.video-section p {
    color: #666;
    margin-bottom: 2rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* Footer */
.app-footer {
    background: var(--card-bg);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: #777;
}

/* Placeholder Pages */
.placeholder-content {
    text-align: center;
    padding: 5rem 2rem;
}

.placeholder-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.placeholder-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .app-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .glass-panel {
        padding: 2rem 1.5rem;
    }
}
