/* P_001_main_page.css
 * Estratto da landing_demo_v5.php per migrazione MVC
 * Data: 2026-03-22
 */

/* CSS: RESET E BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

:root {
    --primary: #3b3954;
    --primary-dark: #2d2e42;
    --primary-light: #4a4b6a;
    --accent-red: #dc2626;
    --accent-green: #059669;
    --white: #ffffff;
    --black: #000000;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--primary);
    margin-bottom: var(--space-4);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.15rem; }

p {
    font-weight: 400;
    line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Skip link */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: var(--space-4);
    background: var(--primary);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    transition: top 0.3s;
    z-index: 1000;
    font-size: 12px;
    border-radius: 0 0 8px 8px;
}
.skip-to-content:focus { top: 0; }

/* CSS: HEADER NAVIGATION (identica all'attuale) */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--primary);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 200;
    margin-left: var(--space-3);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.nav-right,
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 300;
    font-size: 12px;
    transition: opacity 0.2s;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.nav-link:hover { opacity: 1; }

.btn-nav {
    background: var(--white);
    color: var(--primary);
    padding: 0.375rem 1rem;
    text-decoration: none;
    font-size: 11px;
    font-weight: 400;
    transition: all 0.2s;
    border: 1px solid var(--white);
    border-radius: 6px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

.btn-nav:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    flex-shrink: 0;
}
.mobile-menu-toggle i { display: none; }
.mobile-menu-toggle .hamburger-fallback {
    font-size: 1.5rem;
    line-height: 1;
}

/* CSS: HERO SECTION — NUOVA */
.hero-section {
    padding-top: 70px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(59, 57, 84, 0.55) 0%,
        rgba(59, 57, 84, 0.7) 50%,
        rgba(59, 57, 84, 0.85) 100%
    );
}

.hero-content {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: var(--space-10) var(--space-4);
}

.hero-question {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-6);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-4);
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
}

.hero-brand {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    margin-top: var(--space-2);
    color: rgba(255, 255, 255, 0.9);
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-bottom: var(--space-3);
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-microcopy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-bottom: var(--space-8);
    line-height: 1.5;
}

/* CSS: HERO CTA BUTTON */
.btn-hero-cta {
    display: inline-block;
    padding: var(--space-4) var(--space-10);
    background: var(--accent-green);
    color: var(--white);
    border: none;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.02em;
}

.btn-hero-cta:hover {
    background: #048a5b;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* Freccia scroll-down con testo */
.scroll-hint {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.scroll-hint:hover {
    opacity: 1;
}

.scroll-hint-text {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin-bottom: var(--space-2);
    letter-spacing: 0.02em;
}

.section-scroll-hint {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: var(--space-8);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.section-scroll-hint:hover {
    opacity: 0.8;
}

.section-scroll-hint .scroll-hint-arrow {
    color: var(--text-color);
    font-size: 1.25rem;
}

.section-light .section-scroll-hint .scroll-hint-arrow {
    color: var(--text-color);
}

.section:not(.section-light) .section-scroll-hint .scroll-hint-arrow {
    color: rgba(255, 255, 255, 0.6);
}

.cta-section .section-scroll-hint {
    margin-top: var(--space-6);
}

.cta-section .section-scroll-hint .scroll-hint-arrow {
    color: rgba(255, 255, 255, 0.6);
}

.scroll-hint-arrow {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
    animation: bounceDown 2s ease infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* CSS: SEZIONI GENERICHE */
.section {
    padding: var(--space-16) 0;
    background: var(--white);
}

.section-light {
    background: var(--gray-100);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: var(--primary);
    margin-bottom: var(--space-4);
    line-height: 1.3;
}

.section-subtitle {
    font-size: 0.95rem;
    text-align: center;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto var(--space-10);
    line-height: 1.7;
}

/* CSS: SEZIONE PROBLEMA — 3 RISCHI */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.problem-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: var(--space-6);
    border-radius: 12px;
    transition: all 0.2s ease;
}

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

.problem-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 57, 84, 0.08);
    border-radius: 10px;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: var(--space-4);
}

.problem-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.problem-card p {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 14px;
}

/* CSS: SEZIONE VIDEO DEMO */
.video-container {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* CSS: SEZIONE CONFRONTO */
.comparison-table {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: var(--gray-100);
    padding: var(--space-4);
    font-weight: 500;
    font-size: 13px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.comparison-header > div { text-align: center; }
.comparison-header > div:first-child { text-align: left; }
.comparison-header > div:nth-child(2) { color: var(--accent-red); font-weight: 600; }
.comparison-header > div:nth-child(3) { color: var(--accent-green); font-weight: 600; }

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: var(--space-4);
    border-bottom: 1px solid var(--gray-100);
    align-items: center;
    font-size: 14px;
    transition: background 0.2s;
}

.comparison-row:hover { background: var(--gray-100); }
.comparison-row:last-child { border-bottom: none; }

.comparison-feature {
    font-weight: 500;
    color: var(--gray-700);
}

.comparison-traditional {
    color: var(--accent-red);
    text-align: center;
    font-weight: 400;
}

.comparison-homentor {
    color: var(--accent-green);
    font-weight: 600;
    text-align: center;
}

/* CSS: CTA FINALE */
.cta-section {
    padding: var(--space-16) 0;
    background: var(--primary);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-headline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.cta-subheadline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-8);
    font-style: italic;
}

.cta-details {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: var(--space-4);
    line-height: 1.8;
}

.cta-price-inline-struck {
    text-decoration: line-through;
    opacity: 0.6;
}

.cta-price-inline-offer {
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
}


/* CSS: SEZIONE ECOSISTEMA 13 APP */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-top: var(--space-8);
}

.app-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: 8px;
    transition: background 0.2s;
}

.app-item:hover {
    background: var(--gray-100);
}

.app-item-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    background: rgba(59, 57, 84, 0.08);
    border-radius: 8px;
}

.app-item-text {
    flex: 1;
    min-width: 0;
}

.app-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: block;
    margin-bottom: 2px;
}

.app-item-desc {
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 400;
    line-height: 1.4;
}

/* CSS: SEZIONE 7 PROFESSIONISTI */
.professionals-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.professionals-content .section-subtitle {
    font-style: normal;
    line-height: 2;
}

.professionals-content .section-subtitle strong {
    color: var(--primary);
}

.professionals-highlight {
    border-left: 4px solid var(--accent-red);
    padding: var(--space-6);
    margin: var(--space-8) auto 0;
    text-align: left;
    background: var(--white);
    border-radius: 8px;
    max-width: 700px;
}

.professionals-highlight strong {
    color: var(--accent-red);
}

.professionals-highlight p {
    color: var(--gray-700);
    line-height: 1.8;
    font-size: 15px;
}

/* CSS: FOOTER */
.site-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: var(--space-8) 0 var(--space-6);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.footer-links {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; }

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    opacity: 0.6;
}

/* CSS: ANIMAZIONI */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* CSS: NOSCRIPT BANNER */
.noscript-banner-p001 {
    background: #fff3cd;
    color: #664d03;
    text-align: center;
    padding: 12px 40px 12px 16px;
    font-size: 13px;
    line-height: 1.6;
    border-bottom: 1px solid #ffca2c;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 998;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ============================================
   CSS: RESPONSIVE
   ============================================ */

/* Tablet (max 1200px) */
@media (max-width: 1200px) {
    .mobile-menu-toggle { display: block; }

    .nav-right,
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: var(--space-4);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s, opacity 0.3s, visibility 0s 0.3s;
        border-radius: 0 0 12px 12px;
        box-shadow: var(--shadow-md);
        z-index: 999;
    }

    .nav-right.mobile-active,
    .nav-links.mobile-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition: transform 0.3s, opacity 0.3s, visibility 0s;
    }

    .nav-right .btn-nav,
    .nav-links .btn-nav {
        margin-top: var(--space-4);
        width: 100%;
        text-align: center;
    }

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

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.4rem;
    }

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

    .problems-grid {
        grid-template-columns: 1fr;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .comparison-header { display: none; }

    .comparison-row {
        grid-template-columns: 1fr;
        gap: var(--space-2);
        padding: var(--space-4) var(--space-4);
    }

    .comparison-feature {
        font-weight: 600;
        padding-bottom: var(--space-1);
        border-bottom: 1px solid var(--gray-100);
        margin-bottom: var(--space-1);
    }

    .comparison-traditional,
    .comparison-homentor {
        text-align: left;
        padding-left: var(--space-2);
    }

    .comparison-traditional::before {
        content: "Tradizionale: ";
        font-weight: 500;
        color: var(--gray-600);
    }

    .comparison-homentor::before {
        content: "Homentor: ";
        font-weight: 500;
        color: var(--gray-600);
    }

    .cta-headline {
        font-size: 1.2rem;
    }

    .scroll-hint {
        bottom: var(--space-4);
    }
}

/* Focus states */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Print */
@media print {
    .nav-header, .site-footer, .cta-section, .mobile-menu-toggle, .scroll-hint { display: none; }
}
