/* CSS Variables */
:root {
    --bg-color: #0F1214;
    /* Deep dark background */
    --card-bg: #191C1E;
    /* Slightly lighter for cards */
    --primary-color: #00D1FF;
    /* Cyan/Blue accent from analysis */
    --text-main: #FFFFFF;
    --text-muted: #B0B0B0;
    --border-color: #333;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography Utilities */
.highlight {
    color: var(--primary-color);
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    /* Contrast text for bright button */
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 209, 255, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: rgba(15, 18, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-subtitle {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-item h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Hero Image & Parallax Elements */
.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    /* 1. Fai coincidere il raggio base con l'inizio dell'animazione per evitare salti */
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;

    /* 2. Ottimizzazione per il browser */
    will-change: border-radius, transform;
    transform: translateZ(2);
    /* Forza il rendering GPU */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    /* Fix per overflow-hidden + border-radius su Safari */
    mask-image: radial-gradient(white, black);

    animation: morph 8s ease-in-out infinite;
    border: 0px solid rgba(255, 255, 255, 0.05);

    /* 3. Evita che 'all' influenzi il border-radius durante l'animazione */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s ease;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

@keyframes morph {

    0%,
    100% {
        border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 40% 70% 30% 60%;
    }
}

.floating-badge {
    position: absolute;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.badge-1 {
    top: 20%;
    right: -10px;
    animation: float 5s ease-in-out infinite;
}

.badge-2 {
    bottom: 20%;
    left: -25px;
    animation: float 9s ease-in-out infinite reverse;
}

.badge-3 {
    bottom: 70%;
    left: 40px;
    animation: float 9s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* CONTATTI SECTION */
#toast-notification {
    visibility: hidden;
    min-width: 250px;
    background-color: #191C1E;
    color: var(--primary-color);
    text-align: center;
    border-radius: 50px;
    border: 1px solid var(--primary-color);
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
}

#toast-notification.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
        margin-top: 3rem;
    }

    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-btns {
        justify-content: center;
    }

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

    .hero-description {
        margin: 0 auto 2.5rem;
    }

    .main-nav {
        display: none;
        /* simple hide for now, needs JS toggle */
    }

    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(15, 18, 20, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        clip-path: circle(0% at 100% 0);
        transition: all 0.5s ease-in-out;
        pointer-events: none;
    }

    .main-nav.active {
        clip-path: circle(150% at 100% 0);
        pointer-events: all;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}

/* About Section */
.about-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-color);
}

.about-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
    position: relative;
    padding: 15px;

}

.about-image img {
    width: 250px;
    height: 450px;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background-color: var(--card-bg);
    /* Use card bg for contrast */
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: float 5s ease-in-out infinite;
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-content .section-title {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.detail-item .value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Services Section */
.services-section {
    padding: var(--spacing-xl) 0;
    background-color: #121517;
    /* Slightly different bg for contrast */
}

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

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

.service-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 209, 255, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.service-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    transition: var(--transition);
}

.service-card:hover .service-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

/* Portfolio Section */
.portfolio-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-color);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    padding-bottom: 5px;
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--text-main);
}

.filter-btn.active::after,
.filter-btn:hover::after {
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

/* =========================================================
   AGGIORNAMENTO PORTFOLIO: Altezza Fissa + Effetti Originali 
   ========================================================= */
.portfolio-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    width: 100%;
    height: 320px;
    /* ALTEZZA FISSA AGGIUNTA */
    background: #000;
}

/* Modificato per riempire il contenitore a altezza fissa */
.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
    /* Transizione Zoom Originale */
}

/* Effetto Zoom Immagine Originale */
.portfolio-item:hover .portfolio-thumb img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(2px);
    z-index: 5;
}

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

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.project-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

/* Rotazione Freccia Originale (-45deg) ESATTAMENTE al passaggio su di essa */
.project-link:hover {
    transform: scale(1.1) rotate(-45deg);
}

/* =============================
    FOOTER Contact/Footer Section 
================================*/

.contact-section {
    padding: 100px 0;
    background-image: linear-gradient(rgba(15, 18, 20, 0.9), rgba(15, 18, 20, 0.9)), url('https://images.unsplash.com/photo-1550684848-fac1c5b4e853?q=80&w=1200&auto=format&fit=crop');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    text-align: center;
}

.contact-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.site-footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

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

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
}

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

/* Stile per i bottoni splittati nella hero */
.split-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Stile per la sezione About divisa */
.skills-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.skill-group {
    background: rgba(0, 0, 0, 0.03);
    /* Leggero sfondo per separare */
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    /* Assicurati di avere la var colore */
}

.h-small {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/*========================
WEB STUDIO DOZEN - EXTRA AGGIUNTI
==========================*/
.highlight-card {
    border: 1px solid rgba(0, 209, 255, 0.1);
    background: linear-gradient(145deg, #191C1E, #121517);
}

.card-features {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.card-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-features i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

/* --- Tech Stack & Linguaggi --- */
.languages-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 40px 0;
}

.lang-item {
    text-align: center;
    transition: var(--transition);
    width: 120px;
}

.lang-item:hover {
    transform: translateY(-10px);
}

.lang-item i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

/* --- Form CV Lead Generation --- */
.cv-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.cv-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cv-form input {

    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: white;
    outline: none;
}

.cv-form input:focus {
    border-color: var(--primary-color);
}

/* ============================
RESPONSIVE DESIGN
 ==============================*/
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Fix per mantenere le card uniformi anche su mobile */
    .portfolio-thumb {
        height: 260px;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

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

/* Responsive - Menu Mobile */
@media (max-width: 992px) {

    /* Nasconde il menu standard */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(15, 18, 20, 0.98);
        /* Sfondo scuro e opaco per non far trasparire la Hero */
        backdrop-filter: blur(10px);
        padding: 20px 0;
        clip-path: circle(0% at 100% 0);
        /* Animazione a cerchio che si espande */
        transition: all 0.5s ease-in-out;
        pointer-events: none;
    }

    /* La classe 'active' viene aggiunta dal tuo JS */
    .main-nav.active {
        clip-path: circle(150% at 100% 0);
        pointer-events: all;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        /* Spazio maggiore per i pollici */
    }

    /* Mostra il tasto hamburger */
    .mobile-toggle {
        display: block;
        color: var(--primary-color);
    }
}

@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        right: 0;
    }
}

/* Specifiche per la pagina contatti */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .contact-info-sidebar {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-main-content {
        text-align: center;
    }

    .contact-methods a {
        text-align: left;
    }
}

/* =======================================================
   MIGRAZIONE CSS INLINE → CLASSI SEMANTICHE
   Aggiunto in seguito alla migrazione del 2026-03-12.
   Queste classi sostituiscono tutti gli attributi style=""
   rimossi dai file PHP.
   ======================================================= */

/* -------------------------------------------------------
   index.php — Sezione "The Split"
   ------------------------------------------------------- */
.split-section {
    padding: 100px 0;
}

/* -------------------------------------------------------
   includes/formcv.php — Sezione CV e form
   ------------------------------------------------------- */
.cv-section {
    padding: 100px 0;
    background-color: var(--card-bg);
}

.cv-intro-text {
    max-width: 650px;
    margin: 0 auto 40px;
}

/* Estende le proprietà già parziali in .cv-form */
.cv-form {
    flex-direction: column;
    gap: 20px;
}

.cv-form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cv-email-input {
    flex: 1;
    min-width: 250px;
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: white;
    outline: none;
}

.cv-email-input:focus {
    border-color: var(--primary-color);
}

.cv-privacy-wrapper {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    width: 100%;
}

.cv-privacy-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.cv-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.cv-shield-icon {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-right: 5px;
}

.cv-privacy-link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.cv-legal-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    padding-left: 26px;
}

/* -------------------------------------------------------
   contact.php — Pagina contatti
   ------------------------------------------------------- */
.contact-page-section {
    padding: 150px 0 100px;
}

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

.contact-info-sidebar .about-image {
    margin-bottom: 30px;
    position: relative;
}

.contact-sidebar-img {
    border-radius: 20px;
    width: 100%;
    border: 1px solid var(--border-color);
}

.cv-highlights .card-features {
    margin-top: 15px;
}

.contact-main-content .about-text {
    margin-bottom: 30px;
}

.contact-methods {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.contact-card-link {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.contact-card .service-icon {
    margin-bottom: 0;
    font-size: 1.8rem;
}

.contact-card .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.contact-card .value {
    font-weight: 600;
}

.btn-copy-email {
    background: rgba(0, 209, 255, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 20;
}

.btn-copy-email:hover {
    background: var(--primary-color);
    color: #000;
}

/* -------------------------------------------------------
   web-studio/index.php — Hero variante invertita
   ------------------------------------------------------- */
.hero-container--reverse {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

/* Stat items ridimensionati per il Web Studio */
.stat-item--sm h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-item--sm p {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Icona bolt gialla nei floating badge */
.badge-bolt-icon {
    color: #F7DF1E;
}

/* Sezione services-detail */
.services-detail {
    padding: 80px 0;
}

/* Grid skills analoga alla services-grid ma con gap diverso */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Sezione tech stack */
.tech-stack {
    background-color: var(--card-bg);
    padding: 80px 0;
}

/* Label e span dentro ogni lang-item */
.lang-item p {
    margin-top: 10px;
    font-weight: 600;
}

.lang-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

/* Colori brand per ogni icona tecnologia */
.lang-python {
    color: #3776AB;
}

.lang-js {
    color: #F7DF1E;
}

.lang-wp {
    color: #21759b;
}

.lang-sql {
    color: var(--primary-color);
}

/* -------------------------------------------------------
   Responsive — contact-wrapper su mobile
   ------------------------------------------------------- */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-container--reverse {
        grid-template-columns: 1fr;
    }
}

/* =======================================================
   PAGINE DETTAGLIO PROGETTO
   ======================================================= */

/* Breadcrumb */
.project-breadcrumb {
    padding: 120px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.project-breadcrumb a {
    color: var(--text-muted);
    transition: var(--transition);
}

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

.project-breadcrumb .separator {
    color: rgba(255,255,255,0.2);
}

.project-breadcrumb .current {
    color: var(--primary-color);
}

/* Hero Progetto — compatta */
.project-hero {
    padding: 40px 0 80px;
}

.project-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.project-hero-tag {
    display: inline-block;
    background: rgba(0, 209, 255, 0.1);
    border: 1px solid rgba(0, 209, 255, 0.3);
    color: var(--primary-color);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.project-hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.project-hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.project-hero-img {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.project-hero-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.6s ease;
}

.project-hero-img:hover img {
    transform: scale(1.04);
}

/* Griglia Meta Info */
.project-meta-section {
    padding: 60px 0;
    background-color: #121517;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.meta-item .meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.meta-item .meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Sezione Descrizione / Overview */
.project-overview {
    padding: 80px 0;
}

.project-overview-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.project-overview-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.project-overview-text h3 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    color: var(--text-main);
}

/* Tech stack tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tech-tag {
    background: rgba(0,209,255,0.08);
    border: 1px solid rgba(0,209,255,0.2);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
}

.tech-tag:hover {
    background: rgba(0,209,255,0.18);
}

/* Sidebar progetto */
.project-sidebar-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 30px;
    position: sticky;
    top: 100px;
}

.project-sidebar-card h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.78rem;
}

.sidebar-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.sidebar-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.sidebar-feature-list li i {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Sezione KPI / Risultati */
.project-results {
    padding: 80px 0;
    background-color: var(--card-bg);
}

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

.kpi-item {
    background: linear-gradient(145deg, #1e2124, #141719);
    border: 1px solid rgba(0,209,255,0.12);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.kpi-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0,209,255,0.1);
}

.kpi-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 10px;
    display: block;
}

.kpi-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.kpi-desc {
    font-size: 0.8rem;
    color: rgba(176,176,176,0.6);
}

/* CTA finale progetto */
.project-cta {
    padding: 80px 0;
    text-align: center;
}

.project-cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Responsive pagine progetto */
@media (max-width: 992px) {
    .project-hero-inner {
        grid-template-columns: 1fr;
    }

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

    .project-overview-grid {
        grid-template-columns: 1fr;
    }

    .project-sidebar-card {
        position: static;
    }

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

    .project-hero-title {
        font-size: 2.2rem;
    }
}

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

    .project-meta-grid {
        grid-template-columns: 1fr 1fr;
    }
}