/* Critical CSS - Above the fold styles */
/* Theme variables are now defined in themes.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}


/* Hide benefit popups by default */
.benefit-popup {
    display: none;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Screen Reader Only */
.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;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 100px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 96px;
    width: auto;
    max-width: 100%;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    padding: 10px 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.header-cta {
    display: flex;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #8B3260;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

/* New Hero Section */
.hero-new {
    padding: 140px 0 120px;
    background: linear-gradient(135deg, #0A1628 0%, #1a2332 50%, #0f1b2e 100%);
    position: relative;
    overflow: hidden;
    min-height: 1020px;
    width: 100%;
}

.hero-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/banner.jpg') center -15% / cover no-repeat;
    opacity: 0.6;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(45, 200, 232, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-new-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 240px);
    max-width: 800px;
    padding-top: 40px;
}

.hero-new-text {
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.hero-top-section {
    flex: 0 0 auto;
    margin-bottom: 30px;
}

.hero-bottom-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-new-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #2DC8E8 0%, #00b8d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(45, 200, 232, 0.3));
}

.gradient-text-purple {
    background: linear-gradient(135deg, #FF6B6B 0%, #ff8787 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.3));
}

.hero-new-subtitle {
    font-size: 1.25rem;
    color: #e0e6ed;
    line-height: 1.7;
    max-width: 650px;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-new-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-new-primary {
    background: linear-gradient(135deg, #2DC8E8 0%, #1fa3c7 100%);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(45, 200, 232, 0.4);
    border: 2px solid rgba(45, 200, 232, 0.3);
}

.btn-new-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(45, 200, 232, 0.6);
    background: linear-gradient(135deg, #FF6B6B 0%, #ff5252 100%);
    border-color: rgba(255, 107, 107, 0.5);
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-new-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-new-secondary {
    background: transparent;
    color: #2d3436;
    padding: 18px 35px;
    border: 2px solid #ddd;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-new-secondary:hover {
    border-color: #00cec9;
    color: #00cec9;
    transform: translateY(-2px);
}

.play-icon-new {
    background: linear-gradient(45deg, #00cec9, #0984e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1rem;
}

.hero-new-stats {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.stat-new {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-new-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.gradient-blue {
    background: linear-gradient(45deg, #00cec9, #0984e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-green {
    background: linear-gradient(45deg, #00b894, #00cec9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-purple {
    background: linear-gradient(45deg, #a29bfe, #fd79a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-new-label {
    font-size: 1rem;
    color: #2d3436;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.stat-new-benefit {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

/* Hero Visual Section */
.hero-new-visual {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero-tech-circle {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.play-icon {
    margin-right: 8px;
    font-size: 14px;
}

.trust-indicators {
    margin-top: 40px;
}

.trust-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    display: block;
}

.client-logos {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.client-logos img {
    height: 30px;
    width: auto;
    opacity: 0.7;
    transition: var(--transition);
}

.client-logos img:hover {
    opacity: 1;
}

.hero-visual {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float 3s ease-in-out infinite;
}

.floating-card .metric {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.floating-card .label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
}

.card-1 {
    top: 20%;
    right: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: -10%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
/* Breakpoint per schermi medi-larghi */
@media (max-width: 1200px) {
    .logo img {
        height: 85px;
    }

    .header {
        height: 90px;
    }

    .header-content {
        height: 90px;
    }

    .nav-menu {
        gap: 20px;
    }
}

/* Breakpoint per schermi medi */
@media (max-width: 1024px) {
    .logo img {
        height: 75px;
    }

    .header {
        height: 85px;
    }

    .header-content {
        height: 85px;
    }

    .nav-menu {
        gap: 15px;
        font-size: 0.95rem;
    }
}

/* Breakpoint tablet */
@media (max-width: 768px) {
    .logo img {
        height: 67px; /* 96px - 30% = 67px */
        width: auto;
    }

    .header {
        height: 80px;
    }

    .header-content {
        height: 80px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 50px 0;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: var(--bg-light);
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .client-logos {
        justify-content: center;
    }
    
    .floating-card {
        display: none;
    }
    

    .hero-new {
        padding: 120px 0 60px;
        min-height: 70vh;
    }

    .hero-new-content {
        justify-content: flex-end;
        padding-top: 0;
        padding-bottom: 80px;
        min-height: 60vh;
    }

    .hero-new-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .hero-new-text {
        text-align: center;
    }

    .hero-new-subtitle {
        font-size: 1.1rem;
    }

    .hero-new-actions {
        justify-content: center;
    }

    .hero-tech-circle {
        width: 100%;
        height: 100%;
    }

    .hero-new-visual {
        height: 50vh;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .logo img {
        height: 52px; /* 96px - 46% per schermi molto piccoli */
    }

    .header {
        height: 70px;
    }

    .header-content {
        height: 70px;
    }

    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    /* New Hero Mobile */
    .hero-new {
        padding: 100px 0 40px;
        min-height: 65vh;
    }

    .hero-new-content {
        justify-content: flex-end;
        padding-bottom: 60px;
        min-height: 55vh;
    }

    .hero-new-title {
        font-size: 1.8rem;
    }

    .hero-new-subtitle {
        font-size: 0.95rem;
    }

    .hero-new-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn-new-primary {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    .hero-new-visual {
        height: 45vh;
    }
}