/* ============================================
   FRUITIME — Fresh Fruit for Offices in Rome
   Design System & Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --green-900: #1a3a1a;
    --green-800: #234823;
    --green-700: #2d5a2d;
    --green-600: #3a7a3a;
    --green-500: #4a9a4a;
    --green-100: #e8f5e8;
    --green-50: #f0f9f0;

    --cream: #fdf6ee;
    --cream-dark: #f5ebdc;
    --cream-light: #fffcf7;
    --white: #ffffff;
    --black: #111111;
    --gray-800: #2d2d2d;
    --gray-600: #555555;
    --gray-400: #999999;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;

    --orange: #e8871e;
    --orange-light: #fff3e0;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.12);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 104px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--cream-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* --- Container --- */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 30px;
}

/* --- Typography --- */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 900;
    color: var(--green-800);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.6rem;
    color: #888888;
    max-width: 750px;
    margin: 48px auto 40px;
    line-height: 1.3;
    font-weight: 500;
}

.section-subtitle strong {
    color: #000000;
    font-weight: 600;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: none;
}

/* --- Fruit Text — parallax image inside headings --- */
.fruit-text {
    /* Gradiente di base: il testo è SEMPRE visibile, anche prima che l'immagine carichi (no flash invisibile) */
    background-image: linear-gradient(115deg, #c2410c 0%, #d4521e 45%, #b81d24 100%);
    /* Immagine frutta come enhancement: WebP leggero (150KB) con fallback JPEG */
    background-image: -webkit-image-set(url('images/fruits-background.webp') type('image/webp'), url('images/fruits-background.webp') type('image/jpeg'));
    background-image: image-set(url('images/fruits-background.webp') type('image/webp'), url('images/fruits-background.webp') type('image/jpeg'));
    background-size: 120% auto;
    background-position: center 50%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: brightness(0.75) contrast(1.15) saturate(1.2);
}

.green-text {
    color: var(--green-800);
    -webkit-text-fill-color: var(--green-800);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 72, 35, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--green-800);
    border-color: var(--green-800);
}

.btn-outline:hover {
    background: var(--green-800);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--green-800);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--green-100);
    border-color: var(--green-100);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--cream-light);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 252, 247, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-top: 0;
    padding-bottom: 0;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.header.scrolled .nav {
    height: 74px;
}

.header.scrolled .logo-img {
    height: 48px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    transition: height 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.logo-img-footer {
    height: 60px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-600);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-800);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--green-800);
}

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

.nav-cta {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--green-800);
    border-radius: 1px;
    transition: all var(--transition);
}

/* ============================================
   HERO — Apple-style centered layout
   ============================================ */
.hero {
    min-height: calc(100vh - 74px);
    margin-top: 74px;
    padding: 0;
    background:
        url('images/fruitime-hero-background.webp') center / cover no-repeat,
        var(--cream-light);
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 74px);
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    margin-top: 24px;
    position: relative;
}

.hero-title::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 150%;
    height: 115%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse 50% 50% at center,
        rgba(255, 252, 247, 0.92) 0%,
        rgba(255, 252, 247, 0.75) 35%,
        rgba(255, 252, 247, 0.35) 60%,
        rgba(255, 252, 247, 0) 78%);
    filter: blur(8px);
    z-index: -1;
    pointer-events: none;
}

.hero-line {
    display: block;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.8;
    max-width: none;
    margin: 0 auto 32px;
}

.hero-image {
    max-width: 1200px;
    margin: auto auto 0;
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
    margin-bottom: 0;
}

/* ============================================
   FEATURES BAR — solid green boxes
   ============================================ */
.features {
    padding: 0;
    background: var(--cream-light);
}

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

.feature-card {
    background: #c8e6c8;
    border-radius: 0;
    padding: 48px 24px;
    text-align: center;
    transition: all var(--transition);
    cursor: default;
}

.feature-card:nth-child(1) {
    background: #c8e6c8;
}

.feature-card:nth-child(2) {
    background: #a0d4a0;
}

.feature-card:nth-child(3) {
    background: #7abc7a;
}

.feature-card:nth-child(4) {
    background: var(--green-800);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-title {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--green-800);
    line-height: 1.1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.feature-card:nth-child(4) .feature-title {
    color: var(--white);
}

/* ============================================
   BENEFITS / VANTAGGI
   ============================================ */
.benefits {
    padding: 100px 0;
    background: #FFFFFF;
}

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

.benefit-card {
    border-radius: var(--radius-xl);
    padding: 0;
    text-align: left;
    border: none;
    transition: all var(--transition);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
    background-color: var(--green-100);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.benefit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(20, 40, 20, 0) 35%,
        rgba(20, 40, 20, 0.55) 70%,
        rgba(20, 40, 20, 0.85) 100%);
    transition: background var(--transition);
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.benefit-text {
    position: relative;
    z-index: 1;
    padding: 28px 24px;
}

.benefit-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.benefit-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.55;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    padding: 100px 0;
    background: var(--cream);
}

.how-title {
    line-height: 0.95;
}

.how-it-works .section-subtitle {
    margin-top: 24px;
    margin-bottom: 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--green-100);
    transform: translateX(-50%);
}

.timeline-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: var(--green-800);
    transition: height 0.6s ease;
}

.timeline.animated .timeline-line::after {
    height: 100%;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 120px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-left {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-right {
    left: 50%;
    text-align: left;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 90px;
    height: 90px;
    background: var(--green-800);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.timeline-item.visible .timeline-dot {
    transform: scale(1);
}

.timeline-left .timeline-dot {
    right: -45px;
}

.timeline-right .timeline-dot {
    left: -45px;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-800);
    margin-bottom: 12px;
    letter-spacing: 0.01em;
    text-transform: none;
}

.timeline-desc {
    font-size: 1.3rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
    padding: 100px 0;
    background: var(--cream-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--cream-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    border: none;
    aspect-ratio: 1;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    margin-top: auto;
    width: 100%;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.product-info {
    padding: 36px 28px 0;
}

.product-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-800);
    background: var(--green-100);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.tag-new {
    color: var(--orange);
    background: var(--orange-light);
}

.product-info h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--green-800);
    margin-bottom: 8px;
}

.product-info p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.product-format {
    font-size: 0.8rem !important;
    font-weight: 600;
    color: var(--green-600) !important;
    margin-bottom: 6px;
}

.product-card-wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.product-card-wide .product-image {
    aspect-ratio: auto;
}

.product-card-wide .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: 100px 0;
    background: var(--cream);
}

.services-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.services-content .section-title {
    margin-bottom: 24px;
}

.services-description {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.services-list {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.service-check {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--green-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-800);
    margin-top: 2px;
}

.service-check svg {
    width: 16px;
    height: 16px;
}

.service-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-800);
    margin-bottom: 2px;
}

.service-item p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.services-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
    padding: 100px 0;
    background: var(--cream-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    position: relative;
    border: 2px solid var(--gray-200);
    transition: all var(--transition);
}

.pricing-card:hover {
    border-color: var(--green-600);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-card-featured {
    border-color: var(--green-800);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

.pricing-card-featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-800);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green-800);
    margin-bottom: 4px;
}

.pricing-for {
    font-size: 0.9rem;
    color: var(--gray-400);
    font-weight: 500;
}

.pricing-price {
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 24px;
}

.price-currency {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-800);
    vertical-align: top;
    line-height: 1.8;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--green-800);
    letter-spacing: -0.03em;
    line-height: 1;
}

.price-custom {
    font-size: 2rem;
}

.price-period {
    font-size: 0.95rem;
    color: var(--gray-400);
    font-weight: 500;
}

.pricing-features {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features li {
    font-size: 0.95rem;
    color: var(--gray-600);
    padding-left: 28px;
    position: relative;
    line-height: 1.4;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--green-100);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 13l4 4L19 7' stroke='%23234823' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

/* ============================================
   SUSTAINABILITY
   ============================================ */
.sustainability {
    padding: 100px 0;
    background: var(--green-800);
    color: var(--white);
}

.sustainability-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.sustainability-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.sustainability-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.sustainability .section-label {
    background: rgba(255, 255, 255, 0.15);
    color: var(--green-100);
}

.sustainability .section-title {
    margin-bottom: 20px;
}

.sustainability .green-text {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
}

.sustainability-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 40px;
}

.sustainability-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 600;
    line-height: 1.3;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--white);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

/* Icone illustrate (immagini PNG a colori) */
.stat-icon--img {
    width: 64px;
    height: 64px;
    background: var(--white);
    padding: 8px;
}

.stat-icon--img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Variante "Sostenibilità Sociale": tema rosso chiaro */
.sustainability--social {
    background: #fce6e8;
    color: var(--gray-800);
}

/* Immagine a destra, testo a sinistra */
.sustainability--social .sustainability-image {
    order: 2;
}

.sustainability--social .sustainability-content {
    order: 1;
}

.sustainability--social .section-label {
    background: rgba(224, 52, 78, 0.12);
    color: #c2293f;
}

.sustainability--social .green-text {
    color: #e0344e;
    -webkit-text-fill-color: #e0344e;
}

.sustainability--social .sustainability-content p {
    opacity: 1;
    color: var(--gray-600);
}

.sustainability--social .stat-icon {
    background: rgba(224, 52, 78, 0.12);
    color: #e0344e;
}

.sustainability--social .stat-logo {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: var(--shadow-sm);
}

.sustainability--social .stat-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sustainability--social .stat-label {
    color: var(--gray-800);
}

.sustainability--social .stat-desc {
    color: var(--gray-600);
}

/* ============================================
   CLIENTS / TRUSTED BY
   ============================================ */
.clients {
    padding: 50px 0;
    background: var(--cream-light);
}

.clients-title {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--gray-400);
    margin-bottom: 32px;
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.client-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-400);
    opacity: 0.5;
    transition: opacity var(--transition);
    letter-spacing: -0.02em;
}

.client-logo:hover {
    opacity: 0.8;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: 100px 0;
    background: var(--cream);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: var(--orange);
    font-size: 1.2rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: var(--green-100);
    color: var(--green-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--green-800);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 40px 0;
    background: var(--cream);
}

.cta-box {
    background: linear-gradient(135deg, var(--green-800), var(--green-700));
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before,
.cta-box::after {
    display: none;
}

.cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--green-800);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

/* white glow around the CTA headline only */
.cta-box h2::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 130%;
    height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse 50% 50% at center,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.75) 35%,
        rgba(255, 255, 255, 0.35) 60%,
        rgba(255, 255, 255, 0) 78%);
    filter: blur(8px);
    z-index: -1;
    pointer-events: none;
}

.cta-box p {
    font-size: 1.15rem;
    color: var(--green-800);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.cta-box .btn-primary {
    background: var(--green-800);
    color: var(--white);
    border-color: var(--green-800);
    position: relative;
    z-index: 1;
}

.cta-box .btn-primary:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 100px 0;
    background: var(--cream-light);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-title {
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-600);
}

.contact-detail svg {
    color: var(--green-800);
    flex-shrink: 0;
}

.contact-detail a:hover {
    color: var(--green-800);
}

.contact-social {
    display: flex;
    gap: 12px;
}

.contact-social a {
    width: 44px;
    height: 44px;
    background: var(--green-100);
    color: var(--green-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.contact-social a:hover {
    background: var(--green-800);
    color: var(--white);
    transform: translateY(-2px);
}

.contact-social svg {
    width: 18px;
    height: 18px;
}

/* --- Form --- */
.contact-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--green-800);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-600);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(35, 72, 35, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.form-privacy {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--green-800);
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--green-800);
    text-decoration: underline;
    font-weight: 600;
}

.checkbox-label a:hover {
    color: var(--green-600);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-brand .logo {
    margin-bottom: 4px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-cities {
    margin-bottom: 8px;
    opacity: 0.7;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PROVA GRATUITA — MODALE
   ============================================ */
.prova-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.prova-overlay.active {
    opacity: 1;
    visibility: visible;
}

.prova-modal {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 48px 44px 40px;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prova-overlay.active .prova-modal {
    transform: translateY(0) scale(1);
}

.prova-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition);
}

.prova-close:hover {
    background: var(--gray-200);
    color: var(--black);
}

.prova-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.prova-sub {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 28px;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .prova-modal {
        padding: 40px 22px 28px;
    }
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.cart-sidebar.active {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s ease;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.cart-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--green-800);
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-600);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.cart-close:hover {
    color: var(--black);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-empty {
    text-align: center;
    color: var(--gray-400);
    font-size: 1rem;
    margin-top: 40px;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--gray-200);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
}

.cart-total-price {
    font-size: 1.3rem;
    color: var(--green-800);
}

.cart-checkout {
    width: 100%;
    justify-content: center;
}

.cart-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   STEPS FLOW (Come funziona — orizzontale)
   ============================================ */
.steps-tagline {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    font-style: italic;
    color: var(--green-500);
    line-height: 1;
    margin-bottom: 12px;
}

.steps-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 16px;
    margin-top: 56px;
}

.step-card {
    background: var(--cream-light);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-lg);
    padding: 56px 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all var(--transition);
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-500);
}

/* --- 3D animated icon badge --- */
.step-icon {
    --disc: 124px;
    width: var(--disc);
    height: var(--disc);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: stepFloat 3.6s ease-in-out infinite;
}

.steps-flow > div:nth-child(3) .step-icon {
    animation-delay: 0.5s;
}

.steps-flow > div:nth-child(5) .step-icon {
    animation-delay: 1s;
}

.step-card:hover .step-icon img {
    transform: scale(1.06);
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 10px 14px rgba(20, 40, 20, 0.3));
}

@keyframes stepFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
    .step-icon {
        animation: none;
    }
}

.step-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 2.4vw, 2.4rem);
    font-weight: 800;
    color: var(--green-800);
    margin-bottom: 16px;
}

.step-desc {
    font-size: 1.3rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--green-500);
}

/* ============================================
   PRODUCTS — clickable cards
   ============================================ */
.product-card {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

/* ============================================
   SUSTAINABILITY — 4 points with descriptions
   ============================================ */
.sustainability-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
}

.sustainability-stats .stat {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
}

.sustainability-stats .stat-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.sustainability-stats .stat-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    opacity: 1;
    margin-bottom: 6px;
}

.stat-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    opacity: 0.82;
}

/* ============================================
   SOCIAL SUSTAINABILITY (Cuore21)
   ============================================ */
.social-sust {
    padding: 100px 0;
    background: #fce6e8;
    position: relative;
    overflow: hidden;
}

.social-sust .container {
    position: relative;
    z-index: 1;
}

/* Cuore animato nel background, sotto le card */
.social-sust-heart {
    position: absolute;
    left: 50%;
    top: 58%;
    width: min(1100px, 125vw);
    color: #f4a9b1;
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: heartbeat 1.6s ease-in-out infinite;
}

.social-sust-heart svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 30px rgba(224, 85, 110, 0.25));
}

@keyframes heartbeat {
    0%   { transform: translate(-50%, -50%) scale(1); }
    14%  { transform: translate(-50%, -50%) scale(1.13); }
    28%  { transform: translate(-50%, -50%) scale(1); }
    42%  { transform: translate(-50%, -50%) scale(1.09); }
    56%  { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .social-sust-heart { animation: none; }
}

.social-sust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
}

.social-init-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-init-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.social-init-image {
    overflow: hidden;
}

.social-init-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.social-init-text {
    padding: 28px 26px 32px;
}

.social-init-text h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #9e1224;
    margin-bottom: 14px;
}

.social-init-text h3 .heart-3d {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 3px 3px rgba(140, 19, 37, 0.4));
}

.social-init-text p {
    font-size: 1.12rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ============================================
   CLIENTS / SOCIAL PROOF — logo marquee slider
   ============================================ */
.clients {
    overflow: hidden;
}

.clients .section-header {
    margin-bottom: 44px;
}

.clients-headline {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--green-800);
    line-height: 1.1;
}

.logo-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.logo-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: logoScroll 32s linear infinite;
}

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

@keyframes logoScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    margin: 0 44px;
}

.logo-brand {
    height: 56px;
    width: auto;
    display: block;
    opacity: 0.8;
    transition: opacity var(--transition), transform var(--transition);
}

.logo-item:hover .logo-brand {
    opacity: 1;
    transform: translateY(-3px);
}

/* Wordmark logos need their own heights so widths stay balanced */
.logo-brand-sephora {
    height: 24px;
}

.logo-brand-nexi {
    height: 36px;
}

.logo-brand-prysmian {
    height: 42px;
}

.logo-brand-azimut {
    height: 30px;
}

.logo-brand-michaelpage {
    height: 26px;
}

.logo-word {
    color: var(--green-800);
    opacity: 0.8;
    white-space: nowrap;
    line-height: 1;
    transition: opacity var(--transition), transform var(--transition);
}

.logo-item:hover .logo-word {
    opacity: 1;
    transform: translateY(-3px);
}

.logo-word-sephora {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.4rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.logo-word-nexi {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 2.9rem;
    letter-spacing: -0.03em;
    text-transform: lowercase;
}

.logo-word-prysmian {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
    .logo-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 32px;
    }
}

/* ============================================
   REVIEWS — Google trust badge + video
   ============================================ */
.reviews-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 40px auto 20px;
    width: fit-content;
    max-width: 100%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    padding: 12px 26px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.reviews-trust .g-logo svg {
    width: 24px;
    height: 24px;
    display: block;
}

.reviews-trust .rt-stars {
    color: var(--orange);
    letter-spacing: 2px;
    font-size: 1.05rem;
}

.reviews-trust .rt-text {
    font-size: 0.92rem;
    color: var(--gray-600);
    font-weight: 600;
}

.reviews-trust .rt-text strong {
    color: var(--green-800);
}

.video-feature {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 48px;
    max-width: 1180px;
    margin: 0 auto;
}

.reviews-video {
    position: relative;
    flex: 1 1 62%;
    min-width: 0;
    max-width: 760px;
    margin: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
    background: var(--green-900);
}

.video-quote {
    flex: 1 1 38%;
    margin: 0;
    text-align: left;
}

.video-quote blockquote {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.45;
    color: var(--green-800);
    font-weight: 700;
}

.video-quote figcaption strong {
    display: block;
    font-size: 1.05rem;
    color: var(--green-800);
}

.video-quote figcaption span {
    font-size: 0.92rem;
    color: var(--gray-600);
}

.reviews-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.reviews-video .rv-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reviews-video .rv-play {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    background: rgba(26, 58, 26, 0.4);
    color: var(--white);
    transition: background var(--transition);
}

.reviews-video:hover .rv-play {
    background: rgba(26, 58, 26, 0.55);
}

.reviews-video .rv-play svg {
    width: 78px;
    height: 78px;
}

.reviews-video .rv-label {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ============================================
   CTA — background image
   ============================================ */
.cta-box {
    background:
        url('images/frutta-scrivania.webp');
    background-size: cover;
    background-position: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2.4rem, 6vw, 4.5rem);
    }

    .services-layout,
    .sustainability-layout,
    .contact-layout {
        gap: 40px;
    }

    .pricing-grid {
        gap: 16px;
    }

    .pricing-card {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    /* Su mobile mostriamo comunque l'immagine frutta nelle headline (WebP leggero ~150KB con fallback JPEG) */
    .fruit-text {
        /* Fallback gradiente prima che l'immagine carichi (no flash invisibile) */
        background-image: linear-gradient(115deg, #c2410c 0%, #d4521e 45%, #b81d24 100%);
        background-image: -webkit-image-set(url('images/fruits-background.webp') type('image/webp'), url('images/fruits-background.webp') type('image/jpeg'));
        background-image: image-set(url('images/fruits-background.webp') type('image/webp'), url('images/fruits-background.webp') type('image/jpeg'));
        background-size: 180% auto;
        background-position: center 50%;
        background-repeat: no-repeat;
        filter: brightness(0.75) contrast(1.15) saturate(1.2);
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* Logo e pulsante X restano sopra l'overlay del menu */
    .nav.open .logo,
    .nav.open .nav-toggle {
        position: relative;
        z-index: 1001;
    }

    /* A menu aperto togli backdrop-filter dall'header: su Safari il filtro
       crea un containing block che "intrappola" gli elementi position:fixed
       figli, impedendo all'overlay di coprire la viewport. */
    body.nav-open .header,
    body.nav-open .header.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--cream-light);
    }

    /* Mobile menu open state — full screen overlay */
    .nav.open .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        height: 100dvh;
        background: var(--cream-light);
        padding: 96px 32px 120px;
        gap: 36px;
        z-index: 999;
        overflow-y: auto;
    }

    .nav.open .nav-links a {
        font-size: 2.25rem;
        font-weight: 700;
        padding: 0;
        border-bottom: none;
    }

    /* Nessuna sottolineatura sui link del menu mobile */
    .nav.open .nav-links a::after {
        display: none;
    }

    .nav.open .nav-cta {
        display: inline-flex;
        justify-content: center;
        position: fixed;
        left: 32px;
        right: 32px;
        bottom: 40px;
        z-index: 1000;
        padding: 18px 24px;
        font-size: 1.05rem;
    }

    /* Blocca lo scroll del body quando il menu è aperto */
    body.nav-open {
        overflow: hidden;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 0;
        margin-top: 74px;
        align-items: center;
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: calc(100vh - 74px);
        padding-bottom: 0;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 4rem);
        margin-top: 24px;
    }

    /* Su mobile la headline non deve sforare: min più basso + word-break di sicurezza */
    .section-title {
        font-size: clamp(2.4rem, 9vw, 4rem);
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }

    .hero-description {
        font-size: 1.15rem;
        max-width: none;
        padding: 0;
    }

    .hero-image {
        max-width: 100%;
        margin-top: auto;
        margin-bottom: 0;
    }

    .hero-image img {
        width: 100%;
        display: block;
        margin-bottom: 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-card {
        padding: 24px 16px;
    }

    .benefits-grid {
        gap: 16px;
    }

    .timeline {
        margin-top: 40px;
    }

    .timeline-line {
        left: 24px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding: 0 0 40px 70px !important;
    }

    .timeline-left .timeline-dot,
    .timeline-right .timeline-dot {
        left: 0 !important;
        right: auto !important;
    }

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

    .product-card-wide {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        gap: 24px;
    }

    .client-logo {
        font-size: 1.2rem;
    }

    .services-layout {
        grid-template-columns: 1fr;
    }

    .services-image {
        order: -1;
    }

    .services-image img {
        aspect-ratio: 16 / 9;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .pricing-card-featured {
        transform: none;
    }

    .pricing-card-featured:hover {
        transform: translateY(-4px);
    }

    .sustainability-layout {
        grid-template-columns: 1fr;
    }

    .sustainability-stats {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .steps-flow {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .step-arrow {
        transform: rotate(90deg);
        font-size: 1.8rem;
    }

    .social-sust-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .video-feature {
        flex-direction: column;
        gap: 28px;
    }

    .reviews-video {
        width: 100%;
        flex-basis: auto;
    }

    .video-quote {
        flex-basis: auto;
        text-align: center;
    }

    .video-quote blockquote {
        font-size: 1.3rem;
    }

    .cta-box {
        padding: 48px 28px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .how-title {
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: clamp(2rem, 11vw, 3.5rem);
    }

    .hero-image img {
        width: 100%;
    }

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

    .feature-card {
        padding: 20px 12px;
    }

    .feature-title {
        font-size: 0.85rem;
    }

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

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

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

/* ============================================
   Newsletter
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer-newsletter {
    margin-top: 28px;
}

.footer-newsletter h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-newsletter p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 14px;
}

.footer-newsletter-fields {
    display: flex;
    gap: 8px;
}

.footer-newsletter-fields input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 0.9rem;
}

.footer-newsletter-fields input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter-fields input[type="email"]:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

.footer-newsletter-fields .btn {
    flex-shrink: 0;
}

.footer-newsletter-privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.footer-newsletter-privacy a {
    color: var(--white);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-newsletter-fields {
        flex-direction: column;
    }

    .footer-newsletter-fields .btn {
        width: 100%;
    }
}

/* ============================================
   Solutions Slider (homepage)
   ============================================ */
.solutions .sol-slider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
}

.sol-slider-viewport {
    overflow: hidden;
    flex: 1;
}

.sol-slider-track {
    display: flex;
    gap: 28px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.sol-slide {
    flex: 0 0 calc((100% - 56px) / 3);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.sol-slide:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.sol-slide-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--green-50);
}

.sol-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.sol-slide-num {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--green-800);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
}

.sol-slide-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px 24px 28px;
}

.sol-slide-title {
    font-size: 1.3rem;
    color: var(--green-800);
    margin-bottom: 10px;
}

.sol-slide-tagline {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 22px;
}

.sol-slide-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--gray-200);
}

.sol-slide-price-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
}

.sol-slide-price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--orange);
}

.sol-slide-price-value span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
}

.sol-slide-link {
    margin-top: 18px;
    font-weight: 600;
    color: var(--green-700);
    text-decoration: none;
    transition: color var(--transition);
}

.sol-slide-link:hover {
    color: var(--orange);
}

.sol-slider-arrow {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--green-800);
    color: var(--white);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition), opacity var(--transition);
}

.sol-slider-arrow:hover {
    background: var(--green-700);
    transform: scale(1.08);
}

.sol-slider-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}

.sol-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.sol-slider-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--gray-200);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.sol-slider-dots button.active {
    background: var(--green-700);
    transform: scale(1.3);
}

@media (max-width: 900px) {
    .sol-slide {
        flex-basis: calc((100% - 28px) / 2);
    }
}

@media (max-width: 600px) {
    .solutions .sol-slider {
        gap: 8px;
    }

    .sol-slide {
        flex-basis: 100%;
    }

    .sol-slider-arrow {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}
