/*
Theme Name: R410 Condizionatori
Theme URI: https://r410.it
Description: Tema professionale per assistenza condizionatori in Lombardia
Version: 1.0
Text Domain: r410
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7; color: #333; background: #fff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0073aa; text-decoration: none; transition: color 0.2s; }
a:hover { color: #005580; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header {
    background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky; top: 0; z-index: 100;
    padding: 15px 0;
}
.site-header .container {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;
}
.site-logo {
    font-size: 1.8rem; font-weight: 800; color: #0073aa;
    letter-spacing: -1px;
}
.site-logo span { color: #333; }
.header-nav { display: flex; gap: 25px; align-items: center; }
.header-nav a { color: #555; font-weight: 500; font-size: 0.95rem; }
.header-nav a:hover { color: #0073aa; }
.header-cta {
    background: #0073aa; color: #fff !important; padding: 10px 24px;
    border-radius: 8px; font-weight: 600; font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}
.header-cta:hover { background: #005580; color: #fff !important; transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #0073aa 0%, #005a8c 50%, #003d5c 100%);
    color: #fff; padding: 80px 0; text-align: center;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.25rem; line-height: 1.7; max-width: 650px; margin: 0 auto 35px; opacity: 0.95; }
.hero-cta {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; color: #0073aa; padding: 16px 40px;
    border-radius: 10px; font-size: 1.2rem; font-weight: 700;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); color: #005580; }

/* ===== SECTION TITLES ===== */
.section { padding: 70px 0; }
.section-alt { background: #f8f9fa; }
.section-title {
    text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 10px; color: #222;
}
.section-subtitle {
    text-align: center; color: #666; font-size: 1.1rem; margin-bottom: 45px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}
.service-card {
    background: #fff; border-radius: 16px; padding: 35px 25px;
    border: 1px solid #e8edf2; text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.service-card img {
    width: 80px; height: 80px; margin: 0 auto 20px; object-fit: contain;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 12px; color: #222; }
.service-card p { color: #666; font-size: 0.95rem; line-height: 1.6; }

/* ===== BRANDS ===== */
.brands-section { text-align: center; }
.brands-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px;
}
.brand-tag {
    display: inline-block; background: #fff; border: 1px solid #dde3ea;
    padding: 8px 20px; border-radius: 25px; font-weight: 600; color: #444;
    font-size: 0.95rem; transition: all 0.2s;
}
.brand-tag:hover { background: #0073aa; color: #fff; border-color: #0073aa; }

/* ===== CITIES ===== */
.cities-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px; max-width: 800px; margin: 0 auto;
}
.cities-grid a {
    display: block; padding: 12px 18px; background: #fff;
    border-radius: 10px; border: 1px solid #e8edf2;
    color: #333; font-weight: 500;
    transition: all 0.2s;
}
.cities-grid a:hover { background: #0073aa; color: #fff; border-color: #0073aa; transform: translateX(5px); }

/* ===== WHY US ===== */
.why-us { background: linear-gradient(135deg, #0073aa, #004d73); color: #fff; padding: 70px 0; }
.why-us .section-title { color: #fff; }
.why-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.why-list { list-style: none; }
.why-list li {
    padding: 12px 0; font-size: 1.1rem; display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.why-list li:last-child { border: none; }
.why-contact { text-align: center; }
.why-contact h3 { font-size: 1.5rem; margin-bottom: 25px; }
.contact-item {
    display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
    font-size: 1.15rem; justify-content: center;
}
.contact-item a { color: #fff; font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: #fff; border: 1px solid #e8edf2; border-radius: 12px;
    margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
    padding: 18px 25px; font-weight: 600; cursor: pointer;
    font-size: 1.05rem; color: #222; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: #0073aa; font-weight: 300; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 25px 18px; color: #555; line-height: 1.7; }

/* ===== FOOTER ===== */
.site-footer {
    background: #1a1a2e; color: #aaa; padding: 40px 0; text-align: center;
    font-size: 0.9rem;
}
.site-footer a { color: #7ab8e0; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1.1rem; }
    .why-grid { grid-template-columns: 1fr; }
    .header-nav { display: none; }
    .section { padding: 50px 0; }
    .hero { padding: 60px 0; }
}

/* ===== MPG PAGE OVERRIDES ===== */
.entry-content img { border-radius: 8px; }
.entry-content h1, .entry-content h2, .entry-content h3 { color: #222; }
