/* DEC FVG Website Styles */

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

:root {
    --primary-color: #002983;
    --secondary-color: #0066cc;
    --accent-color: #fa4500;
    --dark-bg: #0a0e1a;
    --card-bg: #1a1f2e;
    --text-light: #ffffff;
    --text-secondary: #b8c5d6;
    --gradient-primary: linear-gradient(135deg, #002983 0%, #0066cc 100%);
    --gradient-accent: linear-gradient(135deg, #fa4500 0%, #ff6b35 100%);
    --gradient-dark: linear-gradient(180deg, #0a0e1a 0%, #1a1f2e 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 41, 131, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(250, 69, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(2deg);
    }
}

section,
header,
footer {
    position: relative;
    z-index: 1;
}

/* Header e Navigazione */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 41, 131, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(10, 14, 26, 0.98);
    box-shadow: 0 4px 30px rgba(0, 41, 131, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding-top: 140px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
}

.mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu .nav-links a {
    font-size: 1.2rem;
    padding: 1rem;
}

.mobile-menu .cta-button {
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 41, 131, 0.3));
    transition: filter 0.3s ease;
}

.logo:hover img {
    filter: drop-shadow(0 6px 12px rgba(0, 41, 131, 0.5));
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--gradient-primary);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 41, 131, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* Hero Section */
.hero {
    padding: 120px 5% 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100px);
    }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    transition: all 0.3s ease;
}

.hero-text h1 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.hero-text h1:hover span::after {
    transform: scaleX(1);
}

/* Text reveal animation */
@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    animation: textReveal 0.8s ease-out;
}

.hero-text p {
    animation: textReveal 1s ease-out 0.2s backwards;
}

.hero-badges {
    animation: textReveal 1.2s ease-out 0.4s backwards;
}

.hero-text p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(250, 69, 0, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(250, 69, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 69, 0, 0.3);
}

.hero-visual {
    position: relative;
}

/* Dashboard Elements */
.dashboard-container {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, rgba(0, 41, 131, 0.08) 0%, rgba(250, 69, 0, 0.05) 100%);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 1px solid rgba(0, 41, 131, 0.2);
    box-shadow: 0 10px 40px rgba(0, 41, 131, 0.15);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.dashboard-title {
    font-size: 1.2rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--accent-color);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px var(--accent-color);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
        box-shadow: 0 0 20px var(--accent-color);
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    flex-grow: 1;
}

.metric-card {
    background: rgba(26, 31, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: pointer;
}

.metric-card:hover {
    background: rgba(26, 31, 46, 0.95);
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(250, 69, 0, 0.3);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    animation: progressLoad 2s ease-out;
}

@keyframes progressLoad {
    0% {
        width: 0%;
    }
}

.uptime-fill {
    width: 99.99%;
}

.response-fill {
    width: 95%;
}

.security-fill {
    width: 100%;
}

.redundancy-fill {
    width: 98%;
}

.dashboard-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.2rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.location-indicator {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.location-dot {
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-color);
    animation: pulse 3s infinite;
}

.server-graphic {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(0, 41, 131, 0.1) 0%, rgba(250, 69, 0, 0.08) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 41, 131, 0.2);
}

.server-graphic::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(250, 69, 0, 0.3) 60deg, transparent 120deg);
    animation: rotate 10s linear infinite;
    opacity: 0.15;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Sezioni */
section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 41, 131, 0.25);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(0, 41, 131, 0.1) 100%);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 41, 131, 0.3);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 41, 131, 0.5);
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: scale(1.1) rotate(5deg) translateY(0);
    }

    50% {
        transform: scale(1.15) rotate(5deg) translateY(-5px);
    }
}

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

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Timeline NIS 2 */
.timeline {
    position: relative;
    padding: 2rem 0;
    margin: 3rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin: 3rem 0;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row;
}

.timeline-content {
    flex: 1;
    padding: 0 3rem;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: scale(1.05);
}

.timeline-item:hover .timeline-date {
    box-shadow: 0 5px 20px rgba(0, 41, 131, 0.5);
    transform: scale(1.1);
}

.timeline-date {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px var(--dark-bg), 0 0 0 6px var(--accent-color), 0 0 20px var(--accent-color);
    animation: pulse 2s infinite;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(250, 69, 0, 0.2);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

/* Contact Form */
.contact-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 4rem;
    margin: 4rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 41, 131, 0.3);
}

.form-group {
    position: relative;
    z-index: 1;
}

.form-group select {
    position: relative;
    z-index: 10;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.form-group select:focus {
    z-index: 100;
}

.form-group select option {
    background: transparent;
    color: #000000;
}

.form-group input,
.form-group textarea {
    transition: all 0.3s ease;
}


.submit-button {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-button {
    position: relative;
    overflow: hidden;
}

.submit-button::after {
    content: '→';
    position: absolute;
    right: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.submit-button:hover::after {
    opacity: 1;
    right: 1rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 41, 131, 0.4);
    padding-right: 3rem;
}

/* Footer */
footer {
    background: rgba(10, 14, 26, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 5%;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-section p,
.footer-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
}

/* Chi Siamo Section */
.chi-siamo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.chi-siamo-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Floating animation for hero elements */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-visual {
    animation: float 6s ease-in-out infinite;
}

/* Glow effect for primary elements */
@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 41, 131, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 41, 131, 0.6);
    }
}

.dashboard-container {
    animation: glow 3s ease-in-out infinite;
}

/* Card entrance animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: slideInUp 0.6s ease-out backwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    nav .cta-button {
        display: none;
    }

    .hero {
        padding: 100px 5% 60px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-badges {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .server-graphic {
        height: 300px;
        margin: 0 1rem;
    }

    .dashboard-container {
        height: auto;
        min-height: 400px;
        padding: 1.5rem;
        gap: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .metric-card {
        padding: 1rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .dashboard-footer {
        flex-wrap: wrap;
        font-size: 0.7rem;
        gap: 0.5rem;
    }

    section {
        padding: 60px 5%;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .timeline::before {
        left: 30px;
        transform: none;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        margin: 2rem 0;
    }

    /* Hide empty timeline sides on mobile to give full width to text */
    .timeline-item:nth-child(odd) .timeline-content:last-of-type {
        display: none;
    }

    .timeline-item:nth-child(even) .timeline-content:first-of-type {
        display: none;
    }

    .timeline-dot {
        left: 30px;
        transform: translateX(-50%);
    }

    .timeline-content {
        padding: 1rem 1rem 1rem 0;
        margin-left: 60px;
        flex: 1 1 100%;
        /* Ensure full width */
        max-width: none;
    }

    .timeline-date {
        position: static;
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

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

    .stat-card {
        padding: 1.5rem 1rem;
    }

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

    .chi-siamo-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }

    .chi-siamo-grid h3 {
        font-size: 1.7rem !important;
    }

    .chi-siamo-stats {
        justify-content: center !important;
    }

    .contact-section {
        padding: 3rem 2rem;
        margin: 2rem 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    footer {
        padding: 2rem 5%;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .submit-button {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .contact-section {
        padding: 2rem 1rem;
    }

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

/* Cursor particle effect */
.cursor-particle {
    position: fixed;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: particleFade 1s ease-out forwards;
}

@keyframes particleFade {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 3D card effect */
.feature-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Section headers reveal animation */
.section-header {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glowing text effect on hover */
.section-header h2:hover {
    text-shadow: 0 0 20px rgba(0, 41, 131, 0.6),
        0 0 40px rgba(0, 41, 131, 0.4),
        0 0 60px rgba(0, 41, 131, 0.2);
    transition: text-shadow 0.3s ease;
}

/* Stats cards pulse animation */
.stat-card.animated {
    animation: statPulse 2s ease-in-out infinite;
}

@keyframes statPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 41, 131, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 10px rgba(0, 41, 131, 0);
    }
}

/* Badge hover effect */
.badge {
    position: relative;
}

.badge::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-accent);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(8px);
}

.badge:hover::before {
    opacity: 0.6;
}

/* Fondi Section Responsive Grid */
.fondi-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.fondi-content {
    width: 100%;
}

.fondi-image {
    width: 100%;
    text-align: center;
}

/* Mobile Responsive for Fondi Section */
@media (max-width: 968px) {
    .fondi-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #fondi {
        padding: 3rem 1.5rem !important;
        margin: 2rem auto !important;
    }

    .fondi-image {
        order: -1;
        /* Move image above text on mobile */
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    #fondi {
        padding: 2rem 1rem !important;
        border-radius: 15px !important;
    }

    .fondi-grid {
        gap: 1.5rem;
    }
}

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

.language-switcher span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.lang-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: var(--text-light);
    font-weight: 600;
}


/* Footer links wave animation */
.footer-section a {
    display: inline-block;
}

.footer-section a:hover {
    animation: wave 0.5s ease;
}

@keyframes wave {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-3px);
    }

    75% {
        transform: translateY(3px);
    }
}

/* Loading bar animation */
.progress-fill {
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Chi siamo section box glow */
.chi-siamo-grid>div:last-child {
    position: relative;
    transition: all 0.3s ease;
}

.chi-siamo-grid>div:last-child:hover {
    box-shadow: 0 0 30px rgba(0, 102, 204, 0.5);
    transform: scale(1.02);
}

/* Contact info items slide in */
.contact-details li {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.5s ease-out forwards;
}

.contact-details li:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-details li:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-details li:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-details li:nth-child(4) {
    animation-delay: 0.4s;
}

.contact-details li:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Elegant logo hover effect */
.logo img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover img {
    transform: translateY(-2px) scale(1.03);
    filter: drop-shadow(0 8px 16px rgba(250, 69, 0, 0.4));
}

/* Nav links scale effect */
.nav-links a {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-links a:hover {
    transform: scale(1.1);
}

/* Metric value counter glow */
.metric-value {
    transition: all 0.3s ease;
}

.metric-card:hover .metric-value {
    text-shadow: 0 0 20px rgba(0, 41, 131, 0.8);
    transform: scale(1.1);
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 41, 131, 0.3);
    padding: 1rem 5%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transition: opacity 0.5s ease;
}

.cookie-content {
    max-width: 1400px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

#cookie-banner p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 80px;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 41, 131, 0.3);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-btn {
        width: 100%;
        max-width: 200px;
    }
}