:root {
    --aq-amber: #ffc107;
    --aq-amber-hover: #e0a800;
    --anthracite-black: #1a1d23;
    --soft-grey: #f8f9fa;
    --text-main: #333333;
    --text-light: #ffffff;
    --amber-glow: 0 0 20px rgba(255, 193, 7, 0.4);
    --shadow: 0 10px 30px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; }
body { background-color: var(--soft-grey); color: var(--text-main); font-family: 'Roboto', sans-serif; margin: 0; padding-top: 80px; overflow-x: hidden; }

header { 
    background: var(--anthracite-black); padding: 12px 20px; position: fixed; top: 0; width: 100%; z-index: 1000; 
    display: flex; justify-content: space-between; align-items: center; box-sizing: border-box;
    border-bottom: 4px solid var(--aq-amber); box-shadow: var(--shadow);
    min-height: 70px;
}
.logo-box { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text { font-family: 'Montserrat', sans-serif; font-weight: 900; color: var(--text-light); font-size: 1rem; text-transform: uppercase; }

nav { display: none; }
@media (min-width: 768px) {
    nav { display: flex; gap: 25px; }
    nav a { color: var(--text-light); text-decoration: none; font-weight: 700; font-size: 0.85rem; font-family: 'Montserrat'; padding: 10px 5px; transition: 0.3s; }
    nav a:hover { color: var(--aq-amber); text-shadow: 0 0 8px var(--aq-amber); }
}

section { padding: 60px 20px; max-width: 1200px; margin: auto; }

.hero { 
    text-align: center; 
    background: linear-gradient(rgba(26, 29, 35, 0.75), rgba(26, 29, 35, 0.75)), url('/img/elettricista-l-aquila.webp'); 
    background-size: cover; background-position: center; padding: 90px 20px; border-radius: 0 0 30px 30px; color: var(--text-light); border-bottom: 2px solid var(--aq-amber);
}

h1 { font-family: 'Montserrat', sans-serif; font-size: 2.2rem; font-weight: 900; margin-bottom: 10px; text-transform: uppercase; }
.hero p { font-size: 1.1rem; color: #ccc; margin: 10px 0 0 0; }

.btn-container { display: flex; gap: 15px; justify-content: center; margin-top: 35px; flex-wrap: wrap; }

.btn-call { 
    font-family: 'Montserrat'; font-weight: 700; background: var(--aq-amber); color: #1a1d23;
    padding: 14px 35px; border-radius: 50px; text-decoration: none; text-transform: uppercase; 
    transition: all 0.3s ease; font-size: 0.95rem; letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2); border: 2px solid transparent; cursor: pointer;
    display: inline-block; min-width: 160px; text-align: center;
}
.btn-call:hover { transform: scale(1.05); background: transparent; border-color: var(--aq-amber); color: var(--aq-amber); }

/* Colore verde WhatsApp ottimizzato per accessibilità ipovedenti */
.btn-wa { background: #128c7e; color: white; box-shadow: 0 4px 15px rgba(18, 140, 126, 0.2); }
.btn-wa:hover { border-color: #128c7e; color: #128c7e; background: transparent;}

h2 { font-family: 'Montserrat', sans-serif; font-weight: 900; text-align:center; color: var(--anthracite-black); margin-bottom: 30px; text-transform: uppercase; }
h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--aq-amber); margin: 15px auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.card { background: var(--text-light); padding: 35px 25px; border-radius: 8px; border: 1px solid #ddd; transition: 0.4s ease; cursor: pointer; text-align: center; text-decoration: none; color: inherit; display: block; min-height: 180px; box-sizing: border-box; }
.card:hover { border-color: var(--aq-amber); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(255, 193, 7, 0.15); }

.info-seo-box { display: none; margin-top: 30px; padding: 0; border-radius: 8px; box-shadow: var(--shadow); position: relative; overflow: hidden; border: 1px solid #1a1d23; }
.box-overlay-sfondo { background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; width: 100%; padding: 40px 30px; box-sizing: border-box; }
.box-overlay-sfondo::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(26, 29, 35, 0.85) 0%, rgba(26, 29, 35, 0.75) 100%); z-index: 1; }
.box-inside-content { position: relative; z-index: 2; }
.box-seo-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 5px; }
.box-seo-titolo { color: var(--aq-amber); font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.6rem; text-transform: uppercase; margin: 0; line-height: 1.3; }
.box-seo-chiudi { background: none; border: none; cursor: pointer; font-size: 2rem; color: #ffffff; padding: 5px 10px; line-height: 1; transition: 0.2s; }
.box-seo-chiudi:hover { color: var(--aq-amber); }
.box-seo-sottotitolo { color: #cccccc; font-family: 'Roboto', sans-serif; font-weight: 400; font-size: 1.1rem; margin: 10px 0 20px 0; line-height: 1.4; }
.box-seo-linea { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.15); margin: 20px 0; }
.box-seo-testo { color: #ffffff; line-height: 1.8; font-size: 0.95rem; text-align: justify; }

@media (max-width: 768px) {
    .box-overlay-sfondo { padding: 35px 20px; }
    .box-seo-titolo { font-size: 1.25rem; }
    .box-seo-sottotitolo { font-size: 0.95rem; }
}

.tech-btn { background: #2c313a; color: var(--text-light); border: 1px solid #444; padding: 14px; cursor: pointer; transition: 0.3s; width: 100%; margin-bottom: 12px; font-family: 'Montserrat'; font-weight: 700; text-align: left; border-radius: 4px; min-height: 48px; box-sizing: border-box; }
.tech-btn:hover { background: var(--aq-amber); color: #1a1d23; border-color: var(--aq-amber); box-shadow: var(--amber-glow); }

.badge-20 { background: var(--aq-amber); color: #1a1d23; padding: 20px; font-family: 'Montserrat'; font-weight: 900; width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 0.8rem; border-radius: 50%; margin: 20px auto; box-shadow: var(--shadow); }

.list-container { display: none; text-align: left; margin-top: 15px; background: #1a1d23; padding: 15px 20px; border-radius: 8px; border: 1px solid #3d444d; max-height: 320px; overflow-y: auto; }
.list-container a { display: block; color: #ccc; text-decoration: none; padding: 12px 5px; border-bottom: 1px solid #333; font-family: 'Roboto'; font-size: 0.95rem; min-height: 44px; box-sizing: border-box; }
.list-container a:hover { color: var(--aq-amber); padding-left: 10px; transition: 0.3s; }

footer { text-align: center; padding: 50px 20px; background: var(--anthracite-black); color: #888; font-size: 0.8rem; border-top: 2px solid var(--aq-amber); }
footer p { margin: 5px 0; }