/* =========================================
   CARROZZERIA DANTE – STILE v3
   Tema chiaro, rosso/nero dal logo
   Font: Playfair Display + DM Sans
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700&family=Playfair+Display:ital,wght@0,700;0,800;1,700;1,800&display=swap');

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

:root {
    --rosso: #C41E1E;
    --rosso-scuro: #9B1818;
    --nero: #1a1a1a;
    --bianco: #ffffff;
    --grigio-bg: #f5f4f0;
    --grigio-chiaro: #eae8e3;
    --grigio-bordo: #d8d5ce;
    --grigio-testo: #555;
    --grigio-muted: #999;
    --verde: #2d8a4e;
    --rosso-alert: #c0392b;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --max-w: 1200px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); background: var(--grigio-bg); color: var(--nero); overflow-x: hidden; max-width: 100%; position: relative; }

/* ===== HEADER ===== */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--bianco); border-bottom: 1px solid var(--grigio-bordo);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 48px; height: 72px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s;
}
header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.logo-wrap img { height: 48px; width: auto; display: block; }
nav ul { list-style: none; display: flex; gap: 2px; }
nav ul li a {
    font-family: var(--font-body); font-size: 0.82rem; font-weight: 500;
    letter-spacing: 0.04em; text-transform: uppercase; color: var(--grigio-testo);
    text-decoration: none; padding: 8px 16px; border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
nav ul li a:hover { color: var(--nero); background: var(--grigio-chiaro); }
nav ul li a.active { color: var(--rosso); font-weight: 700; }
.header-phone {
    font-family: var(--font-body); font-size: 0.88rem; font-weight: 700;
    color: var(--bianco); background: var(--rosso); text-decoration: none;
    padding: 10px 20px; border-radius: 6px; transition: background 0.2s, transform 0.15s; white-space: nowrap;
}
.header-phone:hover { background: var(--rosso-scuro); transform: translateY(-1px); }

/* ===== PAGE HERO ===== */
.page-hero {
    padding-top: 72px; background: var(--nero); position: relative; overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 0;
}
.page-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 100px;
    background: linear-gradient(to top, var(--grigio-bg), transparent);
    z-index: 1;
}
.page-hero-red {
    position: absolute; top: -80px; right: -80px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(196,30,30,0.18) 0%, transparent 65%);
    z-index: 0; pointer-events: none;
}
.page-hero-inner {
    padding: 80px 48px 100px; max-width: var(--max-w); margin: 0 auto;
    position: relative; z-index: 2;
}
.page-tag {
    font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--rosso);
    margin-bottom: 16px; display: block;
}
.page-title {
    font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 800; line-height: 1.05; color: var(--bianco);
}
.page-title em { font-style: italic; color: var(--rosso); }
.page-desc {
    font-size: 1.05rem; color: rgba(255,255,255,0.5); line-height: 1.7;
    max-width: 520px; margin-top: 20px;
}

/* ===== CONTENUTO ===== */
.contenuto { max-width: var(--max-w); margin: 0 auto; padding: 64px 48px; }

.sezione-intro {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--rosso); margin-bottom: 8px; display: block;
}
.sezione-h2 {
    font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700; line-height: 1.15; margin-bottom: 40px; color: var(--nero);
}

/* ===== CTA STRIP ===== */
.cta-strip {
    background: var(--nero); padding: 72px 48px;
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
    position: relative; overflow: hidden;
}
.cta-strip::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}
.cta-strip::after {
    content: ''; position: absolute; left: -80px; top: 50%; transform: translateY(-50%);
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(196,30,30,0.16) 0%, transparent 65%);
    pointer-events: none;
}
.cta-strip h2 {
    font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
    color: var(--bianco); line-height: 1.15; position: relative; z-index: 1;
}
.cta-strip h2 em { font-style: italic; color: var(--rosso); }
.btn-cta {
    font-family: var(--font-body); font-size: 0.9rem; font-weight: 700;
    background: var(--rosso); color: var(--bianco); text-decoration: none;
    padding: 18px 40px; border-radius: 10px; transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap; position: relative; z-index: 1;
    box-shadow: 0 6px 24px rgba(196,30,30,0.35);
}
.btn-cta:hover { background: var(--rosso-scuro); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(196,30,30,0.45); }

/* ===== FOOTER RICCO ===== */
footer {
    background: var(--nero);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
    max-width: var(--max-w); margin: 0 auto;
    padding: 60px 48px 36px;
    display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px;
}
.footer-brand img {
    height: 52px; width: auto; display: block; margin-bottom: 20px;
    background: rgba(255,255,255,0.96); padding: 8px 18px;
    border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.footer-brand p { font-size: 0.84rem; color: rgba(255,255,255,0.38); line-height: 1.7; max-width: 260px; }
.footer-nav-title {
    display: block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; color: rgba(255,255,255,0.28);
    margin-bottom: 18px;
}
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a {
    font-size: 0.84rem; color: rgba(255,255,255,0.52);
    text-decoration: none; transition: color 0.2s;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--rosso); }
.footer-contact p { font-size: 0.84rem; color: rgba(255,255,255,0.38); line-height: 1.65; }
.footer-contact .footer-hours { font-size: 0.78rem; color: rgba(255,255,255,0.28); margin-top: 4px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    max-width: var(--max-w); margin: 0 auto;
    padding: 18px 48px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.footer-bottom span { font-size: 0.74rem; color: rgba(255,255,255,0.22); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
    font-size: 0.74rem; color: rgba(255,255,255,0.28); text-decoration: none; transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== HAMBURGER ===== */
.hamburger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    cursor: pointer; background: none; border: none; padding: 6px; z-index: 1100;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--nero); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== CARD GENERICA ===== */
.card {
    background: var(--bianco); border: 1px solid var(--grigio-bordo);
    border-radius: 12px; overflow: hidden; transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-2px); }

/* ===== BTN PRIMARY ===== */
.btn-primary {
    font-family: var(--font-body); font-size: 0.88rem; font-weight: 700;
    background: var(--rosso); color: var(--bianco); text-decoration: none;
    padding: 14px 28px; border-radius: 8px; transition: background 0.2s, transform 0.15s;
    display: inline-block; white-space: nowrap; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--rosso-scuro); transform: translateY(-1px); }

/* ===== HERO (index) ===== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding-top: 72px; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-image: url('img/car1.jpg'); background-size: cover; background-position: center 30%;
    filter: brightness(0.3); transform: scale(1.05); transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.88) 0%, rgba(26,26,26,0.45) 60%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 48px; max-width: 720px; }
.hero-badge {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--rosso);
    border: 1px solid rgba(196,30,30,0.4); padding: 6px 16px; border-radius: 4px;
    margin-bottom: 24px; opacity: 0; animation: fadeUp 0.6s 0.2s forwards;
}
.hero-title {
    font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800; line-height: 0.95; color: var(--bianco);
    margin-bottom: 24px; opacity: 0; animation: fadeUp 0.6s 0.4s forwards;
}
.hero-title em { font-style: italic; color: var(--rosso); display: block; }
.hero-sub {
    font-size: 1.1rem; color: rgba(255,255,255,0.6); line-height: 1.65;
    max-width: 480px; margin-bottom: 36px;
    opacity: 0; animation: fadeUp 0.6s 0.6s forwards;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.6s 0.8s forwards; }
.hero-cta .btn-primary { font-size: 0.88rem; padding: 16px 32px; border-radius: 8px; }
.btn-secondary {
    font-family: var(--font-body); font-size: 0.88rem; font-weight: 700;
    color: var(--bianco); text-decoration: none; padding: 16px 32px;
    border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--bianco); background: rgba(255,255,255,0.07); }

.hero-scroll-hint {
    position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2;
    opacity: 0; animation: fadeUp 0.6s 1.2s forwards;
}
.hero-scroll-text {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; color: rgba(255,255,255,0.3);
}
.hero-scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(0.55); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== NUMERI STRIP ===== */
.numeri-strip {
    background: var(--bianco); border-bottom: 1px solid var(--grigio-bordo);
    padding: 0 48px;
}
.numeri-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.numero-item {
    padding: 36px 24px; text-align: center;
    border-right: 1px solid var(--grigio-chiaro); position: relative;
    transition: background 0.2s;
}
.numero-item:hover { background: var(--grigio-bg); }
.numero-item:last-child { border-right: none; }
.numero-val {
    font-family: var(--font-display); font-size: 2.6rem; font-weight: 800;
    color: var(--rosso); display: block; line-height: 1;
}
.numero-label { font-size: 0.78rem; color: var(--grigio-muted); margin-top: 6px; display: block; }

/* ===== SERVIZI GRID (home) ===== */
.servizi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.servizio-card {
    background: var(--bianco); border: 1px solid var(--grigio-bordo);
    border-radius: 12px; padding: 32px 24px;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s; position: relative;
    overflow: hidden;
}
.servizio-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: var(--rosso); transform: scaleX(0); transition: transform 0.3s ease;
    transform-origin: left;
}
.servizio-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.09); transform: translateY(-4px); border-color: rgba(196,30,30,0.2); }
.servizio-card:hover::after { transform: scaleX(1); }
.servizio-num {
    font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
    color: var(--grigio-chiaro); position: absolute; top: 16px; right: 20px;
    transition: color 0.3s;
}
.servizio-card:hover .servizio-num { color: rgba(196,30,30,0.12); }
.servizio-icona {
    width: 44px; height: 44px; background: rgba(196,30,30,0.08); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
    transition: background 0.3s;
}
.servizio-card:hover .servizio-icona { background: rgba(196,30,30,0.14); }
.servizio-icona svg { width: 22px; height: 22px; stroke: var(--rosso); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.servizio-titolo { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; color: var(--nero); margin-bottom: 8px; }
.servizio-testo { font-size: 0.84rem; color: var(--grigio-muted); line-height: 1.6; }

/* ===== PERCHÉ NOI ===== */
.perche-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.perche-foto { border-radius: 12px; overflow: hidden; position: relative; }
.perche-foto img { width: 100%; height: 420px; object-fit: cover; display: block; }
.perche-foto-badge {
    position: absolute; bottom: 20px; left: 20px;
    background: var(--rosso); color: var(--bianco);
    font-size: 0.78rem; font-weight: 700; padding: 12px 20px; border-radius: 8px;
}
.perche-list { list-style: none; margin-top: 32px; }
.perche-list li {
    display: flex; gap: 16px; padding: 16px 0;
    border-bottom: 1px solid var(--grigio-chiaro);
}
.perche-list li:last-child { border-bottom: none; }
.perche-check {
    width: 28px; height: 28px; background: rgba(196,30,30,0.08); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    color: var(--rosso); font-size: 0.8rem; font-weight: 700;
}
.perche-list-titolo { font-size: 0.9rem; font-weight: 700; color: var(--nero); margin-bottom: 2px; }
.perche-list-testo { font-size: 0.82rem; color: var(--grigio-muted); line-height: 1.5; }

/* ===== GALLERIA PREVIEW (home) ===== */
.galleria-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; }
.galleria-preview img {
    width: 100%; height: 180px; object-fit: cover; border-radius: 10px;
    filter: grayscale(0%); transition: transform 0.4s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.galleria-preview img:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(0,0,0,0.14); }
.galleria-link {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
    font-size: 0.82rem; font-weight: 700; color: var(--rosso); text-decoration: none;
    transition: gap 0.2s, color 0.2s;
}
.galleria-link:hover { color: var(--rosso-scuro); gap: 10px; }

/* ===== CONTATTI PREVIEW (home) ===== */
.contatti-preview { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.info-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--grigio-chiaro); }
.info-item:last-child { border-bottom: none; }
.info-icon {
    width: 40px; height: 40px; background: rgba(196,30,30,0.08); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-icon svg { width: 18px; height: 18px; stroke: var(--rosso); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grigio-muted); margin-bottom: 2px; }
.info-val { font-size: 0.92rem; color: var(--nero); line-height: 1.5; }
.info-val a { color: var(--nero); text-decoration: none; transition: color 0.2s; }
.info-val a:hover { color: var(--rosso); }
.mappa-container { border-radius: 12px; overflow: hidden; height: 360px; border: 1px solid var(--grigio-bordo); }
.mappa-container iframe { width: 100%; height: 100%; border: none; display: block; }

/* ===== SERVIZI FULL (services.html) ===== */
.servizi-full { display: flex; flex-direction: column; gap: 16px; }
.servizio-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    background: var(--bianco); border: 1px solid var(--grigio-bordo); border-radius: 12px;
    overflow: hidden; transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.servizio-row:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.07); transform: translateY(-2px); border-color: rgba(196,30,30,0.2); }
.servizio-info { padding: 36px 32px; }
.servizio-titolo-lg { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--nero); margin-bottom: 10px; }
.servizio-testo-lg { font-size: 0.88rem; color: var(--grigio-testo); line-height: 1.65; }
.servizio-dettagli { padding: 36px 32px; border-left: 1px solid var(--grigio-chiaro); background: var(--grigio-bg); }
.dettagli-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rosso); margin-bottom: 14px; display: block; }
.dettagli-list { list-style: none; }
.dettagli-list li {
    font-size: 0.84rem; color: var(--grigio-testo); padding: 8px 0;
    border-bottom: 1px solid var(--grigio-chiaro); display: flex; align-items: center; gap: 10px;
}
.dettagli-list li:last-child { border-bottom: none; }
.dettagli-list li::before { content: ''; width: 5px; height: 5px; background: var(--rosso); border-radius: 50%; flex-shrink: 0; }

/* ===== ABOUT ===== */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-bottom: 64px; }
.about-foto { border-radius: 12px; overflow: hidden; position: relative; }
.about-foto img { width: 100%; height: 440px; object-fit: cover; display: block; }
.about-foto-tag {
    position: absolute; bottom: 20px; left: 20px;
    background: var(--rosso); color: var(--bianco);
    font-size: 0.78rem; font-weight: 700; padding: 12px 20px; border-radius: 8px; line-height: 1.4;
}
.about-testo h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.1; margin-bottom: 24px; }
.about-testo h2 em { font-style: italic; color: var(--rosso); }
.about-testo p { font-size: 0.95rem; color: var(--grigio-testo); line-height: 1.75; margin-bottom: 16px; }
.valori-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.valore-card {
    background: var(--bianco); border: 1px solid var(--grigio-bordo); border-radius: 12px;
    padding: 32px 24px; transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
    position: relative; overflow: hidden;
}
.valore-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: var(--rosso); transform: scaleX(0); transition: transform 0.3s;
    transform-origin: left;
}
.valore-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.07); transform: translateY(-3px); border-color: rgba(196,30,30,0.2); }
.valore-card:hover::after { transform: scaleX(1); }
.valore-icona {
    width: 44px; height: 44px; background: rgba(196,30,30,0.08); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.valore-icona svg { width: 22px; height: 22px; stroke: var(--rosso); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.valore-titolo { font-size: 0.95rem; font-weight: 700; color: var(--nero); margin-bottom: 8px; }
.valore-testo { font-size: 0.84rem; color: var(--grigio-muted); line-height: 1.6; }

/* ===== GALLERIA GRID ===== */
.galleria-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.galleria-item {
    border-radius: 12px; overflow: hidden; cursor: pointer; position: relative;
    aspect-ratio: 4/3;
}
.galleria-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s, filter 0.3s; filter: grayscale(20%); loading: lazy; }
.galleria-item:hover img { transform: scale(1.06); filter: grayscale(0%); }
.galleria-item-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 55%);
    display: flex; align-items: flex-end; padding: 18px; opacity: 0; transition: opacity 0.3s;
}
.galleria-item:hover .galleria-item-overlay { opacity: 1; }
.galleria-item-label { font-size: 0.78rem; font-weight: 700; color: #fff; letter-spacing: 0.06em; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.94); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity 0.3s, visibility 0s 0s; }
.lightbox-img-wrap { position: relative; }
.lightbox-img-wrap img { max-width: 82vw; max-height: 84vh; border-radius: 8px; display: block; }
.lightbox-close {
    position: fixed; top: 20px; right: 24px; font-size: 1.4rem; color: rgba(255,255,255,0.65);
    cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid rgba(255,255,255,0.15);
    transition: background 0.2s, color 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
.lightbox-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8); font-size: 1.2rem; cursor: pointer;
    width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); color: #fff; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    font-size: 0.76rem; color: rgba(255,255,255,0.4); letter-spacing: 0.1em;
}

/* ===== CONTATTI PAGE ===== */
.contatti-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.info-grid { display: flex; flex-direction: column; gap: 0; }
.info-card { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--grigio-chiaro); }
.info-card:last-child { border-bottom: none; }
.info-icon-wrap {
    width: 48px; height: 48px; background: rgba(196,30,30,0.08);
    border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: background 0.2s;
}
.info-card:hover .info-icon-wrap { background: rgba(196,30,30,0.14); }
.info-icon-wrap svg { width: 20px; height: 20px; stroke: var(--rosso); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.call-box {
    margin-top: 28px; background: var(--rosso); border-radius: 12px;
    padding: 28px 24px; display: flex; align-items: center; gap: 16px;
    transition: background 0.2s; text-decoration: none;
}
.call-box:hover { background: var(--rosso-scuro); }
.call-box-text { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 2px; }
.call-box-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--bianco); }
.call-box-num a { color: var(--bianco); text-decoration: none; }
.mappa-wrap { position: sticky; top: 90px; }
.mappa-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grigio-muted); margin-bottom: 12px; display: block; }
.mappa-container-full { border-radius: 12px; overflow: hidden; height: 400px; border: 1px solid var(--grigio-bordo); }
.mappa-container-full iframe { width: 100%; height: 100%; border: none; display: block; }
.mappa-indirizzo {
    margin-top: 12px; background: var(--bianco); border: 1px solid var(--grigio-bordo);
    border-radius: 8px; padding: 14px 18px; display: flex; align-items: center; gap: 10px;
    font-size: 0.85rem; color: var(--grigio-testo);
}

/* ===== FAQ ===== */
.faq-list { max-width: 800px; }
.faq-item {
    background: var(--bianco); border: 1px solid var(--grigio-bordo); border-radius: 10px;
    margin-bottom: 10px; overflow: hidden; transition: box-shadow 0.3s, border-color 0.3s;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.faq-item.open { border-color: rgba(196,30,30,0.25); box-shadow: 0 4px 20px rgba(196,30,30,0.06); }
.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; cursor: pointer; gap: 16px;
}
.faq-q-text { font-size: 0.92rem; font-weight: 700; color: var(--nero); }
.faq-arrow { font-size: 1rem; color: var(--grigio-muted); transition: transform 0.3s, color 0.3s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--rosso); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 24px 20px; font-size: 0.88rem; color: var(--grigio-testo); line-height: 1.7; }
.cta-box {
    background: var(--bianco); border: 1px solid var(--grigio-bordo); border-radius: 12px;
    padding: 32px; display: flex; align-items: center; justify-content: space-between;
    gap: 24px; margin-top: 48px;
}
.cta-box h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--nero); }
.cta-box p { font-size: 0.85rem; color: var(--grigio-muted); margin-top: 4px; }

/* ===== FLOATING BUTTONS ===== */
#whatsapp-btn {
    position: fixed; bottom: 24px; left: 24px; z-index: 900;
    width: 52px; height: 52px; border-radius: 50%;
    background: #25D366; color: #fff; border: none; cursor: pointer;
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    opacity: 0; animation: fadeUp 0.5s 1.5s forwards;
}
#whatsapp-btn:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 24px rgba(37,211,102,0.45); }
#whatsapp-btn svg { width: 26px; height: 26px; fill: #fff; }

#back-to-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 900;
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--nero); color: var(--bianco); border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    display: none; align-items: center; justify-content: center;
    font-size: 1.1rem; transition: transform 0.2s, background 0.2s;
}
#back-to-top:hover { transform: translateY(-3px); background: var(--rosso); border-color: var(--rosso); }
#back-to-top.visible { display: flex; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    header { padding: 0 16px; }
    .hamburger { display: flex; order: 3; }
    /* Tasto chiama compatto su mobile (logo a sx, telefono+menu a dx) */
    .header-phone {
        display: inline-flex !important; align-items: center;
        order: 2; margin-left: auto; margin-right: 12px;
        padding: 9px 16px; font-size: 0.82rem;
    }
    nav {
        position: fixed; top: 72px; left: 0; right: 0;
        background: var(--bianco); border-bottom: 1px solid var(--grigio-bordo);
        transform: translateY(-110%); opacity: 0; visibility: hidden;
        transition: transform 0.3s, opacity 0.3s, visibility 0s 0.3s;
        z-index: 999; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    nav.open {
        transform: translateY(0); opacity: 1; visibility: visible;
        transition: transform 0.3s, opacity 0.3s, visibility 0s 0s;
        pointer-events: auto;
    }
    nav ul { flex-direction: column !important; gap: 0 !important; padding: 8px 0 !important; }
    nav ul li a {
        display: block !important; padding: 14px 24px !important;
        font-size: 0.92rem !important; border-radius: 0 !important;
        border-bottom: 1px solid var(--grigio-chiaro);
    }
    .page-hero-inner { padding: 64px 20px 80px !important; }
    .contenuto { padding: 40px 20px; }
    .cta-strip { flex-direction: column; text-align: center; padding: 48px 20px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px 24px; }
    .footer-bottom { flex-direction: column; text-align: center; padding: 16px 20px; }
    .numeri-inner { grid-template-columns: 1fr 1fr; }
    .servizi-grid { grid-template-columns: 1fr 1fr; }
    .perche-layout { grid-template-columns: 1fr; }
    .galleria-preview { grid-template-columns: 1fr 1fr; }
    .contatti-preview { grid-template-columns: 1fr; }
    .hero-content { padding: 0 20px; }
    .hero-scroll-hint { display: none; }
    .servizio-row { grid-template-columns: 1fr; }
    .servizio-dettagli { border-left: none; border-top: 1px solid var(--grigio-chiaro); }
    .about-layout { grid-template-columns: 1fr; gap: 40px; }
    .valori-grid { grid-template-columns: 1fr; }
    .galleria-grid { grid-template-columns: 1fr 1fr; }
    .contatti-layout { grid-template-columns: 1fr; gap: 40px; }
    .mappa-wrap { position: static; }
    #whatsapp-btn { bottom: 80px; left: 16px; width: 46px; height: 46px; }
    #back-to-top { bottom: 80px; right: 16px; }
}
@media (max-width: 600px) {
    .servizi-grid { grid-template-columns: 1fr; }
    .galleria-grid { grid-template-columns: 1fr 1fr; }
    .galleria-preview { grid-template-columns: 1fr 1fr; }
    .cta-box { flex-direction: column; text-align: center; gap: 16px; }
    .lightbox-img-wrap img { max-height: 70vh; max-width: 96vw; }
}
