/* Hero Section Styles */
.hero-section {
    background-color: #f5f5f7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    margin: 0;
    margin-top: 48px; /* Compensate for fixed navbar */
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 500px;
    z-index: 3;
}

.hero-text {
    text-align: left;
    margin-top: 70px;
}

.hero-logo {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-logo-icon {
    height: 72px;
    width: 72px;
    object-fit: contain;
}

.hero-title-text {
    font-size: 72px;
    font-weight: 500;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    letter-spacing: 0.01em;
    line-height: 1.05;
    display: block;
    white-space: nowrap;
}

.hero-tagline {
    font-size: 24px;
    color: #1d1d1f;
    font-weight: 500;
    line-height: 1.381;
    letter-spacing: 0.011em;
    margin-bottom: 40px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    pointer-events: auto;
}

.btn-demo,
.btn-buy {
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-align: center;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.btn-demo {
    background-color: transparent;
    color: #1d1d1f;
    border: 1px solid rgba(0, 0, 0, 0.16);
}

.btn-demo:hover {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.24);
    transform: scale(1.02);
}

.btn-buy {
    background-color: #1d1d1f;
    color: #ffffff;
    border: 1px solid #1d1d1f;
}

.btn-buy:hover {
    background-color: #000000;
    border-color: #000000;
    transform: scale(1.02);
}

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

.hero-image::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background: linear-gradient(to right, #f5f5f7 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-portrait-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    transform: scale(1.2);
    position: relative;
    z-index: 1;
}

/* Responsive Design */

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
    .hero-container {
        max-width: 960px;
        padding: 0 20px;
    }

    .hero-title-text {
        font-size: 60px;
    }

    .hero-logo-icon {
        height: 60px;
        width: 60px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        height: 100vh; /* Forza altezza viewport completa */
        padding: 80px 20px 60px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 60px; /* Aumentato spaziatura immagine-contenuto */
        height: 100%;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        order: 2;
    }

    .hero-text {
        text-align: center;
        margin-top: 0;
    }

    .hero-logo {
        justify-content: center;
        align-items: center;
        gap: 16px; /* Aumentato gap logo-testo */
        margin-bottom: 32px; /* Più spaziatura verso tagline */
    }

    .hero-logo-icon {
        height: 52px; /* Più grande */
        width: 52px;
    }

    .hero-title-text {
        font-size: 42px; /* Ridotto per stare su una riga */
        white-space: nowrap; /* Forza riga unica */
        line-height: 1.1;
    }

    .hero-tagline {
        font-size: 19px; /* Ridotto per stare su una riga */
        margin-bottom: 40px; /* Più spaziatura verso buttons */
        white-space: nowrap; /* Forza riga unica */
    }

    .hero-buttons {
        justify-content: center;
        gap: 16px; /* Più spaziatura tra bottoni */
    }

    .hero-image {
        order: 1;
        width: 100%;
    }

    .hero-image::before {
        display: none;
    }

    .hero-portrait-image {
        max-width: 480px; /* Ancora più grande */
        transform: scale(1);
        border-radius: 24px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 640px) {
    .hero-section {
        height: 100vh; /* Altezza viewport completa */
        min-height: 100vh;
        padding: 70px 16px 50px 16px;
    }

    .hero-container {
        gap: 50px; /* Aumentato spaziatura */
        height: 100%;
        justify-content: center;
    }

    .hero-text {
        margin-top: 0;
    }

    .hero-logo {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 14px; /* Aumentato */
        margin-bottom: 28px; /* Più spaziatura */
        align-items: center;
        justify-content: center;
    }

    .hero-logo-icon {
        height: 44px; /* Più grande */
        width: 44px;
        flex-shrink: 0;
    }

    .hero-title-text {
        font-size: 34px; /* Ridotto per stare su una riga */
        letter-spacing: 0.005em;
        white-space: nowrap; /* Forza riga unica */
        line-height: 1.1;
        text-align: center;
    }

    .hero-tagline {
        font-size: 17px; /* Ridotto per stare su una riga */
        margin-bottom: 36px; /* Più spaziatura */
        line-height: 1.3;
        white-space: nowrap; /* Forza riga unica */
    }

    .btn-demo,
    .btn-buy {
        padding: 14px 28px; /* Bottoni più grandi */
        font-size: 17px;
    }

    .hero-portrait-image {
        max-width: 420px; /* Ancora più grande */
        border-radius: 24px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.08);
    }

    .hero-buttons {
        flex-direction: row;
        width: 100%;
        gap: 14px; /* Più spaziatura */
        justify-content: center;
    }

    .btn-demo,
    .btn-buy {
        width: auto;
        flex: 1;
        max-width: 180px; /* Bottoni più larghi */
        min-width: 120px;
        white-space: nowrap;
    }
}

/* Extra Small Mobile */
@media (max-width: 380px) {
    .hero-section {
        padding: 60px 16px 40px 16px;
    }

    .hero-container {
        gap: 45px;
    }

    .hero-logo {
        margin-bottom: 24px;
    }

    .hero-title-text {
        font-size: 28px; /* Ridotto per stare su una riga */
        white-space: nowrap; /* Forza riga unica */
    }

    .hero-logo-icon {
        height: 40px; /* Più grande */
        width: 40px;
    }

    .hero-tagline {
        font-size: 15px; /* Ridotto per stare su una riga */
        margin-bottom: 32px;
        white-space: nowrap; /* Forza riga unica */
    }

    .btn-demo,
    .btn-buy {
        padding: 12px 20px; /* Bottoni più grandi */
        font-size: 16px;
    }

    .hero-portrait-image {
        max-width: 380px; /* Ancora più grande */
        border-radius: 24px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.08);
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 30px 20px;
    }

    .hero-container {
        flex-direction: row;
        gap: 30px;
    }

    .hero-content {
        order: 1;
        flex: 1;
    }

    .hero-image {
        order: 2;
        flex: 0 0 auto;
    }

    .hero-image::before {
        display: none;
    }

    .hero-portrait-image {
        max-width: 250px;
        border-radius: 16px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 0 5px 10px rgba(0, 0, 0, 0.06);
    }

    .hero-text {
        text-align: left;
        margin-top: 0;
    }

    .hero-logo {
        justify-content: flex-start;
    }

    .hero-buttons {
        justify-content: flex-start;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text > * {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.hero-logo {
    animation-delay: 0.1s;
}

.hero-logo-icon {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.05s forwards;
    opacity: 0;
}

.hero-tagline {
    animation-delay: 0.2s;
}

.hero-buttons {
    animation-delay: 0.3s;
}

.hero-portrait-image {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    opacity: 0;
}