/* Display None Utility */
.d-none { display: none !important; }

/* --- 1. CONFIGURAZIONE COLORI & VARIABILI (ADATTATO BRAND PC93) --- */
:root {
    --bg-body:    #ffffff;
    --bg-surface: #f0fdff; /* Adattato da PC93 */
    --bg-card:    #ffffff;
    --accent:     #004e64; /* Primary Brand PC93 - Petrolio Scuro */
    --accent-light:#00bcd4; /* Accent Brand PC93 - Ciano/Turchese */
    --accent-glow: rgba(0, 78, 100, 0.2); /* Adattato per #004e64 */
    --accent-bright: #00bcd4; /* Accent Brand PC93 */
    --text-main:  #1e293b; 
    --text-muted: #546e7a; /* Adattato da PC93 */
    --nav-height: 140px; 
    --radius:     12px;
    --font-main:  'Inter', sans-serif;
    
    /* Gradienti PC93 */
    --gradient-primary: linear-gradient(135deg, #004e64 0%, #00bcd4 100%);
    --shadow-card: 0 10px 40px -10px rgba(0, 188, 212, 0.15);
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex; flex-direction: column; min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 { letter-spacing: -0.5px; line-height: 1.2; font-weight: 700; color: var(--text-main); }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; margin-bottom: 25px; color: #ffffff; text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 20px; color: var(--accent); }
h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--text-main); }
h4 { font-size: 1.2rem; margin-bottom: 5px; }
p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 20px; font-weight: 400; }

.text-gradient { 
    background: linear-gradient(90deg, #ffffff, #00bcd4); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.eyebrow { 
    background: rgba(0, 78, 100, 0.1); 
    color: var(--accent); 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 0.80rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    margin-bottom: 15px; 
    display: inline-block; 
}

.eyebrow-header { 
    background: rgba(0, 78, 100, 0.1); 
    color: white; 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 0.80rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    margin-bottom: 15px; 
    display: inline-block; 
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.section-padding { padding: 100px 0; }
.bg-surface { background-color: var(--bg-surface); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* --- HEADER & NAV --- */
header {
    height: var(--nav-height); display: flex; align-items: center;
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 1); 
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 188, 212, 0.1);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo-container img { height: 120px; width: auto; display: block; }

nav ul { display: flex; gap: 30px; list-style: none; align-items: center; }
nav a { text-decoration: none; color: var(--text-main); font-weight: 600; transition: 0.3s; }
nav a:hover, nav a.active { color: var(--accent-light); }

/* Buttons - ADATTATI STILE PC93 */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    padding: 12px 28px; 
    border-radius: 8px; /* Meno arrotondato, più moderno come PC93 */
    font-weight: 600; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    cursor: pointer; 
    border: 2px solid transparent; 
}
.btn-primary { 
    background: var(--gradient-primary); /* Gradiente PC93 */
    color: white; 
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3); 
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.5); 
}
.btn-hero-outline { 
    background: rgba(255,255,255,0.1); 
    border: 2px solid rgba(255,255,255,0.6); 
    color: white; 
    backdrop-filter: blur(4px); 
}
.btn-hero-outline:hover { 
    background: white; 
    color: var(--accent); 
    border-color: white; 
}

/* --- HAMBURGER MENU --- */
.hamburger { display: none; cursor: pointer; z-index: 1001; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--text-main); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- HERO SLIDESHOW (HOME) --- */
.hero { padding: 200px 0 160px 0; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #000; }
.hero-slideshow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; animation: slideShowAnim 18s infinite; filter: brightness(0.5); }
.hero-slide:nth-child(1) { animation-delay: 0s; background-image: url('../../asset/images/slides/ai.png'); }
.hero-slide:nth-child(2) { animation-delay: 6s; background-image: url('../../asset/images/slides/coding-1.jpg'); }
.hero-slide:nth-child(3) { animation-delay: 12s; background-image: url('../../asset/images/slides/ict.png'); }
@keyframes slideShowAnim { 0% { opacity: 0; transform: scale(1); } 5% { opacity: 1; } 33% { opacity: 1; } 38% { opacity: 0; transform: scale(1.05); } 100% { opacity: 0; } }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0, 78, 100, 0.5) 0%, rgba(0, 30, 40, 0.8) 100%); z-index: 1; }
.hero-tag { display: inline-block; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.4); color: #ffffff; padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 25px; backdrop-filter: blur(5px); }

/* --- PAGE HEADER --- */
.page-header { background-color: var(--accent); padding: 150px 0 80px 0; position: relative; overflow: hidden; z-index: 1; height: 370px;}
.page-header::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%); }
.page-header h1 { font-size: 3rem; margin-bottom: 10px; }
.page-header p { color: #b2ebf2; max-width: 600px; font-size: 1.2rem; }

/* --- FEATURE SECTIONS (Nuovi Servizi) --- */
.feature-section { padding: 80px 0; border-bottom: 1px solid #e2e8f0; }
.feature-section:last-of-type { border-bottom: none; }
.feature-img { width: 100%; height: 400px; object-fit: cover; border-radius: 12px; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15); }
.feature-list { list-style: none; margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.feature-list li { 
    padding-left: 30px; 
    position: relative; 
    color: var(--text-main); 
    font-weight: 600;
    margin-bottom: 20px;
}

.feature-list li::before { 
    content: '✓'; 
    color: var(--accent); 
    font-weight: 800; 
    position: absolute; 
    left: 0; 
    top: 0; 
    font-size: 1.2rem;
}

.feature-desc-text {
    display: block;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.5;
}
.feature-note { font-size: 0.9rem; color: var(--text-muted); margin-top: 5px; display: block; font-weight: 400; }

.order-reverse .grid-2 > div:first-child { order: 2; }
.order-reverse .grid-2 > div:last-child { order: 1; }

/* --- METODO --- */
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-top: 50px; }
.step-number-home { font-size: 4rem; font-weight: 800; color: rgba(0, 78, 100, 0.1); line-height: 1; margin-bottom: -20px; display: block; z-index: 0; position: relative; }
.step-content { position: relative; z-index: 1; padding-top: 20px; }
.step-title { font-size: 1.3rem; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.step-line { width: 50px; height: 3px; background: var(--accent); margin-bottom: 15px; border-radius: 2px; }

/* --- SLIDER PROGETTI --- */
.slider-container { 
    position: relative; 
    border-radius: 20px; 
    background: #ffffff; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    min-height: 600px; 
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.slide { 
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    display: grid; 
    grid-template-columns: 1.1fr 0.9fr; 
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    z-index: 1;
    background: white;
}

.slide.active { 
    opacity: 1; 
    visibility: visible;
    z-index: 2;
}

.slide-img-wrapper {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
}

.slide-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transform: scale(1);
    transition: transform 8s ease;
}

.slide.active .slide-img {
    transform: scale(1.1);
}

.slide-content { 
    padding: 60px 60px 100px 60px;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    height: 100%;
}

.tech-stack {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.tech-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.project-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}
.stat-item h4 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0;
    line-height: 1;
}
.stat-item p { font-size: 0.85rem; margin-bottom: 0; color: var(--text-muted); }

/* CONTROLLI SLIDER - ADATTATI STILE PC93 */
.slider-controls { 
    position: absolute; 
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%);
    display: flex; 
    gap: 20px; 
    z-index: 10;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 8px; /* Meno arrotondato come PC93 */
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.slider-btn { 
    width: 45px; 
    height: 45px; 
    border-radius: 8px; /* Meno arrotondato, più moderno */
    border: none;
    background: var(--text-main);
    color: white; 
    cursor: pointer; 
    transition: 0.3s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.2rem; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.slider-btn:hover { 
    background: var(--gradient-primary); /* Gradiente PC93 */
    transform: scale(1.1);
}

/* Dots Indicators */
.slider-dots { 
    display: flex; 
    gap: 12px; 
    align-items: center;
}

.dot { 
    width: 10px; 
    height: 10px; 
    background: #cbd5e1; 
    border-radius: 50%; 
    cursor: pointer; 
    transition: 0.3s;
}

.dot.active { 
    background: var(--accent); 
    width: 30px; 
    border-radius: 5px;
}

/* slider mobile → see unified @media block at end of file */

/* --- CARD (Standard) - ADATTATO STILE PC93 --- */
.card { 
    background: var(--bg-card); 
    padding: 40px; 
    border-radius: var(--radius); 
    border: 1px solid #f1f5f9; 
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    top: 0;
}
.card:hover {
    top: -10px;
    border-color: rgba(0, 188, 212, 0.3);
    box-shadow: 0 20px 50px rgba(0, 188, 212, 0.1);
}
.card-icon { 
    font-size: 2rem; 
    color: var(--accent); 
    margin-bottom: 20px; 
    background: #e0f7fa; 
    width: 60px; 
    height: 60px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 14px;
    transition: 0.3s;
}
.card:hover .card-icon { 
    background: var(--gradient-primary); 
    color: white; 
}

/* --- FORM & FOOTER --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }
.form-input { 
    width: 100%; 
    padding: 16px; 
    background: rgba(0, 78, 100, 0.05); 
    border: 1px solid rgba(0, 188, 212, 0.1); 
    border-radius: 6px; 
    color: var(--text-main); 
    margin-bottom: 20px; 
    font-family: inherit;
    transition: 0.3s;
}
.form-input:focus {
    border-color: var(--accent-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}
.btn-form { 
    background: var(--gradient-primary); /* Gradiente PC93 */
    color: white; 
    border: none; 
    width: 100%; 
    font-weight: 700; 
    cursor:pointer; 
    padding: 16px; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
    transition: all 0.3s ease;
}
.btn-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.5);
}

/* --- FOOTER (Advanced Layout) --- */
footer {
    background-color: var(--accent); /* Petrolio scuro PC93 */
    color: #e0f7fa;
    padding: 80px 0 30px 0;
    font-size: 0.95rem;
}

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

.footer-logo {
    max-width: 140px;
    margin-bottom: 20px;
    /*filter: brightness(0) invert(1);*/
}

.footer-desc {
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-address {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #b2ebf2;
    border-left: 3px solid var(--accent-light);
    padding-left: 15px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 600;
}

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

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

.footer-links a {
    color: #e0f7fa;
    text-decoration: none;
    transition: 0.3s;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--accent-light);
    opacity: 1;
    padding-left: 5px;
}

/* Social Icons */
.social-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: 0.3s;
}
.social-links a:hover {
    background: var(--accent-light);
    text-decoration: none !important;
    border-bottom: none !important;
}

.social-links i {
    font-size: 1.2rem;
}

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

.legal-links {
    display: flex;
    gap: 25px;
}

.legal-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.legal-links a:hover {
    color: white;
    text-decoration: underline;
}

/* footer mobile → see unified @media block at end of file */

/* nav + grids mobile → see unified @media block at end of file */

/* --- CTA FINALE (Call to Action) --- */
.cta-section {
    background: var(--gradient-primary);
    padding: 100px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}
.cta-section h2 { 
    color: white; 
    font-size: 2.5rem; 
    margin-bottom: 20px; 
}
.cta-section p { 
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px; 
    margin: 0 auto 40px auto; 
    font-size: 1.2rem; 
}
.btn-white { 
    background: white; 
    color: var(--accent); 
    padding: 16px 40px; 
    border-radius: 8px; /* Meno arrotondato come PC93 */
    font-weight: 800; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.btn-white:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background-color: #f8fafc;
}

/* --- PAGINA PROGETTI (GRID SYSTEM) --- */

.page-header {
    background: linear-gradient(rgba(0, 78, 100, 0.9), rgba(0, 78, 100, 0.95)), url('../../asset/images/contents/pages_header.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0 80px 0;
    text-align: center;
}
.page-header h1 { font-size: 3rem; margin-bottom: 20px; }
.page-header p { max-width: 700px; margin: 0 auto; color: #b2ebf2; font-size: 1.2rem; }

/* Filtri - ADATTATI STILE PC93 */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--accent-light);
    padding: 8px 25px;
    border-radius: 30px; /* Più arrotondato per i filtri */
    cursor: pointer;
    font-weight: 600;
    color: var(--accent);
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

/* Griglia */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* Card Progetto */
.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 1px solid #f1f5f9;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 188, 212, 0.15);
}

.card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.project-card:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-content {
    padding: 30px;
}
.card-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}
.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}
.card-content strong {
    color: var(--text-main);
}

/* --- STILI PER PROGETTI REALIZZATI --- */

.card-badge.completed {
    background-color: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.client-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.kpi-container {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    background: #f0fdff; /* BG Light PC93 */
    border-radius: 8px;
    border: 1px dashed rgba(0, 188, 212, 0.3);
}

.kpi-box {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.kpi-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
}

.kpi-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Tech Tags */
.tech-tags {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.tech-tags span {
    font-size: 0.75rem;
    background: #f8fafc;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* projects/page-header mobile → see unified @media block at end of file */

/* --- PAGINA CHI SIAMO --- */

.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}
.split-content { flex: 1; }
.split-image {
    flex: 1;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 15px 15px 0px var(--accent); 
}
.split-image img {
    width: 100%; height: 100%; object-fit: cover;
}

.highlight-box {
    margin-top: 30px;
    padding: 20px;
    background: #f0fdff; /* BG Light PC93 */
    border-left: 5px solid var(--accent);
    border-radius: 0 10px 10px 0;
}
.highlight-box i { color: var(--accent); font-size: 1.5rem; margin-bottom: 10px; display: block;}
.highlight-box p { font-style: italic; font-weight: 600; color: var(--text-main); margin: 0; }

/* SEZIONE PILASTRI */
.values-section {
    background-color: var(--accent);
    padding: 100px 0;
    color: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 8px;
    border-bottom: 4px solid var(--accent-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background-color: rgba(255, 255, 255, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-light);
    margin-bottom: 20px;
    background: rgba(0, 188, 212, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.value-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.value-card p {
    color: #b2ebf2;
    line-height: 1.6;
}

/* SEZIONE METODOLOGIA */
.method-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-item {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: 0.3s;
}

.step-item:hover {
    box-shadow: var(--shadow-card);
    border-color: rgba(0, 188, 212, 0.3);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    /*color: rgba(0, 188, 212, 0.15);*/
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.5;
}

.step-item h4 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-top: 10px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.step-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

/* Responsive */
/* split-layout mobile → see unified @media block at end of file */

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-box h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-box p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* Tech List */
.tech-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.tech-item {
    background: #f0fdff; /* BG Light PC93 */
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    font-size: 0.95rem;
    color: var(--text-main);
}

.tech-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--accent);
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

/* tech-list mobile → see unified @media block at end of file */

/* --- AGGIUNTE PER CHI SIAMO --- */

.section-divider {
    height: 1px;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(to right, transparent, #cbd5e1, transparent);
    opacity: 0.6;
}

.tech-grid-expanded {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tech-category-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.tech-category-box:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.tech-category-box:hover .tech-header i {
    transform: scale(1.1) rotate(5deg);
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
}

.tech-header i {
    font-size: 1.8rem;
    color: var(--accent);
    transition: 0.3s;
}

.tech-header h4 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-main);
}

.tech-category-box p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
}

.tech-tags-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tags-list li {
    font-size: 0.8rem;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

/* --- PAGINA CONTATTI --- */

.contact-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.info-list {
    margin-top: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: #e0f7fa;
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin: 0 0 5px 0;
    color: var(--text-main);
}

.info-item a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.map-container {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.map-container iframe {
    border: 0;
    border-radius: 12px;
}

.contact-form-box {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    border-top: 5px solid var(--accent);
}

.contact-form-box h3 {
    margin-bottom: 25px;
    color: var(--text-main);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.privacy-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.form-footer {
    margin-top: 20px;
}

.captcha-group {
    background: #f8fafc;
    padding: 15px;
    border-radius: 6px;
    border: 1px dashed #cbd5e1;
    margin-bottom: 20px;
}

/* contact mobile → see unified @media block at end of file */

/* --- UTILITY CLASSES (Evitare stili inline) --- */

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Max Width */
.max-w-600 { max-width: 600px; }
.max-w-650 { max-width: 650px; }
.max-w-700 { max-width: 700px; }
.max-w-900 { max-width: 900px; }

/* Margin Auto */
.mx-auto { margin-left: auto; margin-right: auto; }

/* Spacing */
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.mb-60 { margin-bottom: 60px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* Flex Layout */
.flex { display: flex; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-end { display: flex; justify-content: space-between; align-items: flex-end; }
.gap-15 { gap: 15px; }

/* Colors */
.text-light { color: #e0f7fa; }
.text-light-gray { color: #cbd5e1; }
.text-shadow { text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

/* Animations */
.fade-in { animation: fadeIn 1s forwards; }
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Hero Text */
.hero-text-large {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 40px auto;
    color: #e0f7fa;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Page Header Styles */
.page-header-split {
    background-image: linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9)), url('https://asset/images/.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=1000');
    background-size: cover;
    background-position: center;
}

.page-header-contact {
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('https://asset/images/.unsplash.com/photo-1486312338219-ce68d2c6f44d?q=80&w=1000');
    background-size: cover;
    background-position: center;
}

.small-header {
    padding: 120px 0 60px 0;
}

/* Button Overrides */
.btn-no-border { border: none !important; }
.btn-outline-gray { 
    color: var(--text-main); 
    border-color: #cbd5e1; 
    background: transparent;
}
.btn-outline-gray:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Section Backgrounds */
.bg-center { text-align: center; }

/* White Headings */
.h-white { color: white !important; }


.error-msg { 
    font-size: 0.85rem;
    margin-top: 5px;
    color: #dc2626;
}
.error-msg.show {
    display: block;
}

/* Success and Error Messages */
.success-message {
    margin-top: 20px;
    color: #16a34a;
    font-weight: bold;
    padding: 15px;
    background: #dcfce7;
    border-radius: 8px;
    border-left: 4px solid #16a34a;
}

.error-message {
    margin-top: 20px;
    color: #dc2626;
    font-weight: bold;
    padding: 15px;
    background: #fee2e2;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
}

/* ========================================
   COOKIE CONSENT MANAGEMENT
   ======================================== */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--accent);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
    display: flex;
    gap: 25px;
    align-items: center;
}

.cookie-banner-icon {
    flex-shrink: 0;
    font-size: 3rem;
    color: var(--accent);
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h3 {
    font-size: 1.3rem;
    color: var(--accent);
    margin: 0 0 10px 0;
}

.cookie-banner-text p {
    margin: 0 0 8px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-banner-link a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.cookie-banner-link a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

/* Cookie Buttons */
.btn-cookie {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-cookie i {
    font-size: 1rem;
}

.btn-cookie-accept {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

.btn-cookie-reject {
    background: #f1f5f9;
    color: var(--text-main);
    border: 2px solid #e2e8f0;
}

.btn-cookie-reject:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.btn-cookie-settings {
    background: white;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-cookie-settings:hover {
    background: var(--accent);
    color: white;
}

.btn-cookie-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.btn-cookie-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

.btn-cookie-secondary {
    background: white;
    color: var(--text-main);
    border: 2px solid #e2e8f0;
}

.btn-cookie-secondary:hover {
    background: #f8fafc;
}

/* Cookie Settings Overlay */
.cookie-settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-settings-overlay.show {
    opacity: 1;
}

.cookie-settings-modal {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-settings-overlay.show .cookie-settings-modal {
    transform: scale(1);
}

.cookie-settings-header {
    padding: 25px 30px;
    border-bottom: 2px solid #e0f7fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f0fdff 0%, #ffffff 100%);
    border-radius: 16px 16px 0 0;
}

.cookie-settings-header h2 {
    margin: 0;
    color: var(--accent);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: 0.3s;
}

.cookie-settings-close:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

.cookie-settings-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.cookie-settings-intro {
    background: #f0fdff;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Cookie Category */
.cookie-category {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: 0.3s;
}

.cookie-category:hover {
    border-color: var(--accent-light);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.1);
}

.cookie-category-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h4 {
    margin: 0 0 8px 0;
    color: var(--accent);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-required {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-category-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 5px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 34px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--gradient-primary);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cookie Details */
.cookie-details {
    margin-top: 12px;
}

.cookie-details summary {
    cursor: pointer;
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 0;
    user-select: none;
}

.cookie-details summary:hover {
    color: var(--accent);
}

.cookie-list {
    list-style: none;
    padding: 10px 0 0 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-list li {
    margin: 0;
}

.cookie-list code {
    background: #e0f7fa;
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

/* Settings Links */
.cookie-settings-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.cookie-settings-links a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.cookie-settings-links a:hover {
    color: var(--accent);
}

.cookie-settings-footer {
    padding: 20px 30px;
    border-top: 2px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}

/* Cookie Notification */
.cookie-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10002;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--accent-light);
    max-width: 350px;
}

.cookie-notification.show {
    transform: translateX(0);
}

.cookie-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-notification-content i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cookie-notification-success {
    border-left-color: #10b981;
}

.cookie-notification-success i {
    color: #10b981;
}

.cookie-notification-info {
    border-left-color: var(--accent-light);
}

.cookie-notification-info i {
    color: var(--accent-light);
}

.cookie-notification-content span {
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .cookie-banner-icon {
        font-size: 2.5rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-cookie {
        width: 100%;
        justify-content: center;
    }

    .cookie-settings-modal {
        max-height: 95vh;
        margin: 10px;
    }

    .cookie-settings-header {
        padding: 20px;
    }

    .cookie-settings-body {
        padding: 20px;
    }

    .cookie-settings-footer {
        flex-direction: column;
        padding: 15px 20px;
    }

    .cookie-settings-footer .btn-cookie {
        width: 100%;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 15px;
    }

    .cookie-settings-links {
        flex-direction: column;
        gap: 12px;
    }

    .cookie-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ========================================
   EMAIL PROTECTION SYSTEM
   ======================================== */

/* Email Copy Notification */
.email-copy-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10003;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid #10b981;
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.email-copy-notification.show {
    transform: translateX(0);
}

.email-copy-notification i {
    color: #10b981;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.email-copy-notification span {
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.5;
}

.email-copy-notification strong {
    color: var(--accent);
    font-weight: 600;
}

/* Protezione email - cursor hint */
a[data-email]:hover {
    position: relative;
}

a[data-email][title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    animation: fadeInTooltip 0.3s ease forwards;
    z-index: 1000;
    margin-bottom: 5px;
}

@keyframes fadeInTooltip {
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .email-copy-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Email Placeholder (prima che JS carichi) */
a[data-email-user]:not([data-email])::before {
    content: '🔒 ';
    opacity: 0.7;
}

a[data-email-user] {
    font-style: italic;
    opacity: 0.8;
    transition: opacity 0.3s;
}

/* Quando JS ha caricato l'email */
a[data-email-user][data-email] {
    font-style: normal;
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER
   ══════════════════════════════════════════════════════════════ */
.lang-switcher {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: #f0f7fa;
  border-radius: 50px;
  padding: 3px;
  border: 1px solid rgba(0, 78, 100, 0.12);
  margin-left: 20px;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1;
}
.lang-btn .flag {
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
}
.lang-btn:hover {
  color: var(--accent);
  background: rgba(0, 78, 100, 0.07);
}
.lang-btn.active {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 78, 100, 0.3);
}
.lang-btn.active:hover {
  color: #ffffff;
  background: var(--gradient-primary);
}

/* ══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — REVISIONE COMPLETA
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet / Large mobile (≤ 900px) ─────────────────────────── */
@media (max-width: 900px) {

  /* Header: riduce altezza e logo */
  :root { --nav-height: 75px; }
  .logo-container img { height: 55px; }

  /* Header inner: logo | hamburger + switcher */
  .header-inner {
    position: relative;
  }

  /* Hamburger visibile */
  .hamburger { display: block; }

  /* Nav menu: drawer laterale/alto */
  nav ul {
    position: fixed;
    left: -100%;
    top: var(--nav-height);
    flex-direction: column;
    background-color: #ffffff;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    padding-top: 40px;
    gap: 25px;
    overflow-y: auto;
    z-index: 999;
  }
  nav ul.active { left: 0; }
  nav ul li a { font-size: 1.3rem; }

  /* Lang switcher: più compatto, solo bandiere */
  .lang-switcher { margin-left: 12px; padding: 3px; }
  .lang-btn { padding: 7px 10px; gap: 4px; }
  .lang-btn .lang-label { display: none; }
  .lang-btn .flag { font-size: 1.15rem; }

  /* Hero: meno padding */
  .hero { padding: 120px 0 80px 0; }
  .hero-text-large { font-size: 1.05rem; margin-bottom: 30px; }
  h1 { font-size: 2.2rem !important; }

  /* "Vedi tutti" flex row → colonna */
  .flex-end {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .flex-center { flex-wrap: wrap; gap: 12px; }

  /* Griglie → 1 colonna */
  .grid-2, .grid-3, .contact-wrapper, .method-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }
  .order-reverse .grid-2 > div:first-child { order: 1; }
  .order-reverse .grid-2 > div:last-child  { order: 2; }

  /* Feature list: 1 colonna */
  .feature-list { grid-template-columns: 1fr !important; }

  /* Slider */
  .slider-container { min-height: auto; height: auto; }
  .slide { display: flex !important; flex-direction: column; }
  .slide-img-wrapper { width: 100%; height: 220px; border-radius: 20px 20px 0 0; flex-shrink: 0; }
  .slide-content { padding: 25px 20px 90px 20px; }

  /* Section padding */
  .section-padding { padding: 60px 0; }

  /* Page header */
  .page-header {
    padding: 100px 0 50px 0;
    height: auto;
    min-height: 200px;
  }
  .page-header h1 { font-size: 2rem !important; }
  .page-header p { font-size: 1rem; }

  /* Feature img */
  .feature-img { height: 260px; }

  /* Footer grid */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .legal-links {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
  .footer-address { border-left: none; border-top: 3px solid var(--accent-light); padding-left: 0; padding-top: 12px; }

  /* Split layout */
  .split-layout { flex-direction: column !important; gap: 30px; }
  .split-image  { width: 100%; height: 230px; box-shadow: 6px 6px 0 var(--accent); }

  /* CTA section */
  .cta-section { padding: 70px 0; }
  .cta-section h2 { font-size: 1.8rem; }
  .cta-section p  { font-size: 1rem; }

  /* Contact page */
  .contact-wrapper { flex-direction: column; gap: 40px; }
  .contact-info, .contact-form-box { width: 100%; }
  .contact-form-box { padding: 25px 20px; }

  /* Legal pages grids */
  .rights-grid    { grid-template-columns: 1fr 1fr !important; gap: 15px; }
  .treatment-table .treatment-row { flex-direction: column; gap: 6px; }
  .ip-grid        { grid-template-columns: 1fr 1fr !important; gap: 15px; }
  .liability-grid { grid-template-columns: 1fr !important; }
  .browser-list   { flex-direction: column; gap: 8px; }
  .contact-grid   { grid-template-columns: 1fr !important; }

  /* Tech grids */
  .tech-grid-expanded { grid-template-columns: 1fr; }
  .tech-list          { grid-template-columns: 1fr; }
  .features-grid      { grid-template-columns: 1fr; }
  .values-grid        { grid-template-columns: 1fr; }
  .method-steps       { grid-template-columns: 1fr 1fr; }
}

/* ── Small mobile (≤ 480px) ───────────────────────────────────── */
@media (max-width: 480px) {
  :root { --nav-height: 70px; }
  .logo-container img { height: 48px; }

  h1 { font-size: 1.85rem !important; }
  h2 { font-size: 1.5rem !important; }

  .hero { padding: 100px 0 60px 0; }
  .hero-text-large { font-size: 0.95rem; }

  /* Bottoni hero affiancati → impilati */
  .flex-center { flex-direction: column; align-items: center; }
  .flex-center .btn { width: 100%; max-width: 280px; text-align: center; }

  /* Section padding */
  .section-padding { padding: 50px 0; }
  .page-header { padding: 90px 0 40px 0; }
  .page-header h1 { font-size: 1.7rem !important; }

  /* Cards */
  .card { padding: 25px 20px; }
  .slide-content { padding: 20px 15px 80px 15px; }

  /* Footer: tutto 1 colonna */
  .footer-grid { grid-template-columns: 1fr; }
  .legal-links { flex-direction: column; gap: 10px; align-items: flex-start; }

  /* Projects grid */
  .projects-grid { grid-template-columns: 1fr !important; }

  /* Legal grids → 1 colonna */
  .rights-grid { grid-template-columns: 1fr !important; }
  .ip-grid     { grid-template-columns: 1fr !important; }
  .method-steps { grid-template-columns: 1fr; }

  /* Slider img più basso */
  .slide-img-wrapper { height: 180px; }

  /* Contact form padding */
  .contact-form-box { padding: 20px 15px; }

  /* reCAPTCHA scaling fix — troppo largo su 320px */
  .g-recaptcha { transform: scale(0.85); transform-origin: left; }
}
