﻿/* ============================================
   ABCSTUDI - Main Stylesheet
   Brand Identity: Blue Gradients & Innovation
   ============================================ */

/* CSS Variables */
:root {
    /* Primary Blues */
    --blue-dark: #0a1628;
    --blue-deep: #0f2847;
    --blue-navy: #1a3a5c;
    --blue-medium: #2563eb;
    --blue-electric: #3b82f6;
    --blue-bright: #60a5fa;
    --blue-light: #93c5fd;
    --blue-pale: #dbeafe;
    
    /* Accent - Violet touches */
    --violet-deep: #4c1d95;
    --violet-medium: #7c3aed;
    --violet-light: #a78bfa;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-deep) 50%, var(--violet-deep) 100%);
    --gradient-primary: linear-gradient(135deg, var(--blue-medium) 0%, var(--blue-electric) 50%, var(--violet-medium) 100%);
    --gradient-light: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-light) 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-text: linear-gradient(135deg, var(--blue-electric) 0%, var(--violet-medium) 100%);
    
    /* Typography */
    --font-display: 'Clash Display', sans-serif;
    --font-body: 'Satoshi', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1400px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.12);
    --shadow-lg: 0 16px 48px rgba(10, 22, 40, 0.16);
    --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.3);
}

/* Font Imports (loaded in header) */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px; /* evita che l'header fissi copra gli ancoraggi */
    font-size: 16px;
}

body {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--blue-electric);
    color: var(--white);
}

.hero h1::selection,
.hero h1 .highlight::selection {
    color: var(--white);
}

.hero h1 .highlight::selection {
    -webkit-text-fill-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--blue-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* Specifico per la home page titolo piccolo*/
/*.page-home h1 {
    font-size: clamp(2.2rem, 4vw, 4.2rem);
}*/

p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

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

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

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-medium);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.89);
  border-radius: 0px 0px 16px 16px;
  box-shadow: 0 2px 50px rgba(2, 20, 114, 0.12);
  backdrop-filter: blur(7.9px);
  -webkit-backdrop-filter: blur(7.9px);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand .logo {
    height: 55px;
    width: auto;
}

.navbar-brand .logo-dark {
    display: none;
}

.navbar.scrolled .navbar-brand .logo-light {
    display: none;
}

.navbar.scrolled .navbar-brand .logo-dark {
    display: block;
}

.navbar-brand .brand-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition-fast);
}

.navbar.scrolled .navbar-brand .brand-text {
    color: var(--blue-dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    min-width: 230px;
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    background: rgba(10, 22, 40, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateY(12px);
}

.nav-item.has-submenu::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}

.nav-item.has-submenu:hover .nav-submenu,
.nav-item.has-submenu:focus-within .nav-submenu,
.nav-submenu:hover {
    display: flex;
    transform: translateY(0);
}

.nav-sublink {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 10px;
    border-radius: 10px;
    transition: var(--transition-fast);
}

.nav-sublink:hover,
.nav-sublink.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 8px 0;
}

.nav-link-submenu {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-subtoggle {
    display: none;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1;
    width: auto;
    height: auto;
    border: 0;
    color: var(--white);
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.navbar.scrolled .nav-link {
    color: var(--gray-700);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

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

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

.navbar.scrolled .nav-link:hover {
    color: var(--blue-electric);
}

.navbar.scrolled .nav-submenu {
    background: var(--white);
    border-color: rgba(15, 23, 42, 0.08);
}

.navbar.scrolled .nav-sublink {
    color: var(--gray-700);
}

.navbar.scrolled .nav-sublink:hover,
.navbar.scrolled .nav-sublink.active {
    color: var(--blue-electric);
    background: rgba(15, 23, 42, 0.06);
}

.nav-cta {
    padding: 12px 28px;
    background: var(--gradient-primary);
    color: var(--white) !important;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.nav-cta::after {
    display: none;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-fast);
}

.navbar.scrolled .nav-toggle span {
    background: var(--blue-dark);
}

/* Force dark nav variant on light headers */
body.nav-light .navbar {
    background: rgba(255, 255, 255, 0.94);
    padding: 12px 0;
    box-shadow: 0 8px 24px rgba(10, 22, 40, 0.08);
    backdrop-filter: blur(8px);
}

body.nav-light .navbar .logo-light {
    display: none;
}

body.nav-light .navbar .logo-dark {
    display: block;
}

body.nav-light .nav-link {
    color: var(--gray-800);
}

body.nav-light .nav-link:hover,
body.nav-light .nav-link.active {
    color: var(--blue-electric);
}

body.nav-light .nav-submenu {
    background: var(--white);
    border-color: rgba(15, 23, 42, 0.08);
    padding: 18px;
}

body.nav-light .nav-sublink {
    color: var(--gray-700);
}

body.nav-light .nav-sublink:hover,
body.nav-light .nav-sublink.active {
    color: var(--blue-electric);
    background: rgba(15, 23, 42, 0.06);
}

body.nav-light .nav-subtoggle {
    color: var(--blue-dark);
}

body.nav-light .nav-toggle span {
    background: var(--blue-dark);
}

body.menu-open {
    overflow: hidden;
}

body.nav-light .page-header h1,
body.nav-light .page-header p,
body.nav-light .breadcrumb a,
body.nav-light .breadcrumb span {
    color: var(--blue-dark);
}

body.nav-light .breadcrumb svg {
    color: var(--gray-500);
}

/* News listing: keep hero text white on gradient */
body.page-news .page-header h1,
body.page-blog .page-header h1,
body.page-news .page-header p,
body.page-blog .page-header p,
body.page-news .breadcrumb a,
body.page-blog .breadcrumb a,
body.page-news .breadcrumb span,
body.page-blog .breadcrumb span {
    color: var(--white);
}

body.page-news .breadcrumb svg,
body.page-blog .breadcrumb svg {
    color: rgba(255, 255, 255, 0.6);
}

body.policy-page .page-header h1,
body.policy-page .page-header p,
body.policy-page .breadcrumb a,
body.policy-page .breadcrumb span {
    color: var(--white);
}

body.policy-page .breadcrumb svg {
    color: rgba(255, 255, 255, 0.6);
}

.policy-page .policy-content a {
    color: #06f;
    text-decoration: none;
    font-weight: inherit;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.policy-page .policy-content a:hover {
    color: #06f;
}

@media (max-width: 992px) {
    body.nav-light .nav-menu {
        background: var(--white);
    }

    body.nav-light .nav-link {
        color: var(--blue-dark);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(96, 165, 250, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

/* Animated Grid Background */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Floating Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--blue-electric);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--violet-medium);
    bottom: -50px;
    left: -50px;
    animation-delay: -2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--blue-bright);
    top: 50%;
    left: 60%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* ============================================
   HERO SECTION - DUE VARIANTI
   1. hero (default) - con immagine a destra
   2. hero hero-centered - contenuto centrato senza immagine
   ============================================ */

/* ============================================
   BASE HERO (comune a entrambe le varianti)
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(96, 165, 250, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

/* Animated Grid Background */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Floating Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--blue-electric);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--violet-medium);
    bottom: -50px;
    left: -50px;
    animation-delay: -2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--blue-bright);
    top: 50%;
    left: 60%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* ============================================
   HERO SECTION - DUE VARIANTI
   1. hero (default) - con immagine a destra
   2. hero hero-centered - contenuto centrato senza immagine
   ============================================ */

/* ============================================
   BASE HERO (comune a entrambe le varianti)
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(96, 165, 250, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

/* Animated Grid Background */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Floating Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--blue-electric);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--violet-medium);
    bottom: -50px;
    left: -50px;
    animation-delay: -2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--blue-bright);
    top: 50%;
    left: 60%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Hero Content Base */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

/* Keep hero text and visual side-by-side on configuratori page */
.page-configuratori-prodotto .hero-content {
    max-width: 50%;
}

.page-configuratori-prodotto .hero-visual {
    width: 49%;
}

.page-configuratori-prodotto .footer-cta {
    display: none;
}

.page-configuratori-prodotto .footer-cta.page-cta {
    display: block;
}


@media (max-width: 992px) {
    .page-configuratori-prodotto .hero-visual {
        display: none;
    }

    .page-configuratori-prodotto .hero-content {
        max-width: 100%;
        text-align: center;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--blue-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: var(--blue-electric);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-heading-main {
    display: block;
}

.hero h1 .highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    gap: 60px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

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

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

.stat-number span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

/* ============================================
   VARIANTE 1: HERO CON IMMAGINE A DESTRA (default)
   Usa classe: .hero
   ============================================ */

/* Hero Visual - solo per variante con immagine */
/* ============================================
   HERO VISUAL - VARIANTE CON IMMAGINE
   Sostituisce il mockup browser con un'immagine reale
   ============================================ */

   .hero-visual {
    position: absolute;
    right: 0;
    top: 52%;
    transform: translateY(-50%);
    width: 45%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 40px;
    padding-left: 40px;
  }


.hero-image {
    position: relative;
    width: 100%;
    max-width: 650px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(59, 130, 246, 0.2);
    animation: heroImageFloat 6s ease-in-out infinite;
}

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

@keyframes heroImageFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Effetto bordo luminoso (opzionale) */
.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(124, 58, 237, 0.5));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-visual {
        display: none;
    }
}
.hero-mockup {
    position: relative;
    width: 100%;
    max-width: 600px;
}


.ai-gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-gradient-text::selection {
    background: var(--blue-electric);
    color: var(--white);
    -webkit-text-fill-color: var(--white);
}

.ai-gradient-text::-moz-selection {
    background: var(--blue-electric);
    color: var(--white);
}

.mockup-browser {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: mockupFloat 6s ease-in-out infinite;
}

@keyframes mockupFloat {
    0%, 100% { transform: translateY(0) rotateY(-5deg); }
    50% { transform: translateY(-20px) rotateY(-5deg); }
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }

.mockup-content {
    padding: 40px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mockup-line {
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.mockup-line:nth-child(1) { width: 60%; }
.mockup-line:nth-child(2) { width: 80%; }
.mockup-line:nth-child(3) { width: 45%; }
.mockup-line:nth-child(4) { width: 70%; height: 100px; margin-top: 20px; }


/* ============================================
   VARIANTE 2: HERO CENTRATO (senza immagine)
   Usa classe: .hero.hero-centered
   ============================================ */

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

.hero.hero-centered .hero-content {
    max-width: 95%;
    margin: 180px auto;
}

.hero.hero-centered .hero-description {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
    font-size: 1.35rem;
}

.hero.hero-centered .hero-buttons {
    justify-content: center;
}

.hero.hero-centered .hero-stats {
    justify-content: center;
}

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

/* Shapes posizionate diversamente per la versione centrata */
.hero.hero-centered .shape-1 {
    top: -150px;
    right: 10%;
}

.hero.hero-centered .shape-2 {
    bottom: -100px;
    left: 5%;
}

.hero.hero-centered .shape-3 {
    top: 30%;
    left: 10%;
}

/* Aggiungi una quarta shape per bilanciare */
.hero.hero-centered .shape-4 {
    width: 250px;
    height: 250px;
    background: var(--violet-light);
    bottom: 20%;
    right: 5%;
    animation-delay: -6s;
}

/* Nascondi l'hero-visual nella versione centrata */
.hero.hero-centered .hero-visual {
    display: none;
}


/* ============================================
   RESPONSIVE - ENTRAMBE LE VARIANTI
   ============================================ */

@media (max-width: 992px) {
    /* La versione con immagine diventa centrata su tablet/mobile */
    .hero-visual {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero.hero-centered .hero-content {
        margin: 140px auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stat-item {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .hero.hero-centered .hero-description {
        font-size: 1.15rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   CLIENT MARQUEE - FIX PER LOGHI DIMENSIONE FISSA
   Sostituisci la sezione "Client marquee" nel tuo styles.css
   ============================================ */

/* Client marquee */
.client-marquee {
    padding: 20px 0;
    background: var(--blue-dark);
    overflow: hidden;
}

.client-marquee-inner {
    position: relative;
    display: flex;
    width: max-content;
    
}

.client-track {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 30px;
    animation: marquee 250s linear infinite;
    flex-shrink: 0;
}

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

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.client-logo img {
    height: 70px;
  width: auto;
  max-width: max-content;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

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

/* Responsive - solo leggermente piu piccoli su mobile */
@media (max-width: 768px) {
    .client-track {
        gap: 40px;
        padding: 0 20px;
    }
    
    .client-logo img {
        height: 50px;
        max-width: 120px;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: var(--transition-medium);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.btn-dark:hover {
    background: var(--blue-deep);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--blue-medium);
    border: 2px solid var(--blue-medium);
}

.btn-outline:hover {
    background: var(--blue-medium);
    color: var(--white);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: var(--section-padding) 0;
}

.section-dark {
    background: var(--blue-dark);
    color: var(--white);
}


.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.7);
}

.section-gradient {
    background: var(--gradient-hero);
    color: var(--white);
}

.section-light {
    background: var(--gray-100);
}

.section-header {
    text-align: center;
    max-width: 80%;
    margin: 0 auto 80px;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue-electric);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.section-dark .section-label {
    color: var(--blue-light);
}

.section-header h2 {
    margin-bottom: 20px;
}

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


.metodo-section .section-header.allestimenti-summary {
    margin-top: 90px;
}

.metodo-section .section-header.process-summary {
    margin-top: 80px;
    margin-bottom: 0px;
  }

.section-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0 auto;
    max-width: calc(var(--container-max) - 48px);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    position: relative;
    padding: 42px 34px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.88) 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(37, 99, 235, 0.08);
    transition: var(--transition-medium);
    overflow: hidden;
    text-decoration: none;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(124,58,237,0.1));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-medium);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 58, 237, 0.25);
}

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

.service-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-light);
    border-radius: 16px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.service-icon svg {
    width: 36px;
    height: 36px;
    color: var(--blue-medium);
}

.service-thumb {
    width: 100%;
    height: 150px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(37,99,235,0.12);
    box-shadow: var(--shadow-xs);
    position: relative;
    z-index: 1;
}

.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    transition: var(--transition-fast);
    position: relative;
    z-index: 1;
}

.service-card:hover h3 {
    color: var(--blue-medium);
}

.service-card p {
    margin-bottom: 24px;
    color: var(--gray-500);
    position: relative;
    z-index: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--blue-medium);
    position: relative;
    z-index: 1;
}

.service-link svg {
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

.service-card:hover .service-link svg {
    transform: translateX(5px);
}

.service-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.micro-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    background: var(--gradient-primary);
    border-radius: 999px;
}

.micro-kpi {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37,99,235,0.08);
}

.service-quicklist {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.service-quicklist li {
    font-size: 0.95rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-quicklist li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-medium);
    display: inline-block;
}

.service-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
}

.service-pills.page-servizi {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: left!important;
    margin-top: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.pill-bright {
    background: var(--gradient-light);
    color: var(--blue-deep);
    border-color: rgba(37,99,235,0.15);
}

.pill-dark {
    background: var(--blue-dark);
    color: var(--white);
    border-color: rgba(255,255,255,0.08);
}

.pill-ghost {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--blue-dark);
}

.section-dark .pill-ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--white);
}

.pill-white {
    color: #fff;
    border-color: rgba(248, 248, 248, 0.7);
}

/* ============================================
   SERVICES PAGE - STACK PANELS
   ============================================ */
.services-stack {
    background: linear-gradient(180deg, #0b1221 0%, #0d1730 40%, #0a0f20 100%);
    padding: 150px 0;
    position: relative;
}

.services-stack-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
}

.service-panel {
    position: sticky;
    top: 110px;
    min-height: 520px;
    padding: 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(23, 36, 64, 0.72), rgba(17, 26, 49, 0.72));
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 28px;
    margin-bottom: 32px;
    transform-origin: center top;
    will-change: transform;
    overflow: hidden;
    opacity: 1;
    transform: none;
    transition: none;
}

.service-panel:hover {
    border: #2563eb 1px solid;
  }

.service-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(circle at 30% 20%, rgba(59,130,246,0.1), transparent 35%),
                radial-gradient(circle at 80% 80%, rgba(124,58,237,0.1), transparent 40%);
    z-index: 0;
    pointer-events: none;
}

.service-panel-left,
.service-panel-right {
    position: relative;
    z-index: 1;
}

.service-panel-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.service-icon-circle {
    display: none;
}

.service-heading h3 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 3.3rem;
  font-weight: 600;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-heading p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 18px;
}

.service-panel-right {
    display: flex;
    align-items: center;
    align-self: stretch;
}

.service-media {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    height: auto;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel {
    position: relative;
}

.carousel .slides {
    display: flex;
    transition: transform 0.35s ease;
}

.carousel .slides img {
    flex: 0 0 100%;
}

.carousel .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(0,0,0,0.4);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.carousel .nav.prev { left: 10px; }
.carousel .nav.next { right: 10px; }

.feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 30px 34px 0px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.9rem;
}

.chip::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7c9dff;
}

.service-number {
    display: none;
}

.service-panel .btn.btn-outline-light.btn-sm {
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 999px;
}

.service-cta {
    border: 1px solid rgba(96,165,250,0.9);
    color: var(--white);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(96,165,250,0.25);
    margin-top: auto;
    align-self: flex-start;
}

.service-cta:hover,
.service-cta:focus-visible {
    color: var(--white) !important;
    background: var(--gradient-primary);
    border-color: transparent;
}

.service-cta:hover::after,
.service-cta:focus-visible::after {
    color: var(--white);
}

.service-cta::after {
    content: '\2192';
    position: static;
    transform: translateX(0);
    font-weight: 700;
    color: #9dc8ff;
    transition: transform 0.2s ease;
}

.service-cta:hover::after {
    transform: translateX(4px);
}

.card-number {
    position: absolute;
    top: 32px;
    right: 32px;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.06);
    z-index: 0;
}

@media (max-width: 992px) {
    .services-stack {
        padding: 80px 0;
    }

    .service-panel {
        position: relative;
        grid-template-columns: 1fr;
        top: auto;
        padding: 24px;
        gap: 20px;
        border-radius: 20px;
    }

    .service-heading h3 {
        font-size: 2rem;
    }

    .service-heading p {
        font-size: 1rem;
    }

    .feature-chips {
        margin: 20px 0 24px;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .service-panel {
        padding: 30px;
        top: 60px;
        min-height: 0;
    }
    
    .service-media {
        height: auto;
    }
    
    .service-media img {
        height: 220px;
    }
    
    .card-number {
        font-size: 3rem;
        top: 20px;
        right: 20px;
    }
}

/* Process steps */
.process-step {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255,255,255,0.07);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 260px;
    height: 100%;
}

.process-step:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-10px);
}

.process-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.process-step h3,
.process-step h4 {
    color: var(--white);
    margin-bottom: 12px;
}

.process-step p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin: 0;
}

/* Branding page: fresh process card style */
.metodo-section.metodo-branding .process-step-branding {
    text-align: left;
    padding: 38px 32px 34px;
    background: linear-gradient(160deg, rgba(13, 22, 44, 0.95), rgba(18, 30, 58, 0.85));
    border: 1px solid rgba(96, 165, 250, 0.18);
    box-shadow: 0 18px 50px rgba(6, 12, 26, 0.5);
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.metodo-section.metodo-branding .process-step-branding::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(96, 165, 250, 0.18), transparent 45%),
                radial-gradient(circle at 85% 80%, rgba(124, 58, 237, 0.18), transparent 50%);
    opacity: 0.7;
    pointer-events: none;
}

.metodo-section.metodo-branding .process-step-branding::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--gradient-primary);
    opacity: 0.75;
}

.metodo-section.metodo-branding .process-step-branding h3,
.metodo-section.metodo-branding .process-step-branding h4 {
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.metodo-section.metodo-branding .process-step-branding p {
    font-size: 1rem;
}

.metodo-section.metodo-branding .process-step-branding:hover {
    transform: translateY(-12px);
    box-shadow: 0 26px 70px rgba(8, 16, 34, 0.55);
    border-color: rgba(124, 58, 237, 0.35);
}
/* Quick Consult box */
.consult-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 36px 40px;
    border-radius: 20px;
    background: var(--gradient-hero);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 30px 90px rgba(0,0,0,0.35);
}

.consult-text h2 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 2rem;
}

.consult-text p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.consult-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.consult-actions .btn {
    min-width: 170px;
}

.consult-actions .btn .fa-whatsapp {
    margin-right: 8px;
    color: #25d366;
    font-size: 1.1rem;
}

.consult-note {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
}

@media (max-width: 768px) {
    .consult-panel {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .consult-actions {
        align-items: flex-start;
        width: 100%;
    }
}

/* ============================================
   CASE STUDIES SECTION
   ============================================ */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.case-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--gray-900);
    aspect-ratio: 16/10;
    cursor: pointer;
}

.page-casi-studio .case-card {
    box-shadow: var(--shadow-lg);
}

.case-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.case-card:hover .case-card-image {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.case-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(10, 22, 40, 0.95));
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-medium);
}

.case-card:hover .case-card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.case-category {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--blue-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.case-card h3 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.case-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 600;
}

.case-link svg {
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

.case-card:hover .case-link svg {
    transform: translateX(5px);
}

/* Featured Case Study */
.case-featured {
    grid-column: span 2;
    aspect-ratio: 21/9;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
/* Filtri: un'unica barra a pillola che non va mai a capo.
   Il filtro attivo è evidenziato da un indicatore che scorre (aggiunto da main.js);
   se lo spazio non basta la barra scorre in orizzontale con i bordi sfumati. */
.portfolio-filters {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 60px;
    padding: 6px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    scrollbar-width: none;
}

.portfolio-filters::-webkit-scrollbar {
    display: none;
}

/* Sfuma solo il lato dove ci sono altri filtri nascosti */
.portfolio-filters.fade-right {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent 100%);
}

.portfolio-filters.fade-left {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px);
    mask-image: linear-gradient(to right, transparent 0, #000 40px);
}

.portfolio-filters.fade-left.fade-right {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.filter-indicator {
    position: absolute;
    top: 6px;
    left: 0;
    height: calc(100% - 12px);
    border-radius: 999px;
    background: var(--gradient-primary);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.filter-btn {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    padding: 11px 22px;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--gray-600);
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.filter-btn:hover {
    color: var(--blue-dark);
    background: var(--gray-100);
}

.filter-btn.active,
.filter-btn.active:hover {
    color: var(--white);
    background: var(--gradient-primary);
}

/* Con l'indicatore attivo lo sfondo lo disegna lui */
.portfolio-filters.has-indicator .filter-btn.active,
.portfolio-filters.has-indicator .filter-btn.active:hover {
    background: transparent;
}

.filter-btn:focus-visible {
    outline: 2px solid var(--blue-electric);
    outline-offset: 2px;
}

.portfolio-filter-select {
    display: none;
    width: 100%;
    max-width: 360px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 999px;
}

.portfolio-filter-select:focus {
    outline: none;
    border-color: var(--blue-medium);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

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

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    transition: var(--transition-medium);
}


.portfolio-overlay p {
    color: #d4d4d4;
  }

.portfolio-item:hover .portfolio-overlay {
    opacity: 0.95;
}

.portfolio-overlay h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 8px;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-medium);
}

.portfolio-overlay span {
    color: var(--blue-light);
    font-size: 0.875rem;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-medium) 0.1s;
}

.portfolio-item:hover .portfolio-overlay h4,
.portfolio-item:hover .portfolio-overlay span {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================
   ADVANTAGES SECTION
   ============================================ */
.advantages-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

#vantaggi .advantages-wrapper {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

#vantaggi .advantages-content {
    max-width: none;
    text-align: center;
}

#vantaggi .advantages-content .section-label,
#vantaggi .advantages-content h2 {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

#vantaggi .advantages-content > p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

#vantaggi .advantage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

#vantaggi .advantage-item {
    margin-bottom: 0;
    text-align: left;
}

#vantaggi .advantage-item:hover {
    transform: translateY(-8px);
}

@media (max-width: 900px) {
    #vantaggi .advantage-grid {
        grid-template-columns: 1fr;
    }
}

.advantages-content h2 {
    margin-bottom: 24px;
}

.advantages-content > p {
    margin-bottom: 48px;
}

.advantage-item {
    display: flex;
    gap: 24px;
    margin-bottom: 36px;
    padding: 28px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
}

.advantage-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.advantage-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
}

.advantage-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.advantage-text h4 {
    margin-bottom: 8px;
}

.advantage-text p {
    font-size: 1rem;
    margin: 0;
}

.advantages-visual {
    position: relative;
}

.advantages-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.advantages-image img {
    width: 100%;
    height: auto;
}

.advantages-stats {
    position: absolute;
    bottom: -40px;
    left: -40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mini-stat {
    padding: 24px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.mini-stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-medium);
    line-height: 1;
    margin-bottom: 8px;
}

.mini-stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ============================================
   ABOUT / TEAM SECTION
   ============================================ */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.about-content .section-label {
    margin-bottom: 16px;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content p {
    margin-bottom: 20px;
}

.about-content p:last-of-type {
    margin-bottom: 32px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 48px;
}

.timeline-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue-medium);
    min-width: 80px;
}

.timeline-content h4 {
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.95rem;
    margin: 0;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    top: -80px;
    right: -30px;
    width: 140px;
    height: 140px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    /*animation: rotate 20s linear infinite;*/
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-badge span:first-child {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.about-badge span:last-child {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Team Grid */
.team-header {
    text-align: center;
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

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

.team-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    aspect-ratio: 3/4;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.team-social {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 12px;
    opacity: 0;
    transition: var(--transition-medium);
}

.team-card:hover .team-social {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.team-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--blue-medium);
    transition: var(--transition-fast);
}

.team-social a:hover {
    background: var(--blue-medium);
    color: var(--white);
}

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

.team-card h4 {
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.95rem;
    color: var(--blue-medium);
    font-weight: 500;
}

/* ============================================
   FOOTER CTA
   ============================================ */
.footer-cta {
    padding: 120px 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 90%, rgba(124, 58, 237, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.4) 0%, transparent 40%);
    pointer-events: none;
}

.footer-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-cta h2 {
    color: var(--white);
    margin-bottom: 24px;
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-bottom: 48px;
}

.footer-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Main Footer */
.footer {
    background: var(--blue-dark);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .brand-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    font-size: 1rem;
}

.footer-brand img {
    max-width: 250px;
    margin-left: -10px;
  }

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

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--blue-electric);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 24px;
}

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

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--blue-electric);
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-legal {
    display: flex;
    gap: 30px;
}

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

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

.footer-disclosure {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    flex-basis: 100%;
}

.footer-disclosure a {
    color: rgba(255, 255, 255, 0.7);
}

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

/* ============================================
   PAGE HEADER (Internal Pages)
   ============================================ */
.page-header {
    padding: 180px 0 100px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.page-portfolio .page-header-content {
    max-width: 850px;
}

.page-servizi .page-header-content {
    max-width: 850px;
}

/* ============================================
   PORTFOLIO PAGES
   ============================================ */
.page-portfolio .case-intro-text {
    max-width: 560px;
}

.page-portfolio .case-lead {
    font-size: 1.35rem;
    color: var(--blue-dark);
    margin-bottom: 18px;
}

.page-portfolio .case-hero-media {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--gray-100);
}

.page-portfolio .case-hero-media img {
    width: 100%;
    height: auto;
    display: block;
}

.page-portfolio .project-side-panel {
    margin-top: 24px;
    padding: 20px 22px;
    border-radius: 18px;
    background: var(--gray-100);
    border: 1px solid rgba(15, 40, 71, 0.08);
    box-shadow: var(--shadow-sm);
    display: grid;
    place-items: center;
}

.page-portfolio .project-side-panel img {
    width: 100%;
    height: auto;
    display: block;
}

.page-portfolio .case-image-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.case-image-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.page-portfolio .case-image-row-compact {
    grid-template-columns: repeat(3, 1fr);
}

.case-image-row-compact {
    grid-template-columns: repeat(3, 1fr);
}

.page-portfolio .case-image-row-single {
    grid-template-columns: 1fr;
}

.case-image-row-single {
    grid-template-columns: 1fr;
    margin-top: 20px;
}

.page-portfolio .case-image-stack {
    margin-top: 24px;
}

.page-portfolio .case-image-row img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: var(--shadow-sm);
}

.case-image-row img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: var(--shadow-sm);
}

.page-portfolio .case-image-card {
    display: grid;
    gap: 12px;
}

.page-portfolio .case-video-section {
    width: 100%;
    background: var(--gray-100);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.page-portfolio .case-video-section video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.page-header-content {
    max-width: 90%;
}

.case-quote.reveal h2 {
    font-size: 2.5rem;
    width: 80%;
    margin: auto;
    color: #fff;
}

.case-intro-text {
    max-width: 560px;
}

.case-hero-media {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--gray-100);
}

.case-hero-media img {
    width: 100%;
    height: auto;
    display: block;
}

.case-video-section {
    width: 100%;
    background: var(--gray-100);
    padding: 0;
}

.case-video-section video {
    width: 100%;
    display: block;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
}

.case-video-trim {
    overflow: hidden;
}

.case-video-trim video {
    width: calc(100% + 10px) !important;
    margin-left: -5px;
    margin-right: -5px;
}

.case-image-row-compact {
    margin-top: 20px;
}

.case-highlights {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}


.section-header.casi-studio {
    max-width: 950px;
}

.case-highlight {
    background: var(--blue-dark);
    border-radius: 16px;
    padding: 35px 18px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    color: var(--white);
}

.case-highlight h4 {
    margin-bottom: 8px;
    color: var(--white);
    font-size: 1.3rem;
}

.case-highlight p {
    margin: 0;
    color: #d5d5d5;
    font-size: 1rem;
}

.case-quote {
    background: var(--gradient-hero);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    color: var(--white);
}

.case-quote p {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 600;
}

.case-quote span {
    display: inline-block;
    font-size: 0.95rem;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .case-text-center {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .case-image-row {
        grid-template-columns: 1fr;
    }

    .case-image-row-compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .case-image-row-compact {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Case study pages — ritmo verticale e rifiniture UI
   ============================================================ */
.page-case-study .section {
    padding: 76px 0;
}

/* Evita il margin-collapse che lasciava vedere il bianco del body
   sopra le sezioni pt-0 (numeri e immagini singole) */
.page-case-study .section.pt-0 .case-highlights,
.page-case-study .section.pt-0 .case-image-row-single {
    margin-top: 0;
}

.page-case-study .section-header.casi-studio {
    margin-bottom: 44px;
}

/* Riga numeri come "statistiche", non come schede di contenuto */
.page-case-study .case-highlights.is-stats {
    max-width: 940px;
    margin-top: 0;
}

.page-case-study .is-stats .case-highlight {
    background: transparent;
    box-shadow: none;
    padding: 8px 16px;
}

.page-case-study .is-stats .case-highlight h4 {
    font-size: 3rem;
    line-height: 1.05;
    margin-bottom: 6px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-case-study .is-stats .case-highlight p {
    color: #4a5a6e;
}

.page-case-study .is-stats .case-highlight p strong {
    display: block;
    color: var(--blue-dark);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

/* Schede di contenuto: altezza uniforme e leggero sollevamento al passaggio */
.page-case-study .case-highlights {
    align-items: stretch;
}

/* Sezione AI distinta dal flusso operativo e demo prima/dopo */
.page-case-study .section.case-ai-section {
    padding: 96px 0;
    background: var(--white);
    border-top: 1px solid rgba(16, 40, 75, 0.08);
    border-bottom: 1px solid rgba(16, 40, 75, 0.08);
}

.case-ai-demo {
    max-width: 1100px;
    margin: 44px auto 0;
    padding: 18px;
    background: var(--white);
    border: 1px solid rgba(16, 40, 75, 0.1);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.case-ai-demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.case-ai-demo-step img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
}

.case-ai-demo-step figcaption {
    margin-top: 16px;
    color: var(--blue-dark);
    font-size: 0.95rem;
    text-align: center;
}

.case-ai-demo figcaption b {
    color: var(--blue-electric);
}

/* Volevatch — sito, schermate e ritmo editoriale */
.page-case-study .section.case-volevatch-site {
    padding: 96px 0;
    background: var(--white);
    border-top: 1px solid rgba(16, 40, 75, 0.08);
    border-bottom: 1px solid rgba(16, 40, 75, 0.08);
}

.case-browser-showcase {
    max-width: 1100px;
    margin: 52px auto 0;
    padding: 14px;
    background: var(--white);
    border: 1px solid rgba(16, 40, 75, 0.1);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.case-browser-showcase img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.case-browser-showcase figcaption,
.case-volevatch-screens figcaption {
    padding: 14px 10px 2px;
    color: #53647a;
    font-size: 0.9rem;
    text-align: center;
}

.case-volevatch-screens {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.case-volevatch-screens figure {
    margin: 0;
    padding: 10px;
    background: var(--white);
    border: 1px solid rgba(16, 40, 75, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.case-volevatch-screens img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.page-case-study .section.case-volevatch-outcome {
    background: var(--white);
    border-top: 1px solid rgba(16, 40, 75, 0.08);
    border-bottom: 1px solid rgba(16, 40, 75, 0.08);
}

.case-fair-block + .case-fair-block {
    margin-top: 72px;
}

.case-fair-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.case-fair-heading h3 {
    margin-bottom: 10px;
    color: var(--blue-dark);
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
}

.case-fair-heading p {
    margin: 0;
    color: #53647a;
}

.case-fair-featured img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
}

.case-fair-trio img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
}

.page-case-study .case-highlight {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-case-study .case-highlights:not(.is-stats) .case-highlight:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Citazione: più respiro e larghezza contenuta */
.page-case-study .case-quote {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 576px) {
    .page-case-study .section {
        padding: 52px 0;
    }
    .page-case-study .is-stats .case-highlight h4 {
        font-size: 2.5rem;
    }

    .page-case-study .section.case-ai-section {
        padding: 68px 0;
    }

    .case-ai-demo {
        margin-top: 32px;
        padding: 12px;
    }

    .case-ai-demo-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .case-ai-demo figcaption {
        font-size: 0.85rem;
    }

    .page-case-study .section.case-volevatch-site {
        padding: 68px 0;
    }

    .case-browser-showcase {
        margin-top: 36px;
        padding: 8px;
        border-radius: 14px;
    }

    .case-volevatch-screens {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .case-fair-block + .case-fair-block {
        margin-top: 52px;
    }
}

.case-video-section {
    width: 100%;
    background: var(--gray-100);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.case-video-section video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.page-portfolio .case-video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

.case-video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

.page-portfolio .case-video-crop {
    margin-left: -1px;
    margin-top: -1px;
    width: calc(100% + 1px);
}

.page-portfolio .case-video-gallery {
    margin-top: 22px;
}

.page-portfolio .case-video-count {
    font-size: 0.95rem;
    color: var(--blue-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.page-portfolio .case-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.page-portfolio .case-video-thumb {
    display: grid;
    gap: 8px;
    text-decoration: none;
    color: var(--blue-dark);
    background: var(--white);
    border-radius: 14px;
    padding: 10px;
    border: 1px solid rgba(15, 40, 71, 0.08);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-portfolio .case-video-thumb img {
    width: 100%;
    border-radius: 10px;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.page-portfolio .case-video-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.page-portfolio .case-video-thumb:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.page-portfolio .case-video-thumb.is-active {
    border-color: rgba(15, 40, 71, 0.45);
    box-shadow: var(--shadow-md);
}

.page-portfolio .case-quote {
    background: var(--gradient-hero);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    color: var(--white);
}

.page-portfolio .section-subtitle {
    padding: 40px 0 0;
}

.page-portfolio .section-mini-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.2vw, 1.8rem);
    font-weight: 600;
    color: var(--blue-dark);
    letter-spacing: 0.01em;
    margin: 0;
    text-align: center;
}

.page-portfolio.page-portfolio-compact .section-mini-title {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.page-portfolio h4.section-mini-title {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    margin-bottom: 15px;
    margin-top: 30px;
}

.page-portfolio h6.section-mini-title {
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--white);
    background: rgba(0, 0, 0, 0.85);
    padding: 6px 12px;
    border-radius: 999px;
    display: inline-block;
    margin: 0 0 12px;
    text-align: center;
}

.page-portfolio .case-quote h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.page-portfolio .case-quote span {
    font-size: 0.95rem;
    opacity: 0.8;
}

.project-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.project-cta .btn-secondary {
    color: var(--blue-dark);
    border-color: var(--blue-dark);
    background: transparent;
}

.project-cta .btn-secondary:hover {
    background: rgba(10, 22, 40, 0.08);
}

.page-portfolio .project-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-portfolio .project-cta .btn-secondary {
    color: var(--blue-dark);
    border-color: var(--blue-dark);
    background: transparent;
}

.page-portfolio .project-cta .btn-secondary:hover {
    background: rgba(10, 22, 40, 0.08);
}

.page-portfolio .brochure-carousel-control {
    width: 56px;
    height: 56px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 16, 24, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    margin: 0 12px;
}

.page-portfolio .brochure-carousel-control .carousel-control-prev-icon,
.page-portfolio .brochure-carousel-control .carousel-control-next-icon {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.share-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 980;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background: var(--gradient-primary);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition-medium);
}

.share-button i {
    font-size: 0.95rem;
}

.share-label {
    display: inline;
    color: inherit;
    font-size: inherit;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.share-button:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.7);
    outline-offset: 3px;
}

.share-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 990;
}

.share-modal.is-open {
    display: flex;
}

.share-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.share-modal-panel {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 16px;
    text-align: center;
}

.share-modal-title {
    margin: 0;
    font-weight: 700;
    color: var(--blue-dark);
}

.share-modal-subtitle {
    margin: -6px 0 0;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.share-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gray-500);
    cursor: pointer;
}

.btn_utility {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    border: 0;
    justify-content: center;
    width: 100%;
}

.btn_utility .blocco_btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    cursor: pointer;
    position: relative;
    transition: var(--transition-medium);
}

.btn_utility .blocco_btn .ico {
    font-size: 1rem;
}

.btn_utility .blocco_btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

.btn_utility .blocco_btn.is-copied {
    background: var(--blue-dark);
}

.btn_utility .copy-feedback {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    background: var(--blue-dark);
    color: var(--white);
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: var(--transition-medium);
    white-space: nowrap;
}

.btn_utility .copy-feedback.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .share-container {
        right: 16px;
        bottom: 16px;
    }
    .btn_utility {
        padding: 8px;
    }
    .btn_utility .blocco_btn {
        width: 40px;
        height: 40px;
    }
    .share-modal-panel {
        width: calc(100% - 32px);
    }
}

@media (max-width: 992px) {
    .page-portfolio .case-image-row {
        grid-template-columns: 1fr;
    }

    .page-portfolio .case-image-row-compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-portfolio .case-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .page-portfolio .case-image-row-compact {
        grid-template-columns: 1fr;
    }

    .page-portfolio .case-video-grid {
        grid-template-columns: 1fr;
    }
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.breadcrumb a,
.breadcrumb span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

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

.breadcrumb svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.4);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 20px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.25rem;
}

/* ============================================
   SERVICE PAGES
   ============================================ */
.service-hero .hero-content {
    max-width: 90%;
}

.service-hero .hero-description {
    max-width: 80%;
    margin-right: auto;
    margin-left: auto;
}

.service-hero {
    min-height: 90vh;
}

.service-hero .hero-content {
    margin: 0 auto;
    text-align: center;
}

.service-hero .hero-buttons {
    justify-content: center;
}

.service-hero .hero-stats {
    justify-content: center;
}

.service-pillars-grid,
.service-deliverables-grid,
.service-flow {
    display: grid;
    gap: 24px;
}

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

.service-pillar-card {
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition-medium);
}

.service-pillar-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: var(--gradient-primary);
}

.service-pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.service-pillar-card h4 {
    margin-bottom: 12px;
}

.service-pillar-card p {
    margin: 0;
    font-size: 1rem;
}

/* Sviluppo web: pillars look */
.service-pillars-web .service-pillars-grid {
    gap: 28px;
}

.service-pillars-web .service-pillar-web {
    border-radius: 24px;
    padding: 34px 32px;
    background: linear-gradient(160deg, rgba(10, 22, 40, 0.98), rgba(18, 34, 64, 0.92));
    border: 1px solid rgba(96, 165, 250, 0.18);
    box-shadow: 0 20px 50px rgba(5, 10, 22, 0.4);
    position: relative;
    overflow: hidden;
}

.service-pillars-web .service-pillar-web::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.2), transparent 50%),
                radial-gradient(circle at 80% 85%, rgba(124, 58, 237, 0.22), transparent 55%);
    opacity: 0.85;
    pointer-events: none;
}

.service-pillars-web .service-pillar-web::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.service-pillars-web .service-pillar-web h4 {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
    color: var(--white);
}

.service-pillars-web .service-pillar-web p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.75);
}

.service-pillars-web .service-pillar-web:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 70px rgba(5, 10, 22, 0.55);
    border-color: rgba(124, 58, 237, 0.35);
}

/* Sviluppo web: featured ai-style card */
/* Sviluppo web: dark service block */
.web-services-dark {
    background: var(--blue-dark);
    padding: 120px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.web-services-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(96, 165, 250, 0.18), transparent 45%),
                radial-gradient(circle at 80% 85%, rgba(124, 58, 237, 0.2), transparent 55%);
    pointer-events: none;
}

.web-services-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 64px;
}

.web-services-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.web-services-title {
    color: var(--white);
    margin-bottom: 18px;
}

.web-services-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    max-width: 900px;
    margin: 0 auto 12px;
}

.web-services-subtitle-2 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    max-width: 980px;
    margin: 0 auto;
}

.web-services-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
}

.web-services-card {
    background: linear-gradient(160deg, rgba(13, 22, 44, 0.95), rgba(18, 30, 58, 0.85));
    border-radius: 28px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    padding: 54px 60px;
    box-shadow: 0 26px 70px rgba(6, 12, 26, 0.55);
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 28px;
}

.web-services-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(96, 165, 250, 0.18), transparent 45%),
                radial-gradient(circle at 85% 80%, rgba(124, 58, 237, 0.18), transparent 50%);
    opacity: 0.7;
    pointer-events: none;
}

.web-services-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--gradient-primary);
    opacity: 0.75;
}

.web-services-content h3 {
    color: var(--white);
    margin-bottom: 18px;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    letter-spacing: -0.01em;
}

.web-services-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 860px;
    margin-bottom: 36px;
}

.web-services-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.web-services-features li {
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.web-services-features li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.9);
    flex-shrink: 0;
}

.web-services-columns {
    display: grid;
    gap: 18px 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.web-services-column p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
}

.web-services-column p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .web-services-card {
        padding: 36px 30px;
    }

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

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

.service-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.service-split-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-split-image img {
    width: 100%;
    height: auto;
    display: block;
}

.territorio-actions {
    margin-top: 32px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--gray-700);
    text-align: left;
    justify-content: flex-start;
}

.news-foto-render .service-list li {
    font-size: 1.2rem;
    line-height: 1.6;
}

.news-logo .web-services-card p,
.news-logo .service-list li,
.news-logo .service-list p {
    color: rgba(255, 255, 255, 0.8);
}

.news-logo .service-pillars-grid {
    grid-template-columns: 1fr;
    justify-items: center;
}

.news-logo .service-pillar-web {
    text-align: center;
    max-width: 520px;
}

.news-logo .service-pillars-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-sm);
    color: var(--white);
    font-weight: 700;
    margin-bottom: 14px;
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
}

.news-logo .service-pillar-web h3 {
    color: var(--blue-dark);
    margin-bottom: 12px;
}

.news-logo .service-pillar-web p {
    color: var(--gray-700);
}

.news-logo .service-list {
    margin-left: 0;
    margin-right: auto;
    max-width: 760px;
}

.news-logo .service-list li {
    justify-content: flex-start;
    text-align: left;
}

.news-logo .service-list li p {
    margin: 0;
}

.news-logo .logo-section-divider {
    border: 0;
    height: 1px;
    max-width: 980px !important;
    background: #000;
  }

.news-logo .logo-example-divider {
    margin: 6px 0 18px;
    max-width: 140px;
}

.service-list svg {
    width: 22px;
    height: 22px;
    color: var(--blue-medium);
    flex-shrink: 0;
    margin-top: 2px;
}

.service-flow {
    grid-template-columns: repeat(4, 1fr);
}

.service-flow-card {
    background: var(--gray-100);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid var(--gray-200);
    height: 100%;
    transition: var(--transition-medium);
}

.service-flow-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-sm);
}

.service-flow-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--blue-medium);
    margin-bottom: 12px;
}

.service-flow-card h4 {
    margin-bottom: 10px;
}

.service-flow-card p {
    margin: 0;
    font-size: 0.98rem;
}

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

.service-deliverable-card {
    background: var(--white);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.service-deliverable-card h4 {
    margin-bottom: 10px;
}

.service-deliverable-card p {
    margin: 0;
    font-size: 0.95rem;
}

.service-cta-panel {
    background: var(--gradient-hero);
    border-radius: 28px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.service-cta-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 85%, rgba(59, 130, 246, 0.45) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(124, 58, 237, 0.45) 0%, transparent 45%);
    opacity: 0.8;
}

.service-cta-panel > * {
    position: relative;
    z-index: 1;
}

.service-cta-panel h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.service-cta-panel p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.service-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.value-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    height: 100%;
    transition: var(--transition-medium);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.value-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.12);
}

.value-icon svg {
    width: 26px;
    height: 26px;
    color: var(--blue-light);
}

.section-dark .value-card h4 {
    color: var(--white);
    margin-bottom: 10px;
}

.section-dark .value-card p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.service-page .footer-cta {
    display: none;
}

.service-page .footer-cta.page-cta {
    display: block;
}

.service-page .footer-cta-content {
    max-width: 80%;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .hero-visual {
        width: 40%;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    :root {
        --section-padding: 80px;
    }

    .page-header {
        padding: 140px 0 100px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        overflow-y: auto;
        background: var(--blue-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 28px 120px;
        gap: 24px;
        transition: var(--transition-medium);
    }

    /* Mobile: rely on JS toggle only, avoid sticky :hover behavior */
    .nav-item.has-submenu:hover .nav-submenu,
    .nav-item.has-submenu:focus-within .nav-submenu,
    .nav-submenu:hover {
        display: none;
    }

    .nav-item.has-submenu .nav-submenu {
        position: static;
        display: none;
        margin-top: 8px;
        padding: 10px 0 0;
        min-width: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .nav-menu.active .nav-item.has-submenu.submenu-open .nav-submenu {
        display: flex;
    }

    .nav-sublink {
        padding: 8px 10px;
    }

    .nav-subtoggle {
        display: inline-flex;
    }

    .nav-item.has-submenu.submenu-open .nav-subtoggle {
        transform: rotate(45deg);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .nav-link {
        font-size: 1.25rem;
        color: var(--white);
    }

    /* Keep mobile menu text readable when navbar is scrolled */
    .navbar.scrolled .nav-menu {
        background: var(--blue-dark);
    }

    .navbar.scrolled .nav-menu .nav-link,
    .navbar.scrolled .nav-menu .nav-sublink {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .case-card p {
        display: none;
    }
    
    .case-featured {
        grid-column: span 1;
    }
    
    .advantages-wrapper,
    .about-intro {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .about-badge {
        position: static;
        margin: 0 auto 30px;
        width: 100%;
        height: auto;
        padding: 10px 0;
        border-radius: 20px;
    }

    .service-hero .hero-content {
        margin: 140px auto;
    }
      
    
    .advantages-stats {
        position: static;
        margin-top: 30px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-split {
        grid-template-columns: 1fr;
    }

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

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

    .service-cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 34px 24px;
    }

    .service-topline {
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 8px;
    }

    .micro-badge,
    .micro-kpi {
        white-space: normal;
    }

    .service-quicklist {
        display: none;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .portfolio-filters {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        background: none;
        border: 0;
        box-shadow: none;
        overflow: visible;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .portfolio-filters .filter-btn,
    .portfolio-filters .filter-indicator {
        display: none;
    }

    .portfolio-filter-select {
        display: block;
        margin: 0 auto;
    }
    
    .case-card,
    .case-featured {
        aspect-ratio: 5 / 4;
    }

    .case-card h3 {
        font-size: 1.5rem;
    }

    .case-category,
    .case-link {
        font-size: 0.8rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }

    .service-pillars-grid,
    .service-deliverables-grid,
    .service-flow {
        grid-template-columns: 1fr;
    }

    .service-hero .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .reveal-delay-1,
    .reveal-delay-2,
    .reveal-delay-3,
    .reveal-delay-4 {
        transition-delay: 0s;
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .portfolio-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Parallax */
.parallax {
    will-change: transform;
}

/* Cursor Effect (optional) */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--blue-electric);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--blue-electric);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s;
    display: none;
}

/* Smooth Image Loading */
img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.loaded {
    opacity: 1;
}

/* Form Styles (Contact page) */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-800);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--blue-medium);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

.contact-form .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0.75rem;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--blue-medium);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   CONTACT BOOKING
   ============================================ */
.booking-header {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 32px;
}

.booking-header h2 {
    margin-bottom: 12px;
}


.booking-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
}

.booking-alert-success {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.booking-alert-error {
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.booking-modal-content {
    border-radius: 24px;
    border: 0;
    box-shadow: var(--shadow-lg);
}

.booking-modal-content .modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 24px 32px;
}

.booking-modal-content .modal-body {
    padding: 24px;
}

.booking-form .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.booking-modal-content .modal-header h2 {
    font-size: 1.35rem;
    line-height: 1.2;
    margin: 0 0 6px;
}

.booking-modal-content .modal-header p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--gray-600);
}

.booking-modal-content .booking-form .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

.booking-modal-content .form-label {
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.booking-modal-content .form-input,
.booking-modal-content .form-textarea {
    padding: 12px 16px;
    font-size: 0.95rem;
}

.booking-modal-content .form-textarea {
    min-height: 110px;
}

.flatpickr-day.is-booked,
.flatpickr-day.is-booked:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.4);
}

.flatpickr-day.is-booked.flatpickr-disabled {
    background: rgba(239, 68, 68, 0.2);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.4);
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #9ca3af;
    opacity: 1;
}

.flatpickr-day.is-weekend,
.flatpickr-day.is-weekend:hover {
    background: transparent;
    color: #f87171;
    border-color: transparent;
}

.flatpickr-day.today,
.flatpickr-day.today:hover {
    border: 2px solid rgba(59, 130, 246, 0.7);
    color: var(--blue-dark);
    background: rgba(59, 130, 246, 0.12);
}

.flatpickr-day.today.flatpickr-disabled,
.flatpickr-day.today.flatpickr-disabled:hover {
    border: 2px solid rgba(59, 130, 246, 0.6);
    color: var(--blue-dark);
    background: rgba(59, 130, 246, 0.12);
}

.flatpickr-calendar {
    z-index: 2000;
}

.flatpickr-calendar.static {
    top: auto;
    bottom: calc(100% + 8px);
    margin-top: 0;
    margin-bottom: 0;
}

.flatpickr-wrapper {
    display: block;
    width: 100%;
}

.datepicker {
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    font-family: var(--font-body);
    padding: 12px;
    background: var(--white);
}

.datepicker table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 6px 8px;
}

.datepicker td,
.datepicker th {
    width: 40px;
    height: 36px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
}

.datepicker thead {
    background: var(--gray-100);
    border-radius: 12px;
}

.datepicker thead tr:first-child th {
    padding: 10px 0 8px;
}

.datepicker .datepicker-switch {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--blue-dark);
}

.datepicker thead th {
    font-size: 0.8rem;
    color: var(--gray-600);
    text-transform: none;
    letter-spacing: 0.04em;
}

.datepicker .prev,
.datepicker .next {
    border-radius: 10px;
    width: 36px;
    height: 36px;
    color: var(--blue-dark);
    background: var(--gray-100);
}

.datepicker .prev:hover,
.datepicker .next:hover {
    background: var(--blue-pale);
}

.datepicker td.active,
.datepicker td.active:hover,
.datepicker td.active:focus {
    background: var(--gradient-primary) !important;
    color: var(--white) !important;
}

.datepicker td.active.active,
.datepicker td.active.active:hover,
.datepicker td.active.active:focus,
.datepicker td span.active,
.datepicker td span.active:hover {
    background: var(--gradient-primary) !important;
    color: var(--white) !important;
}

.datepicker td.day:hover {
    background: var(--blue-pale);
}

.datepicker td.disabled,
.datepicker td.disabled:hover {
    color: var(--gray-400);
    background: transparent;
}

.datepicker td.is-booked,
.datepicker td.is-booked:hover {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #b91c1c !important;
    cursor: not-allowed;
}

.datepicker td.is-booked::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(239, 68, 68, 0.6);
    margin: 6px auto 0;
    border-radius: 999px;
}

.datepicker td.today,
.datepicker td.today:hover {
    background: rgba(37, 99, 235, 0.18) !important;
    color: var(--blue-dark) !important;
    font-weight: 600;
}

.datepicker td.today.active,
.datepicker td.today.active:hover {
    background: var(--gradient-primary) !important;
    color: var(--white) !important;
}

.datepicker td.day {
    border: 1px solid transparent;
}

.datepicker td.day:hover {
    border-color: rgba(37, 99, 235, 0.2);
}

/* Blog/news articles */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.news-article-page .news-page-header {
    background: transparent;
}

.news-article-page .news-page-header .hero-shapes {
    display: none;
}

.news-feature .news-article {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: var(--gray-700);
}

.news-body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.news-body p {
    margin: 0 0 12px;
    line-height: inherit;
}

.news-body ul,
.news-body ol {
    margin: 28px 0 28px;
    padding-left: 1.4rem;
}

.news-body li {
    margin: 0 0 6px;
    font-size: inherit;
    line-height: 1.6;
    color: var(--gray-700);
}

.news-body .service-list li {
    margin-bottom: 14px;
}

.news-body li[data-list="bullet"] {
    list-style-type: disc;
}

.news-body li[data-list="ordered"] {
    list-style-type: decimal;
}

.news-feature .news-article .lead {
    font-size: 1.1rem;
    color: var(--blue-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.news-feature .news-block {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    align-items: center;
}

.news-feature .news-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.news-feature .highlight {
    color: var(--blue-dark);
}

.news-feature .news-media img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.news-feature .news-cta {
    background: var(--gradient-hero);
    color: var(--white);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.news-cta-spaced .news-cta {
    margin-top: 50px;
}

.news-feature .news-cta .cta-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--white);
}

.news-feature .news-cta p {
    margin: 0;
    color: #d7d7d7;
}

.news-feature .news-cta a.btn-link {
    color: var(--white);
    text-decoration: none;
}

.news-feature .news-cta-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .news-feature .news-panel {
        padding: 18px;
    }
}

.news-feature .news-hero img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    margin: 0 auto 100px;
}

.news-feature .news-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.news-feature .news-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.news-feature .footer-cta {
    display: none !important;
}

.news-simple .news-hero img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

.news-simple .news-article {
    max-width: 900px;
    margin: 32px auto 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 1.02rem;
    color: var(--gray-700);
}

.news-simple .news-article p {
    margin: 0;
}

.news-simple .news-cta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

@media (max-width: 576px) {
    .news-simple .news-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.news-a-cosa .news-article {
    max-width: 960px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: var(--gray-700);
}

.news-a-cosa .news-article .lead {
    font-size: 1.05rem;
    color: var(--blue-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.news-a-cosa .news-panel {
    background: var(--white);
    border-radius: 16px;
    padding: 22px;
}

.news-a-cosa .news-panel h3 {
    margin: 0 0 10px;
    color: var(--blue-dark);
}

.news-a-cosa .news-panel p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.55;
}

.news-a-cosa .news-media img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    margin: auto;
    max-width: 500px;
}

.news-a-cosa .news-cta {
    background: var(--gradient-hero);
    color: var(--white);
    border-radius: 18px;
    padding: 32px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-md);
}

.news-a-cosa .news-cta .cta-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--white);
}

.news-a-cosa .news-cta p {
    margin: 0;
    color: #d7d7d7;
}

.news-a-cosa .news-cta a.btn-link {
    color: var(--white);
    text-decoration: none;
}

.news-a-cosa .news-cta-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .news-a-cosa .news-panel {
        padding: 18px;
    }
}

.news-a-cosa .news-hero img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    margin: 0 auto 32px;
    max-width: 80%;
}

.news-a-cosa .news-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.news-a-cosa .news-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.news-a-cosa .footer-cta {
    display: none !important;
}

/* ============================================
   NEWSLETTER POPUP (Home)
   ============================================ */
.newsletter-popup {
    position: fixed;
    right: 24px;
    bottom: 80px;
    z-index: 995;
    max-width: 360px;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.newsletter-popup.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.newsletter-popup-card {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    padding: 20px 20px 16px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-popup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 18px 18px 0 0;
    background: var(--gradient-primary);
}

.newsletter-popup-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--blue-medium);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.newsletter-popup h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--blue-dark);
}

.newsletter-popup p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.newsletter-popup-form {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.newsletter-popup-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: var(--white);
    font-size: 0.95rem;
    color: var(--blue-dark);
}

.newsletter-popup-form input:focus {
    outline: none;
    border-color: var(--blue-medium);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.newsletter-popup-form .btn {
    width: 100%;
}

.newsletter-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: var(--gray-400);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.newsletter-popup-close:hover {
    color: var(--blue-medium);
}

.newsletter-popup-dismiss {
    border: 0;
    background: transparent;
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    padding: 0;
    cursor: pointer;
}

.newsletter-popup-dismiss:hover {
    color: var(--blue-medium);
}

.newsletter-popup .newsletter-popup-feedback {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.newsletter-popup .newsletter-popup-feedback.is-error {
    color: #ef4444;
}

.newsletter-popup .newsletter-popup-feedback.is-success {
    color: #22c55e;
}

@media (max-width: 576px) {
    .newsletter-popup {
        right: 16px;
        left: 16px;
        bottom: 16px;
        max-width: none;
        width: auto;
    }

    .newsletter-popup-card {
        width: 100%;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------
   Badge hero: porta il claim territoriale, piu' lungo del testo
   precedente. Su schermo stretto va ridotto, altrimenti il testo
   va a capo dentro la pillola e il border-radius si sfalda.
   ------------------------------------------------------------ */
@media (max-width: 576px) {
    .hero-badge {
        padding: 7px 14px;
    }

    .hero-badge span {
        font-size: 0.75rem;
        letter-spacing: 0.03em;
    }
}

/* ------------------------------------------------------------
   FAQ in accordion nativo (details/summary): nessun JS, il testo
   resta nel DOM e quindi leggibile da Google anche se chiuso.
   ------------------------------------------------------------ */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 0;
}

.faq-item:first-of-type {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 44px 22px 0;
    position: relative;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--blue-light);
}

.faq-item summary::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    opacity: 0.6;
}

.faq-item[open] summary::after {
    transform: rotate(-135deg);
    margin-top: -3px;
}

.faq-item .faq-answer {
    padding: 0 44px 24px 0;
}

.faq-item .faq-answer p {
    margin: 0;
    opacity: 0.85;
    line-height: 1.7;
}

/* Su fondo chiaro i separatori devono essere scuri */
.section:not(.section-dark) .faq-item,
.section:not(.section-dark) .faq-item:first-of-type {
    border-color: rgba(0, 0, 0, 0.12);
}

@media (max-width: 576px) {
    .faq-item summary {
        padding-right: 34px;
        font-size: 1rem;
    }

    .faq-item .faq-answer {
        padding-right: 0;
    }
}

/* ------------------------------------------------------------
   Voci della lista servizi su due righe (etichetta in grassetto
   + descrizione): servono piu' aria fra una voce e l'altra,
   altrimenti le righe di voci diverse si confondono.
   Icona e allineamento restano quelli di .service-list.
   ------------------------------------------------------------ */
.service-list li > span {
    flex: 1 1 auto;
}

.service-list li:has(> span) {
    margin-bottom: 20px;
    line-height: 1.55;
}

/* ------------------------------------------------------------
   Sezione "Quando ci chiamano" della landing Verona.
   Le quattro righe sono frasi dette al telefono: si trattano
   come citazioni, con la risposta rientrata sotto.
   L'id esiste solo su quella pagina.
   ------------------------------------------------------------ */
#situazioni .situazioni-lista {
    max-width: 780px;
    margin: 0 auto;
}

#situazioni .situazione {
    padding: 38px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#situazioni .situazione:first-child {
    padding-top: 0;
}

#situazioni .situazione:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* La frase del cliente: corpo grande, virgolette basse messe dal
   CSS cosi' il testo nel PHP resta pulito e copiabile. */
#situazioni .situazione-titolo {
    margin: 0 0 18px;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

#situazioni .situazione-titolo::before {
    content: "\00AB";
    color: var(--blue-electric);
    margin-right: 4px;
}

#situazioni .situazione-titolo::after {
    content: "\00BB";
    color: var(--blue-electric);
    margin-left: 4px;
}

/* La risposta: rientrata e agganciata a un filo verticale, cosi'
   si legge come replica e non come secondo paragrafo. */
#situazioni .situazione-testo {
    margin: 0 0 0 2px;
    padding-left: 22px;
    border-left: 2px solid rgba(255, 255, 255, 0.16);
    font-size: 1rem;
    line-height: 1.75;
    opacity: 0.76;
    max-width: 62ch;
}

#situazioni .situazioni-chiusa {
    max-width: 640px;
    margin: 64px auto 0;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    #situazioni .situazione {
        padding: 28px 0;
    }

    #situazioni .situazione-titolo {
        margin-bottom: 14px;
    }

    #situazioni .situazione-testo {
        padding-left: 16px;
    }

    #situazioni .situazioni-chiusa {
        margin-top: 44px;
        text-align: left;
        font-size: 1rem;
    }
}

/* ============================================
   PORTFOLIO: servizio collegato e progetti simili
   (includes/project-related.php)
   ============================================ */
.related-projects {
    padding: 80px 0;
}

.related-service {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 28px 32px;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    color: var(--blue-dark);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.related-service:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.related-service-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.related-service-name {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 600;
}

.related-service-arrow {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    transition: transform var(--transition-fast);
}

.related-service-arrow svg {
    width: 22px;
    height: 22px;
}

.related-service:hover .related-service-arrow {
    transform: translateX(4px);
}

.related-projects-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 64px 0 28px;
}

.related-projects-head h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
}

.related-projects-head a {
    font-weight: 600;
    color: var(--blue-medium);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .related-projects {
        padding: 56px 0;
    }

    .related-service {
        padding: 22px 20px;
    }

    .related-service-arrow {
        width: 40px;
        height: 40px;
    }

    .related-projects-head {
        margin-top: 44px;
    }
}

/* ------------------------------------------------------------
   Link dentro al testo. La regola globale "a { text-decoration:
   none; color: inherit }" serve a menu, pulsanti e card, ma rende
   i link inline indistinguibili dal paragrafo. Questa classe li
   riporta visibili usando currentColor, quindi funziona uguale
   su fondo chiaro e su fondo scuro.
   ------------------------------------------------------------ */
a.link-testo {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a.link-testo:hover,
a.link-testo:focus-visible {
    color: var(--blue-medium);
    text-decoration-color: currentColor;
}

.section-dark a.link-testo:hover,
.section-dark a.link-testo:focus-visible,
.hero a.link-testo:hover {
    color: var(--blue-light);
}

/* Browser senza color-mix: sottolineatura piena invece che sfumata */
@supports not (color: color-mix(in srgb, currentColor 45%, transparent)) {
    a.link-testo {
        text-decoration-color: currentColor;
    }
}

/* Servizi correlati in fondo agli articoli del blog */
.news-related {
    margin: 3rem 0 2.5rem;
    padding: 1.75rem 1.9rem;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.015);
}

.news-related-title {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.55;
}

.news-related-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.news-related-list a {
    color: inherit;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    padding-bottom: 2px;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.news-related-list a:hover {
    border-bottom-color: currentColor;
    opacity: 0.75;
}

@media (max-width: 576px) {
    .news-related {
        margin: 2.25rem 0 2rem;
        padding: 1.4rem 1.25rem;
    }
}
