/* =============================================
   RIPARAZIONE COMPUTER SETTIMO TORINESE
   Redesign — Vibrant Editorial Tech
   Mobile-Optimized (all 18 issues fixed)
   ============================================= */

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

:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #3b82f6;
    --blue-pale: #eff6ff;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-light: #fb923c;
    --orange-pale: #fff7ed;
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --teal-light: #14b8a6;
    --teal-pale: #f0fdfa;
    --dark: #0f172a;
    --dark-mid: #1e293b;
    --text: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 100px;
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.06);
    --shadow: 0 4px 16px rgba(15,23,42,0.08);
    --shadow-lg: 0 12px 40px rgba(15,23,42,0.12);
    --shadow-xl: 0 20px 60px rgba(15,23,42,0.15);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
    --glow-blue: 0 0 40px rgba(37,99,235,0.15);
    --glow-orange: 0 0 40px rgba(249,115,22,0.15);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ---- NOISE TEXTURE OVERLAY ---- */
/* FIX #1: Changed z-index from 9999 to 0 so it cannot block touch interactions */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ---- GRADIENT BLOBS ---- */
.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

/* ---- TOP BAR ---- */
/* FIX #9: Safe area insets for notched phones */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    padding: 7px 0;
    padding-top: calc(7px + env(safe-area-inset-top, 0px));
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar a { color: #fff; font-weight: 500; }
.top-bar a:hover { color: var(--orange-light); }
.top-bar-left { display: flex; align-items: center; gap: 6px; }
.top-bar-right { display: flex; gap: 20px; align-items: center; }
.top-bar-right span { display: flex; align-items: center; gap: 5px; }

/* ---- HEADER ---- */
/* FIX #9: Safe area insets for notched phones */
.header {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226,232,240,0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition), background var(--transition);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}
.header.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 30px rgba(15,23,42,0.08);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 44px; width: auto; }
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.02em;
}
.logo-text span { color: var(--blue); }

/* ---- NAV ---- */
/* FIX #4: Use more specific selectors (.nav > a, .nav-item > a) to avoid legacy conflicts */
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav-item > a {
    color: var(--text);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    transition: all var(--transition);
    position: relative;
}
.nav > a:hover, .nav > a.active,
.nav-item > a:hover, .nav-item > a.active {
    color: var(--blue);
    background: var(--blue-pale);
}
.nav-item { position: relative; }
.nav-item .dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 260px;
    padding: 10px;
    z-index: 100;
    animation: dropIn 0.2s ease;
}
@keyframes dropIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
}
.dropdown a:hover { background: var(--blue-pale); color: var(--blue); }

/* Hamburger */
/* FIX #7: min-height 44px for touch targets */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}
.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- BUTTONS ---- */
/* FIX #7: min-height 44px for all buttons (iOS touch target) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 32px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-align: center;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37,99,235,0.4);
    color: var(--white);
    will-change: transform;
}
.btn-orange {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(249,115,22,0.3);
}
.btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(249,115,22,0.4);
    color: var(--white);
}
.btn-outline {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline::after { display: none; }
.btn-outline:hover {
    background: var(--white);
    color: var(--blue);
    border-color: var(--white);
    transform: translateY(-3px);
}
.btn-white {
    background: var(--white);
    color: var(--blue);
    box-shadow: var(--shadow);
}
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--blue-dark);
}
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 30%, #3b82f6 60%, #0d9488 100%);
    color: var(--white);
    padding: 90px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero .gradient-blob:nth-child(1) {
    width: 600px; height: 600px;
    background: var(--orange);
    top: -200px; right: -100px;
    opacity: 0.15;
}
.hero .gradient-blob:nth-child(2) {
    width: 400px; height: 400px;
    background: var(--teal-light);
    bottom: -150px; left: -50px;
    opacity: 0.12;
}
.hero .gradient-blob:nth-child(3) {
    width: 300px; height: 300px;
    background: #fff;
    top: 50%; left: 40%;
    opacity: 0.04;
}
/* Diagonal cut */
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg);
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
    z-index: 2;
}
.hero .container { position: relative; z-index: 3; }
.hero-inner {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}
.hero-text { flex: 1; min-width: 0; }
.hero-image {
    flex: 0 0 auto;
    max-width: 440px;
    width: 100%;
    position: relative;
}
.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}
.hero-image:hover img { transform: rotate(0deg) scale(1.03); }
.hero-image::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--orange), var(--teal-light), var(--blue-light));
    z-index: -1;
    opacity: 0.6;
    filter: blur(4px);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.hero h1 .accent-word {
    background: linear-gradient(135deg, var(--orange-light), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { font-size: 1.1rem; opacity: 0.92; line-height: 1.75; }
.hero strong { color: #fff; }

/* Hero badges */
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.2rem; }
.hero-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    backdrop-filter: blur(8px);
    letter-spacing: 0.02em;
}
.hero-badge.badge-gold {
    background: linear-gradient(135deg, rgba(251,191,36,0.25), rgba(249,115,22,0.2));
    border-color: rgba(251,191,36,0.5);
}

/* Hero trust stats */
/* FIX #2: flex-wrap added, gap reduced on mobile via media queries below */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin: 1.8rem 0 2rem;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(255,255,255,0.18);
    border-bottom: 1px solid rgba(255,255,255,0.18);
}
.trust-item { display: flex; flex-direction: column; }
.trust-item strong {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.03em;
}
.trust-item span {
    font-size: 0.72rem;
    opacity: 0.7;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

/* ---- SECTIONS ---- */
.section { padding: 90px 0; position: relative; content-visibility: auto; contain-intrinsic-size: auto 600px; }
.section-white { background: var(--white); }
.section-colored {
    background: linear-gradient(180deg, var(--blue-pale) 0%, #f0f4ff 100%);
    position: relative;
}
.section-teal {
    background: linear-gradient(135deg, var(--teal-pale) 0%, #e6fffa 50%, var(--blue-pale) 100%);
}
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}
.section-header p { color: var(--text-muted); font-size: 1.08rem; margin-top: 0.8rem; }
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blue);
    margin-bottom: 12px;
    padding: 6px 16px;
    background: var(--blue-pale);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(37,99,235,0.1);
}
.section-label.orange {
    color: var(--orange);
    background: var(--orange-pale);
    border-color: rgba(249,115,22,0.1);
}
.section-label.teal {
    color: var(--teal);
    background: var(--teal-pale);
    border-color: rgba(13,148,136,0.1);
}

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

/* ---- SERVICE CARDS ---- */
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
    contain: layout style paint;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
    will-change: transform;
}
.service-card .card-img {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}
.service-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.service-card:hover .card-img img { transform: scale(1.08); }
/* FIX #3: Removed dark gradient overlay — vector illustrations don't need it */
/* The ::after pseudo-element that added the overlay has been removed entirely */
.service-card .card-body { padding: 22px 24px 26px; }
.card-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
    position: relative;
}
.card-icon-badge.blue { background: var(--blue-pale); color: var(--blue); }
.card-icon-badge.orange { background: var(--orange-pale); color: var(--orange); }
.card-icon-badge.teal { background: var(--teal-pale); color: var(--teal); }
.service-card h3 { margin-bottom: 8px; }
.service-card h3 a { color: var(--dark); transition: color var(--transition); }
.service-card h3 a:hover { color: var(--blue); }
.service-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }
.card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue);
    margin-top: 12px;
    transition: gap var(--transition);
}
.service-card:hover .card-arrow { gap: 10px; }

/* ---- FEATURES ---- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    contain: layout style paint;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
    opacity: 0;
    transition: opacity var(--transition);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    will-change: transform;
}
.feature-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.6rem;
    position: relative;
}
.feature-icon.gradient-blue {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: var(--white);
    box-shadow: 0 6px 20px rgba(37,99,235,0.25);
}
.feature-icon.gradient-orange {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: var(--white);
    box-shadow: 0 6px 20px rgba(249,115,22,0.25);
}
.feature-icon.gradient-teal {
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    color: var(--white);
    box-shadow: 0 6px 20px rgba(13,148,136,0.25);
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ---- FAQ ---- */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
    contain: layout style paint;
}
.faq-item:hover { border-color: var(--blue-light); }
.faq-item.active { border-color: var(--blue); box-shadow: var(--glow-blue); }
/* FIX #7 & #13: min-height 44px for touch target on faq-question */
.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--dark);
    transition: background var(--transition);
    gap: 16px;
    min-height: 44px;
}
.faq-question:hover { background: var(--blue-pale); }
.faq-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
    color: var(--blue);
    font-size: 1.2rem;
    font-weight: 300;
}
.faq-item.active .faq-toggle {
    background: var(--blue);
    color: var(--white);
    transform: rotate(45deg);
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner {
    padding: 0 24px 22px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ---- TESTIMONIALS ---- */
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    transition: all var(--transition);
    contain: layout style paint;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    will-change: transform;
}
/* FIX #15: quote mark size handled responsively below */
.testimonial-card::before {
    content: '\201C';
    font-family: 'Outfit', sans-serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--blue-pale);
    position: absolute;
    top: 12px;
    left: 20px;
    z-index: 0;
    font-weight: 900;
}
.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.testimonial-stars svg { width: 18px; height: 18px; }
.testimonial-card blockquote {
    font-style: italic;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
}
.testimonial-author {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--dark);
    position: relative;
    z-index: 1;
}
.testimonial-author span { color: var(--text-muted); font-weight: 400; }

/* ---- ZONES ---- */
.zone-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    transition: all var(--transition);
    contain: layout style paint;
}
.zone-chip:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--teal-light);
}
.zone-pin {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 12px rgba(13,148,136,0.25);
}
.zone-chip strong {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--dark);
}
.zone-chip span {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ---- CTA BANNER ---- */
.cta-banner {
    background: linear-gradient(135deg, var(--orange) 0%, #ef4444 40%, var(--blue) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner .gradient-blob:nth-child(1) {
    width: 500px; height: 500px;
    background: #fff;
    top: -200px; right: -100px;
    opacity: 0.06;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p {
    opacity: 0.92;
    font-size: 1.1rem;
    margin-bottom: 28px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.cta-banner .btn-group { justify-content: center; }

/* ---- FOOTER ---- */
/* FIX #9: Safe area insets for notched phones */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.65);
    padding: 70px 0 0;
    position: relative;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--teal), var(--orange));
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer h4 {
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer p { font-size: 0.88rem; line-height: 1.8; }
.footer a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer a:hover { color: var(--orange-light); }
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer li a { font-size: 0.88rem; display: flex; align-items: center; gap: 6px; }
.footer li a::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--blue-light);
    flex-shrink: 0;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { height: 38px; filter: brightness(10); }
.footer-logo span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}
/* FIX #9: Safe area inset bottom for footer-bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    font-size: 0.82rem;
}

/* ---- WHATSAPP FLOAT ---- */
/* FIX #8 & #9: Safe area insets and adjusted positioning for small phones */
.whatsapp-float {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    right: calc(24px + env(safe-area-inset-right, 0px));
    width: 62px;
    height: 62px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: transform var(--transition);
    animation: pulse-wa 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.12); }
.whatsapp-float svg { width: 32px; height: 32px; fill: white; }
@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50%       { box-shadow: 0 4px 36px rgba(37,211,102,0.65); }
}

/* ---- SCROLL ANIMATIONS ---- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate="fade"] { transform: none; }
[data-animate="left"] { transform: translateX(-30px); }
[data-animate="right"] { transform: translateX(30px); }
[data-animate="scale"] { transform: scale(0.95); }
[data-animate].is-visible { opacity: 1; transform: translate(0, 0) scale(1); }
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }

/* Hero animations */
.hero .hero-badges { animation: fadeUp 0.6s ease 0.1s both; }
.hero h1 { animation: fadeUp 0.7s ease 0.2s both; }
.hero > .container > .hero-inner > .hero-text > p { animation: fadeUp 0.7s ease 0.35s both; }
.hero .hero-trust { animation: fadeUp 0.7s ease 0.45s both; }
.hero .btn-group { animation: fadeUp 0.7s ease 0.55s both; }
.hero-image { animation: fadeIn 1s ease 0.6s both; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---- REVIEW AGGREGATE ---- */
/* FIX #5: flex-wrap added for mobile overflow prevention */
.review-aggregate {
    text-align: center;
    margin-top: 32px;
    padding: 16px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}


/* ============================================= */
/*              RESPONSIVE BREAKPOINTS           */
/* ============================================= */

/* ---- DESKTOP TO TABLET (992px) ---- */
@media (max-width: 992px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ---- TABLET (768px) ---- */
@media (max-width: 768px) {
    /* FIX #17: Mobile nav dropdown gets proper z-index and won't be clipped */
    .hamburger { display: flex; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav.active { display: flex; }
    /* FIX #7: min-height 44px for nav links on mobile */
    .nav > a, .nav-item > a {
        width: 100%;
        padding: 14px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .nav-item .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        display: none;
        transform: none;
        min-width: 0;
    }
    .nav-item.open .dropdown { display: block; }
    /* FIX #7: Dropdown links also need 44px touch targets */
    .nav-item .dropdown a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }

    /* FIX #11: Footer grid refinement */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    /* FIX #11: Larger tap targets for footer links */
    .footer li { margin-bottom: 4px; }
    .footer li a {
        min-height: 44px;
        padding: 6px 0;
        display: flex;
        align-items: center;
    }

    /* FIX #12: Hero on mobile */
    .hero { padding: 60px 0 80px; }
    .hero h1 { font-size: 2rem; }
    .hero-inner { flex-direction: column; gap: 2rem; }
    .hero-image { order: -1; max-width: 280px; margin: 0 auto; }
    .hero-image img { transform: none; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
    .hero-image:hover img { transform: none; }
    .hero-image::before { display: none; }
    /* FIX #12: Hero diagonal cut smaller on mobile */
    .hero::after { height: 50px; }
    /* FIX #12: btn-group full-width buttons */
    .btn-group { flex-direction: column; align-items: stretch; gap: 12px; }
    .btn-group .btn { text-align: center; width: 100%; }
    /* FIX #2: Hero trust stats on mobile — smaller gap */
    .hero-trust { gap: 1.5rem; }
    .trust-item strong { font-size: 1.6rem; }

    /* FIX #18: Section padding verified/adjusted */
    .section { padding: 60px 0; }
    .section-header { margin-bottom: 2.5rem; }

    .top-bar .container { justify-content: center; text-align: center; }
    .top-bar-right { display: none; }

    .btn { padding: 14px 24px; font-size: 0.92rem; }

    /* FIX #14: CTA banner btn-group on mobile — column direction, full-width */
    .cta-banner { padding: 50px 0; }
    .cta-banner .btn-group {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-banner .btn-group .btn { width: 100%; }

    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.5rem; }

    /* FIX #13: FAQ toggle bigger on mobile (40px) */
    .faq-question { padding: 18px 20px; font-size: 0.95rem; }
    .faq-toggle { width: 40px; height: 40px; font-size: 1.3rem; }
    .faq-answer-inner { padding: 0 20px 18px; }

    .footer { padding: 50px 0 0; }

    /* FIX #15: Reduce testimonial quote mark on smaller screens */
    .testimonial-card::before { font-size: 3.5rem; }
    .testimonial-card { padding: 28px 22px; }

    /* FIX #16: Card image aspect-ratio on mobile */
    .service-card .card-img { aspect-ratio: 16/9; }

    /* FIX #5: Review aggregate badge on mobile */
    .review-aggregate {
        padding: 12px 18px;
        font-size: 0.82rem;
        border-radius: var(--radius);
    }

    /* PERF: Solid header background on mobile (remove GPU-heavy backdrop-filter) */
    .header {
        background: rgba(255,255,255,0.97);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .header.scrolled { background: var(--white); }

    /* PERF: Hide noise texture on mobile */
    body::before { display: none; }

    /* PERF: Reduce gradient blob blur on mobile */
    .gradient-blob { filter: blur(40px); }
}

/* FIX #10: Intermediate breakpoint at 600px */
@media (max-width: 600px) and (min-width: 481px) {
    /* Service cards: 2 columns instead of 1 at this range */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* FIX #6: Zone grid — 2-column step for tablets (481-768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- SMALL PHONES (480px) ---- */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }

    .hero { padding: 40px 0 60px; }
    .hero h1 { font-size: 1.6rem; line-height: 1.25; }
    .hero p { font-size: 0.98rem; }
    .hero .btn-group { flex-direction: column; gap: 10px; }
    .hero .btn { width: 100%; }
    .hero-image { max-width: 220px; }
    /* FIX #12: Smaller diagonal cut on small phones */
    .hero::after { height: 30px; }

    /* FIX #12: Hero badges smaller on tiny screens */
    .hero-badge { font-size: 0.72rem; padding: 5px 12px; }

    /* FIX #2: Trust stats even smaller gap and font on tiny screens */
    .hero-trust { gap: 1rem; }
    .trust-item strong { font-size: 1.3rem; }
    .trust-item span { font-size: 0.68rem; }

    /* FIX #18: Section padding on small phones */
    .section { padding: 40px 0; }
    .section-header { margin-bottom: 2rem; }

    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.05rem; }

    .service-card .card-body { padding: 18px 18px 22px; }
    /* FIX #16: More compact card images on small phones */
    .service-card .card-img { aspect-ratio: 3/2; }
    .feature-card { padding: 28px 18px; }

    .cta-banner { padding: 40px 0; }
    .cta-banner h2 { font-size: 1.35rem; }

    .top-bar { font-size: 0.78rem; padding: 6px 0; }
    .logo img { height: 36px; }
    .logo-text { font-size: 1.1rem; }

    /* FIX #8: WhatsApp button smaller on very small phones and safe-area aware */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        right: calc(16px + env(safe-area-inset-right, 0px));
    }
    .whatsapp-float svg { width: 26px; height: 26px; }

    /* FIX #11: Footer refinement on small phones */
    .footer { padding: 36px 0 0; }
    .footer-grid { gap: 24px; }
    .footer p, .footer li a { font-size: 0.85rem; }

    /* FIX #15: Testimonial quote mark even smaller on tiny screens */
    .testimonial-card::before { font-size: 3rem; top: 8px; left: 14px; }
    .testimonial-card { padding: 24px 18px; }
}

/* FIX #8: Body/footer bottom padding to account for WhatsApp button on very small phones */
@media (max-width: 320px) {
    .footer-bottom { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        right: calc(12px + env(safe-area-inset-right, 0px));
    }
    .whatsapp-float svg { width: 24px; height: 24px; }
    /* FIX #2: Trust stats stacked vertically on ultra-small */
    .hero-trust { flex-direction: column; gap: 0.8rem; }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.4rem; }
    .section { padding: 70px 0; }
}

/* Touch */
@media (hover: none) {
    .service-card:hover, .feature-card:hover, .testimonial-card:hover, .zone-chip:hover { transform: none; box-shadow: var(--shadow); }
    .btn:hover { transform: none; }
}

/* Print */
@media print {
    .top-bar, .header, .whatsapp-float, .cta-banner, .footer { display: none; }
    .section { padding: 20px 0; }
    body::before { display: none; }
}


/* === LEGACY CLASSES (internal pages) === */

/* ============================================
   RIPARAZIONE COMPUTER SETTIMO TORINESE
   Brand: MobileCare di Stefano Arminio
   ============================================ */

/* --- RESET & BASE --- */
/* (reset already defined above, legacy vars scoped below) */

/* FIX #4: Legacy :root no longer overrides --radius-pill.
   Removed --radius-pill: 9999px from here since the new design uses 100px. */
:root {
    --primary: #e31e24;
    --primary-dark: #b81019;
    --primary-light: #ff4449;
    --accent: #111111;
    --accent-dark: #000000;
    --light-gray: #eeeeee;
    --success: #00d084;
    /* --radius-pill intentionally NOT overridden here */
}

/* --- LEGACY NAV --- */
/* FIX #4: Made legacy nav selectors more specific so they DON'T override the new nav styles.
   Using body.legacy-page prefix, and also scoping to only legacy card-based nav contexts.
   The old .nav a was overriding .nav > a and .nav-item > a styles.
   Now using attribute selector that won't match new nav structure. */
.legacy-page .nav a,
.nav .legacy-link {
    color: var(--text);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
}
.legacy-page .nav a:hover,
.legacy-page .nav a.active,
.nav .legacy-link:hover,
.nav .legacy-link.active {
    color: var(--primary);
    background: rgba(227, 30, 36, 0.06);
}

/* Legacy Dropdown — scoped to not override new dropdown styles */
.legacy-page .dropdown a {
    display: block;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 0.9rem;
}
.legacy-page .dropdown a:hover { background: rgba(227, 30, 36, 0.06); }

/* --- LEGACY BUTTONS --- */
.btn-accent {
    background: var(--accent);
    color: var(--white);
}
.btn-accent:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- LEGACY HERO --- */
.hero-image svg,
.hero-image img {
    max-width: 480px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
}
.hero-image svg:hover,
.hero-image img:hover { transform: rotate(0deg) scale(1.04); }

/* --- LEGACY SECTIONS --- */
.section-alt { background: var(--white); }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }

/* --- LEGACY CARDS --- */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.section-alt .card { background: var(--bg); }
.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(227, 30, 36, 0.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary);
}
.card h3 a { color: var(--dark); }
.card h3 a:hover { color: var(--primary); }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- LEGACY FEATURES --- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature {
    text-align: center;
    padding: 32px 24px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 0.95rem; }

/* --- LEGACY FAQ --- */
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform var(--transition);
}
.faq-item.active .faq-question::after {
    content: '\2212';
}

/* --- LEGACY BREADCRUMB --- */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--dark); font-weight: 500; }

/* --- LEGACY PAGE HERO (inner pages) --- */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.92); font-size: 1.1rem; max-width: 750px; }
.page-hero .container { position: relative; z-index: 1; }

/* --- LEGACY CTA BANNER --- */
/* (already styled above, kept for compat) */

/* --- LEGACY CONTACT INFO --- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}
.contact-card h3 { margin-bottom: 12px; }
.contact-card a { font-size: 1.2rem; font-weight: 600; }

/* Legacy Hours table */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:first-child { font-weight: 600; color: var(--dark); }
.hours-table td:last-child { text-align: right; color: var(--text-muted); }

/* --- LEGACY SERVICES LIST (for inner pages) --- */
.service-detail { max-width: 800px; margin-left: auto; margin-right: auto; }
.service-detail h2 { margin-top: 2.5rem; }
.service-detail ul, .service-detail ol { margin-bottom: 1.5rem; }
.service-detail li { margin-bottom: 0.5rem; }
.service-detail article { margin-bottom: 2rem; }

/* --- LEGACY SERVICE IMAGE CARD --- */
.service-img-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 0;
}
.service-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .service-img-card img {
    transform: scale(1.05);
}

/* Legacy Card con immagine */
.card-with-img {
    padding: 0;
    overflow: hidden;
}
.card-with-img .card-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.card-with-img .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card-with-img:hover .card-img img {
    transform: scale(1.06);
}
.card-with-img .card-body {
    padding: 24px 24px 28px;
}
.card-with-img .card-icon {
    margin-bottom: 12px;
}

/* Legacy service hero img */
.service-hero-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

/* Legacy section-with-img */
.section-with-img {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.section-with-img.img-right { }
.section-with-img .img-side img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.section-with-img .text-side h2 { margin-top: 0; }

@media (max-width: 768px) {
    .section-with-img { grid-template-columns: 1fr; gap: 32px; }
    .section-with-img.img-right .img-side { order: -1; }
}

/* Legacy animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.page-hero h1 { animation: fadeInUp 0.6s ease both; }
.page-hero p  { animation: fadeInUp 0.6s ease 0.15s both; }

[data-delay="700"] { transition-delay: 0.7s; }

/* --- LEGACY APPLE / MAC PRODUCT CARDS --- */
.mac-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}
.mac-product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mac-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.mac-product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.mac-product-card p {
    margin: 0;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
}

/* Legacy Apple logo badge */
.apple-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1d1d1f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.apple-badge svg {
    width: 18px;
    height: 18px;
    fill: #fff;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .mac-products { grid-template-columns: 1fr; }
    .mac-product-card img { height: 160px; }
}

/* Legacy responsive overrides for inner pages */
@media (max-width: 992px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .features { grid-template-columns: 1fr; }
    /* hero-image now visible on mobile — legacy hide removed */
    .page-hero { padding: 36px 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-card { padding: 24px; }
    .service-hero-img { max-height: 240px; border-radius: 8px; }
}

@media (max-width: 480px) {
    .card-with-img .card-body { padding: 16px 16px 20px; }
    .card { padding: 20px 16px; }
    .features { grid-template-columns: 1fr; gap: 16px; }
    .feature { padding: 20px 16px; }
    .page-hero { padding: 28px 0; }
    .page-hero h1 { font-size: 1.5rem; }
    .page-hero p { font-size: 1rem; }
    .service-hero-img { max-height: 200px; }
    .breadcrumb { font-size: 0.82rem; padding: 10px 0; }
}

@media (min-width: 769px) and (max-width: 992px) {
    .features { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* Legacy touch */
@media (hover: none) {
    .card:hover { transform: none; box-shadow: var(--shadow); }
}

/* Legacy print */
@media print {
    a[href]::after { content: " (" attr(href) ")"; }
}

/* MOBILE HERO IMAGE FIX - force visible */
@media (max-width: 768px) {
    .hero-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto 1rem !important;
        order: -1 !important;
        flex-shrink: 0 !important;
        animation: none !important;
    }
    .hero-image picture {
        display: block !important;
    }
    .hero-image img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
        opacity: 1 !important;
    }
    .hero-image::before {
        display: none !important;
    }
}
@media (max-width: 480px) {
    .hero-image {
        max-width: 220px !important;
    }
}
