/* Reset e Import Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colori Principali */
    --primary-black: #0a0a0a;
    --secondary-black: #141414;
    --tertiary-black: #1e1e1e;
    
    /* Oro Elegante */
    --gold: #D4AF37;
    --gold-light: #E8D4A0;
    --gold-dark: #B8941F;
    
    /* Blu Tecnologico */
    --tech-blue: #0EA5E9;
    --tech-blue-dark: #0284C7;
    
    /* Testi */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #6b6b6b;
    
    /* Bordi e Overlay */
    --border: rgba(255, 255, 255, 0.08);
    --overlay: rgba(255, 255, 255, 0.03);
    --overlay-hover: rgba(255, 255, 255, 0.06);
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary-black);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Design */
.logo-link {
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
}

.logo-m, .logo-r, .logo-t {
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.logo-three {
    color: var(--gold);
    transition: all 0.3s ease;
}

.logo:hover .logo-m { color: var(--tech-blue); }
.logo:hover .logo-r { color: var(--gold); }
.logo:hover .logo-t { color: var(--tech-blue); }
.logo:hover .logo-three { color: var(--gold-light); }

.logo-underline {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--tech-blue), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-underline {
    transform: scaleX(1);
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

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

.nav-cta {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 30px;
    color: var(--primary-black) !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

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

.nav-cta:hover {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--primary-black) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    filter: blur(60px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    padding: 0 40px;
}

.hero-logo-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: clamp(80px, 15vw, 160px);
    font-weight: 900;
    letter-spacing: -5px;
    margin-bottom: 30px;
    opacity: 0;
}

.hero-m, .hero-r, .hero-t {
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-three {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
}

.hero-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 30px;
    color: var(--text-primary);
    opacity: 0;
    line-height: 1.3;
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--text-secondary);
    line-height: 1.8;
    opacity: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary-black);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.5);
}

.cta-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

/* Demo Phone Section */
.demo-section {
    padding: 140px 40px;
    background: linear-gradient(180deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    position: relative;
    overflow: hidden;
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.demo-text {
    opacity: 0;
}

.demo-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.demo-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--overlay);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.demo-feature-item:hover {
    background: var(--overlay-hover);
    border-color: var(--gold);
    transform: translateX(5px);
}

.demo-feature-item svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
    flex-shrink: 0;
}

.demo-feature-item span {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Phone Frame */
.demo-phone {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(100px);
}

.phone-frame {
    width: 340px;
    height: 690px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 45px;
    padding: 12px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.05),
        inset 0 0 30px rgba(255, 255, 255, 0.03);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
    border-radius: 35px;
    overflow: hidden;
    position: relative;
}

/* Home Assistant UI */
.ha-header {
    padding: 50px 20px 20px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.8) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ha-time {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.ha-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.ha-icon {
    font-size: 18px;
}

.ha-content {
    padding: 20px;
    overflow-y: auto;
    height: calc(100% - 90px);
}

.ha-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.ha-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.ha-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ha-card-icon {
    font-size: 20px;
}

.ha-card-title {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.ha-card-status {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.security-armed {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

/* Lights */
.ha-lights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ha-light-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ha-light-item span {
    font-size: 13px;
    color: var(--text-secondary);
}

.ha-switch {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ha-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.ha-switch.active {
    background: var(--gold);
}

.ha-switch.active::after {
    transform: translateX(20px);
}

/* Climate */
.ha-climate {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.ha-temp-display {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ha-temp-big {
    font-size: 52px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.ha-temp-big::after {
    content: '°C';
    font-size: 24px;
    color: var(--text-secondary);
}

.ha-temp-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ha-temp-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ha-temp-btn:hover {
    background: var(--gold);
    color: var(--primary-black);
    border-color: var(--gold);
}

/* Security */
.ha-security {
    padding: 10px 0;
}

.ha-security-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid rgba(244, 67, 54, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ha-security-btn.armed {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.5);
}

.security-icon {
    font-size: 24px;
}

.security-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Cameras */
.ha-cameras {
    padding: 10px 0;
}

.ha-camera-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ha-camera-item {
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
}

.camera-preview {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 10px;
    position: relative;
}

.camera-preview::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.camera-live-dot {
    width: 8px;
    height: 8px;
    background: #f44336;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.camera-name {
    font-size: 11px;
    color: var(--text-primary);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 6px;
}

/* Intro Section */
.intro-section {
    padding: 140px 40px;
    text-align: center;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-badge, .section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--overlay);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -2px;
}

.section-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Services Section */
.services-section {
    padding: 140px 40px;
    background: var(--secondary-black);
}

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

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

.service-card {
    background: var(--overlay);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 50px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, var(--gold) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    background: var(--overlay-hover);
    border-color: var(--gold);
    transform: translateY(-10px);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--tech-blue), var(--gold));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.service-icon {
    width: 35px;
    height: 35px;
    color: var(--primary-black);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-tags span {
    padding: 6px 14px;
    background: var(--overlay);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Technologies Section */
.tech-section {
    padding: 140px 40px;
    background: var(--primary-black);
}

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

.tech-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--overlay);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-item:hover {
    background: var(--overlay-hover);
    border-color: var(--tech-blue);
    transform: translateY(-5px);
}

.tech-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--tech-blue), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Philosophy Section */
.philosophy-section {
    padding: 140px 40px;
    background: var(--secondary-black);
}

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

.philosophy-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.philosophy-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-item svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
    flex-shrink: 0;
}

.feature-item span {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.philosophy-visual {
    position: relative;
    height: 500px;
}

.visual-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0.3;
}

.visual-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--gold) 2px, transparent 2px);
    background-size: 40px 40px;
    opacity: 0.2;
}

/* CTA Section */
.cta-section {
    padding: 140px 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    opacity: 0.05;
    filter: blur(100px);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(36px, 6vw, 60px);
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -2px;
}

.cta-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.8;
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 24px 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary-black);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.4);
}

.cta-button-large:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.6);
}

.cta-button-large svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.cta-button-large:hover svg {
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: var(--secondary-black);
    border-top: 1px solid var(--border);
    padding: 80px 40px 40px;
}

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

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 20px;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    color: var(--gold);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-tertiary);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1200px) {
    .philosophy-content {
        grid-template-columns: 1fr;
    }
    
    .philosophy-visual {
        height: 300px;
    }
}

@media (max-width: 968px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        padding: 40px 20px;
        gap: 25px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

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

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

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .philosophy-features {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: clamp(28px, 8vw, 64px);
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-title {
        font-size: clamp(20px, 5vw, 48px);
        word-wrap: break-word;
    }
    
    .hero-description {
        font-size: clamp(14px, 3vw, 20px);
    }
    
    .service-card,
    .tech-item {
        padding: 30px 20px;
    }
    
    .service-card h3 {
        font-size: 20px;
        word-wrap: break-word;
    }
    
    .service-card p,
    .tech-item p {
        font-size: 14px;
        word-wrap: break-word;
    }
    
    /* Demo Phone Responsive */
    .demo-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .demo-phone {
        order: -1;
        transform: scale(0.85);
    }
    
    .demo-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 15px 60px;
    }
    
    .hero-logo-large {
        font-size: clamp(50px, 15vw, 80px);
        gap: 4px;
        letter-spacing: -3px;
    }
    
    .hero-title {
        font-size: clamp(18px, 5vw, 28px);
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: clamp(24px, 8vw, 48px);
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    .section-description {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .services-section,
    .tech-section,
    .philosophy-section,
    .demo-section,
    .cta-section {
        padding: 80px 15px;
    }
    
    .service-card,
    .tech-item {
        padding: 25px 15px;
    }
    
    .service-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .service-icon {
        width: 30px;
        height: 30px;
    }
    
    .service-card h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .service-tags span {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .tech-logo {
        font-size: 20px;
    }
    
    .tech-item p {
        font-size: 13px;
    }
    
    .footer {
        padding: 60px 15px 30px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .cta-button-large {
        padding: 16px 35px;
        font-size: 14px;
    }
    
    /* Demo Phone Mobile */
    .demo-section {
        padding: 60px 15px;
    }
    
    .demo-phone {
        transform: scale(0.75);
        margin: -40px 0;
    }
    
    .phone-frame {
        width: 300px;
        height: 610px;
    }
    
    .demo-features {
        margin-top: 20px;
    }
    
    .demo-feature-item {
        padding: 12px;
    }
    
    .demo-feature-item svg {
        width: 20px;
        height: 20px;
    }
    
    .demo-feature-item span {
        font-size: 13px;
    }
    
    /* Fix per testi lunghi */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}
