/* ============================================
   ARTIFIX LANDING — STYLES.CSS
   ============================================ */

/* === RESET & VARIABILI === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1f77b4;
    --primary-dark: #1565a0;
    --primary-light: #4a9fd4;
    --accent: #00a8e8;
    --text: #1a1a1a;
    --text-muted: #555;
    --text-light: #888;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-dark: #0d1b2a;
    --border: #e5e7eb;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --font: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
    --container: 1200px;
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--primary-dark);
}

/* === CONTAINER === */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* === HEADER === */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 24px;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    height: 44px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.main-nav a:not(.btn-nav-cta):hover {
    color: var(--primary);
}

.main-nav a:not(.btn-nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.main-nav a:not(.btn-nav-cta):hover::after {
    width: 100%;
}

.btn-nav-cta {
    background: var(--primary);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.btn-nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 119, 180, 0.3);
}

/* Menu mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* === HERO === */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--bg-dark);
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--primary);
    position: relative;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 560px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 8px;
}

.hero-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 320px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    font-family: inherit;
    white-space: nowrap;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 119, 180, 0.35);
}

.btn-secondary {
    background: #fff;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 119, 180, 0.25);
}

/* === SECTIONS === */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--bg-dark);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === FEATURES === */
.section-features {
    background: var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--bg-dark);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === FORMATS === */
.section-formats {
    background: var(--bg-alt);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.format-category {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.format-category:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.format-category h3 {
    font-size: 1.05rem;
    color: var(--bg-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.format-category p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    letter-spacing: 0.5px;
}

.formats-cta {
    text-align: center;
}

/* === WHY === */
.section-why {
    background: var(--bg);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.why-card {
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.why-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.why-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    line-height: 1;
}

.why-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--bg-dark);
    font-weight: 700;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* === SPONSOR === */
.section-sponsor {
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f1fb 100%);
}

.sponsor-banner-large {
    max-width: 500px;
    margin: 0 auto 32px;
    text-align: center;
    padding: 28px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.sponsor-banner-large:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.sponsor-banner-large img {
    margin: 0 auto;
    max-height: 120px;
    object-fit: contain;
}

.sponsor-caption {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sponsor-cta {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.sponsor-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--bg-dark);
    font-weight: 700;
}

.sponsor-cta p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.65;
}

/* === FAQ === */
.section-faq {
    background: var(--bg-alt);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list details {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 4px 20px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.faq-list details[open] {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}

.faq-list summary {
    padding: 18px 0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--bg-dark);
    transition: color var(--transition);
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 300;
    transition: transform var(--transition);
}

.faq-list details[open] summary::after {
    content: '−';
}

.faq-list summary:hover {
    color: var(--primary);
}

.faq-list details p {
    padding: 0 0 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.faq-list details p a {
    color: var(--primary);
    font-weight: 600;
}

/* === CONTACTS === */
.section-contacts {
    background: var(--bg);
}

.contacts-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.contact-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    line-height: 1;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--bg-dark);
    font-weight: 700;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-card p a {
    font-weight: 600;
    color: var(--primary);
}

.contact-note {
    margin-top: 10px;
    font-size: 0.85rem !important;
    color: var(--text-light) !important;
}

/* === FOOTER === */
.site-footer {
    background: var(--bg-dark);
    color: #e8eef7;
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 48px;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.85rem;
    color: #8ba3bf;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #fff;
    font-weight: 700;
}

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

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #b8c9dc;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #8ba3bf;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

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

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta,
    .hero-features {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 220px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .formats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacts-inner {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 12px 16px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 8px 0;
    }

    .btn-nav-cta {
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .section {
        padding: 60px 0;
    }

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

    .hero {
        padding: 50px 0 40px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .footer-logo {
        margin: 0 auto 12px;
    }

    .container {
        padding: 0 16px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.7rem;
    }

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

    .feature-card,
    .why-card,
    .contact-card {
        padding: 24px 20px;
    }
}

/* === SCROLL ANIMATIONS === */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .why-card,
    .format-category,
    .contact-card {
        animation: fadeInUp 0.6s ease both;
    }
}

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

/* === ACCESSIBILITÀ === */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
