@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #0a0a0a;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .arch-component:hover {
        transform: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .nav-link:hover {
        transform: none;
    }
    
    .cta-button:active {
        transform: scale(0.95);
    }
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 212, 255, 0.3);
    border-bottom: 1px solid rgba(0, 212, 255, 0.5);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.footer .footer-legal .footer-link {
  color: #9aa3b2;
  text-decoration: none;
}
.footer .footer-legal .footer-link:hover {
  color: #00d4ff;
  text-decoration: underline;
}

/* mobile */
@media (max-width: 768px) {
  .legal { padding: 110px 5% 60px; }
}
/* back button legale */
.btn-back {
  display: inline-block;
  margin-top: 1rem;
  padding: .6rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0,212,255,.3);
  color: #00d4ff;
  text-decoration: none;
}
.btn-back:hover { background: rgba(0,212,255,.08); }

/* --- Footer: allinea e uniforma i link legali allo stile del testo --- */
.footer .footer-legal {
  text-align: center;               /* centra la riga */
  margin: .35rem 0;                 /* respiro uniforme tra le righe */
  font: inherit;                    /* stesso font della riga copyright */
  color: inherit;                   /* stesso colore */
  letter-spacing: inherit;          /* stessa spaziatura */
}

/* Link/bottone nel footer = aspetto testo normale */
.footer .footer-legal a,
.footer .footer-legal .footer-link,
.footer .footer-legal button#cookiePrefsBtn {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;            /* identico al testo */
}

/* Hover sobrio (coerente ma non “button-like”) */
.footer .footer-legal a:hover,
.footer .footer-legal .footer-link:hover,
.footer .footer-legal button#cookiePrefsBtn:hover {
  text-decoration: underline;       /* feedback minimo */
}

/* Pallini separatori con spaziatura equilibrata */
.footer .footer-legal .sep {
  margin: 0 .5rem;
  opacity: .7;
}

@media (max-width: 480px) {
  .footer .footer-legal { padding: 0 .5rem; }
}
.horizontal {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.logo-graphic {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 30%, #0066ff 70%, #00ff88 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-graphic::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: #ffffff;
    border-radius: 14px;
}

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

.graphic-content {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 50px;
}

.graphic-content path {
    stroke: url(#mainGradient);
}

.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mini-logo {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 50%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: -10px;
    margin-bottom: 0px;
}

.mini-tagline {
    font-size: 0.7rem;
    color: #8892b0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: -10px;
}

/* Language Dropdown Menu */
.language-menu {
    position: relative;
}

.language-trigger {
    cursor: pointer;
}

.language-trigger::after {
    content: ' ▾';
    font-size: 0.8em;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0;
    list-style: none;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li {
    padding: 0;
}

.language-dropdown a {
    display: block;
    padding: 0.7rem 1.2rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.language-dropdown a:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding-left: 1.5rem;
}

.language-dropdown a::after {
    display: none;
}

.language-dropdown:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

.language-dropdown:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.language-dropdown option {
    background: #1a1a1a;
    color: #fff;
    padding: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #00d4ff;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    transition: width 0.3s ease;
}

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

/* Particles */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00d4ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff, 0 0 30px #00d4ff;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(var(--random-x)) rotate(360deg);
        opacity: 0;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2300d4ff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: gridMove 20s linear infinite;
}

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

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text .highlight {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 30%, #0066ff 70%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cloud Architecture Diagram - AWS/Azure Style */
.architecture-diagram {
    width: 500px;
    height: 450px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arch-component {
    position: absolute;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 12px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.6rem 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
    cursor: move;
    user-select: none;
}

.arch-component.dragging {
    opacity: 0.7;
    cursor: grabbing;
    z-index: 100;
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.6);
}

.arch-component:hover {
    border-color: #00d4ff;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
    transform: scale(1.05);
}

.component-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.component-icon svg {
    width: 100%;
    height: 100%;
    color: #00d4ff;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
    transition: all 0.3s ease;
}

.arch-component:hover .component-icon svg {
    color: #00ff88;
    filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.5));
    transform: scale(1.1);
}

.arch-component.dragging .component-icon svg {
    color: #0099cc;
}

.component-label {
    font-size: 0.65rem;
    color: #8892b0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.2;
    margin-top: 4px;
}

/* Cloud Architecture Layout - User Flow */
.arch-component.user {
    width: 80px;
    height: 75px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.arch-component.web-server-1 {
    width: 85px;
    height: 75px;
    top: 140px;
    left: 80px;
}

.arch-component.web-server-2 {
    width: 85px;
    height: 75px;
    top: 140px;
    right: 80px;
}

.arch-component.app-server {
    width: 90px;
    height: 75px;
    top: 260px;
    left: 30%;
    transform: translateX(-50%);
}

.arch-component.function {
    width: 85px;
    height: 75px;
    top: 260px;
    right: 30%;
    transform: translateX(50%);
}

.arch-component.database {
    width: 95px;
    height: 80px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    top: 0;
    left: 0;
}

.conn-line {
    stroke: url(#mainGradient);
    stroke-width: 2;
    opacity: 0.5;
    stroke-dasharray: 5, 5;
    animation: dashAnimation 20s linear infinite;
}

@keyframes dashAnimation {
    to {
        stroke-dashoffset: -1000;
    }
}

/* Services Section */
.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-icon svg {
    width: 36px;
    height: 36px;
    color: #00d4ff;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.service-card:hover .service-icon svg {
    color: #00ff88;
    filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.6));
    transform: scale(1.1) rotate(5deg);
}

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

.service-card p {
    color: #ccc;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 100px 5%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

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

.about-text h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-height: clamp(12rem, 26cqw, 16rem);
  padding: clamp(1rem, 2.2cqw, 1.5rem);
  background: rgba(0, 212, 255, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-5px);
} 

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 100px 5%;
    background: #0f0f0f;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.contact-info h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    color: #ccc;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: #00d4ff;
    transform: translateX(10px);
}

.contact-item .icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer */
.footer {
    background: #000;
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer p {
    color: #ccc;
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.hero-text,
.hero-visual {
  min-width: 0;         
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .nav {
        padding: 0.8rem 4%;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(0, 212, 255, 0.3);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: left;
    }
    
    .nav-link {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }
    
    .language-menu {
        width: 100%;
    }
    
    .language-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0.5rem;
        border: 1px solid rgba(0, 212, 255, 0.2);
    }
    
    .nav-right {
        gap: 1rem;
    }
    
    .mini-logo {
        font-size: 1.8rem;
    }
    
    .mini-tagline {
        font-size: 0.55rem;
    }
    
    .logo-graphic {
        width: 55px;
        height: 55px;
    }
    
    .graphic-content {
        width: 30px;
        height: 30px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        /* padding: 0 3%; */
    }

    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
  /*   .architecture-diagram {
        width: 100%;
        max-width: 350px;
        height: 350px;
        margin: 0 auto;
    } */
    
    .arch-component {
        padding: 0.5rem 0.4rem;
    }
    
    .component-label {
        font-size: 0.65rem;
    }
    
    .component-icon {
        width: 28px;
        height: 28px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		gap: 3rem;
    }
    
    .services {
        padding: 60px 4%;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .hiw {
        padding: 60px 4%;
    }
    
    .contact {
        padding: 60px 4%;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.8rem 3%;
    }
    
    .mini-logo {
        font-size: 1.5rem;
    }
    
    .mini-tagline {
        font-size: 0.5rem;
    }
    
    .logo-graphic {
        width: 50px;
        height: 50px;
    }
    
    .graphic-content {
        width: 25px;
        height: 25px;
    }
    
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    /* .architecture-diagram {
        max-width: 280px;
        height: 280px;
        transform: scale(0.9);
    }
     */
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title p {
        font-size: 0.95rem;
    }
    
    .services,
    .hiw,
    .about,
    .contact {
        padding: 50px 4%;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-item {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 1.5rem 4%;
    }
    
    .footer p {
        font-size: 0.85rem;
    }
    
    .nav-menu {
        width: 80%;
        padding: 80px 1.5rem 1.5rem;
    }
}

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

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: #ccc;
}

.services {
  padding: 100px 5%;           
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    width: 100%;
    max-width: 1000px;  
    margin: 0 auto;     
}

.service-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
	text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #00d4ff;
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

/* Centered footer */
.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;         /* centra orizzontalmente */
  text-align: center;          /* centra il testo */
}

.footer .footer-legal {
  font-size: 0.875rem;
  color: #7a7a7a;
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;     /* centra la riga dei campi */
  align-items: center;
}

.footer .footer-legal .sep { opacity: 0.6; }
.footer .footer-label { font-weight: 600; }

/* Modern two-column layout */
.hiw {
  background: radial-gradient(circle at top left, #0d1b2a 0%, #0b0b0b 100%);
  padding: 100px 5%;
  overflow: visible;
}

.hiw-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* testo sinistra, box destra */
  align-items: start;
  gap: 3rem;
}

.hiw-copy {
  flex: 1;
  max-width: 600px;
}

.hiw-engines {
  display: grid;
  grid-template-columns: 1fr;       /* una colonna verticale */
  gap: 1.5rem;
  align-content: start;
}

.engine-card {
  text-align: center;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.engine-card:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-5px);
}

.engine-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  color: #00d4ff;
}

.engine-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.engine-card p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Mobile: tutto in colonna */
@media (max-width: 1024px) {
  .hiw-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Optional icon on step */
.step-icon {
  width: 38px; height: 38px; margin: 0 auto 0.4rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 212, 255, 0.12);
  border-radius: 10px;
}
.step-icon svg {
  width: 22px; height: 22px; color: #00d4ff;
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.35));
}
/* Layout a 2 colonne per How It Works */
.hiw-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr; /* testo leggermente più largo */
  gap: 2.5rem;
  align-items: start;
  margin-top: 1.5rem;
}

/* Testo colonna sinistra */
.hiw-copy p {
  color: #ccc;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

/* Engine card: già definite, ribadisco per sicurezza */
.engine-card {
  background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  transition: all 0.35s ease;
}
.engine-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 18px 36px rgba(0, 212, 255, 0.18);
}
.engine-card h3 {
  color: #fff;
  font-size: 1.05rem; /* più compatto a destra */
  margin-bottom: 0.4rem;
}
.engine-card p {
  color: #cfd6e2;
  font-size: 0.95rem;
}

/* Icone engine */
.engine-icon {
  width: 48px; height: 48px;
  background: rgba(0, 212, 255, 0.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #00d4ff;               /* colore dello stroke degli SVG */
  margin-bottom: 0.8rem;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.engine-icon svg {
  width: 28px; height: 28px;
  stroke: currentColor;
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.35));
}

/* Responsive: su tablet/mobile torna a 1 colonna */
@media (max-width: 1024px) {
  .hiw-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hiw-engines {
    position: static;
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hiw-engines { grid-template-columns: 1fr; }
  .hiw-flow { grid-template-columns: 1fr; }
  .hiw-step::after { display: none; }
}

@media (max-width: 640px) {
  .footer .footer-legal {
    gap: 0.25rem;
  }
}

	/* --- Anti-schiacciamento servizi (mobile) --- */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;   /* 1 colonna piena */
    grid-auto-rows: auto;          
    gap: 1.25rem;                    
  }
  .service-card {
    min-height: clamp(180px, 34vh, 260px);  /* impedisce l'appiattimento */
    padding: 1.25rem 1rem;                   /* solo dimensioni interne */
  }
}

@media (max-width: 480px) {
  .service-card { min-height: clamp(200px, 42vh, 280px); } /* un filo più alta su schermi piccoli */
}

/* Architecture Diagram: scala solo su mobile, origine coerente */
@media (max-width: 768px) {
  .hero-visual { min-height: 420px; }
  .architecture-diagram {
    transform-origin: top;
    transform: scale(0.82);
  }
}

@media (max-width: 420px) {
  .hero-visual { min-height: 360px; }
  .architecture-diagram {
    transform-origin: top;
    transform: scale(0.66);
  }
}													  

/* === Privacy / Legal page === */
.legal {
  padding: 120px 5% 80px;                   /* spazio respirante */
  background: linear-gradient(135deg,#0a0a0a 0%,#1a1a2e 100%);
}

.legal .container {
  max-width: 1000px;                        /* colonna leggibile */
  margin: 0 auto;
}

.legal .section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.legal .section-title h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-bottom: .5rem;
}
.legal .section-title p {
  color: #9aa3b2;                           /* contrasto adeguato */
}

/* Card principale */
.legal-card {
  background: linear-gradient(145deg,#1a1a1a,#2a2a2a);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 18px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  color: #ccc;                               /* testo leggibile su scuro */
  line-height: 1.75;
}
.legal-card h2 {
  color: #fff;
  font-size: 1.25rem;
  margin: 1.5rem 0 .5rem;
}
.legal-card h3 {
  color: #e6f7ff;
  font-size: 1.05rem;
  margin: 1.25rem 0 .25rem;
}
.legal-card a {
  color: #00d4ff;
  text-decoration: none;
}
.legal-card a:hover { text-decoration: underline; }

/* Bottone “torna alla home” (già presente ma lo lasciamo qui) */
.btn-back {
  display: inline-block;
  margin-top: 1rem;
  padding: .6rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0,212,255,.3);
  color: #00d4ff;
  text-decoration: none;
}
.btn-back:hover { background: rgba(0,212,255,.08); }

/* Mobile spacing */
@media (max-width: 768px) {
  .legal { padding: 110px 5% 60px; }
}
