/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --primary-color: #2563EB;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary-color: #10B981;
    --secondary-dark: #059669;
    --accent-color: #F59E0B;
    --accent-light: #FCD34D;

    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;

    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-dark: #111827;

    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    --container-width: 1280px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===================================
   Layout Utilities
   =================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    display: block;
    height: 32px;
    max-height: 32px;
    max-width: 32px;
    width: auto;
    object-fit: contain;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.logo {
    font-size: 1.5rem;
    color: #000000;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 1.5rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 36px;
    padding: 0 0.75rem;
    border-radius: 8px;
    background: transparent;
    border: 2px solid var(--border-color);
    transition: var(--transition-fast);
    cursor: pointer;
}

.lang-btn .lang-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

.lang-btn:hover .lang-text {
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.lang-btn.active .lang-text {
    color: white;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    margin-top: 80px;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: fit-content;
    margin: 0 auto 2rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s ease-in-out infinite;
}

.award-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    fill: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-symbol {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
}

/* ===================================
   Premio Section
   =================================== */
.premio-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.premio-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay span {
    font-weight: 600;
    font-size: 1rem;
}

.premio-quote {
    margin-top: 4rem;
    text-align: center;
}

.premio-quote blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border-left: 4px solid var(--accent-color);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.premio-quote cite {
    display: block;
    margin-top: 1.5rem;
    font-size: 1rem;
    font-style: normal;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===================================
   Problema Section
   =================================== */
.problema-section {
    padding: 6rem 0;
}

.problema-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.problema-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.problema-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 2;
}

.time-icon {
    background: #DBEAFE;
    color: var(--primary-color);
}

.money-icon {
    background: #D1FAE5;
    color: var(--secondary-color);
}

.alert-icon {
    background: #FEF3C7;
    color: #D97706;
}

.maintenance-icon {
    background: #E0E7FF;
    color: #6366F1;
}

.problema-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.problema-card p {
    margin-bottom: 1rem;
}

.card-impact {
    display: block;
    font-size: 0.875rem;
    color: #DC2626;
    font-weight: 600;
    margin-top: 1rem;
}

/* ===================================
   Soluzione Section
   =================================== */
.soluzione-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.soluzione-architecture {
    margin: 3rem 0 4rem;
    text-align: center;
}

.architecture-diagram {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.soluzione-components {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.component-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.component-card.reverse {
    direction: rtl;
}

.component-card.reverse > * {
    direction: ltr;
}

.component-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.component-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.component-content h3 {
    margin-bottom: 1rem;
}

.component-content p {
    margin-bottom: 1.5rem;
}

.component-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.component-features li {
    padding-left: 0.5rem;
    color: var(--text-secondary);
}

/* ===================================
   Vantaggi Section
   =================================== */
.vantaggi-section {
    padding: 6rem 0;
}

.vantaggi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.vantaggio-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.vantaggio-card.highlight {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #EFF6FF 0%, white 100%);
}

.vantaggio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.vantaggio-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.vantaggio-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 2;
}

.vantaggio-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.vantaggio-card p {
    font-size: 1rem;
}

.vantaggio-metric {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===================================
   Dashboard Section
   =================================== */
.dashboard-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.dashboard-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.dashboard-screen {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.dashboard-screen:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.dashboard-screen img {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.mobile-mockup {
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
}

.screen-caption {
    padding: 2rem;
}

.screen-caption h4 {
    margin-bottom: 0.5rem;
}

.screen-caption p {
    font-size: 1rem;
}

.dashboard-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.875rem;
}

/* ===================================
   Tecnologia Section
   =================================== */
.tecnologia-section {
    padding: 6rem 0;
}

.tech-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition);
    cursor: pointer;
}

.tech-toggle:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tech-toggle .chevron {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.tech-toggle.active .chevron {
    transform: rotate(180deg);
}

.tech-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin 0.5s ease;
}

.tech-content.active {
    max-height: 10000px;
    opacity: 1;
    margin-top: 3rem;
}

.tech-innovation {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.innovation-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.innovation-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.innovation-card ul {
    margin-top: 1.5rem;
}

.innovation-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.innovation-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 800;
}

.tech-comparison {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 4rem;
}

.tech-comparison h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.comparison-table thead {
    background: var(--bg-secondary);
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table td.highlight {
    background: #DBEAFE;
    color: var(--primary-dark);
    font-weight: 700;
}

.tech-specs {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
}

.tech-specs h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.spec-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.spec-card h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
}

.spec-card ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.spec-card li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.spec-card strong {
    color: var(--text-primary);
}

/* ===================================
   Case Studies Section
   =================================== */
.case-studies-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.case-study {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 3rem;
    margin-bottom: 2rem;
}

.case-study.featured {
    border: 2px solid var(--primary-color);
}

.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.case-study-header h3 {
    font-size: 1.75rem;
}

.case-badge {
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.case-intro {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.case-metric {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.metric-icon {
    font-size: 2rem;
}

.case-metric strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.case-metric p {
    font-size: 0.95rem;
}

.case-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.result-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.result-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.case-benefits {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #DBEAFE 0%, #E0E7FF 100%);
    border-radius: var(--border-radius-lg);
}

.case-benefits h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.benefit-item {
    text-align: center;
}

.benefit-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 0.95rem;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.cta-section .btn-secondary {
    border-color: white;
    color: white;
}

.cta-section .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.cta-info {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.info-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.footer-award {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--accent-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-block;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ===================================
   Lightbox
   =================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: white;
    color: var(--text-primary);
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--border-radius);
}

.lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 1.5rem;
    font-size: 1.25rem;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.8s ease-out forwards;
}

.animate-fade-in:nth-child(2) { animation-delay: 0.1s; }
.animate-fade-in:nth-child(3) { animation-delay: 0.2s; }
.animate-fade-in:nth-child(4) { animation-delay: 0.3s; }

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-container,
    .component-card {
        grid-template-columns: 1fr;
    }

    .component-card.reverse {
        direction: ltr;
    }

    .vantaggi-grid,
    .tech-innovation,
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav {
        padding: 0.75rem 1rem;
    }

    .nav-brand {
        gap: 0.5rem;
    }

    .logo-icon {
        height: 24px !important;
        max-height: 24px !important;
        max-width: 24px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .logo {
        font-size: 1.125rem !important;
    }

    .nav-toggle {
        display: flex;
    }

    .language-switcher {
        position: absolute;
        top: 15px;
        right: 70px;
        margin-left: 0;
        gap: 0.25rem;
    }

    .lang-btn {
        min-width: 40px;
        height: 32px;
        padding: 0 0.5rem;
    }

    .lang-btn .lang-text {
        font-size: 0.75rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .premio-gallery,
    .problema-grid,
    .vantaggi-grid,
    .dashboard-showcase,
    .dashboard-features,
    .tech-innovation,
    .specs-grid,
    .case-metrics,
    .case-results,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .mobile-mockup {
        max-width: 250px;
    }

    .architecture-diagram {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .soluzione-architecture {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table {
        font-size: 0.75rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .hero-badge span {
        display: none;
    }

    .hero-badge::after {
        content: 'PREMIO AIIC 2025';
    }

    .btn {
        width: 100%;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .mobile-mockup {
        max-width: 200px;
    }

    .nav {
        padding: 0.5rem 0.75rem;
    }

    .logo {
        font-size: 1rem !important;
    }

    .logo-icon {
        height: 20px !important;
        max-height: 20px !important;
        max-width: 20px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .language-switcher {
        right: 60px;
        top: 12px;
    }

    .lang-btn {
        min-width: 35px;
        height: 28px;
    }
}

/* ===================================
   Notes Section
   =================================== */
.notes-section {
    background: #f8f9fa;
    padding: 2rem 0;
    border-top: 1px solid #dee2e6;
}

.notes-disclaimer {
    text-align: center;
    color: #6c757d;
    margin: 0;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.notes-disclaimer a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

sup a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85em;
}

sup a:hover {
    text-decoration: underline;
}
