/* Elettrotech: nero e oro come il logo, immagine di sfondo del pronto intervento */
:root {
  --bg: #070707; --panel: #111010; --panel-2: #191714; --ink: #f4efe6; --muted: #a39b8d; --line: #2a2520;
  --gold: #d4af5a; --gold-hi: #f3d98b; --gold-lo: #9c7a2e; --on-gold: #0b0906;
  --ok: #6fcf8f; --warn: #f0a640; --warn-bg: #2b1e0b; --bad: #ef7d6d;
  --f-display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --gold-grad: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font-family: var(--f-display); font-size: 1rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }

.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 7, 7, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 46px; height: 46px; border-radius: 50%; }
.logo b { font-family: var(--f-display); font-size: 1.5rem; font-style: italic; font-weight: 600; }
.logo small { display: block; font-size: .7rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 22px; font-size: .92rem; font-weight: 600; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--gold-hi); }
.tel { color: var(--ink) !important; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 .95rem var(--f-body); padding: 14px 26px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s; }
.btn.oro { background: var(--gold-grad); color: var(--on-gold); box-shadow: 0 10px 30px -14px var(--gold); }
.btn.oro:hover { transform: translateY(-2px); }
.btn.linea { border-color: rgba(212, 175, 90, .55); color: var(--gold-hi); background: transparent; }
.btn.piccolo { padding: 9px 18px; font-size: .86rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.hero { position: relative; min-height: 640px; display: flex; align-items: center; background: url("/img/hero-elettrotech.jpg") center 30% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.72) 0%, rgba(5,5,5,.45) 45%, rgba(5,5,5,0) 100%); }
.hero .wrap { position: relative; width: 100%; padding-top: 72px; padding-bottom: 72px; }
.hero-testo { max-width: 600px; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 16px 0 18px; }
.hero h1 em { font-style: italic; }
.hero .lead { font-size: 1.15rem; color: #d6cfc2; max-width: 52ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.fiducia { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.fiducia strong { display: block; font-family: var(--f-display); font-size: 1.3rem; color: var(--gold-hi); }
.fiducia span { font-size: .86rem; color: var(--muted); }

section { padding: clamp(60px, 9vw, 104px) 0; border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; align-items: end; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-top: 10px; }
.sec-head p { color: var(--muted); max-width: 46ch; }

.tariffe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tariffa { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.tariffa.off { opacity: .45; }
.tariffa .prezzo { font-family: var(--f-display); font-size: 2.6rem; font-weight: 700; }
.tariffa .stato { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
.tariffa.off .stato { color: var(--muted); }

.servizi { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.servizio { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.servizio img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.servizio div { padding: 14px 16px; }
.servizio h3 { font-size: 1.3rem; }
.servizio p { font-size: .88rem; color: var(--muted); }

.galleria { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.galleria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }

.scheda { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3.5vw, 34px); }
.griglia { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.griglia > * { min-width: 0; }
.pieno { grid-column: 1 / -1; }
label { display: block; font-size: .84rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
input, select, textarea { font: 1rem var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,90,.18); }
textarea { min-height: 90px; resize: vertical; }
.fasce-scelta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fasce-scelta label { margin: 0; cursor: pointer; border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--ink); background: var(--bg); }
.fasce-scelta input { display: none; }
.fasce-scelta label:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,90,.18); color: var(--gold-hi); }
.fasce-scelta b { display: block; font-size: 1.4rem; font-family: var(--f-display); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink); font-weight: 500; }
.check input { width: auto; margin-top: 5px; }
.drop { border: 1.5px dashed rgba(212,175,90,.55); border-radius: 16px; padding: 30px 16px; text-align: center; cursor: pointer; }
.drop:hover, .drop.sopra { background: rgba(212,175,90,.08); }
.drop strong { color: var(--gold-hi); }
.file-lista { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.file-lista li { background: var(--panel-2); border-radius: 10px; padding: 8px 12px; font-size: .9rem; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.esito { margin-top: 14px; font-size: .95rem; }
.esito.ok { color: var(--ok); }
.esito.err { color: var(--bad); }
.nota { background: var(--panel-2); border-radius: 12px; padding: 14px 16px; font-size: .92rem; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: .88rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tricolore { display: inline-block; width: 90px; height: 3px; background: linear-gradient(90deg, #1c9a4a 0 33.3%, #f2f2f2 33.3% 66.6%, #d42a33 66.6%); vertical-align: middle; margin-right: 12px; }

@media (max-width: 900px) {
  .sec-head, .griglia { grid-template-columns: 1fr; }
  .tariffe, .fasce-scelta { grid-template-columns: 1fr; }
  .servizi, .galleria { grid-template-columns: 1fr 1fr; }
  nav .voce { display: none; }
  .hero { min-height: 560px; }
}
@media (max-width: 560px) {
  header.top .logo small, nav .btn.piccolo { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
