:root {
    --gray-900: #0b0f1a;
    --gray-800: #1e293b;
    --gray-400: #94a3b8;
    --teal: #14C1A8;
    --teal-dark: #0d9488;
    --teal-glow: rgba(20, 193, 168, 0.3);
    --white: #ffffff;
    --bg-light: #f1f5f9;
    --mobile-menu-bg: #0b111a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.5;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 100%;
}

body::-webkit-scrollbar {
    display: none;
}

/* NAVBAR FLOTTANTE */
.navbar {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    width: 90%; max-width: 1200px;
    height: 70px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar.hide {
    transform: translateX(-50%) translateY(-120px);
    opacity: 0;
    pointer-events: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 700;
    font-size: 14px;
    margin-left: 25px;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--teal); }

.nav-links a.active { color: var(--teal); }

.mobile-social {
    display: none;
}

.mobile-menu-copy {
    display: none;
}

.btn-cta {
    background: var(--teal);
    color: white !important;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    box-shadow: 0 0 15px rgba(20, 193, 168, 0.4);
    transform: translateY(-1px);
}

/* HERO BADGE */
.hero-badge {
    background: rgba(20, 184, 166, 0.1);
    color: var(--teal);
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 13px;
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-block;
}

/* HERO BUTTONS */
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary {
    background: var(--teal);
    color: var(--gray-900);
    border: 2px solid var(--teal);
}

.btn-primary:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--teal-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--gray-900);
    border: 2px solid var(--teal);
}

.btn-secondary:hover {
    background: var(--teal);
    color: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--teal-glow);
}

/* PRICE GUARANTEE CARD */
.price-guarantee-card {
    background: var(--gray-900);
    color: white;
    padding: 60px;
    border-radius: 40px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.price-guarantee-card h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.price-guarantee-card p {
    color: var(--gray-400);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* SERVICES HOME GRID */
.services-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 2px solid #e2e8f0;
    transition: all 0.4s ease;
    text-align: center;
}

.service-card:hover {
    border-color: var(--teal);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(20, 184, 166, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--teal);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--teal);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.service-card p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* WE COME TO YOU SECTION */
.we-come-section {
    text-align: center;
    max-width: 600px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.we-come-section h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.we-come-section p {
    color: var(--gray-400);
    font-size: 1.05rem;
    line-height: 1.7;
}

.we-come-section .service-icon {
    width: 80px;
    height: 80px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
}

/* TIPOGRAFIA DI IMPATTO */
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; letter-spacing: -2px; }
.text-teal { color: var(--teal); }

/* LAYOUT ASIMMETRICO (La Gerarchia Visiva) */
section { padding: 120px 20px; max-width: 1200px; margin: 0 auto; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

/* CARD DOMINANTE */
.card-main {
    background: var(--gray-900);
    color: white;
    padding: 60px;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    grid-column: span 2; /* Prende tutta la larghezza per enfasi */
}

/* CARD SECONDARIE */
.card-sub {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid transparent;
    transition: 0.4s ease;
}

.card-sub:hover {
    border-color: var(--teal);
    background: white;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* IMMAGINI CON OVERLAY */
.img-box {
    width: 100%;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.img-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 17, 26, 0.4) 0%, rgba(11, 17, 26, 0.2) 100%);
    z-index: 1;
    pointer-events: none;
}

.img-box img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}

.img-box:hover img { transform: scale(1.05); }

/* FORM MODERN */
.input-field {
    width: 100%;
    padding: 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px var(--teal-glow);
}

.btn-send {
    background: var(--teal);
    color: white;
    padding: 20px;
    width: 100%;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

/* CARD STANDARD (ABOUT) */
.card-standard {
    background: white;
    padding: 40px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    transition: 0.4s ease;
}

.card-standard:hover {
    border-color: var(--teal);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(20, 184, 166, 0.1);
}

.card-standard h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.card-standard p {
    color: var(--gray-400);
    font-size: 1rem;
}

.card-bento.card-standard {
    background: white;
    padding: 40px;
    border: 1px solid #e2e8f0;
}

.card-bento.card-standard:hover {
    border-color: var(--teal);
    box-shadow: 0 20px 40px rgba(20, 184, 166, 0.1);
}

.card-bento.card-standard h2 {
    color: var(--gray-900);
}

.card-bento.card-standard p {
    color: var(--gray-400);
}

/* GRID LAYOUTS */
.grid-dynamic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-hero {
    padding: 80px 20px;
}

.img-wrapper {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

/* FAQ ITEMS */
.faq-item {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: 0.3s ease;
}

.faq-item:hover {
    border-color: var(--teal);
    background: #f8fafc;
}

.faq-question {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: "▼";
    font-size: 12px;
    color: var(--teal);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    color: var(--gray-400);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* BENTO CARDS */
.card-bento {
    border-radius: 30px;
    overflow: hidden;
    transition: 0.4s ease;
}

.card-bento:hover {
    transform: translateY(-10px);
}

.card-dark {
    background: var(--gray-900);
    color: white;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.card-dark h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.card-dark p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.card-dark a {
    display: inline-block;
}

.bento-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-image {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.bento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-bento:hover .bento-image img {
    transform: scale(1.05);
}

.card-featured {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.card-featured:hover {
    border-color: var(--teal);
    box-shadow: 0 20px 40px rgba(20, 184, 166, 0.1);
}

.card-featured h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.card-featured p {
    color: var(--gray-400);
    font-size: 1rem;
}

.card-teal {
    background: var(--teal);
    color: white;
    padding: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-teal h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.card-teal p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.card-teal .btn-cta {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: var(--teal) !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 800;
    transition: 0.3s;
}

.card-teal .btn-cta:hover {
    background: #f1f5f9;
}

/* SPEC LIST */
.spec-list {
    list-style: none;
    margin-top: 20px;
}

.spec-list li {
    padding: 8px 0;
    color: white;
    font-weight: 600;
}

.spec-list li::before {
    content: "✓ ";
    color: var(--teal);
    font-weight: 800;
}

/* FOOTER */
footer {
    background: var(--gray-900);
    color: white;
    padding: 80px 20px 30px;
    margin-top: 120px;
    border-top: 1px solid rgba(20, 193, 168, 0.2);
}

footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

footer h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--teal);
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: 0.3s;
}

footer a:hover {
    color: var(--teal);
}

footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

footer .footer-logo img {
    height: 35px;
}

footer .footer-social {
    display: flex;
    gap: 16px;
    margin-top: 15px;
}

footer .footer-social .social-link {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    margin-bottom: 0;
}

footer .footer-social .social-link:hover {
    color: #14C1A8;
    transition: all 0.3s ease;
}

footer .footer-social svg {
    width: 20px;
    height: 20px;
}

/* HAMBURGER BUTTON (nascosto su desktop) */
.hamburger {
    display: none;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: transform 0.3s ease;
    color: var(--gray-900);
    align-items: center;
    justify-content: center;
}

.hamburger:focus,
.hamburger:focus-visible,
.hamburger:active {
    border: none;
    outline: none;
    box-shadow: none;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger svg {
    display: block;
}

.hamburger-close {
    display: none !important;
}

.hamburger.active .hamburger-open {
    display: none !important;
}

.hamburger.active .hamburger-close {
    display: block !important;
}
footer .footer-container > div:not(:first-child) p {
    color: var(--teal);
}

footer .footer-container > div:not(:first-child) p strong {
    color: rgba(255, 255, 255, 0.7);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    html,
    body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100%;
    }

    /* NAVBAR MOBILE */
    .navbar {
        padding: 0 15px;
        height: 60px;
        width: 95%;
        top: 10px;
        border-radius: 15px;
    }
    
    .hamburger {
        display: flex;
        position: relative;
        z-index: 1002;
        align-items: center;
        justify-content: center;
    }

    .hamburger.active {
        position: fixed;
        top: 24px;
        right: 24px;
        color: #ffffff;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100dvw;
        height: 100vh;
        height: 100dvh;
        background: #0b111a;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        padding: 80px 32px 80px;
        transform: translateX(110%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-links a {
        color: white;
        font-size: 2.5rem;
        font-weight: 600;
        margin: 0;
        padding: 16px 20px;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .nav-links a:active {
        transform: scale(0.96);
    }

    .nav-links a.active:not(.btn-cta) {
        color: #14C1A8;
        text-decoration: underline;
        text-underline-offset: 10px;
        text-decoration-thickness: 3px;
    }

    .mobile-social {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 30px;
        margin-top: 40px;
        padding: 20px 0;
    }

    .social-link {
        color: #ffffff;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .social-link:active {
        transform: scale(0.9);
    }

    .social-link svg {
        width: 32px;
        height: 32px;
        stroke-width: 2;
    }

    .social-link:hover {
        color: #14C1A8;
    }

    .mobile-menu-copy {
        color: rgba(255, 255, 255, 0.4);
        font-size: 0.9rem;
        margin-top: 40px;
        padding: 16px 0;
    }
    
    .btn-cta {
        background: var(--teal);
        color: var(--gray-900) !important;
        border-radius: 12px;
        padding: 20px 28px !important;
        width: min(500px, 92%);
        font-size: 1.1rem !important;
        font-weight: 700;
        margin-top: 20px;
        min-height: 64px;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

    .btn-cta:active {
        transform: scale(0.96);
        background: var(--teal-dark);
    }
    
    /* TAP TARGETS OTTIMIZZATI (Footer) */
    footer a {
        padding: 12px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* SECTIONS PADDING */
    section {
        padding: 80px 15px 60px !important;
    }
    
    /* TYPOGRAPHY MOBILE */
    h1 {
        font-size: clamp(1.8rem, 5vw, 4.5rem) !important;
    }
    
    h2 {
        font-size: clamp(1.5rem, 4vw, 3rem) !important;
    }
    
    h3 {
        font-size: clamp(1.1rem, 3vw, 1.5rem) !important;
    }
    
    /* Layout generale */
    .hero-grid { 
        grid-template-columns: 1fr; 
        gap: 40px;
        padding-top: 130px !important;
    }
    
    .img-box {
        height: 300px;
    }
    
    .img-wrapper {
        height: 350px !important;
    }
    
    .card-main { 
        grid-column: span 1; 
        padding: 30px; 
    }
    
    .grid-dynamic { 
        grid-template-columns: 1fr; 
        gap: 30px; 
    }
    
    .card-dark { 
        grid-template-columns: 1fr;
        grid-column: span 1 !important;
        padding: 30px !important;
    }
    
    .services-grid { 
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    
    .services-grid [style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
    
    .services-home-grid { 
        grid-template-columns: 1fr; 
    }
    
    .card-bento { 
        grid-column: auto !important; 
    }
    
    .card-teal { 
        flex-direction: column; 
        text-align: center; 
    }
    
    .price-guarantee-card { 
        padding: 30px 20px;
    }
    
    .price-guarantee-card h2 {
        font-size: clamp(1.5rem, 4vw, 3rem);
    }
    
    .price-guarantee-card p {
        font-size: 1rem;
    }
    
    .hero-buttons { 
        flex-direction: column; 
        gap: 12px;
    }
    
    .btn-primary, .btn-secondary { 
        width: 100%; 
        justify-content: center;
        min-height: 48px;
        font-size: 1rem;
        padding: 14px 20px !important;
    }
    
    .service-card {
        padding: 30px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .we-come-section {
        max-width: 100%;
        padding: 0 20px;
    }
    
    /* FOOTER MOBILE */
    footer { 
        padding: 40px 15px 20px; 
    }
    
    footer h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    footer p {
        font-size: 0.9rem;
    }
    
    footer .footer-container { 
        grid-template-columns: 1fr;
        gap: 35px; 
        margin-bottom: 30px; 
    }
    
    footer .footer-logo img {
        height: 25px;
    }

    /* HOME PAGE - mobile fine tuning */
    .home-page .hero-grid {
        padding-top: 120px !important;
        gap: 24px;
    }

    .home-page .hero-grid h1 {
        font-size: 2rem !important;
        line-height: 1.15;
        letter-spacing: -0.5px;
    }

    .home-page .hero-grid p {
        font-size: 1rem !important;
        margin: 20px 0 !important;
    }

    .home-page .hero-badge {
        font-size: 12px;
        padding: 10px 16px;
    }

    .home-page .img-box {
        height: 240px;
    }

    .home-page .price-guarantee-card,
    .home-page .service-card {
        width: 100%;
    }

    .home-page,
    .home-page main,
    .home-page section {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }
    
    /* CONTACT FORM MOBILE */
    .input-field {
        font-size: 16px;
        padding: 14px;
    }
    
    .btn-send {
        font-size: 1rem;
        padding: 16px;
    }
}