/* CSS Variables */
:root {
    /* Colors */
    --color-primary: #007bff;
    --color-primary-dark: #0056b3;
    --color-text: #333;
    --color-text-light: #666;
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Background Colors */
    --bg-header-scrolled: rgba(255, 255, 255, 0.95);
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --bg-card: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Font Sizes */
    --font-size-xs: 0.8rem;
    --font-size-sm: 0.9rem;
    --font-size-base: 1rem;
    --font-size-md: 1.1rem;
    --font-size-lg: 1.2rem;
    --font-size-xl: 1.4rem;
    --font-size-xxl: 1.5rem;
    --font-size-hero: 2rem;
    --font-size-hero-lg: 2.5rem;
    --font-size-hero-xl: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-text: 0 1px 2px rgba(0, 0, 0, 0.1);
    
    /* Borders */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Breakpoints */
    --breakpoint-xs: 480px;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    
    /* Container */
    --container-max-width: 1200px;
    --container-padding: 16px;
}

/* Reset e base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding); /* tighten to avoid horizontal scroll on small devices */
}

/* Header */
.header {
    background: transparent;
    box-shadow: none;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000 !important;
    transition: all var(--transition-base);
}
/* Keep header always visible; reduce early switch on non-home due to shorter hero */
.enterprise .header.scrolled .nav-link,
.pmi .header.scrolled .nav-link,
.startup .header.scrolled .nav-link,
.fulfillment .header.scrolled .nav-link,
.farmacie .header.scrolled .nav-link {
    color: var(--color-text);
    text-shadow: none;
}

.header.scrolled {
    background: var(--bg-header-scrolled);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

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

.logo a {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: all var(--transition-base);
}

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

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all var(--transition-base);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.nav-link:hover {
    color: rgba(255,255,255,0.8);
}

.header.scrolled .nav-link {
    color: var(--color-text);
    text-shadow: none;
}

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

.cta-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.header.scrolled .cta-button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
}

.header.scrolled .cta-button:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), #004085);
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Mobile menu: ensure dark links when menu is open - MOVED TO CONSOLIDATED SECTION */

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-base);
    border-left: 3px solid transparent;
    width: max-content;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    width: 100%;
}

/* Dropdown per header scrolled */
.header.scrolled .dropdown-menu {
    background: white;
}

.header.scrolled .dropdown-item {
    color: var(--color-text);
}

.header.scrolled .dropdown-item:hover {
    background: #f8f9fa;
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    padding: 120px 0 110px;
    background: transparent; /* default for non-home pages */
    background-size: cover;
    background-position: center;
    position: relative; /* Positioning context for Spline full-cover */
    overflow: hidden; /* Contain oversized Spline viewer */
}

/* Keep hero content above Spline background */
.hero > .container {
    position: relative;
    z-index: 1;
}

/* Keep gradient only on home */
.home .hero {
    background: #020024;
    background: linear-gradient(158deg, rgba(2, 0, 36, 1) 0%, rgba(0, 50, 92, 1) 35%, rgba(0, 88, 160, 1) 64%, rgba(50, 137, 224, 1) 100%);
}

/* Non-home hero: video background + overlay gradient */
.enterprise .hero,
.pmi .hero,
.startup .hero,
.fulfillment .hero,
.farmacie .hero {
    background: transparent;
    position: relative; /* host for ::before overlay and video */
    padding: 120px 0 80px;
    min-height: 500px; /* ensure space for content */
}

/* Startup and Aziende pages: center content vertically */
.startup .hero,
.aziende .hero,
.farmacie .hero {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 130px; /* Extra space below hero content when parallax is not active */
}
/* Place video behind content */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* under overlay */
}
/* Mobile: avoid slight top/bottom clipping due to fixed header and browser UI - MOVED TO CONSOLIDATED SECTION */
.enterprise .hero::before,
.pmi .hero::before,
.startup .hero::before,
.aziende .hero::before,
.farmacie .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(158deg, rgba(1, 29, 69, 0.65) 0%, rgba(0, 50, 92, 0.6) 35%, rgba(0, 88, 160, 0.55) 64%, rgba(50, 137, 224, 0.5) 100%);
    z-index: 1; /* above video, below content */
    pointer-events: none;
}

/* Hero with gradient background (for chi-siamo and contattaci pages) */
.hero-gradient {
    background: linear-gradient(158deg, rgba(2, 0, 36, 1) 0%, rgba(0, 50, 92, 1) 35%, rgba(0, 88, 160, 1) 64%, rgba(50, 137, 224, 1) 100%) !important;
    position: relative;
}

/* Hide video in about, contact and fulfillment pages */
.about .hero-video,
.contact .hero-video,
.fulfillment .hero-video {
    display: none !important;
}

/* Show video with same tonality as cosmetica-profumeria in startup and aziende pages */
.startup .hero-video,
.aziende .hero-video,
.farmacie .hero-video {
    display: block !important;
    z-index: 0;
}

/* Remove video overlay for about, contact and fulfillment pages */
.about .hero::before,
.contact .hero::before,
.fulfillment .hero::before {
    display: none !important;
}

/* Hero with Granim animation */
.hero-animated {
    position: relative;
    overflow: hidden;
}

/* Extend canvas to cover full page height including header area and form section */
.contact .hero-animated #granim-canvas-contact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 200vh; /* Extend beyond viewport to cover entire page content */
    z-index: -1; /* Behind everything including header */
}



/* Ensure the contact page body can contain the extended background */
.contact {
    position: relative;
    min-height: 100vh;
}

/* Default canvas positioning for other pages */
.hero-animated #granim-canvas:not(#granim-canvas-contact) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Startup and Aziende canvas positioning */
.startup .hero-animated #granim-canvas-startup,
.aziende .hero-animated #granim-canvas-aziende,
.farmacie .hero-animated #granim-canvas-farmacie {
    display: none; /* Hide canvas to show video with blue overlay */
}

.hero-animated .container {
    position: relative;
    z-index: 10;
    pointer-events: auto; /* Allow hero content to receive events */
}

/* Hero with centered content (mono-column layout) */
.hero-centered {
    justify-content: center;
    text-align: center;
}

.hero-centered .hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* enforce 50/50 with safe shrinking */
    gap: clamp(1.5rem, 4vw, 4rem); /* fluid gap to reduce overflow risk */
    align-items: center;
    position: relative; /* layer above video and overlay */
    z-index: 2;
    transition: transform 0.1s ease-out; /* Smooth parallax transition */
    will-change: transform; /* Optimize for transform animations */
}

/* Override grid for centered hero */
.hero-centered.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-template-columns: none;
}

/* Desktop: widen home hero text block without altering the rest of the layout */
@media (min-width: 992px) {
    .home .hero .hero-content {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
    /* Keep the home hero title on two balanced lines on desktop */
    .home .hero .hero-title {
        font-size: clamp(2.2rem, 3.2vw, 2.7rem);
    }
}

/* Ensure equal columns don't overflow and shrink properly */
.hero-text, .hero-image { min-width: 0; }
.hero-image { width: 100%; }
.hero-image canvas { display: block; width: 100% !important; height: auto !important; }

/* Spline as full-cover background layer inside hero */
.hero #spline-hero-container {
    position: absolute;
    inset: 0;
    z-index: 0; /* Behind content */
}

/* Spline viewer - oversized and centered for full-cover effect */
.hero #spline-hero-container spline-viewer {
    position: absolute;
    inset: 0;
    width: 125%;
    height: 125%;
    display: block;
    pointer-events: none; /* Allow clicks to pass through */
    left:-290px;
    opacity: 0.67; /* Semi-transparent background effect */
}

/* Desktop-only visual upscale without distorting model - MOVED TO CONSOLIDATED SECTION */

/* Non-home: enforce single-column hero layout */
.enterprise .hero .hero-content,
.pmi .hero .hero-content,
.farmacie .hero .hero-content {
  grid-template-columns: 1fr;
}

/* Startup and Aziende pages: use two-column layout like home page */
.startup .hero .hero-content,
.aziende .hero .hero-content,
.farmacie .hero .hero-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
}

/* Parallax effect for hero content elements */
.startup .hero .hero-text,
.aziende .hero .hero-text,
.farmacie .hero .hero-text {
  transform: translateY(0);
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.startup .hero .hero-image,
.aziende .hero .hero-image,
.farmacie .hero .hero-image {
  transform: translateY(0);
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* Hero Text Only - Single column layout (higher specificity) */
.fulfillment .hero-text-only .hero-content,
.hero-text-only .hero-content {
    grid-template-columns: 1fr !important;
    max-width: 900px;
    text-align: left;
}

.hero-text-only .hero-text {
    animation: heroFadeInSlide 1s ease-out forwards;
    opacity: 0;
}

.hero-text-only .hero-badge {
    animation: heroFadeInSlide 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-text-only .hero-title {
    animation: heroFadeInSlide 1s ease-out 0.4s forwards;
    opacity: 0;
    font-size: 3.5rem;
}

.hero-text-only .hero-subtitle {
    animation: heroFadeInSlide 1s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-text-only .hero-description {
    animation: heroFadeInSlide 1s ease-out 0.8s forwards;
    opacity: 0;
}

/* Keyframes for fade-in + slide-in animation */
@keyframes heroFadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-wrap: balance;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    text-wrap: balance;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    text-wrap: pretty;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* On non-home pages, hide right column image for single-column layout */
.enterprise .hero .hero-image,
.pmi .hero .hero-image {
    display: none;
}

/* Startup and Aziende pages: show hero-image for benefits card */
.startup .hero .hero-image,
.aziende .hero .hero-image,
.fulfillment .hero .hero-image,
.farmacie .hero .hero-image {
    display: block;
}

/* Non-home: add slight vertical breathing space around copy */
.enterprise .hero .hero-text,
.pmi .hero .hero-text,
.startup .hero .hero-text,
.aziende .hero .hero-text,
.fulfillment .hero .hero-text,
.farmacie .hero .hero-text {
  margin-top: 16px;
  margin-bottom: 16px;
}

.enterprise .hero .hero-text{
 margin-top: 3.3rem;
 margin-bottom: 3.3rem;
}

.hero-cta-button {
    margin-top: 2rem;
    display: inline-block;
}

/* Removed padding bottom to eliminate spacing issues with parallax */

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 3;
}

.benefit-card {
    text-align: left;
    padding: 2.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15);
    border-color: var(--color-primary);
}

/* Accordion header inside card */
.benefit-toggle {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 100%;
    height: 225px;
    transition: transform 0.3s ease;
}

.quote .benefit-icon-img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.benefit-card:hover .benefit-icon-img {
    transform: scale(1.05);
}

.benefit-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 1rem 0 0.8rem 0;
    color: #1a1a1a;
    position: relative;
}

.benefit-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.benefit-card:hover .benefit-title::after {
    width: 60px;
}

.benefit-caret {
  margin-left: auto;
  transition: transform 0.25s ease;
}
.benefit-toggle[aria-expanded="true"] .benefit-caret {
  transform: rotate(180deg);
}

/* Accordion panel */
.benefit-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.benefit-panel[aria-hidden="false"] {
  /* max-height is set inline via JS to scrollHeight for smooth transition */
}

.benefit-description {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-top: 0.9rem;
}

/* Benefit Card as Link */
.benefit-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.benefit-card-link:hover {
    text-decoration: none;
}

.benefit-cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.benefit-card-link:hover .benefit-cta {
    background: linear-gradient(135deg, var(--color-primary-dark), #004085);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

/* Specific styles for benefit-icon in index.html cards */
.benefit-card-link .benefit-icon {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(50, 137, 224, 0.05), rgba(0, 88, 160, 0.05));
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card-link .benefit-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(50, 137, 224, 0.15));
}

.home .benefit-card-link .benefit-icon-img,
.farmacie .benefit-card-link .benefit-icon-img { 
    width: 150%; 
    height: 150%;
}

.benefit-card-link:hover .benefit-icon {
    background: linear-gradient(135deg, rgba(50, 137, 224, 0.1), rgba(0, 88, 160, 0.1));
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(50, 137, 224, 0.2);
}

.benefit-card-link:hover .benefit-icon-img {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 8px 20px rgba(50, 137, 224, 0.25));
}

/* Section Title for Benefits */
.benefits .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-top: 2rem;
    color: #1a1a1a;
}

/* Clients Section */
.clients {
    padding: 60px 0;
    background: #f8f9fa;
}

.clients-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.client-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

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

.client-logo img {
    max-width: 120px;
    max-height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.client-logo:hover img {
    opacity: 1;
}

/* Integrations Section */
.integrations {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* Desktop: 3 columns, larger logos - MOVED TO CONSOLIDATED SECTION */

/* Small mobile integration styles - MOVED TO CONSOLIDATED SECTION */

.integration-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all var(--transition-base);
}

.integration-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.integration-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* Remove logo box background */
    border: none;            /* Remove any border */
    border-radius: 0;        /* No rounded corners */
}

.integration-logo img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain; /* Keep logo aspect ratio inside box */
    display: block;
}

.integration-description {
    color: var(--color-text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* New Integration Section Styles */
.integration-how-it-works {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.integration-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.integration-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 2px;
}

.integration-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Responsive layout for integration features */
@media (max-width: 768px) {
    .integration-features-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .integration-feature {
        padding: 1.5rem;
    }
    
    .integration-feature-title {
        font-size: 1.1rem;
    }
    
    .integration-feature-description {
        font-size: 0.95rem;
    }
}

.integration-feature {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 1px solid rgba(0,123,255,0.1);
    border-left: 4px solid var(--color-primary);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.integration-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,123,255,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.integration-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,123,255,0.15);
    border-color: rgba(0,123,255,0.2);
}

.integration-feature:hover::before {
    opacity: 1;
}

.integration-feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.integration-feature-title::before {
    content: '✓';
    color: var(--color-primary);
    font-weight: 900;
    font-size: var(--font-size-base);
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(0,123,255,0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.integration-feature-description {
    color: #555;
    line-height: 1.7;
    font-size: var(--font-size-base);
    margin: 0;
}

.integration-platforms {
    margin-top: 4rem;
}

.integration-platforms-intro {
    color: #555;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Default layout for all pages */
.integration-platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Special layout for home page: 2 rows x 3 columns */
.home .integration-platforms-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto 3rem auto;
}

/* Responsive adjustments for home page layout - MOVED TO CONSOLIDATED SECTION */

/* Small mobile home page layout - MOVED TO CONSOLIDATED SECTION */

.integration-platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0,123,255,0.08);
    border-radius: 12px;
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.integration-platform-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,123,255,0.02), rgba(0,123,255,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.integration-platform-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,123,255,0.12);
    background: #ffffff;
    border-color: rgba(0,123,255,0.15);
}

.integration-platform-item:hover::before {
    opacity: 1;
}

.integration-platform-logo {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    transition: all var(--transition-base);
    position: relative;
    z-index: 2;
}

.integration-platform-item:hover .integration-platform-logo {
    background: rgba(0,123,255,0.1);
    transform: scale(1.05);
}

.integration-platform-logo img {
    max-width: 55px;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all var(--transition-base);
}

.integration-platform-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #1a1a1a;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.integration-platform-item:hover .integration-platform-name {
    color: var(--color-primary);
}

.integration-api-note {
    background: linear-gradient(135deg, #f1f8ff 0%, #e3f2fd 50%, #f8f9fa 100%);
    border: 1px solid rgba(0,123,255,0.15);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.integration-api-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark), var(--color-primary));
}

.integration-api-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.2rem;
}

.integration-api-description {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}





/* Shared 3D stack for PMI, Startup, Enterprise */
.pmi-3d-stack, .startup-3d-stack, .enterprise-3d-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%; /* match column height */
}



/* Each 3D viewer fills half of the column height with a small gap and no box styling */
.pmi-3d, .startup-3d, .enterprise-3d {
    position: relative;
    flex: 1 1 0;
    min-height: 240px;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
}

/* Effetti speciali per gli oggetti 3D nelle sezioni partnership di startup e aziende */
.partnership-content .startup-3d {
    position: relative;
    background: transparent;
    border-radius: 16px;
    padding: 8px;
    transition: all var(--transition-base);
}

/* Effetto glow per il contenitore al hover */
.partnership-content .startup-3d:hover {
    background: radial-gradient(circle at center, rgba(50, 137, 224, 0.05) 0%, transparent 70%);
    transform: scale(1.01);
}

/* Rimosse animazioni sgargianti per un look più sobrio */



/* Canvases must stretch to container size */
.pmi-3d canvas, .startup-3d canvas, .enterprise-3d canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    /* Reduce stretching and contrast for better visual appearance */
    object-fit: contain; /* Maintain aspect ratio */
    filter: contrast(0.85) saturate(0.9); /* Reduce contrast and saturation */
}

/* Ensure 3D canvases scroll above hero on startup and aziende pages */
.startup .pmi-3d canvas,
.startup .startup-3d canvas,
.startup .enterprise-3d canvas,
.aziende .pmi-3d canvas,
.aziende .startup-3d canvas,
.aziende .enterprise-3d canvas {
    position: absolute !important;
    z-index: 100 !important;
}

/* Features Section - Enhanced with integration-features-list aesthetic */
.features {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

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

.features-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
    position: relative;
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 1px solid rgba(0,123,255,0.1);
    border-left: 4px solid var(--color-primary);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,123,255,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,123,255,0.15);
    border-color: rgba(0,123,255,0.2);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0,123,255,0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.feature-item:hover .feature-icon {
    background: rgba(0,123,255,0.15);
    transform: scale(1.05);
}

.feature-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.feature-text p {
    color: #555;
    line-height: 1.7;
    font-size: var(--font-size-base);
    margin: 0;
}

/* Responsive layout for features */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-text h4 {
        font-size: 1.1rem;
    }
    
    .feature-text p {
        font-size: 0.95rem;
    }
}

/* Features Conclusion */
.features-conclusion {
    margin-top: 4rem;
    text-align: center;
}

.conclusion-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.conclusion-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 2px 2px 0 0;
}

.conclusion-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.conclusion-text {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.7;
    font-style: italic;
    text-align: center;
}

/* Why Choose Us Section - Slider Styles */
.why-choose-us .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.why-choose-us .section-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.why-choose-us .features-subtitle {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

/* Slider Wrapper */
.advantages-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 60px;
}

.advantages-slider {
    overflow: hidden;
    border-radius: 12px;
}

.advantages-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
}

/* Advantage Cards */
.advantage-card {
    min-width: calc(33.333% - 1.333rem);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid rgba(0,123,255,0.1);
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,123,255,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,123,255,0.2);
    border-color: rgba(0,123,255,0.3);
}

.advantage-card:hover::before {
    opacity: 1;
}

.advantage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 100%;
    height: 150px;
    transition: all var(--transition-base);
}

.advantage-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.advantage-card:hover .advantage-icon-img {
    transform: scale(1.05);
}

.advantage-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.advantage-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.advantage-result {
    font-size: 0.95rem;
    color: var(--color-primary);
    line-height: 1.6;
    padding: 1rem 2rem 1rem 1rem;
    background: rgba(0,123,255,0.05);
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
    margin-top: auto; 
    
}
@media(min-width: 716px) {
    .advantage-result {
        min-height: 8rem;
    }
}

.advantage-icon,
.advantage-title {
  flex-shrink: 0;
}

.advantage-result strong {
    font-weight: 700;
    color: var(--color-primary-dark);
}

/* Slider Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,123,255,0.2);
}

.slider-nav:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,123,255,0.3);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.slider-dot:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--color-primary);
    width: 32px;
    border-radius: 6px;
}

/* CTA Inline Button */
.cta-inline-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.cta-inline-button:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), #004085);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.4);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(158deg, rgba(1, 29, 69, 1) 0%, rgba(0, 50, 92, 1) 15%, rgba(0, 88, 160, 1) 54%, rgba(50, 137, 224, 1) 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-primary {
    background: white;
    color: var(--color-primary);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 13px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.cta-secondary:hover {
    background: white;
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Page-specific gradient for CTA on all pages */
.home .cta-section,
.enterprise .cta-section,
.pmi .cta-section,
.startup .cta-section,
.aziende .cta-section {
    background: #011D45;
    background: linear-gradient(158deg, rgba(1, 29, 69, 1) 0%, rgba(0, 50, 92, 1) 15%, rgba(0, 88, 160, 1) 54%, rgba(50, 137, 224, 1) 100%);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo a {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.footer-logo a:hover {
    opacity: 0.8;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-description {
    color: #ccc;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-bottom {
    border-top: 1px solid var(--color-text);
    padding-top: 2rem;
    text-align: center;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }  

    button.menu-toggle{
        font-size:2.3rem !important
    }

    .nav>.cta-button {
        display: none;
    }
    
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        align-items: center;
        justify-content: center;
        width: auto;
        font-size: 0.9rem;
    }
    
    /* Styles for open mobile menu */
    .nav-menu.open {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        background-color: white;
    }
    
    .nav-menu.open .nav-link {
        color: var(--color-text) !important;
        text-shadow: none;
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .nav-menu.open .dropdown {
        width: 100%;
    }
    
    .nav-menu.open .dropdown-menu {
        position: static;
        box-shadow: none;
        margin-left: 1rem;
        width: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: white;
        display: none; /* Initially hidden, will be toggled by JS */
    }
    
    .nav-menu.open .dropdown-item {
        color: var(--color-text) !important;
        padding: 0.5rem 0;
    }
    
    /* Override header.scrolled styles when mobile menu is open */
    .header.scrolled .nav-menu.open .nav-link {
        color: var(--color-text) !important;
        text-shadow: none;
    }
    
    .header.scrolled .nav-menu.open .nav-link.active {
        color: var(--color-text) !important;
    }
    
    .header.scrolled .nav-menu.open .nav-link.active::after,
    .nav-menu.open .nav-link.active::after {
        display: none;
    }
    
    .header.scrolled .nav-menu.open .dropdown-item {
        color: var(--color-text) !important;
    }
    
    .header.scrolled .nav-menu.open .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: white;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .logo-img-monogram {
        display: none;
    }
    
    .logo-img-full {
        display: block;
    }
    
    .cta-button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        box-shadow: var(--shadow-md);
        background: white;
        padding: 0.5rem;
        margin-top: 0.5rem;
        z-index: 1001;
    }
    
    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .dropdown-item {
        padding: 0.5rem 0;
        border-left: none;
        color: white;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    
    .dropdown-item:hover {
        background: transparent;
        color: rgba(255,255,255,0.8);
    }
    
    .header.scrolled .dropdown-item {
        color: var(--color-text);
        text-shadow: none;
    }
    
    .header.scrolled .dropdown-item:hover {
        color: var(--color-primary);
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
        padding-top: 3rem;
    }
    
    /* Ensure hero-image is visible on mobile for startup and aziende pages */
    .startup .hero .hero-image,
    .aziende .hero .hero-image {
        display: block;
        margin-top: 2rem;
        transform: none !important; /* Override any parallax transforms on mobile */
    }
    
    /* Spline hero container mobile adjustments - full-cover approach */
    .hero #spline-hero-container spline-viewer {
        position: absolute;
        inset: 0;
        width: 320%;
        height: 320%;
        display: block;
        pointer-events: none;
        left: -190px;
        top: -45px;
        opacity: 0.67;
    }
    
    /* Add padding to hero content on mobile */
    .hero-content {
        padding-top: 1.2rem;
        padding-bottom: 2rem;
    }
    
    /* Startup and Aziende pages: extra bottom padding on mobile to prevent partnership-content overlap */
    .startup .hero,
    .aziende .hero {
        padding-bottom: 120px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-cta-button {
        display: inline-block;
        padding: 12px 24px;
        font-size: 1rem;
        text-align: center;
    }

    /* Mobile: let 3D stacks auto-size; ensure minimum viewer height */
    .pmi-3d-stack, .startup-3d-stack { height: auto; }
    .pmi-3d, .startup-3d { min-height: 220px; }
    
    .section-title {
        font-size: 2rem;
    }
    

    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .benefits-grid,
    .integrations-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Features conclusion mobile styles */
    .features-conclusion {
        margin-top: 3rem;
    }
    
    .conclusion-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .conclusion-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .conclusion-text {
        font-size: var(--font-size-base);
        line-height: 1.6;
    }
    
    /* Why Choose Us - Mobile Responsive */
    .why-choose-us .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .why-choose-us .section-intro {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .why-choose-us .features-subtitle {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .advantages-slider-wrapper {
        padding: 0 50px;
    }
    
    .advantage-card {
        min-width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .advantage-icon {
        width: 213px;
        height: 213px;
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .advantage-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .advantage-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .advantage-result {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .slider-dots {
        gap: 0.6rem;
        margin-top: 1.5rem;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .slider-dot.active {
        width: 24px;
    }
    
    .cta-inline-button {
        font-size: 1rem;
        padding: 14px 28px;
        margin-top: 1.5rem;
    }
    
    .integration-card {
        flex-direction: column;
        text-align: center;
    }
    
    /* New integration responsive styles */
    .integration-subtitle {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .integration-features-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .integration-feature {
        padding: 1.25rem;
    }
    
    .integration-platforms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .integration-platform-item {
        padding: 1rem;
    }
    
    .integration-platform-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }
    
    .integration-platform-logo img {
        max-width: 40px;
        max-height: 40px;
    }
    
    .integration-platform-name {
        font-size: 0.9rem;
    }
    
    .integration-api-note {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .integration-api-title {
        font-size: 1.1rem;
    }
    
    .integration-api-description {
        font-size: 0.95rem;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title,
    .services-title,
    .cta-title {
        font-size: 1.8rem;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    /* Form optimizations for small screens */
    .form-container {
        padding: 1.5rem;
    }
    
    .param-section {
        padding: 1rem;
    }
    
    .slider-value {
        min-width: 50px;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .slider-wrapper {
        gap: 0.75rem;
    }
    
    .main-form-section {
        padding: 100px 0 3rem 0;
    }
    
    .main-form-section .form-header .section-title {
        font-size: 1.6rem;
    }
    
    .main-form-section .form-header .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }
    
    .form-container {
        padding: 1.25rem;
    }
    
    .param-section {
        padding: 0.875rem;
    }
    
    .slider-value {
        min-width: 45px;
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .size-card {
        padding: 0.875rem;
    }
    
    .param-title {
        font-size: 1rem;
    }
    
    .param-description {
        font-size: 0.85rem;
    }
}

/* Accordion Style Uniformization - Apply startup-features-grid style to benefits-grid accordions */
/* Target the 3 sector pages: cosmetica-profumeria, settore-farmaceutico, integrazione-alimentare */
.benefits-grid[data-accordion="benefits"] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-grid[data-accordion="benefits"] .benefit-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.benefits-grid[data-accordion="benefits"] .benefit-card:hover {
    border-color: #3289e0;
    box-shadow: 0 8px 25px rgba(50, 137, 224, 0.15);
    transform: none;
}

.benefits-grid[data-accordion="benefits"] .benefit-card.active {
    border-color: #3289e0;
    box-shadow: 0 8px 25px rgba(50, 137, 224, 0.2);
}

.benefits-grid[data-accordion="benefits"] .benefit-toggle[aria-expanded="true"]{
    background: linear-gradient(135deg, #3289e0, #0058a0);
  
}



.benefits-grid[data-accordion="benefits"] .benefit-toggle {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    transition: all var(--transition-base);
    position: relative;
    width: 100%;
    border: none;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    gap: 0;
}


.benefits-grid[data-accordion="benefits"] .benefit-card.active .benefit-toggle {
    background: linear-gradient(135deg, #3289e0, #0058a0);
    color: white;
}

.benefits-grid[data-accordion="benefits"] .benefit-icon {
    font-size: 2.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    background: none;
    border-radius: 0;
    width: auto;
    height: auto;
    line-height: 1;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
    display: inline;
    text-align: left;
}

.benefits-grid[data-accordion="benefits"] .benefit-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.benefits-grid[data-accordion="benefits"] .benefit-card.active .benefit-icon {
    transform: scale(1.1);
}

.benefits-grid[data-accordion="benefits"] .benefit-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.benefits-grid[data-accordion="benefits"] .benefit-title::after {
    display: none;
}

.benefits-grid[data-accordion="benefits"] .benefit-card.active .benefit-title {
    color: white;
}

.benefits-grid[data-accordion="benefits"] .benefit-caret {
    font-size: 1.2rem;
    color: var(--color-text-light);
    transition: all var(--transition-base);
    transform: rotate(0deg);
    margin-left: auto;
}

.benefits-grid[data-accordion="benefits"] .benefit-card.active .benefit-caret {
    color: white;
    transform: rotate(180deg);
}

.benefits-grid[data-accordion="benefits"] .benefit-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: white;
}

.benefits-grid[data-accordion="benefits"] .benefit-card.active .benefit-panel {
    max-height: 200px;
    padding: 2rem;
}

.benefits-grid[data-accordion="benefits"] .benefit-description {
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
    font-size: var(--font-size-base);
    max-height: 200px;
    padding: 2rem;
}

/* Desktop Card Layout (768px and above) */
@media (min-width: 768px) {
    .benefits-grid[data-accordion="benefits"] {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr)); /* 3 colonne */

        gap: 2.5rem;
     
        max-width: 1200px;      /* opzionale: mantieni il tuo */
        margin-left: auto;
        margin-right: auto;
       
    }

     .benefits-grid[data-accordion="benefits"] > .benefit-card {
    grid-column: span 2;
  }

  /* centra le ultime due sulla seconda riga */
  .benefits-grid[data-accordion="benefits"] > .benefit-card:nth-last-child(2) {
    grid-column: 2 / span 2;  /* colonne 2–3 */
  }
  .benefits-grid[data-accordion="benefits"] > .benefit-card:last-child {
    grid-column: 4 / span 2;  /* colonne 4–5 */
  }
    
    .benefits-grid[data-accordion="benefits"] .benefit-card {
        display: flex;
        flex-direction: column;
        cursor: default;
        height: 31rem;
        padding: 2.5rem;
        border-radius: 16px;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border: 2px solid #e2e8f0;
        transition: all var(--transition-base);
        position: relative;
        overflow: hidden;
    }
    
    /* Top border effect on hover */
    .benefits-grid[data-accordion="benefits"] .benefit-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--color-primary), #3289e0);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .benefits-grid[data-accordion="benefits"] .benefit-card:hover::before {
        opacity: 1;
    }
    
    .benefits-grid[data-accordion="benefits"] .benefit-toggle {
        flex-direction: column;
        align-items: center;
        padding: 0;
        background: transparent !important;
        cursor: default;
        pointer-events: none;
        gap: 1.5rem;
        text-align: center;
    }
    
    .benefits-grid[data-accordion="benefits"] .benefit-icon {
        font-size: 3rem;
        margin-right: 0;
        margin-bottom: 0;
        width: 170px;
        height: 170px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border-radius: 0;
        padding: 0;
    }
    
    .benefits-grid[data-accordion="benefits"] .benefit-icon-img {
        width: 170px;
        height: 170px;
        object-fit: contain;
        transition: transform 0.3s ease;
    }
    
    .benefits-grid[data-accordion="benefits"] .benefit-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        font-weight: 600;
        color: var(--color-text);
        transition: all 0.3s ease;
    }
    
    .benefits-grid[data-accordion="benefits"] .benefit-caret {
        display: none;
    }
    
    .benefits-grid[data-accordion="benefits"] .benefit-panel {
        max-height: none;
        overflow: visible;
        padding: 0;
        transition: none;
    }
    
    .benefits-grid[data-accordion="benefits"] .benefit-description {
        padding: 0;
        max-height: none;
        margin-top: 0;
        color: var(--color-text-light);
        line-height: 1.7;
        transition: all 0.3s ease;
        position: relative;
        z-index: 10;
        text-align: center;
    }
    
    /* Hover effects for desktop cards - similar to strength-card */
    .benefits-grid[data-accordion="benefits"] .benefit-card:hover {
        transform: translateY(-8px);
        border-color: var(--color-primary);
        box-shadow: 0 25px 50px rgba(0, 123, 255, 0.2), 0 15px 30px rgba(50, 137, 224, 0.15), 0 5px 15px rgba(0, 88, 160, 0.1);
    }
    
    .benefits-grid[data-accordion="benefits"] .benefit-card:hover .benefit-icon-img {
        transform: rotate(5deg);
    }
    
    .benefits-grid[data-accordion="benefits"] .benefit-card:hover .benefit-title {
        color: var(--color-primary);
        text-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
    }
    
    .benefits-grid[data-accordion="benefits"] .benefit-card:hover .benefit-description {
        color: var(--color-text);
    }
    
    /* Remove active state styles on desktop */
    .benefits-grid[data-accordion="benefits"] .benefit-card.active {
        border-color: #e2e8f0;
        box-shadow: none;
    }
    
    .benefits-grid[data-accordion="benefits"] .benefit-card.active .benefit-toggle {
        background: transparent !important;
        color: inherit;
    }
    
    .benefits-grid[data-accordion="benefits"] .benefit-card.active .benefit-title {
        color: var(--color-text);
    }
    
    .benefits-grid[data-accordion="benefits"] .benefit-card.active .benefit-icon {
        transform: scale(1);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Slide-in on scroll for 3D viewers */
.startup-3d, .pmi-3d, .enterprise-3d {
  opacity: 0;
  transform: translateY(40px);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), opacity 600ms ease-out;
  transition-delay: var(--slide-delay, 0ms);
  will-change: transform, opacity;
}
.startup-3d.in-view, .pmi-3d.in-view, .enterprise-3d.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop: slide-in from right */
@media (min-width: 992px) {
  .startup-3d, .pmi-3d, .enterprise-3d {
    transform: translateX(60px);
  }
  .startup-3d.in-view, .pmi-3d.in-view, .enterprise-3d.in-view {
    transform: translateX(0);
  }
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.benefit-card,
.integration-card,
.feature-item {
    animation: fadeInUp 0.6s ease-out
}

/* Placeholder for missing images (escluso logo) */
img:not(.logo-img):not(.footer-logo-img) {
    /* background and border removed as requested */
    display: block;
}

/* Hide Spline watermark/logo (best-effort backup) */
spline-viewer::part(logo) { visibility: hidden !important; }
spline-viewer #logo { visibility: hidden !important; }
div#container a#logo { display: none !important;visibility: hidden; opacity: 0 !important; z-index: -2!important;}

/* === CHI SIAMO PAGE STYLES === */

/* Company Story Section */
.company-story {
    padding: 4rem 0;
    background: #f8f9fa;
}

.story-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.story-description {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 20;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Values Section */
.values {
    padding: 4rem 0;
    background: white;
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.value-card {
    text-align: center;
    padding: 2.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    flex: 0 1 calc(33.333% - 1.5rem);
    min-width: 280px;
    max-width: 400px;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 50px rgba(0, 123, 255, 0.2),
        0 15px 30px rgba(50, 137, 224, 0.15),
        0 5px 15px rgba(0, 88, 160, 0.1);
    border-color: var(--color-primary);
}

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 100%;
    height: 170px;
    transition: transform 0.3s ease;
}

.value-icon-img {
    width: 100%;
    height: 100%;
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.value-card:hover .value-icon-img {
    transform: scale(1.1);
}

.value-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 0.5rem;
}

.value-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.value-card:hover .value-title::after {
    width: 70px;
}

.value-description {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
    min-height: 3.4rem;
}

/* Team Section */
.team {
    padding: 4rem 0;
    background: #f8f9fa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e9ecef;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-placeholder {
    font-size: 3rem;
}

.member-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.member-role {
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-description {
    color: var(--color-text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Hero Two Columns Layout */
.hero-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-two-columns .hero-text {
    text-align: left;
}

.hero-image-placeholder {
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder-box {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.placeholder-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    font-weight: 500;
}

/* Chi Siamo Page - Extended Gradient Background */
.about .gradient-wrapper {
    position: relative;
    width: 100%;
}

.about .gradient-wrapper #granim-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.about .hero-extended-gradient {
    position: relative;
    z-index: 1;
}

/* Mission Section with Gradient Background */
.mission-section {
    padding: 2rem 0 4rem 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.mission-gradient-bg {
    background: transparent;
}

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

.mission-text {
    text-align: left;
    color: white;
}

.mission-text .section-title {
    text-align: left;
    color: white;
}

.mission-description {
    margin: 1.5rem 0 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.mission-image {
    width: 100%;
}

/* Experience Section with Gradient Background */
.experience-section {
    padding: 4rem 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.experience-gradient-bg {
    background: transparent;
}

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

.experience-text {
    text-align: left;
    color: white;
}

.experience-text .section-title {
    text-align: left;
    color: white;
}

.experience-description {
    margin: 1.5rem 0 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.experience-description:first-of-type {
    margin-top: 1.5rem;
}

.experience-image {
    width: 100%;
}

/* Slide-in Animations for Chi Siamo Page */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.slide-in-left {
    opacity: 0;
}

.slide-in-right {
    opacity: 0;
}

/* Active state for animations (triggered by JavaScript on scroll) */
.slide-in-left.active {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right.active {
    animation: slideInRight 0.8s ease-out forwards;
}

/* Stagger animation delays */
.mission-section .slide-in-left.active {
    animation-delay: 0.2s;
}

.mission-section .slide-in-right.active {
    animation-delay: 0.4s;
}

.experience-section .slide-in-left.active {
    animation-delay: 0.2s;
}

.experience-section .slide-in-right.active {
    animation-delay: 0.4s;
}

/* Image Placeholder for Sections */
.image-placeholder-box-section {
    width: 100%;
    min-height: 350px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.placeholder-text-section {
    color: rgba(100, 116, 139, 0.6);
    font-size: 1.2rem;
    font-weight: 500;
}

/* Image styling for chi-siamo sections */
.image-placeholder-box-section img.placeholder-text-section {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    color: initial;
    font-size: initial;
    font-weight: initial;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 4rem 0;
    background: white;
}

.why-description {
    max-width: 900px;
    margin: 2rem auto 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
}

/* === CONTATTACI PAGE STYLES === */

/* Contact Info Card */
.contact-info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Hero Image Placeholder */
.hero-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.hero-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 25%, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.1) 50%, transparent 50%, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    opacity: 0.3;
}

.placeholder-icon {
    font-size: 4rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    z-index: 1;
}

.placeholder-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    z-index: 1;
}

.placeholder-subtext {
    font-size: 0.9rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 0.5rem;
    z-index: 1;
}

/* Startup Benefits Card (manteniamo per compatibilità se necessario) */
.startup-benefits-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.startup-benefits-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-icon {
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.benefit-item strong {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.benefit-item p {
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.4;
}

.contact-info-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.contact-item strong {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.4;
}

/* Contact Methods Section */
.contact-methods {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    border: 1px solid #e2e8f0;
}

.contact-method:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.method-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-method h3 {
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-method p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.method-button {
    background: linear-gradient(135deg, #0058a0 0%, #3289e0 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-block;
}

.method-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 88, 160, 0.3);
    color: white;
    text-decoration: none;
}

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

/* Contact Form Section */
.contact-form-section {
    padding: 4rem 0;
    background: transparent; /* Keep transparent to let the gradient show through */
    overflow-x: hidden;
}

.form-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 50;
    overflow-x: hidden;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

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

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

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

.form-label {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.form-checkbox {
    margin-top: 0.2rem;
}

.form-checkbox-text {
    line-height: 1.5;
    color: #555;
}

.form-link {
    color: var(--color-primary);
    text-decoration: none;
}

.form-link:hover {
    text-decoration: underline;
}

.form-submit {
    margin-top: 1rem;
}

.form-button {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative;
    width: 100%;
}

.form-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.form-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.button-loading {
    display: none;
}

.form-button.loading .button-text {
    display: none;
}

.form-button.loading .button-loading {
    display: inline;
}

.form-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.form-success h3 {
    font-size: 1.5rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.form-success p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* Two-Column Form Layout (FBY-inspired) */
.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    width: 100%;
}

.form-business-params {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.form-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    min-width: 0;
}

/* Parameter Sections */
.param-section {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

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

.param-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.info-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.info-button:hover {
    background: var(--color-primary-dark);
}

.param-description {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

/* Slider Styles */
.slider-container {
    margin-bottom: 1rem;
}

.slider-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-value {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.form-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
}

.form-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #17a2b8;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.form-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #17a2b8;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slider-validation {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Checkbox Groups */
.checkbox-group {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.param-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.checkbox-text {
    color: var(--color-text);
}

/* Size Selection */
.size-options {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.size-option {
    cursor: pointer;
    flex: 1;
}

.size-checkbox {
    display: none;
}

.size-card {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    transition: all var(--transition-base);
    background: white;
}

.size-card:hover {
    border-color: var(--color-primary);
    background: #f8f9ff;
}

.size-checkbox:checked + .size-card {
    border-color: var(--color-primary);
    background: #f8f9ff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.size-icon {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.size-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.size-card:hover .size-icon svg,
.size-checkbox:checked + .size-card .size-icon svg {
    color: var(--color-primary);
    transform: scale(1.1);
}

.size-label {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
}

/* Parameter Selects */
.param-select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.param-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .form-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .size-options {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .form-container {
        padding: 2rem;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .quote .contact-form-section {
        margin: 0;
        padding: 0;
        max-width: 100vw;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .quote .contact-form-section .container {
        max-width: 100%;
        padding: 0;
    }
    
    .quote .form-container {
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
        padding: 1.5rem;
        margin: 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .size-options {
        gap: 0.75rem;
    }
    
    .param-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .slider-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background: white;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Container Styles */
.faq-container {
    max-width: 900px;
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.category-btn {
    background: rgba(0, 123, 255, 0.1);
    color: var(--color-primary);
    border: 2px solid rgba(0, 123, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.category-btn:hover {
    background: rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.category-btn.active:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* FAQ Content */
.faq-content {
    position: relative;
}

.faq-category {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.faq-category.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 123, 255, 0.3);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    flex: 1;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question[aria-expanded="true"] {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-primary);
    transition: all var(--transition-base);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.1);
    margin-left: 1rem;
}

.faq-question[aria-expanded="true"] .faq-toggle {
    transform: rotate(45deg);
    background: rgba(0, 123, 255, 0.2);
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--color-primary);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer[aria-hidden="false"] {
    padding: 0 1.5rem 1.5rem;
    max-height: 300px;
}

.faq-answer p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
    padding-top: 1rem;
}

.faq-answer .inline-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-answer .inline-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* FAQ Responsive Styles */
@media (max-width: 768px) {
    .faq-categories {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .faq-question {
        padding: 1.25rem;
    }
    
    .faq-question h3 {
        font-size: var(--font-size-base);
        line-height: 1.4;
    }
    
    .faq-toggle {
        width: 20px;
        height: 20px;
        font-size: 1.3rem;
        margin-left: 0.75rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem;
    }
    
    .faq-answer[aria-hidden="false"] {
        padding: 0 1.25rem 1.25rem;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
        padding-top: 0.75rem;
    }
}

/* CTA Buttons */
.cta-button-large {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button-large:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.cta-button-outline {
    display: inline-block;
    background: transparent;
    color: var(--color-primary);
    padding: 16px 32px;
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.cta-button-outline:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Contact CTA Section */
.contact-cta {
    padding: 4rem 0;
    background: linear-gradient(158deg, rgba(1, 29, 69, 1) 0%, rgba(0, 50, 92, 1) 15%, rgba(0, 88, 160, 1) 54%, rgba(50, 137, 224, 1) 100%);
    color: white;
}

.contact-cta.faq {
    background: transparent;
}

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

/* CTA with Image - Two column layout */
.cta-with-image .cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.cta-with-image .cta-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cta-with-image .cta-buttons {
    justify-content: flex-start;
}

.cta-with-image .cta-description {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.cta-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Navigation Active State */
.nav-link.active {
    color: rgba(255,255,255,0.8) !important;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.header.scrolled .nav-link.active {
    color: var(--color-primary) !important;
}

.header.scrolled .nav-link.active::after {
    background: var(--color-primary);
}

/* Footer Updates */
.footer {
    background: var(--color-text);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h4.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-logo-img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-description {
    color: #ccc;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #ccc;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

/* === RICHIEDI PREVENTIVO PAGE - FULL GRADIENT === */

/* Full page gradient canvas */
#granim-canvas-fullpage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Main form section with no hero */
.main-form-section {
    padding: 120px 0 4rem 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.main-form-section .form-container {
    margin-top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-form-section .form-header .section-title {
    color: #1a202c;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.main-form-section .form-header .section-subtitle {
    color: #4a5568;
    font-size: 1.1rem;
}

/* Quote Benefits Section */
.quote-benefits {
    padding: 4rem 0;
    background: transparent;
    position: relative;
    z-index: 2;
}

.quote-benefits .section-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-base);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, rgba(50, 137, 224, 0.1), rgba(0, 88, 160, 0.1));
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-icon svg {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote .benefit-card:hover .benefit-icon {
    background: linear-gradient(135deg, var(--color-primary), #0058a0);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(50, 137, 224, 0.3);
}

.benefit-card:hover .benefit-icon svg {
    color: white;
    transform: scale(1.15);
}

.benefit-card h3 {
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Ensure content stays above gradient */
.header, .footer {
    position: relative;
    z-index: 2;
}

/* Responsive styles for new pages */
@media (max-width: 992px) {
    .story-content,
    .technology-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .values-grid {
        flex-direction: column;
    }
    
    .value-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .team-grid,
    .story-stats {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .contact-info-card {
        padding: 1.5rem;
    }
    
    .startup-benefits-card {
        padding: 1.5rem;
    }
    
    /* Mission and Experience - Mobile: single column */
    .mission-content,
    .experience-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mission-text,
    .experience-text {
        text-align: center;
    }
    
    .mission-text .section-title,
    .experience-text .section-title {
        text-align: center;
    }
    
    .mission-description,
    .experience-description {
        text-align: center;
    }
    
    /* Image Placeholder - Mobile */
    .image-placeholder-box-section {
        min-height: 250px;
    }
    
    /* Values grid - Mobile: single column */
    .values-grid {
        flex-direction: column;
    }
    
    .value-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    /* Startup and Aziende: mobile responsive - single column layout */
    .startup .hero .hero-content,
    .aziende .hero .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Why Choose Us - Mobile */
    .why-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-button-large,
    .cta-button-outline {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* === STARTUP PAGE SPECIFIC STYLES === */

/* Partnership Message Section */
.partnership-message {
    padding: 100px 0 120px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

/* Parallax effect for startup and aziende pages */
.startup .partnership-message,
.aziende .partnership-message {
    position: relative;
    z-index: 10;
    transition: transform 0.1s ease-out;
    margin-top: -100px; /* Restored original overlap for proper parallax effect */
}

/* Enhanced parallax positioning for startup and aziende hero sections */
.startup .hero,
.aziende .hero {
    position: relative;
    z-index: 5;
    transition: transform 0.1s ease-out, opacity 0.2s ease-out;
    will-change: transform, opacity;
}

/* Ensure smooth transitions during parallax */
.startup .partnership-message,
.aziende .partnership-message {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}



.partnership-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 10rem;
    padding-bottom: 2rem;
}



.partnership-message .container {
    position: relative;
}








.partnership-text {
    text-align: left;
}

.partnership-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.partnership-text p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

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

/* Stili migliorati per i pulsanti nelle sezioni partnership */
.partnership-cta .cta-button {
    background: linear-gradient(135deg, #3289e0, #0058a0);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(50, 137, 224, 0.3);
    position: relative;
    overflow: hidden;
}

.partnership-cta .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.partnership-cta .cta-button:hover {
    background: linear-gradient(135deg, #0058a0, #004085);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(50, 137, 224, 0.4);
}

.partnership-cta .cta-button:hover::before {
    left: 100%;
}

/* Assicura che i pulsanti partnership usino gli stili migliorati */
.partnership-cta .cta-button-secondary {
    font-size: var(--font-size-base); /* Override per mantenere dimensione coerente */
}

.partnership-3d {
    position: relative;
    background: transparent;
}

/* Partnership 3D canvas styling - elegante con drop shadow sobria */
.partnership-3d canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain; /* Maintain aspect ratio */
    filter: contrast(1.05) saturate(1.05) brightness(1.02); /* Leggermente più definiti */
    border-radius: var(--border-radius); /* Bordi arrotondati */
    
    /* Drop shadow sobria con colori brand */
    box-shadow: rgba(0, 123, 255, 0.15) 0px 15px 40px;
    
    transition: all var(--transition-base);
    transform: translateZ(0); /* Ottimizzazione GPU */
}

/* Effetto hover più sobrio */
.partnership-3d canvas:hover {
    transform: translateY(-5px);
    filter: contrast(1.08) saturate(1.08) brightness(1.05);
    
    /* Drop shadow leggermente più intensa al hover con colori brand */
    box-shadow: rgba(0, 123, 255, 0.25) 0px 20px 50px;
}



/* Services Detail Section */
.services-detail {
    padding: 120px 0;
    background: linear-gradient(158deg, rgba(2, 0, 36, 1) 0%, rgba(0, 50, 92, 1) 35%, rgba(0, 88, 160, 1) 64%, rgba(50, 137, 224, 1) 100%);
    position: relative;
    overflow: hidden;
}

.services-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.03) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

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

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

.services-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.services-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.services-text {
    color: white;
}

.services-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.services-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.services-highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.services-highlight p {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.services-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenimento dimensioni immagini nella sezione approfondimento */
.services-image .services-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Services image stack for static images */
.services-image-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
}

.services-image-stack .services-img {
    flex: 1 1 0;
    min-height: 240px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive design for services section */
@media (max-width: 768px) {
    .services-detail {
        padding: 60px 0;
    }
    
    .services-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .services-text h3 {
        font-size: 1.5rem;
    }
    
    .services-image-stack .services-img {
        min-height: 200px;
    }
    
    /* Contenimento immagini approfondimento su mobile */
    .services-image .services-img {
        max-width: 100%;
        max-height: 350px;
    }
}

.cta-button-secondary {
    background: transparent;
    color: #3289e0;
    border: 2px solid #3289e0;
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #3289e0, #0058a0);
    transition: width 0.3s ease;
    z-index: -1;
}

.cta-button-secondary:hover {
    color: white;
    border-color: #0058a0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(50, 137, 224, 0.4);
}

.cta-button-secondary:hover::before {
    width: 100%;
}

/* Intro Section - Only for Startup and Aziende pages */
.intro-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(50, 137, 224, 0.3), transparent);
}

.intro-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text {
    padding-right: 20px;
}

.intro-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.intro-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #3289e0, #0058a0);
    border-radius: 2px;
}

.intro-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0058a0;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    margin-top: 2rem;
}

.intro-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin: 0;
}

.intro-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(50, 137, 224, 0.1), rgba(0, 88, 160, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.intro-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(50, 137, 224, 0.25);
}

.intro-image:hover::before {
    opacity: 1;
}

.intro-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-image:hover .intro-img {
    transform: scale(1.05);
}

/* Mobile responsive for intro section */
@media (max-width: 768px) {
    .intro-section {
        padding: 60px 0;
    }

    .intro-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-text {
        padding-right: 0;
        text-align: left;
    }

    .intro-title {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .intro-title::after {
        width: 50px;
        height: 3px;
        bottom: -8px;
    }

    .intro-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
        margin-top: 1.5rem;
    }

    .intro-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .intro-image {
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    }

    .intro-image:hover {
        transform: translateY(-4px);
    }
}

/* Tablet responsive for intro section */
@media (min-width: 769px) and (max-width: 992px) {
    .intro-wrapper {
        gap: 40px;
    }

    .intro-title {
        font-size: 2rem;
    }

    .intro-subtitle {
        font-size: 1.2rem;
    }
}

/* Why Startups Section */
.why-startups {
    padding: 100px 0;
    background: white;
}

.startup-features-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.startup-feature {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.startup-feature:hover {
    border-color: #3289e0;
    box-shadow: 0 8px 25px rgba(50, 137, 224, 0.15);
}

.startup-feature.active {
    border-color: #3289e0;
    box-shadow: 0 8px 25px rgba(50, 137, 224, 0.2);
}

.startup-feature-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    transition: all var(--transition-base);
    position: relative;
}

.startup-feature.active .startup-feature-header{
    background: linear-gradient(135deg, #3289e0, #0058a0) !important;
    color: white;
}

.startup-feature .feature-icon {
    font-size: 2.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.startup-feature.active .feature-icon {
    transform: scale(1.1);
}

.startup-feature h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.startup-feature.active h3 {
    color: white;
}

.startup-feature-toggle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    transition: all var(--transition-base);
    transform: rotate(0deg);
}

.startup-feature.active .startup-feature-toggle {
    color: white;
    transform: rotate(180deg);
}

.startup-feature-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: white;
}

.startup-feature.active .startup-feature-content {
    max-height: 300px;
    padding: 2rem;
}

.startup-feature p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
    font-size: var(--font-size-base);
}

/* Features Card Grid - Modern Card Layout */
.features-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3289e0, #0058a0);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #3289e0;
    box-shadow: 0 20px 40px rgba(50, 137, 224, 0.2);
}

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

.feature-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f7ff, #e6f2ff);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card-icon svg {
    width: 40px;
    height: 40px;
    color: #3289e0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-card-icon {
    background: linear-gradient(135deg, #3289e0, #0058a0);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(50, 137, 224, 0.3);
}

.feature-card:hover .feature-card-icon svg {
    color: white;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 1rem 0;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: #3289e0;
}

.feature-card p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

/* Why Choose Medrop Section - Startup Page Only */
.startup .why-choose-medrop {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.startup .why-choose-medrop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
}

.startup .why-choose-medrop .section-header {
    margin-bottom: 4rem;
}

.startup .why-choose-medrop .choice-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    position: relative;
}

.startup .why-choose-medrop .choice-row:last-child {
    margin-bottom: 0;
}

.startup .why-choose-medrop .choice-row.reverse {
    direction: rtl;
}

.startup .why-choose-medrop .choice-row.reverse > * {
    direction: ltr;
}

.startup .why-choose-medrop .choice-content {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.startup .why-choose-medrop .choice-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(50, 137, 224, 0.15);
}

.startup .why-choose-medrop .choice-number {
    display: inline-block;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3289e0, #0058a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.15;
    position: absolute;
    top: -1rem;
    left: 1rem;
    z-index: 0;
    font-size: 6rem;
}

.startup .why-choose-medrop .choice-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    padding-top: 1rem;
}

.startup .why-choose-medrop .choice-content h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #3289e0, #0058a0);
    margin-top: 1rem;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.startup .why-choose-medrop .choice-content:hover h3::after {
    width: 100px;
}

.startup .why-choose-medrop .choice-content > p {
    color: var(--color-text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.startup .why-choose-medrop .choice-features {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.startup .why-choose-medrop .choice-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    color: var(--color-text);
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.startup .why-choose-medrop .choice-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3289e0, #0058a0);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.startup .why-choose-medrop .choice-features li:hover {
    padding-left: 2.5rem;
    color: #3289e0;
}

.startup .why-choose-medrop .choice-features li:hover::before {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(50, 137, 224, 0.3);
}

.startup .why-choose-medrop .choice-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.startup .why-choose-medrop .choice-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(50, 137, 224, 0.1), rgba(0, 88, 160, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.startup .why-choose-medrop .choice-visual:hover::before {
    opacity: 1;
}

.startup .why-choose-medrop .choice-visual:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(50, 137, 224, 0.2);
}

.startup .why-choose-medrop .choice-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.startup .why-choose-medrop .choice-visual:hover .choice-img {
    transform: scale(1.05);
}

/* Decorative elements */
.startup .why-choose-medrop .choice-row::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(50, 137, 224, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.startup .why-choose-medrop .choice-row:nth-child(odd)::after {
    top: -50px;
    right: -50px;
}

.startup .why-choose-medrop .choice-row:nth-child(even)::after {
    bottom: -50px;
    left: -50px;
}

/* ============================================
   WHY CHOOSE MEDROP - AZIENDE
   ============================================ */

.aziende .why-choose-medrop,
.farmacie .why-choose-medrop {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.aziende .why-choose-medrop::before,
.farmacie .why-choose-medrop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
}

.aziende .why-choose-medrop .section-header,
.farmacie .why-choose-medrop .section-header {
    margin-bottom: 4rem;
}

.aziende .why-choose-medrop .choice-row,
.farmacie .why-choose-medrop .choice-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    position: relative;
}

.aziende .why-choose-medrop .choice-row:last-child,
.farmacie .why-choose-medrop .choice-row:last-child {
    margin-bottom: 0;
}

.aziende .why-choose-medrop .choice-row.reverse,
.farmacie .why-choose-medrop .choice-row.reverse {
    direction: rtl;
}

.aziende .why-choose-medrop .choice-row.reverse > *,
.farmacie .why-choose-medrop .choice-row.reverse > * {
    direction: ltr;
}

.aziende .why-choose-medrop .choice-content,
.farmacie .why-choose-medrop .choice-content {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.aziende .why-choose-medrop .choice-content:hover,
.farmacie .why-choose-medrop .choice-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(50, 137, 224, 0.15);
}

.aziende .why-choose-medrop .choice-number,
.farmacie .why-choose-medrop .choice-number {
    display: inline-block;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3289e0, #0058a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.15;
    position: absolute;
    top: -1rem;
    left: 1rem;
    z-index: 0;
    font-size: 6rem;
}

.aziende .why-choose-medrop .choice-content h3,
.farmacie .why-choose-medrop .choice-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    padding-top: 1rem;
}

.aziende .why-choose-medrop .choice-content h3::after,
.farmacie .why-choose-medrop .choice-content h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #3289e0, #0058a0);
    margin-top: 1rem;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.aziende .why-choose-medrop .choice-content:hover h3::after,
.farmacie .why-choose-medrop .choice-content:hover h3::after {
    width: 100px;
}

.aziende .why-choose-medrop .choice-content > p,
.farmacie .why-choose-medrop .choice-content > p {
    color: var(--color-text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.aziende .why-choose-medrop .choice-features,
.farmacie .why-choose-medrop .choice-features {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.aziende .why-choose-medrop .choice-features li,
.farmacie .why-choose-medrop .choice-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    color: var(--color-text);
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.aziende .why-choose-medrop .choice-features li::before,
.farmacie .why-choose-medrop .choice-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3289e0, #0058a0);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.aziende .why-choose-medrop .choice-features li:hover,
.farmacie .why-choose-medrop .choice-features li:hover {
    padding-left: 2.5rem;
    color: #3289e0;
}

.aziende .why-choose-medrop .choice-features li:hover::before,
.farmacie .why-choose-medrop .choice-features li:hover::before {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(50, 137, 224, 0.3);
}

.aziende .why-choose-medrop .choice-visual,
.farmacie .why-choose-medrop .choice-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.aziende .why-choose-medrop .choice-visual::before,
.farmacie .why-choose-medrop .choice-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(50, 137, 224, 0.1), rgba(0, 88, 160, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.aziende .why-choose-medrop .choice-visual:hover::before {
    opacity: 1;
}

.aziende .why-choose-medrop .choice-visual:hover,
.farmacie .why-choose-medrop .choice-visual:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(50, 137, 224, 0.2);
}

.aziende .why-choose-medrop .choice-img,
.farmacie .why-choose-medrop .choice-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.aziende .why-choose-medrop .choice-visual:hover .choice-img,
.farmacie .why-choose-medrop .choice-visual:hover .choice-img {
    transform: scale(1.05);
}

/* Decorative elements */
.aziende .why-choose-medrop .choice-row::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(50, 137, 224, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.aziende .why-choose-medrop .choice-row:nth-child(odd)::after {
    top: -50px;
    right: -50px;
}

.aziende .why-choose-medrop .choice-row:nth-child(even)::after {
    bottom: -50px;
    left: -50px;
}

/* Tablet responsive for card grid */
@media (max-width: 992px) and (min-width: 769px) {
    .features-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Why Choose Medrop - Tablet */
    .startup .why-choose-medrop .choice-row {
        gap: 3rem;
    }
    
    .startup .why-choose-medrop .choice-content {
        padding: 1.5rem;
    }
    
    .startup .why-choose-medrop .choice-content h3 {
        font-size: 1.5rem;
    }
    
    .startup .why-choose-medrop .choice-number {
        font-size: 5rem;
    }
    
    /* Why Choose Medrop - Tablet - Aziende */
    .aziende .why-choose-medrop .choice-row,
.farmacie .why-choose-medrop .choice-row {
        gap: 3rem;
    }
    
    .aziende .why-choose-medrop .choice-content,
.farmacie .why-choose-medrop .choice-content {
        padding: 1.5rem;
    }
    
    .aziende .why-choose-medrop .choice-content h3,
.farmacie .why-choose-medrop .choice-content h3 {
        font-size: 1.5rem;
    }
    
    .aziende .why-choose-medrop .choice-number,
.farmacie .why-choose-medrop .choice-number {
        font-size: 5rem;
    }
}

/* Mobile responsive for startup sections */
@media (max-width: 768px) {
    /* Features Card Grid - Responsive */
    .features-card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-card-icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-card-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    /* Why Choose Medrop - Mobile */
    .startup .why-choose-medrop {
        padding: 60px 0;
    }
    
    .startup .why-choose-medrop .section-header {
        margin-bottom: 2.5rem;
    }
    
    .startup .why-choose-medrop .choice-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .startup .why-choose-medrop .choice-row.reverse {
        direction: ltr;
    }
    
    .startup .why-choose-medrop .choice-content {
        padding: 1.5rem;
        order: 2;
    }
    
    .startup .why-choose-medrop .choice-visual {
        order: 1;
    }
    
    .startup .why-choose-medrop .choice-content h3 {
        font-size: 1.4rem;
        padding-top: 0.5rem;
    }
    
    .startup .why-choose-medrop .choice-number {
        font-size: 4rem;
        top: -0.5rem;
    }
    
    .startup .why-choose-medrop .choice-content > p {
        font-size: 1rem;
    }
    
    .startup .why-choose-medrop .choice-features li {
        font-size: 0.95rem;
        padding-left: 1.8rem;
    }
    
    .startup .why-choose-medrop .choice-features li::before {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .startup .why-choose-medrop .choice-row::after {
        display: none;
    }
    
    /* Why Choose Medrop - Mobile - Aziende */
    .aziende .why-choose-medrop,
.farmacie .why-choose-medrop {
        padding: 60px 0;
    }
    
    .aziende .why-choose-medrop .section-header,
.farmacie .why-choose-medrop .section-header {
        margin-bottom: 2.5rem;
    }
    
    .aziende .why-choose-medrop .choice-row,
.farmacie .why-choose-medrop .choice-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .aziende .why-choose-medrop .choice-row.reverse,
.farmacie .why-choose-medrop .choice-row.reverse {
        direction: ltr;
    }
    
    .aziende .why-choose-medrop .choice-content,
.farmacie .why-choose-medrop .choice-content {
        padding: 1.5rem;
        order: 2;
    }
    
    .aziende .why-choose-medrop .choice-visual,
.farmacie .why-choose-medrop .choice-visual {
        order: 1;
    }
    
    .aziende .why-choose-medrop .choice-content h3,
.farmacie .why-choose-medrop .choice-content h3 {
        font-size: 1.4rem;
        padding-top: 0.5rem;
    }
    
    .aziende .why-choose-medrop .choice-number,
.farmacie .why-choose-medrop .choice-number {
        font-size: 4rem;
        top: -0.5rem;
    }
    
    .aziende .why-choose-medrop .choice-content > p,
.farmacie .why-choose-medrop .choice-content > p {
        font-size: 1rem;
    }
    
    .aziende .why-choose-medrop .choice-features li,
.farmacie .why-choose-medrop .choice-features li {
        font-size: 0.95rem;
        padding-left: 1.8rem;
    }
    
    .aziende .why-choose-medrop .choice-features li::before,
.farmacie .why-choose-medrop .choice-features li::before {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .aziende .why-choose-medrop .choice-row::after {
        display: none;
    }
    
    .partnership-message {
        padding: 80px 0 100px 0;
        min-height: 500px; /* Altezza fissa per evitare allungamenti eccessivi */
        max-height: 950px; /* Limite massimo per contenere la sezione */
    }
    
    .partnership-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 8rem;
        padding-bottom: 2rem;
    }
    
    .partnership-text {
        text-align: center;
    }
    
    .partnership-text h2 {
        font-size: 2rem;
    }
    
    .partnership-cta {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
    }
    
    .services-image-stack .services-img {
        min-height: 200px;
    }
    
    .cta-button-secondary {
        width: 100%;
        text-align: center;
        padding: 16px 24px;
        font-size: 1.1rem;
    }
    
    /* Riduci effetti su mobile per tutti i pulsanti secondari */
    .cta-button-secondary:hover {
        transform: translateY(-1px);
    }
    
    .cta-button-secondary::before {
        display: none; /* Disabilita effetto shimmer su mobile */
    }
    
    /* Stili mobile per i pulsanti partnership migliorati */
    .partnership-cta .cta-button {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 16px 24px;
        font-size: 1.1rem;
    }
    
    /* Riduci effetti su mobile per performance */
    .partnership-cta .cta-button:hover {
        transform: translateY(-1px);
    }
    
    .partnership-cta .cta-button::before {
        display: none; /* Disabilita effetti shimmer su mobile */
    }
    
    /* Effetti 3D ottimizzati per mobile nelle partnership */
    .partnership-content .startup-3d canvas {
        /* Drop shadow ridotta per mobile */
        box-shadow: rgba(0, 0, 0, 0.08) 0px 10px 30px;
    }
    
    /* Hover disabilitato su mobile per evitare problemi touch */
    .partnership-content .startup-3d canvas:hover {
        transform: none;
        box-shadow: rgba(0, 0, 0, 0.08) 0px 10px 30px;
    }
    
    .why-startups {
        padding: 80px 0;
    }
    
    .startup-features-grid {
        gap: 0.8rem;
        margin-top: 2rem;
    }
    
    .startup-feature-header {
        padding: 1.2rem 1.5rem;
    }
    
    .startup-feature .feature-icon {
        font-size: 2rem;
        margin-right: 1rem;
    }
    
    .startup-feature h3 {
        font-size: 1.2rem;
    }
    
    .startup-feature.active .startup-feature-content {
        padding: 1.5rem;
        max-height: 250px;
    }
    
    .startup-feature {
        padding: 1.5rem;
    }
}

/* ==============================================
   FULFILLMENT E-COMMERCE PAGE STYLES
   ============================================== */

/* Fulfillment specific body class */
.fulfillment .hero {
    background: transparent;
    position: relative;
    padding: 120px 0 80px;
    min-height: 500px;
    overflow: hidden;
}

/* Fulfillment canvas positioning */
.fulfillment .hero-animated #granim-canvas-fulfillment {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}





/* Fulfillment meaning section */
.fulfillment-meaning {
    padding: 80px 0;
    background: white;
}

.meaning-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.meaning-text .section-title {
    margin-top: 3rem;
}

.meaning-description p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #555;
}

.meaning-image img {
    opacity: 0.87;
    margin-top: 3rem;
    width: 100%;
    height: auto;
}

.meaning-image-placeholder {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    border-radius: 16px;
    border: 2px dashed var(--color-primary);
}

.meaning-image-placeholder .placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.meaning-image-placeholder .placeholder-text {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.meaning-image-placeholder .placeholder-subtext {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Fulfillment strengths section */
.fulfillment-strengths {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.strength-card {
    padding: 2.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.strength-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), #3289e0);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.strength-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,123,255,0.15);
    border-color: var(--color-primary);
}

.strength-card:hover::before {
    opacity: 1;
}

.strength-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    position: relative;
    z-index: 1;
}

.strength-icon img {
    width: 323%;
    height: 323%;
    padding-top: 5rem;
    padding-left: 10rem;
    object-fit: contain;
    transition: transform 0.3s ease;
    opacity: 0.156;
}

.strength-card:hover .strength-icon img {
    transform: translateX(15px);
    opacity: 0.3333;
}

.strength-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.strength-description {
    color: var(--color-text-light);
    line-height: 1.7;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.strength-card:hover .strength-title {
    color: var(--color-primary);
    text-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
}

.strength-card:hover .strength-description {
    color: var(--color-text);
}

/* Fulfillment process section */
.fulfillment-process {
    padding: 80px 0;
    background: white;
}

.process-steps {
    margin-top: 3rem;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    transition: all var(--transition-base);
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,123,255,0.1);
    border-color: var(--color-primary);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #3289e0);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
}

.step-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.step-description {
    color: var(--color-text-light);
    line-height: 1.6;
}

.step-image {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 12px rgba(0, 123, 255, 0.15));
}

/* Hover effects per le immagini degli step */
.process-step:hover .step-image img {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 8px 25px rgba(0, 123, 255, 0.35));
}

/* Animazione pulsante per attirare l'attenzione */
@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 4px 12px rgba(0, 123, 255, 0.15));
    }
    50% {
        filter: drop-shadow(0 8px 25px rgba(0, 123, 255, 0.35));
    }
}
/* ============================================
   RESPONSIVE DESIGN - FULFILLMENT PAGES ONLY
   (fulfillment-ecommerce.html & third-part-logistics.html)
   ============================================ */

/* Tablet and below - 768px */
@media (max-width: 768px) {
    /* Fulfillment Meaning Section */

    h2.section-title {
        padding-top: 3rem;
    }

    .hero-text-only .hero-title {
        font-size: 2.5rem;
    }
  
    .fulfillment .cta-with-image .cta-content {
    display: flex;
    flex-direction: column;
    }

    .fulfillment-meaning {
        padding: 60px 0;
    }
    
    .meaning-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .meaning-text {
        order: 1;
    }
    
    .meaning-image {
        order: 2;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Fulfillment Strengths Section */
    .fulfillment-strengths {
        padding: 60px 0;
    }
    
    .strengths-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .strength-card {
        padding: 1.5rem;
    }
    
    .strength-icon {
        height: 100px;
        margin-bottom: 1rem;
    }
    
    .strength-icon img {
        width: 200%;
        height: 200%;
        padding-top: 3rem;
        padding-left: 6rem;
    }
    
    .strength-title {
        font-size: 1.2rem;
    }
    
    .strength-description {
        font-size: 0.95rem;
    }
    
    /* Fulfillment Process Section */
    .fulfillment-process {
        padding: 60px 0;
    }
    
    .process-step {
        grid-template-columns: auto 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .step-image {
        grid-column: 1 / -1;
        margin: 1rem auto 0;
        width: 100px;
        height: 100px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
    
    .step-description {
        font-size: 0.95rem;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    /* Fulfillment Meaning Section */
    .fulfillment-meaning {
        padding: 50px 0;
    }

    .fulfillment .cta-with-image .cta-content {
    display: flex;
    flex-direction: column;
    }
    
    .meaning-content {
        gap: 2rem;
    }
    
    .meaning-text .section-title {
        font-size: 1.6rem;
    }
    
    .meaning-description p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    /* Fulfillment Strengths Section */
    .fulfillment-strengths {
        padding: 50px 0;
    }
    
    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .strength-card {
        padding: 1.25rem;
    }
    
    .strength-icon {
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .strength-icon img {
        width: 150%;
        height: 150%;
        padding-top: 2rem;
        padding-left: 3rem;
    }
    
    .strength-title {
        font-size: 1.1rem;
    }
    
    .strength-description {
        font-size: 0.9rem;
    }
    
    /* Fulfillment Process Section */
    .fulfillment-process {
        padding: 50px 0;
    }
    
    .process-step {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .step-content {
        order: 2;
    }
    
    .step-image {
        order: 3;
        grid-column: auto;
        margin: 1rem auto 0;
        width: 90px;
        height: 90px;
    }
    
    .step-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .step-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .process-footer {
        margin-top: 2rem;
    }
    
    .process-footer p {
        font-size: 0.95rem;
    }
}

/* Small Mobile - 375px */
@media (max-width: 375px) {
    /* Fulfillment Meaning Section */
    .meaning-content {
        gap: 1.5rem;
    }
    
    .meaning-text .section-title {
        font-size: 1.5rem;
    }
    
    .meaning-description p {
        font-size: 0.9rem;
    }

    .fulfillment .cta-with-image .cta-content {
    display: flex;
    flex-direction: column;
    }
    
    /* Fulfillment Strengths Section */
    .strength-card {
        padding: 1rem;
    }
    
    .strength-icon {
        height: 70px;
    }
    
    .strength-icon img {
        width: 120%;
        height: 120%;
        padding-top: 1.5rem;
        padding-left: 2rem;
    }
    
    .strength-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .strength-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    /* Fulfillment Process Section */
    .process-step {
        padding: 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .step-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .step-description {
        font-size: 0.85rem;
    }
    
    .step-image {
        width: 80px;
        height: 80px;
    }
    
    .process-footer p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}


@media (max-width: 768px){

.main-form-section .form-container {
    background: transparent !important;
    border:none;
}

.quote h2.section-title,p.section-subtitle{
    color: white !important;

}

h2.section-title{
    padding-top: 3.2rem;
}
}

@media (min-width: 768px){
.home .hero{
    padding-bottom:200px !important;
    padding-top:150px !important;
}



}


section.benefits p {
    text-align: center;
}


.farmacie .benefit-card-link .benefit-icon-img {
    background-color: white;
    filter: none;
    width: 100%;
    height: 100%;
}

.farmacie .benefit-card-link .benefit-icon {
    background: white !important;
}

/* ===== Clienti Carousel ===== */
.clienti-section {
    padding: 72px 0;
    background: #f8fafc;
    overflow: hidden;
}

.clienti-section .section-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 0 1.5rem;
}

.clienti-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    padding-top: 0;
    margin-bottom: 0.75rem;
}

.clienti-section .section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.marquee-track {
    display: flex;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.marquee-list {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-shrink: 0;
    animation: marquee-scroll 32s linear infinite;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

.marquee-track:hover .marquee-list {
    animation-play-state: paused;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 16px;
    padding: 1.6rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 123, 255, 0.08);
    border-radius: 12px;
    flex-shrink: 0;
    width: 160px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,123,255,0.02), rgba(0,123,255,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.12);
    border-color: rgba(0, 123, 255, 0.15);
}

.logo-item:hover::before {
    opacity: 1;
}

.logo-item img {
    max-width: 100px;
    max-height: 68px;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .clienti-section {
        padding: 52px 0;
    }

    .clienti-section .section-title {
        font-size: 1.5rem;
    }

    .logo-item {
        width: 120px;
        padding: 1.2rem 1.4rem;
        margin: 0 10px;
    }

    .logo-item img {
        max-width: 76px;
        max-height: 52px;
    }

    .marquee-list {
        animation-duration: 22s;
    }
}
