/* =========================================
   VARIABILI E RESET
========================================= */
:root {
    --primary: #3182CE; /* Indigo morbido e fiducioso */
    --primary-hover: #3182CE;
    --bg-light: #FFFFFF;
    --bg-offwhite: #F9FAFB;
    --text-main: #111827;
    --text-muted: #4B5563;
    --radius: 16px;
    --transition: all 0.3s ease;
}

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

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

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

/* =========================================
   TIPOGRAFIA E BOTTONI
========================================= */
h1, h2, h3 {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.125rem; }

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn:hover, .btn:focus {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    outline: none;
}

.btn:focus-visible, input:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}
/* =========================================
   PAGINA TESTO
========================================= */
.text-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 20px;
    line-height: 1.6;
}
.text-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.text-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}
.text-content p {
    margin-bottom: 1rem;
    color: #333;
}
.text-content a {
    color: #000;
    font-weight: 500;
}

/* =========================================
   LAYOUT STRUTTURALE
========================================= */
 .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

header {
    padding: 1.5rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* =========================================
   LANG SWITCHER
========================================= */
 .lang-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.lang-switcher a {
    text-decoration: none;
    color: #555;
    padding: 0.2rem 0.4rem;
    transition: color 0.3s ease;
}

.lang-switcher a:hover, .lang-switcher a.active {
    color: #000;
    font-weight: 700;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    padding: 4rem 0 2rem;
    text-align: center;
}

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

.hero-mockup {
    margin-top: 3rem;
    position: relative;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    background-color: #E5E7EB;
    border-radius: 40px;
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 8px solid #F3F4F6;
}

.hero-mockup::before {
    content: 'Coming soon';
    color: #9CA3AF;
    font-weight: 600;
}

/* =========================================
   FEATURES SECTION
========================================= */
.features {
    padding: 5rem 0;
    background-color: var(--bg-offwhite);
}

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

.feature-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 5rem;
    align-items: center;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-content {
    flex: 1;
    text-align: center;
}

.feature-image {
    flex: 1;
    width: 100%;
    max-width: 300px;
    height: 500px;
    background-color: #E5E7EB;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-weight: 600;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-tag {
    display: inline-block;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================
   BOTTOM CTA & FOOTER
========================================= */
.bottom-cta {
    padding: 6rem 0;
    text-align: center;
    background-color: var(--bg-light);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 450px;
    margin: 0 auto;
}

input[type="email"] {
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 2px solid #E5E7EB;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

input[type="email"]:focus {
    border-color: var(--primary);
    outline: none;
}

.success-message {
    display: none;
    color: #059669;
    background-color: #D1FAE5;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 1rem;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    border-top: 1px solid #E5E7EB;
    font-size: 0.875rem;
}
.footer_link {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.footer_link:hover {
    color: var(--primary);
}

/* =========================================
   MEDIA QUERIES (TABLET & DESKTOP)
========================================= */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }

    .hero p {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        font-size: 1.25rem;
    }

    .feature-block {
        flex-direction: row;
        gap: 4rem;
        text-align: left;
    }

    .feature-block:nth-child(even) {
        flex-direction: row-reverse;
    }

    .feature-content {
        text-align: left;
    }

    .form-group {
        flex-direction: row;
    }

    .form-group input {
        flex: 1;
    }

    .form-group .btn {
        width: auto;
    }
}
