/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');


:root {
    /* Primary Blues */
    --primary: #00b4d8;
    --primary-dark: #0077b6;
    --primary-light: #90e0ef;
    --primary-lighter: #caf0f8;

    /* Secondary / Corporate */
    --secondary: #03045e;
    --secondary-light: #0096c7;

    /* Grays */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;

    /* UI Elements */
    --text-main: var(--gray-800);
    --text-light: var(--gray-500);
    --bg-light: var(--gray-50);
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.95);

    /* Shadows & Radius */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-md: 8px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    font-size: 2rem;
    text-decoration: none;
    animation: bounce 2s infinite;
    z-index: 10;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.scroll-down span {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 2px solid var(--primary);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.scroll-down:hover span {
    background: var(--primary);
    color: white;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Top Bar */
.top-bar {
    background: rgba(40, 66, 89, 0.50);
    backdrop-filter: blur(5px);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 1002;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 2rem;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-lighter);
}

.top-links a {
    color: var(--primary-lighter);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.top-links a:hover {
    color: var(--primary-dark);
}

/* Header & Navigation - Flutter Style */
header {
    background: transparent !important;
    backdrop-filter: none;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-top: 1rem;
}

.header-main {
    max-width: 100%;
    margin: 0 auto;
    max-width: 1400px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 160px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    margin-right: 0;
}

.logo img:hover {
    transform: scale(1.05);
}

.header-actions {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 0 1 auto;
    justify-content: flex-end;
    background: rgba(237, 247, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    margin-right: 0;
    padding: 0.8rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    min-width: 0;
    /* Allows flexing if needed */
}

/* Navigation Bar - Horizontal Right */
.nav-container {
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
}

.nav-links>li {
    position: relative;
}

.nav-links>li>a {
    display: block;
    padding: 0.7rem 0.9rem;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
    white-space: nowrap;
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
    background: transparent;
    color: var(--primary);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 50%;
    min-width: 220px;
    background: rgba(237, 247, 255, 0.98);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
    margin-top: 0.5rem;
    z-index: 2000;
}

.nav-links>li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Link interni */
.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
    background: var(--gray-50);
    color: var(--primary-dark);
    border-left-color: var(--primary);
}

/* CTA Button - Styled like Flutter */
.cta-button {
    padding: 0.75rem 1.8rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 4, 5, 0.25);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 55, 66, 0.35);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
    background: transparent !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-lighter) 0%, transparent 70%);
    opacity: 0.6;
    z-index: 0;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: center;
    margin-top: 3rem;
}

.hero-text h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-text .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--gray-600);
    padding-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--secondary-light);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.25);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: white;
    color: var(--secondary);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--secondary);
    background: var(--gray-50);
    transform: translateY(-2px);
}

/* Visual Grid */
.visual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.visual-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
    display: block;
    /* Ensure it behaves like a block */
    text-decoration: none;
    /* Remove link underline */
    color: inherit;
    /* Inherit text color */
}

.visual-card:nth-child(2) {
    margin-top: 0rem;
    margin-bottom: 2rem;
}

.visual-card:nth-child(3) {
    margin-top: 0rem;
}

.visual-card:nth-child(4) {
    margin-top: -2rem;
    padding-top: 4rem;
}

.visual-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.visual-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: transparent;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--primary);
}

.visual-card h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 700;
}

/* Services Section */
.services {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-lighter);
    border-radius: 50px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.intro-wrapper {
    position: relative;
}

.intro-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Changed from 100% to 100vh to prevent re-rendering on resize */
    background-image: linear-gradient(135deg, rgba(0, 180, 216, 0.5) 10%, rgba(3, 4, 94, 0.5) 100%), url('bg-tech.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .8;
    z-index: 1;
    pointer-events: none;
    /* Improvement: ensure clicks pass through */
    will-change: transform;

}

.intro-bgGradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh;
    /* Changed from 100% to 100vh to prevent re-rendering on resize */
    background-image: linear-gradient(135deg,
            rgba(230, 245, 250, 0.3) 0%,
            rgba(144, 224, 239, 0.4) 35%,
            rgba(0, 119, 182, 0.45) 70%,
            rgba(3, 4, 94, 0.5) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .8;
    z-index: 1;
    pointer-events: none;
    /* Improvement: ensure clicks pass through */
    will-change: transform;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.intro-bg,
.intro-bgGradient {
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.intro-wrapper>*:not(.intro-bg):not(.intro-bgGradient) {
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--gray-50);
    padding: 3rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    background: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.service-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.8rem;
    position: relative;
    color: var(--gray-500);
}

.service-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Footer */
footer {
    background: var(--gray-800);
    color: var(--gray-300);
    padding: 5rem 2rem 2rem;
    transition: background-color 0.5s ease;
}

footer:target {
    animation: highlight-pulse 2s ease-out;
}

@keyframes highlight-pulse {
    0% {
        background-color: var(--primary-dark);
        box-shadow: 0 0 20px var(--primary);
    }

    100% {
        background-color: var(--gray-800);
        box-shadow: none;
    }
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--white);
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-500);
}

/* Carousel Styles */
.carousel-section {
    position: relative;
    width: 100%;
    margin: 4rem 0;
    overflow: hidden;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    position: relative;
    display: block;
    /* Flex item */
    min-width: 100%;
    /* Full width of container */
    animation: none;
    /* Remove fade animation */
}

.carousel-slide.active {
    display: block;
    /* Keep generic display block, but track controls visibility via offset */
}

.carousel-image-placeholder {
    display: none;
    /* Hide placeholder if present */
}

.carousel-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.10);
    padding: 1.5rem 3rem;
    border-radius: var(--radius-md);
    width: 80%;
    max-width: 600px;
}

.carousel-caption h3 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.carousel-caption p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-lighter);
}

/* Navigation Dots */
.carousel-dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background-color: var(--primary);
    border-color: white;
    transform: scale(1.2);
}

.dot:hover {
    background-color: var(--primary-light);
}

/* Navigation Arrows */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: all 0.3s ease;
    border-radius: 50%;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    margin-top: 0;
    /* Reset */
    padding: 0;
    /* Reset */
}

.next {
    right: 15px;
    /* Closer to edge */
}

.prev {
    left: 15px;
    /* Closer to edge */
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

/* Certifications Carousel */
.certifications-section {
    padding: 4rem 1rem;
    background-color: #f8f9fa;
    text-align: center;
    margin-top: 3rem;
    /* Spaziatura dal blocco precedente */
    border-radius: var(--radius-lg);
}

.certifications-section h3 {
    color: var(--secondary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.certifications-carousel {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    position: relative;
    /* Maschera laterale per effetto fade */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.certifications-track {
    display: flex;
    align-items: center;
    width: fit-content;
    will-change: transform;
}

.certifications-item {
    flex: 0 0 20%;
    /* 5 items visible */
    padding: 0 1rem;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.certifications-item img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.certifications-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Arrow Stepper Styles */
.arrow-steps-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 3rem;
    gap: 0;
    /* No gap because arrows connect */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.arrow-step {
    flex: 1;
    position: relative;
    background: var(--gray-200);
    padding: 2rem 2rem 2rem 4.5rem;
    /* Extra padding left for arrow tail + content spacing */
    transition: all 0.3s ease;
    /* Fixed 3rem arrow depth for consistent spacing */
    clip-path: polygon(0% 0%, calc(100% - 3rem) 0%, 100% 50%, calc(100% - 3rem) 100%, 0% 100%, 3rem 50%);
    /* Chevron shape */
    margin-right: -2.9rem;
    /* Overlap slightly less than 3rem to ensure tight fit without gap */
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: default;
    user-select: none;
    color: var(--gray-500);
}

/* First item doesn't need left tail indent */
/* First item doesn't need left tail indent */
.arrow-step:first-child {

    clip-path: polygon(0% 0%, calc(100% - 3rem) 0%, 100% 50%, calc(100% - 3rem) 100%, 0% 100%);
    padding-left: 2rem;
    border-radius: 5px 0 0 5px;
}

/* Last item doesn't need right arrow point */
.arrow-step:last-child {
    margin-right: 0;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 3rem 50%);
    /* Flat end */
    border-radius: 0 5px 5px 0;
}


.arrow-step.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    z-index: 2;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 180, 216, 0.3);
    /* Clip-path cuts shadow, so we use filter on container or careful stacking */
    /* Transform scale will pop it out */
    /* Remove clip-path for shadow? No, clip-path is essential. */
    /* Using filter: drop-shadow on parent helps, but specific active shadow is tricky with clip-path. */
    /* Let's rely on scale and color for emphasis */
}

.step-number {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--gray-600);
    transition: all 0.3s;
}

.arrow-step.active .step-number {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
    transition: color 0.3s;
}

.arrow-step.active .step-title {
    color: white;
}

.step-desc {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--gray-500);
    transition: color 0.3s;
}

.arrow-step.active .step-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* Soluzioni Grid Styles */
.soluzioni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
    margin-bottom: 4rem;
}

.solution-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 180, 216, 0.15);
    border-color: var(--primary-light);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.solution-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.solution-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.8rem;
}

.solution-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Modal Styling Adjustments for Rich Content */
.modal-body ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.modal-body h4 {
    color: var(--secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--gray-600);
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.5rem;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-title {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal-body {
    line-height: 1.8;
    color: var(--gray-700);
    font-size: 1.1rem;
}

/* Scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Partners & FAQ Accordion Shared Styles */
.partners-accordion,
.faq-accordion {
    max-width: 1000px;
    margin: 0 auto;
}

/* Update subsequent selectors to apply to both */
.accordion-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    will-change: max-height;
    transform: translateZ(0);
}

/* =========================================
   Vertical Tabs (Info Aziendali)
   ========================================= */
.info-tabs-container {
    display: flex;
    gap: 3rem;
    min-height: 60vh;
    width: clamp(900px, 100%, 1200px);
    margin: 0 auto;
    padding: 0 1rem;
}

.info-tabs-container .tabs-nav {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* ... existing styles ... */

.tab-link {
    display: block;
    padding: 1rem 1.5rem;
    text-align: left;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    /* Inherit from body to match site font */
}

.tab-link:hover {
    background: var(--gray-50);
    color: var(--primary);
    transform: translateX(5px);
}

.tab-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 78, 146, 0.2);
    transform: translateX(10px);
}

/* ... existing styles ... */

.tab-content-area {
    flex: 1;
    background: white;
    width: 872px;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

/* Print Styles (General) */
@media print {

    /* Hide non-content elements to clean up Ctrl+P output */
    .intro-bg,
    header,
    footer,
    .tabs-nav,
    .top-bar {
        display: none !important;
    }

    /* Ensure content area takes full width */
    .container,
    .info-tabs-container,
    .tab-content-area {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Reset visibility for body in case previous hacks left it hidden */
    body {
        visibility: visible;
        background: white;
        height: auto;
        overflow: visible;
        font-size: 11pt;
    }

    #privacy {
        position: static;
        visibility: visible;
    }
}



.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: 1rem;
}

.tab-pane p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.glossary-term {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.glossary-term h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* ... existing styles continue ... */

.accordion-header {
    background: white;
    color: var(--secondary);
    cursor: pointer;
    padding: 1.5rem 2rem;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: 0.4s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header.active,
.accordion-header:hover {
    background-color: var(--gray-50);
    color: var(--primary-dark);
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 2rem;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-top: 1px solid transparent;
}

.accordion-header.active+.accordion-content {
    border-top-color: var(--gray-100);
    padding-bottom: 2rem;
}

.accordion-body {
    padding-top: 1.5rem;
}

.accordion-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.category-description {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
}

/* Vertical Expanding Panels */
.panels-container {
    display: flex;
    width: 100%;
    height: 600px;
    /* Adjust height as needed */
    overflow: hidden;
    gap: 10px;
    /* Spacing between panels */
    margin-bottom: 5rem;
}

.panel {
    position: relative;
    flex: 0.5;
    /* Collapsed state */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50px;
    /* Highly rounded corners for "folder" feel */
    color: white;
    cursor: pointer;
    transition: flex 0.7s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Text at bottom */
    padding: 2rem;
    overflow: hidden;
    position: relative;
}

/* Dark overlay for readability */
.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

.panel.active {
    flex: 5;
    /* Expanded state */
}

/* Panel Content - Absolute to prevent reflow */
.panel-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    opacity: 0;
    /* Instant disappear when collapsing */
    transition: opacity 0.1s ease-out;
    z-index: 2;
}

/* Fade in slowly when active */
.panel.active .panel-content {
    opacity: 1;
    transition: opacity 0.5s ease-in 0.5s;
    /* Delay to wait for expansion */
}

/* Base Title Style */
.panel h3 {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 1.5rem;
    margin: 0;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smooth sizing/positioning */
    z-index: 2;
    white-space: nowrap;
    transform-origin: center center;
    transform: translate(0, 0) rotate(0deg);
}

/* Collapsed Title State */
.panel:not(.active) h3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    font-size: 1.5rem;
    width: 100%;
    text-align: center;
}

.partner-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.partner-logo-card {
    background: white;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: all 0.3s ease;
    /* Optimization */
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

.partner-logo-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.partner-logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Tech Badge */
.tech-badge {
    background: var(--primary-lighter);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}