/* ===================================================================
   🎨 VARIABILI DI DESIGN
=================================================================== */
:root {
    --primary-color: #3f51b5;
    --primary-dark: #303f9f;
    --secondary-color: #00bcd4;
    --accent-color: #ff9800;
    --success-color: #4CAF50;

    --text-dark: #212121;
    --text-medium: #424242;
    --text-light: #757575;
    --text-white: #ffffff;

    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --bg-dark: #303030;

    --border-color: #e0e0e0;
    --shadow-subtle: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-strong: 0 8px 24px rgba(0,0,0,0.15);

    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;

    --transition-speed: 0.3s ease-in-out;
}

/* ===================================================================
   🧩 RESET & BASE
=================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-medium);
    background: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
}

.header-container, .section-container, .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================================================
   📌 HEADER
=================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-subtle);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-logo .logo {
    height: 45px;
    transition: transform var(--transition-speed);
}

.header-logo .logo:hover {
    transform: scale(1.05);
}

/* ===================================================================
   🌟 HERO
=================================================================== */
.hero-section {
    min-height: 100vh;
    padding: 120px 2rem 2rem;
    text-align: center;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    z-index: -1;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1), rgba(255,255,255,0.05));
}

.hero-texture-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 20px 20px;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    z-index: 1;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.highlight-text {
    color: var(--accent-color);
    position: relative;
}

.hero-description {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* ===================================================================
   📥 DOWNLOAD SECTION
=================================================================== */
.hero-download {
    background: rgba(255,255,255,0.08);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.download-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.download-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.download-card {
    background: #fff;
    border-radius: var(--border-radius-md);
    padding: 2rem 1.5rem;
    color: var(--text-dark);
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.platform-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: white;
}

.platform-icon.windows {
    background: linear-gradient(135deg, #0078d4, #106ebe);
}

.platform-icon.macos {
    background: linear-gradient(135deg, #333, #000);
}

.download-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.download-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.feature-mini-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-mini-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: 0.3rem;
}

.feature-mini-list i {
    color: var(--success-color);
    font-size: 0.7rem;
}

/* ===================================================================
   🔘 BUTTONS
=================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.btn-download {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-subtle);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

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

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

/* ===================================================================
   📄 CONTENT SECTIONS
=================================================================== */
.content-section {
    padding: 4rem 2rem;
    background: var(--bg-white);
}

.locations-section {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-icon {
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================================================
   📦 CARD & GRID (Sedi)
=================================================================== */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-subtle);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.card-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.feature-list i {
    color: var(--success-color);
    font-size: 0.8rem;
}

/* ===================================================================
   ⚫ FOOTER
=================================================================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 4rem 0 2rem;
}

.footer-primary {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 3rem;
}

.footer-brand-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.footer-brand-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-style: italic;
    margin: 1rem 0 !important;
}

.footer-email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-email-link:hover {
    color: var(--accent-color);
}

.footer-links-group h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.link-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link-item {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-link-item:hover {
    color: var(--primary-color);
}

.footer-secondary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
}

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

/* ===================================================================
   📱 RESPONSIVE
=================================================================== */
@media (max-width: 768px) {
    .header {
        height: auto;
        padding: 1rem 0;
    }

    .header-container {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .header-logo .logo {
        height: 35px;
    }

    .hero-section {
        padding: 140px 1rem 2rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-download {
        padding: 1.5rem 1rem;
    }

    .download-grid,
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.3rem;
    }

    .footer-primary {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-secondary {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-download {
        margin: 1rem -1rem 0;
        border-radius: 0;
    }

    .download-card {
        padding: 1.2rem;
    }

    .platform-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
