/* ============================================
   ITCODDES s.r.l. - Website Styles
   Colors derived from logo: deep navy, blue, cyan
   ============================================ */

:root {
    --navy-900: #060d1f;
    --navy-800: #0a1628;
    --navy-700: #0f2140;
    --navy-600: #152d56;
    --blue-700: #1254a1;
    --blue-600: #1565c0;
    --blue-500: #1976d2;
    --blue-400: #2196f3;
    --cyan-400: #26c6da;
    --cyan-300: #4dd0e1;
    --gradient-primary: linear-gradient(135deg, #1565c0, #26c6da);
    --gradient-hero: linear-gradient(160deg, #060d1f 0%, #0f2140 40%, #152d56 100%);
    --gradient-text: linear-gradient(135deg, #2196f3, #26c6da);
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --white: #ffffff;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(33, 150, 243, 0.15);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 168px;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a:hover { color: var(--cyan-400); }

img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Fondo chiaro perfettamente uguale per logo e header */
    background: linear-gradient(135deg, #e8f4fd 0%, #f0faff 60%, #dceefa 100%);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.navbar.scrolled {
  /*  background: rgba(6, 13, 31, 0.95);*/
      background: linear-gradient(135deg, #e8f4fd 0%, #f0faff 60%, #dceefa 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 160px;
}

.nav-logo {
    /*display: flex;*/
    align-items: bottom;
    /* Sfondo chiaro per far risaltare i contorni del logo */
    background: transparent;
    border: none;
  /*  border-right: 2px solid rgba(21, 101, 192, 0.15);
    border-radius: 0;*/
    padding: 0;
	box-shadow: none;
    height: 160px;
    margin-left: -24px;   /* annulla padding container */
    position: relative;
}

.nav-logo:hover {
  /*  background: linear-gradient(135deg, #dbeefb 0%, #eaf6ff 60%, #cce6f8 100%);*/
	background: linear-gradient(135deg, #e8f4fd 0%, #f0faff 60%, #dceefa 100%);
    box-shadow:
        4px 0 28px rgba(21, 101, 192, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.7);
}

/* Il logo è il doppio: 160px */
.logo-img {
    height: 200px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    color: var(--blue-600);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition);
}

.nav-menu a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
    background: var(--gradient-primary) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy-800);   /* scuro su sfondo chiaro della navbar */
    border-radius: 2px;
    transition: all var(--transition);
}

/* Hamburger → X quando menu aperto */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.floating-shapes { position: absolute; inset: 0; }

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(60px);
}

.shape-1 {
    width: 500px; height: 500px;
    background: var(--blue-400);
    top: -100px; right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px; height: 400px;
    background: var(--cyan-400);
    bottom: -50px; left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px; height: 300px;
    background: var(--blue-600);
    top: 40%; left: 30%;
    animation: float 18s ease-in-out infinite 3s;
}

.shape-4 {
    width: 200px; height: 200px;
    background: var(--cyan-300);
    top: 20%; right: 25%;
    animation: float 22s ease-in-out infinite 5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 120px 0 80px;
    z-index: 2;
}

/* ---- Decorative Developer Image ---- */
.hero-dev-img {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-dev-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* Blend the photo into the dark hero background */
    mix-blend-mode: luminosity;
    opacity: 0.18;
    /* Vignette: fade to black on left, right, bottom so text stays readable */
    -webkit-mask-image:
        radial-gradient(
            ellipse 70% 80% at 50% 40%,
            rgba(0,0,0,0.55) 0%,
            rgba(0,0,0,0.25) 50%,
            transparent 100%
        );
    mask-image:
        radial-gradient(
            ellipse 70% 80% at 50% 40%,
            rgba(0,0,0,0.55) 0%,
            rgba(0,0,0,0.25) 50%,
            transparent 100%
        );
    filter: contrast(1.1) saturate(0.6) brightness(1.1);
}

@media (max-width: 768px) {
    .hero-dev-img img {
        opacity: 0.10;
    }
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cyan-300);
    background: rgba(38, 198, 218, 0.1);
    border: 1px solid rgba(38, 198, 218, 0.2);
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 28px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(21, 101, 192, 0.35);
}

.btn-primary:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(21, 101, 192, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

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

/* ---- Hero Stats ---- */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.stat { text-align: center; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-mono);
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cyan-400);
    font-family: var(--font-mono);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
}

/* ---- Scroll Indicator ---- */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ---- Sections ---- */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--gray-50);
}

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

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--blue-500);
    background: rgba(21, 150, 243, 0.08);
    padding: 4px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--navy-800);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ---- About ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text { max-width: 520px; }

.about-lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--navy-700);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-text p {
    color: var(--gray-500);
    margin-bottom: 16px;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 28px;
    transition: all var(--transition);
}

.about-card:hover {
    border-color: rgba(21, 101, 192, 0.2);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.about-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(21, 150, 243, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.about-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--blue-500);
}

.about-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 8px;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ---- Services ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 36px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

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

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--white);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.service-tags li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--blue-500);
    background: rgba(21, 150, 243, 0.08);
    padding: 4px 12px;
    border-radius: 6px;
}

/* ---- Skills ---- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.skill-group h3 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--blue-500);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.skill-items { display: flex; flex-direction: column; gap: 20px; }

.skill-item { display: flex; flex-direction: column; gap: 8px; }

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy-800);
}

.skill-bar {
    height: 8px;
    background: var(--gray-100);
    border-radius: 100px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 100px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reasons ---- */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.reason-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 36px;
    transition: all var(--transition);
}

.reason-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.reason-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.reason-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 10px;
}

.reason-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 36px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(21, 150, 243, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--blue-500);
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.contact-item a {
    color: var(--blue-500);
    font-weight: 500;
}

/* ---- Form ---- */
.contact-form {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 36px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--navy-800);
    background: var(--white);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select { cursor: pointer; }

/* ---- Footer ---- */
.footer {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0faff 60%, #dceefa 100%);
    padding: 64px 0 0;
    /*color: rgba(255, 255, 255, 0.6);*/
	color : var(--blue-600);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid /*var(--gray-200)*/  var(--blue-600);
}

.footer-logo {
    height: 160px;
    width: auto;
    margin-bottom: 20px;
    filter: none; 
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 600;
   /* color: var(--white);*/
       color: var(--blue-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links ul { list-style: none; }

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

.footer-links a {
    font-size: 0.9rem;
   /* color: rgba(255, 255, 255, 0.5);*/
    color: var(--blue-600);
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--cyan-400);}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.8rem;
    /*color: rgba(255, 255, 255, 0.3);*/
	    color: var(--blue-600);
}

.footer-bottom a {
   /* color: rgba(255, 255, 255, 0.4);*/
    color: var(--blue-600);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-bottom a:hover { color: var(--cyan-400); }

/* ---- Privacy Page ---- */
.privacy-page {
    padding-top: 200px;
}

.privacy-page .section-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--navy-800);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 8px;
}

.privacy-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
    margin-top: 8px;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-block {
    margin-bottom: 40px;
}

.privacy-block h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-100);
}

.privacy-block h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy-700);
    margin: 16px 0 8px;
}

.privacy-block p {
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.8;
}

.privacy-block ul {
    list-style: none;
    padding: 0;
    margin-bottom: 12px;
}

.privacy-block ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--gray-600);
    line-height: 1.7;
}

.privacy-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient-primary);
}

.privacy-block a {
    color: var(--blue-500);
    font-weight: 500;
}

.privacy-block a:hover {
    color: var(--cyan-400);
}

.privacy-update {
    margin-top: 48px;
    padding: 20px 24px;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.privacy-update p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0;
}

/* ---- Animations (scroll reveal) ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
/* ============================================
   RESPONSIVE – Tablet (≤ 992px)
   ============================================ */
@media (max-width: 992px) {
    .about-grid,
    .services-grid,
    .skills-grid,
    .reasons-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

/* ============================================
   RESPONSIVE – Mobile (≤ 768px)
   ============================================ */
@media (max-width: 768px) {

    /* --- Navbar --- */
    .nav-container {
        height: 112px;
    }

    .nav-logo {
        display: flex;
        align-items: center;
        height: 112px;
        margin-left: 0;
        padding: 0;
    }

    .logo-img {
        height: 96px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 112px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #e8f4fd 0%, #f0faff 60%, #dceefa 100%);
        border-bottom: 2px solid rgba(21, 101, 192, 0.15);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 4px;
        transform: translateY(calc(-100% - 112px));
        transition: transform var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
        color: var(--navy-800);
        border-radius: 10px;
    }

    .nav-menu a:hover {
        color: var(--blue-600);
        background: rgba(21, 101, 192, 0.08);
    }

    .nav-cta {
        background: var(--gradient-primary) !important;
        color: var(--white) !important;
        text-align: center;
        margin-top: 8px;
    }

    /* --- Hero --- */
    .hero-content {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.2rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 8px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 48px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px 32px;
    }

    .stat-divider { display: none; }

    .stat-number { font-size: 2rem; }
    .stat-suffix { font-size: 1.6rem; }

    /* --- Sections --- */
    .section { padding: 64px 0; }

    .section-header { margin-bottom: 40px; }

    .section-header h2 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    /* --- About --- */
    .about-grid { gap: 32px; }
    .about-text { max-width: 100%; }

    /* --- Services --- */
    .service-card { padding: 28px 24px; }

    /* --- Skills --- */
    .skills-grid { gap: 32px; }

    /* --- Reasons --- */
    .reasons-grid { grid-template-columns: 1fr; }
    .reason-card { padding: 28px 24px; }

    /* --- Contact --- */
    .contact-grid { gap: 40px; }
    .contact-form { padding: 28px 20px; }

    /* --- Footer --- */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-logo {
        height: 80px;
    }

    .footer-bottom {
        font-size: 0.75rem;
        line-height: 1.8;
    }

    /* --- Privacy page --- */
    .privacy-page { padding-top: 110px; }
}

/* ============================================
   RESPONSIVE – Small phones (≤ 480px)
   ============================================ */
@media (max-width: 480px) {

    .container { padding: 0 16px; }

    /* Navbar */
    .nav-container { height: 100px; }
    .nav-logo { display: flex; align-items: center; height: 100px; }
    .logo-img { height: 84px; }
    .nav-menu { top: 100px; transform: translateY(calc(-100% - 100px)); }

    /* Hero */
    .hero-badge { font-size: 0.7rem; padding: 5px 14px; }
    .hero h1 { font-size: 1.6rem; }
    .hero-subtitle { font-size: 0.9rem; }

    /* Cards */
    .about-card,
    .service-card,
    .reason-card { padding: 24px 20px; }

    /* Buttons */
    .btn { padding: 13px 24px; font-size: 0.9rem; }

    /* Stats */
    .hero-stats { gap: 20px 24px; }
    .stat-number { font-size: 1.8rem; }

    /* Sections */
    .section { padding: 52px 0; }

    /* Form */
    .contact-form { padding: 24px 16px; }
    .form-group input,
    .form-group select,
    .form-group textarea { font-size: 16px; } /* evita zoom automatico iOS */

    /* Footer */
    .footer { padding: 48px 0 0; }
    .footer-logo { height: 64px; }
}
