/*
Theme Name: SR Group
Description: Tema WordPress per SR Group — homepage, sottopagine Fotovoltaico, ICT e Imprenditore, comparatore bolletta e form.
Version: 1.0.5
Text Domain: sr-group
*/

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --ink: #181818;
  --ink-deep: #090909;
  --red: #d92f20;
  --red-light: #f04432;
  --mint: #f73c27;
  --cream: #f4f4f2;
  --paper: #fcfcfa;
  --white: #ffffff;
  --muted: #686868;
  --line: #dededb;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.13);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: "Manrope", sans-serif; margin: 0; }
[hidden] { display: none !important; }
.site-shell { overflow-x: clip; }
.icon { flex: 0 0 auto; }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  align-items: center;
  background: rgba(252, 252, 250, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  display: flex;
  height: 64px;
  justify-content: space-between;
  left: 0;
  padding: 0 20px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
}
.admin-bar .navbar { top: 46px; }
@media (min-width: 783px) { .admin-bar .navbar { top: 32px; } }

.navbar-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.navbar-logo-img { height: 44px; width: auto; display: block; }

.menu-button { align-items: center; display: flex; padding: 8px; }

.nav-links {
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: none;
  flex-direction: column;
  gap: 0;
  left: 0;
  padding: 16px 20px 24px;
  position: absolute;
  right: 0;
  top: 63px;
  box-shadow: 0 20px 40px rgba(0,0,0,.09);
}
.nav-links.is-open { display: flex; }
.nav-links > a:not(.nav-cta) {
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 600;
  padding: 15px 0;
}
.nav-links > a:not(.nav-cta):last-of-type { border-bottom: 0; }
.nav-cta {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
  padding: 15px 20px;
}

/* ── Typography ──────────────────────────────────────────────── */
.eyebrow {
  align-items: center;
  color: var(--red);
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.eyebrow.light { color: var(--mint); }
.eyebrow-line { background: currentColor; display: inline-block; height: 2px; min-width: 22px; }

h1 em, h2 em { color: var(--mint); font-family: Georgia, serif; font-style: italic; font-weight: 400; }
.section-heading h2 { font-size: clamp(34px, 8vw, 56px); font-weight: 500; letter-spacing: -2px; line-height: 1.1; margin: 18px 0 0; }
.section-heading h2 em { color: var(--red); }

.button {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 12px;
  justify-content: center;
  padding: 16px 20px;
  transition: background 180ms, color 180ms, transform 180ms;
  width: 100%;
}
.button:active { transform: scale(0.98); }
.button-primary { background: var(--mint); color: var(--white); }
.button-ghost { border: 1px solid rgba(255,255,255,.4); color: var(--white); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: #000;
  height: 100svh;
  overflow: hidden;
  position: relative;
}
.hero-video {
  display: block;
  height: 100%;
  left: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  width: 100%;
}
.hero-gradient {
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 40%, transparent 70%);
  bottom: 0;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
}
.hero-services {
  bottom: 0;
  display: flex;
  flex-direction: column;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 2;
}
.hero-svc {
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  text-align: left;
  transition: background 160ms, border-left-color 160ms;
  width: 100%;
  border-left: 4px solid transparent;
}
.hero-svc:hover {
  background: rgba(247, 60, 39, 0.18);
  border-left-color: var(--red);
}
.hero-svc-icon {
  align-items: center;
  background: var(--red);
  color: var(--white);
  display: flex;
  flex: 0 0 48px;
  height: 48px;
  justify-content: center;
  width: 48px;
}
.hero-svc-body { display: flex; flex-direction: column; gap: 4px; }
.hero-svc-body strong { font-family: "Manrope"; font-size: 14px; font-weight: 700; line-height: 1.2; }
.hero-svc-body span {
  align-items: center;
  color: rgba(255,255,255,.65);
  display: flex;
  font-size: 12px;
  gap: 6px;
}

/* ── Bill section ────────────────────────────────────────────── */
.bill-section { background: var(--ink-deep); color: var(--white); position: relative; }
.bill-section::before {
  background: var(--mint);
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}
.bill-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 0 auto;
  max-width: 1280px;
  padding: 64px 20px;
}
.bill-copy h2 {
  font-size: clamp(34px, 8vw, 60px);
  font-weight: 500;
  letter-spacing: -2.5px;
  line-height: 1.07;
  margin: 18px 0 16px;
}
.bill-copy h2 em { color: var(--mint); }
.bill-copy > p { color: rgba(255,255,255,.65); font-size: 15px; line-height: 1.75; margin: 0; }
.bill-copy ul {
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 28px 0 0;
  padding: 22px 0 0;
}
.bill-copy li { align-items: center; display: flex; font-size: 13px; font-weight: 600; gap: 10px; }
.bill-copy li > span {
  align-items: center;
  background: rgba(247,60,39,.18);
  color: var(--mint);
  display: flex;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.bill-form-wrap { background: var(--white); box-shadow: var(--shadow); color: var(--ink); }

.bill-form { padding: 24px 20px; }
.bill-form-head { align-items: flex-start; display: flex; gap: 14px; }
.bill-form-head > span {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex: 0 0 30px;
  font-size: 10px;
  font-weight: 700;
  height: 30px;
  justify-content: center;
  width: 30px;
}
.bill-form-head h3 { font-size: 17px; font-weight: 600; margin: 0; }
.bill-form-head p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.form-step { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }

.request-options { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 18px 0 0; }
.request-option {
  align-items: center;
  border: 1px solid var(--line);
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: 36px 1fr 14px;
  min-height: 78px;
  padding: 12px;
  transition: border 160ms, background 160ms;
  position: relative;
}
.request-option:active, .request-option.selected { background: #fff5f3; border-color: var(--mint); }
.request-option > input { height: 0; opacity: 0; overflow: hidden; position: absolute; width: 0; }
.option-icon {
  align-items: center;
  background: var(--cream);
  color: var(--red);
  display: flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}
.request-option.selected .option-icon { background: var(--mint); color: var(--white); }
.request-option > span:nth-child(3) { display: flex; flex-direction: column; }
.request-option strong { font-size: 11px; }
.request-option small { color: var(--muted); font-size: 9px; line-height: 1.4; margin-top: 3px; }
.radio-mark { border: 1px solid #aaa; border-radius: 50%; height: 14px; position: relative; width: 14px; }
.selected .radio-mark { border-color: var(--mint); }
.selected .radio-mark::after { background: var(--mint); border-radius: 50%; content: ""; inset: 3px; position: absolute; }

.bill-fields { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; margin-top: 18px; }
.bill-fields label {
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-size: 10px;
  font-weight: 700;
  gap: 6px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.bill-fields input {
  background: var(--paper);
  border: 1px solid var(--line);
  outline: 0;
  padding: 11px 12px;
  width: 100%;
}
.bill-fields input:focus { border-color: var(--mint); }
.bill-fields input::placeholder { color: #aaa; }
.full-field { grid-column: span 2; }

.upload-field {
  align-items: center;
  background: #fff8f7;
  border: 1px dashed var(--mint) !important;
  cursor: pointer;
  display: grid !important;
  gap: 10px;
  grid-template-columns: 36px 1fr auto !important;
  min-height: 60px;
  padding: 10px 12px !important;
  text-transform: none !important;
  position: relative;
}
.upload-field > input { height: 0; opacity: 0; overflow: hidden; position: absolute; width: 0; }
.upload-icon {
  align-items: center;
  background: var(--mint);
  color: var(--white);
  display: flex;
  height: 36px;
  justify-content: center;
  transform: rotate(-90deg);
  width: 36px;
}
.upload-field > span:nth-child(3) { display: flex; flex-direction: column; min-width: 0; }
.upload-field strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-field small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.upload-action { color: var(--red); font-size: 10px; font-weight: 700; }

.bill-privacy {
  align-items: flex-start;
  color: var(--muted);
  display: flex;
  font-size: 9px;
  gap: 8px;
  line-height: 1.45;
  margin: 4px 0 14px;
}
.bill-privacy input { accent-color: var(--mint); margin-top: 1px; }
.bill-submit { background: var(--mint); color: var(--white); width: 100%; }

.bill-loading {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}
.bill-loading h3 { font-size: 22px; margin: 0; }
.bill-loading p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; max-width: 300px; }
.spin { animation: spin 1s linear infinite; color: var(--mint); display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-steps {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 16px;
  width: 100%;
  max-width: 260px;
}
.loading-steps > span { align-items: center; color: var(--muted); display: flex; font-size: 12px; gap: 8px; }
.ls-done { color: var(--red) !important; font-weight: 600; }
.ls-active { color: var(--ink) !important; font-weight: 600; }

.bill-simulation { padding: 24px 20px; }
.sim-header { margin-bottom: 20px; }
.sim-badge {
  align-items: center;
  background: rgba(247,60,39,.12);
  color: var(--mint);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
  letter-spacing: .5px;
  margin-bottom: 12px;
  padding: 6px 10px;
  text-transform: uppercase;
}
.sim-header h3 { font-size: 22px; margin: 0 0 8px; }
.sim-header p { color: var(--muted); font-size: 13px; margin: 0; }
.red { color: var(--mint); }
.sim-offers { display: flex; flex-direction: column; gap: 10px; }
.sim-offer { border: 1px solid var(--line); padding: 16px; }
.sim-offer.highlight { background: var(--ink); border-color: var(--ink); color: var(--white); }
.sim-offer-top { align-items: flex-start; display: flex; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
.sim-offer-top > div { display: flex; flex-direction: column; gap: 3px; }
.sim-offer-top strong { font-size: 14px; font-weight: 700; }
.sim-offer-top small { color: var(--muted); font-size: 11px; }
.sim-offer.highlight .sim-offer-top small { color: rgba(255,255,255,.55); }
.sim-badge-sm {
  background: var(--mint);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 4px 7px;
  text-transform: uppercase;
  white-space: nowrap;
}
.sim-offer-nums { display: grid; gap: 8px; grid-template-columns: 1fr 1fr 1fr; margin-bottom: 14px; }
.sim-offer-nums > div { align-items: flex-start; display: flex; flex-direction: column; gap: 3px; }
.sim-offer-nums span { font-family: "Manrope"; font-size: 14px; font-weight: 700; }
.sim-offer-nums small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.sim-offer.highlight .sim-offer-nums small { color: rgba(255,255,255,.5); }
.saving { color: var(--mint) !important; }
.sim-cta { background: var(--mint); color: var(--white); font-size: 13px; padding: 13px 16px; width: 100%; }
.sim-reset {
  border-bottom: 1px solid var(--muted);
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 18px;
  padding-bottom: 3px;
}

.bill-success-wrap {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}
.bill-success-icon {
  align-items: center;
  background: var(--mint);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  height: 58px;
  justify-content: center;
  width: 58px;
}
.bill-success-wrap h3 { font-size: 22px; margin: 0; }
.bill-success-wrap p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.bill-success-wrap > button, .bill-success-wrap > a { border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; margin-top: 8px; padding-bottom: 4px; }

/* ── Service blocks ──────────────────────────────────────────── */
.services-blocks { background: var(--cream); }
.services-blocks-inner { margin: 0 auto; max-width: 1280px; padding: 64px 20px; }
.services-blocks-inner .section-heading { margin-bottom: 36px; }
.services-blocks-inner .section-heading p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 12px 0 0; max-width: 480px; }
.sblock-grid { display: flex; flex-direction: column; gap: 16px; }
.sblock { cursor: pointer; display: block; overflow: hidden; position: relative; text-align: left; width: 100%; }
.sblock-img {
  background: var(--ink);
  background-size: cover;
  background-position: center;
  height: 260px;
  transition: transform 600ms ease;
  width: 100%;
}
.sblock:hover .sblock-img, .sblock:focus .sblock-img { transform: scale(1.04); }
.sblock-overlay {
  background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.5) 55%, rgba(0,0,0,.15) 100%);
  inset: 0;
  position: absolute;
}
.sblock-content { bottom: 0; color: var(--white); left: 0; padding: 24px 20px; position: absolute; right: 0; }
.sblock-num {
  color: var(--mint);
  display: block;
  font-family: "Manrope";
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.sblock-icon {
  align-items: center;
  background: rgba(247,60,39,.2);
  border: 1px solid rgba(247,60,39,.4);
  color: var(--mint);
  display: inline-flex;
  height: 50px;
  justify-content: center;
  margin-bottom: 14px;
  width: 50px;
}
.sblock-content h3 { font-size: 22px; font-weight: 600; letter-spacing: -.5px; line-height: 1.2; margin: 0 0 8px; }
.sblock-content p { color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.65; margin: 0 0 14px; }
.sblock-cta { align-items: center; color: var(--mint); display: inline-flex; font-size: 13px; font-weight: 700; gap: 8px; }

/* ── Sezioni generiche ───────────────────────────────────────── */
.intro-section { background: var(--paper); }
.knowhow-section { background: var(--ink); color: var(--white); }
.testimonials-section { background: var(--cream); }

.section { margin: 0 auto; max-width: 1280px; padding: 64px 20px; }
.intro { display: flex; flex-direction: column; gap: 28px; }
.intro-copy p { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 580px; }
.intro-copy .lead { color: var(--ink); font-family: "Manrope"; font-size: 18px; font-weight: 500; line-height: 1.55; margin: 0 0 16px; }
.text-link {
  align-items: center;
  border-bottom: 1px solid var(--ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 12px;
  margin-top: 16px;
  padding-bottom: 5px;
}

/* Know-how */
.knowhow { display: flex; flex-direction: column; gap: 36px; margin: 0 auto; max-width: 1280px; padding: 64px 20px; }
.knowhow-heading h2 {
  color: var(--white);
  font-size: clamp(32px, 7vw, 58px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 18px 0 14px;
}
.knowhow-heading h2 em { color: var(--red-light); font-family: Georgia, serif; font-weight: 400; }
.knowhow-heading > p { color: rgba(255,255,255,.6); line-height: 1.75; max-width: 420px; margin: 0; }
.knowhow-grid { display: flex; flex-direction: column; gap: 10px; }
.knowhow-card {
  align-items: flex-start;
  background: rgba(255,255,255,.06);
  border-left: 3px solid transparent;
  display: grid;
  gap: 16px;
  grid-template-columns: 46px 1fr;
  padding: 22px 18px;
  transition: background 160ms, border-left-color 160ms;
}
.knowhow-card:hover { background: rgba(255,255,255,.11); border-left-color: var(--red); }
.knowhow-icon {
  align-items: center;
  background: var(--red);
  color: var(--white);
  display: flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}
.knowhow-content { display: flex; flex-direction: column; padding-top: 4px; }
.knowhow-content strong { color: var(--white); font-family: "Manrope"; font-size: 17px; font-weight: 600; }
.knowhow-content > span { color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.65; margin-top: 6px; }

/* Recensioni */
.testimonials { display: flex; flex-direction: column; gap: 48px; margin: 0 auto; max-width: 1280px; padding: 64px 20px; }
.reviews { display: flex; flex-direction: column; gap: 12px; }
.review-card { background: var(--cream); display: flex; flex-direction: column; min-height: 240px; padding: 26px 22px; }
.review-card.featured { background: var(--ink); color: var(--white); }
.review-card > .icon { color: var(--red-light); }
.review-card.featured > .icon { color: var(--mint); }
.review-card > p { flex: 1; font-family: "Manrope"; font-size: 15px; line-height: 1.7; margin: 18px 0; }
.review-card.featured > p { font-size: 18px; }
.review-card > div { align-items: center; display: flex; gap: 10px; }
.avatar {
  align-items: center;
  background: var(--mint);
  color: var(--ink);
  display: flex;
  font-size: 10px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  width: 36px;
  flex: 0 0 36px;
}
.review-card > div > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.review-card small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.featured small { color: rgba(255,255,255,.5); }
.stars { color: #e2a62b; font-size: 11px; letter-spacing: 1px; }
.google-review {
  align-items: center;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 30px 1fr 20px;
  padding: 18px 16px;
}
.google-g { color: var(--red); font-family: Arial; font-size: 26px; font-weight: 700; }
.google-review > span:nth-child(2) { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; }
.google-review small { color: var(--muted); font-weight: 400; margin-top: 2px; }

/* ── Contatti ────────────────────────────────────────────────── */
.contact-section { background: var(--ink-deep); color: var(--white); }
.contact-inner { display: flex; flex-direction: column; gap: 40px; margin: 0 auto; max-width: 1280px; padding: 64px 20px; }
.contact-copy h2 {
  font-size: clamp(34px, 8vw, 62px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.07;
  margin: 18px 0 16px;
}
.contact-copy > p { color: rgba(255,255,255,.65); line-height: 1.75; margin: 0; }
.contact-details {
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
}
.contact-details a { align-items: center; display: flex; gap: 13px; }
.contact-details a > span {
  align-items: center;
  border: 1px solid rgba(255,255,255,.18);
  color: var(--mint);
  display: flex;
  height: 40px;
  justify-content: center;
  width: 40px;
  flex: 0 0 40px;
}
.contact-details a div { display: flex; flex-direction: column; }
.contact-details small { color: rgba(255,255,255,.45); font-size: 11px; margin-bottom: 3px; }
.contact-details strong { font-size: 14px; }

.contact-form { background: var(--white); box-shadow: var(--shadow); color: var(--ink); padding: 26px 20px; }
.form-head h3 { font-size: 22px; margin: 0 0 4px; }
.form-head p { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
.contact-form label, .sub-form label {
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-size: 10px;
  font-weight: 700;
  gap: 6px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.contact-form input:not([type=checkbox]),
.contact-form select {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  outline: 0;
  padding: 13px 12px;
  width: 100%;
}
.contact-form input:focus, .contact-form select:focus { border-color: var(--red); }
.contact-form .privacy, .sub-form .sub-privacy {
  align-items: flex-start;
  flex-direction: row;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
  text-transform: none;
}
.privacy input, .sub-privacy input { accent-color: var(--red); margin: 1px 0 0; width: auto; }
.form-submit { background: var(--ink); color: var(--white); margin-top: 4px; width: 100%; }
.form-success {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  justify-content: center;
  text-align: center;
}
.form-success > span {
  align-items: center;
  background: var(--mint);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  height: 58px;
  justify-content: center;
  width: 58px;
}
.form-success h3 { font-size: 24px; }
.form-success p { color: var(--muted); line-height: 1.6; max-width: 300px; margin: 0; }

/* ── Footer ──────────────────────────────────────────────────── */
footer { background: #050505; color: var(--white); padding: 56px 20px 32px; }
.footer-main { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: span 2; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .brand-mark {
  align-items: center;
  background: var(--mint);
  color: var(--ink);
  display: inline-flex;
  font-family: "Manrope";
  font-size: 16px;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  width: 40px;
}
/* Logo bianco nel footer: rende tutto il PNG bianco (funziona perché il logo ha sfondo trasparente). */
.footer-logo img { filter: brightness(0) invert(1); height: 52px; width: auto; }
.footer-logo .brand-copy { display: flex; flex-direction: column; }
.footer-logo .brand-copy strong { font-family: "Manrope"; font-size: 16px; font-weight: 800; letter-spacing: 1px; }
.footer-logo .brand-copy small { color: rgba(255,255,255,.4); font-size: 10px; }
.footer-brand p { color: rgba(255,255,255,.46); font-size: 13px; line-height: 1.7; margin: 12px 0 0; max-width: 300px; }
.footer-main > div:not(:first-child) { display: flex; flex-direction: column; gap: 11px; }
.footer-main > div > strong {
  color: var(--mint);
  font-size: 10px;
  letter-spacing: 1.4px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.footer-main > div > a, .footer-main > div > span {
  color: rgba(255,255,255,.55);
  font-size: 12px;
  line-height: 1.6;
  transition: color 160ms;
}
.footer-main > div > a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.35);
  display: flex;
  flex-direction: column;
  font-size: 10px;
  gap: 10px;
  margin-top: 44px;
  padding-top: 18px;
}
.footer-bottom span:last-child { display: flex; gap: 18px; }

.whatsapp-float {
  align-items: center;
  background: var(--mint);
  border-radius: 50%;
  bottom: 22px;
  box-shadow: 0 8px 26px rgba(0,0,0,.2);
  color: var(--white);
  display: flex;
  height: 52px;
  justify-content: center;
  position: fixed;
  right: 18px;
  transition: transform 180ms;
  width: 52px;
  z-index: 30;
}
.whatsapp-float:active { transform: scale(0.94); }

/* ── Sottopagine ─────────────────────────────────────────────── */
.subpage { background: var(--paper); min-height: 100svh; overflow-x: clip; padding-top: 0; }
.subpage-nav {
  align-items: center;
  background: rgba(252,252,250,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.09);
  display: flex;
  gap: 12px;
  height: 64px;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.back-btn {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 6px;
}
.back-btn .icon { transform: rotate(180deg); }
.subpage-nav .navbar-logo-img { height: 40px; }

.subpage-hero {
  background: var(--ink-deep);
  color: var(--white);
  padding: 56px 20px 48px;
  position: relative;
  overflow: hidden;
}
.fv-hero { background: linear-gradient(135deg, #0a0a0a 0%, #1a0500 100%); }
.ict-hero { background: linear-gradient(135deg, #060a18 0%, #0e1a2a 100%); }
.imp-hero { background: linear-gradient(135deg, #0a0a0a 0%, #1a0a00 100%); }
.subpage-hero-inner { max-width: 680px; }
.subpage-title {
  font-size: clamp(34px, 8vw, 62px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 16px 0 20px;
}
.subpage-hero p { color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.7; margin: 0; }

.subpage-body { margin: 0 auto; max-width: 840px; padding: 48px 20px 80px; }

.fv-type-select { margin-bottom: 48px; }
.fv-type-select h2 { font-size: 28px; font-weight: 600; margin: 0 0 8px; }
.fv-type-select p { color: var(--muted); margin: 0 0 28px; }
.type-cards { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.type-card {
  align-items: flex-start;
  background: var(--white);
  border: 2px solid var(--line);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
  text-align: left;
  transition: border-color 160ms, background 160ms;
}
.type-card:hover, .type-card:focus { border-color: var(--mint); background: #fff5f3; }
.type-card.is-active { border-color: var(--mint); background: #fff5f3; }
.type-icon {
  align-items: center;
  background: var(--cream);
  color: var(--red);
  display: flex;
  height: 52px;
  justify-content: center;
  margin-bottom: 4px;
  width: 52px;
}
.type-card strong { font-family: "Manrope"; font-size: 18px; font-weight: 700; }
.type-card > span:nth-child(3) { color: var(--muted); font-size: 13px; line-height: 1.5; }
.type-arrow { align-items: center; color: var(--mint); display: flex; margin-top: 8px; }

.sub-form { background: var(--white); box-shadow: var(--shadow); padding: 26px 20px; }
.sub-form h2 { font-size: 24px; font-weight: 600; margin: 0 0 8px; }
.sub-form > p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0 0 24px; }
.sub-form-head { align-items: center; display: flex; gap: 10px; margin-bottom: 20px; }
.chip-back {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 4px;
}
.chip-back .icon { transform: rotate(180deg); }
.chip { background: var(--cream); font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 5px 10px; text-transform: uppercase; }
.sub-fields { display: grid; gap: 0 14px; grid-template-columns: 1fr; margin-bottom: 4px; }
.sub-fields input, .sub-fields select {
  background: var(--paper);
  border: 1px solid var(--line);
  outline: 0;
  padding: 12px;
  width: 100%;
}
.sub-fields input:focus, .sub-fields select:focus { border-color: var(--mint); }
.sub-full { grid-column: span 2; }
.sub-upload-label { text-transform: uppercase; }
.sub-upload {
  align-items: center;
  background: #fff8f7;
  border: 1px dashed var(--mint);
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 40px 1fr auto;
  min-height: 64px;
  padding: 12px;
  position: relative;
  text-transform: none;
}
.sub-upload > input { height: 0; opacity: 0; overflow: hidden; position: absolute; width: 0; }
.sub-upload-icon {
  align-items: center;
  background: var(--mint);
  color: var(--white);
  display: flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}
.sub-upload-text { display: flex; flex-direction: column; }
.sub-upload-text strong { font-size: 12px; font-weight: 700; }
.sub-upload-text small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.sub-upload-done {
  align-items: center;
  background: var(--mint);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}
.sub-privacy { margin: 4px 0 16px; }
.sub-submit { width: 100%; }

.sub-success {
  align-items: center;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
  justify-content: center;
  padding: 48px 28px;
  text-align: center;
}
.sub-success-icon {
  align-items: center;
  background: var(--mint);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  height: 66px;
  justify-content: center;
  width: 66px;
}
.sub-success h2 { font-size: 26px; margin: 0; }
.sub-success p { color: var(--muted); line-height: 1.65; margin: 0; max-width: 380px; }
.sub-success .button { margin-top: 8px; width: auto; }

.fv-features { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.fv-feature { align-items: flex-start; background: var(--cream); display: flex; gap: 16px; padding: 20px; }
.fv-feature-icon {
  align-items: center;
  background: var(--white);
  color: var(--red);
  display: flex;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
  width: 44px;
}
.fv-feature div { display: flex; flex-direction: column; gap: 5px; }
.fv-feature strong { font-family: "Manrope"; font-size: 15px; font-weight: 600; }
.fv-feature p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }

.ict-services { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.ict-service-card {
  align-items: flex-start;
  background: var(--white);
  border-left: 3px solid var(--mint);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: flex;
  gap: 16px;
  padding: 20px;
}
.ict-icon {
  align-items: center;
  background: rgba(247,60,39,.1);
  color: var(--mint);
  display: flex;
  flex: 0 0 46px;
  height: 46px;
  justify-content: center;
  width: 46px;
}
.ict-service-card strong { font-family: "Manrope"; font-size: 16px; display: block; margin-bottom: 5px; }
.ict-service-card p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }

.imp-cards { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.imp-card { background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.imp-card-img {
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  height: 200px;
}
.imp-card-body { padding: 24px 20px; }
.imp-number {
  color: var(--mint);
  display: block;
  font-family: "Manrope";
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.imp-card-body h3 { font-size: 22px; font-weight: 600; letter-spacing: -.5px; margin: 0 0 12px; }
.imp-card-body p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 16px; }
.imp-card-body ul { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; }
.imp-card-body li { align-items: center; color: var(--ink); display: flex; font-size: 13px; font-weight: 600; gap: 8px; }
.imp-card-body li .icon { color: var(--mint); }
.imp-cta { font-size: 14px; width: auto; }

.imp-brochure { background: var(--ink); color: var(--white); margin-bottom: 32px; padding: 32px 20px; }
.imp-brochure-inner { align-items: flex-start; display: flex; flex-direction: column; gap: 20px; }
.imp-brochure h3 { font-size: 22px; margin: 0 0 6px; }
.imp-brochure p { color: rgba(255,255,255,.65); font-size: 14px; line-height: 1.65; margin: 0; }
.button-brochure {
  align-items: center;
  background: var(--mint);
  color: var(--white);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  padding: 16px 22px;
  width: auto;
}





/* ── Tablet+ (640px) ─────────────────────────────────────────── */
@media (min-width: 640px) {
  .navbar { padding: 0 32px; }
  .hero-services { flex-direction: row; }
  .hero-svc { flex: 1; border-top: none; border-right: 1px solid rgba(255,255,255,.15); }
  .hero-svc:last-child { border-right: none; }
  .bill-inner { padding: 80px 32px; }
  .sub-fields { grid-template-columns: 1fr 1fr; }
  .type-cards { grid-template-columns: 1fr 1fr; }

  .fv-features { display: grid; grid-template-columns: 1fr 1fr; }
  .ict-services { display: grid; grid-template-columns: 1fr 1fr; }
  .imp-cards { flex-direction: row; }
  .imp-card { flex: 1; }
  .reviews { display: grid; grid-template-columns: 1fr 1fr; }
  .review-card.featured { grid-row: span 2; }
  .google-review { grid-column: 2; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ── Desktop (1024px) ────────────────────────────────────────── */
@media (min-width: 1024px) {
  .navbar { height: 80px; padding: 0 clamp(24px, 5vw, 80px); }
  .navbar-logo-img { height: 52px; }
  .menu-button { display: none; }
  .hero-services { flex-direction: row; }
  .hero-svc { flex: 1; border-top: none; border-right: 1px solid rgba(255,255,255,.15); padding: 20px 28px; }
  .hero-svc:last-child { border-right: none; }
  .hero-svc-body strong { font-size: 15px; }
  .nav-links {
    background: transparent;
    border: 0;
    box-shadow: none;
    display: flex !important;
    flex-direction: row;
    gap: clamp(18px, 2vw, 34px);
    padding: 0;
    position: static;
  }
  .nav-links > a:not(.nav-cta) { border: 0; font-size: 14px; font-weight: 600; padding: 0; position: relative; }
  .nav-links > a:not(.nav-cta)::after {
    background: var(--red);
    bottom: -6px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms;
    width: 100%;
  }
  .nav-links > a:not(.nav-cta):hover::after { transform: scaleX(1); }
  .nav-cta { margin: 0; padding: 13px 17px; transition: background 160ms, transform 160ms; width: auto; }
  .nav-cta:hover { background: var(--red); transform: translateY(-2px); }

  .bill-inner {
    display: grid;
    gap: clamp(48px, 8vw, 100px);
    grid-template-columns: .9fr 1.1fr;
    padding: 100px clamp(24px, 4vw, 80px);
  }
  .bill-form { padding: 34px; }
  .bill-form-wrap { min-height: 560px; }
  .bill-simulation { padding: 34px; }
  .bill-loading { min-height: 500px; }
  .bill-success-wrap { min-height: 440px; }
  .request-options { grid-template-columns: 1fr 1fr; }
  .bill-fields { grid-template-columns: 1fr 1fr; }

  .services-blocks-inner { padding: 100px clamp(24px, 4vw, 60px); }
  .sblock-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
  .sblock-img { height: 480px; }
  .sblock-content { padding: 32px 26px; }
  .sblock-content h3 { font-size: 26px; }

  .section { padding: 110px clamp(24px, 4vw, 60px); }
  .intro { display: grid; gap: 9vw; grid-template-columns: .9fr 1.1fr; }
  .intro-copy { padding-top: 30px; }

  .knowhow { display: grid; gap: 80px; grid-template-columns: .85fr 1.15fr; padding: 110px clamp(24px, 4vw, 60px); }
  .knowhow-heading { position: sticky; top: 110px; align-self: start; }
  .knowhow-card { gap: 18px; grid-template-columns: 50px 1fr; min-height: 100px; padding: 26px 24px; }
  .knowhow-card:hover { transform: translateX(-8px); }

  .testimonials { display: grid; gap: 70px; grid-template-columns: .75fr 1.25fr; padding: 100px clamp(24px, 4vw, 60px); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .review-card.featured { min-height: 380px; }

  .contact-inner { display: grid; gap: 9vw; grid-template-columns: 1fr .9fr; padding: 100px clamp(24px, 4vw, 60px); }
  .contact-details { flex-direction: row; gap: 32px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .contact-form { min-height: 500px; padding: 36px; }

  footer { padding: 70px max(28px, calc((100vw - 1216px) / 2)); }
  .footer-main { grid-template-columns: 2fr 1fr 1.5fr .7fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: row; }

  .subpage-nav { height: 80px; padding: 0 clamp(24px, 5vw, 80px); }
  .subpage-hero { padding: 80px clamp(32px, 7vw, 100px) 72px; }
  .subpage-body { padding: 64px clamp(32px, 7vw, 100px) 100px; max-width: 100%; }
  .sub-form { padding: 38px 40px; }
  .imp-brochure { padding: 44px clamp(32px, 7vw, 100px); }
  .imp-brochure-inner { align-items: center; flex-direction: row; justify-content: space-between; }
  .imp-card-img { height: 240px; }
}

/* ── Notifiche e stati ───────────────────────────────────────── */
.sr-notice {
  background: #fff5f3;
  border-left: 3px solid var(--mint);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 20px;
  padding: 14px 16px;
}
.sr-hp { height: 0; left: -9999px; position: absolute; width: 0; overflow: hidden; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* SR Group review 2026-10-22: logos, aligned navigation, accessible video. */
.navbar-logo-img { width: auto; max-width: 156px; height: 48px; object-fit: contain; }
.footer-logo .footer-logo-img { filter: none; width: 180px; height: auto; max-width: 100%; display: block; }
.hero { height: auto; overflow: visible; padding-top: 64px; background: #101010; }
.hero-media { background: #000; width: 100%; }
.hero-video { position: static; display: block; width: 100%; height: auto; max-height: calc(100svh - 144px); object-fit: contain; aspect-ratio: 16 / 9; }
.hero-services { position: static; display: grid; grid-template-columns: 1fr; background: var(--ink); }
.hero-svc { min-width: 0; border-top: 1px solid rgba(255,255,255,.15); }
.hero-svc-body { min-width: 0; }
.hero-svc:focus-visible, .nav-links a:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.whatsapp-float { background: #25d366; color: #fff; }
.icon-whatsapp { display: inline-block; flex-shrink: 0; }
.review-source { display: inline-block; font-size: 10px; letter-spacing: 1.1px; text-transform: uppercase; opacity: .7; }
.review-card .review-source-link { display: inline-flex; margin-top: 20px; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.review-card p { margin-top: 20px; }
@media (min-width: 768px) and (max-width: 1023px) {
 .hero-services { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .hero-svc { padding: 22px 16px; align-items: flex-start; gap: 12px; }
 .hero-svc-icon { flex-basis: 40px; height: 40px; width: 40px; }
 .hero-svc-body strong { font-size: 13px; }
}
@media (min-width: 1024px) {
 .navbar { gap: 28px; padding-inline: clamp(24px,4vw,64px); }
 .navbar-logo-img { height: 54px; }
 .nav-links { align-items: center; gap: clamp(16px,1.8vw,30px); }
 .nav-links > a { display: inline-flex; align-items: center; line-height: 1.4; white-space: nowrap; }
 .nav-links > a:not(.nav-cta) { min-height: 44px; }
 .nav-links > a:not(.nav-cta)::after { bottom: 0; }
 .nav-cta { min-height: 44px; margin: 0; }
 .hero { padding-top: 80px; }
 .hero-video { max-height: calc(100svh - 200px); }
 .hero-services { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .hero-svc { padding: 28px clamp(20px,3vw,48px); }
}
@media (min-width: 1024px) and (max-width: 1180px) {
 .navbar { gap: 20px; padding-inline: 24px; }
 .navbar-logo-img { max-width: 128px; }
 .nav-links { gap: 16px; }
 .nav-links > a:not(.nav-cta) { font-size: 13px; }
 .nav-cta { font-size: 13px; padding-inline: 14px; }
}

/* Business-opportunity images: show complete 2:1 renders on every screen. */
.imp-card-img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; background: #f0f1f4; }

/* Additional agent-area link: retain aligned navigation at compact desktop widths. */
@media (min-width: 1024px) and (max-width: 1279px) {
 .navbar { gap: 16px; padding-inline: 24px; }
 .navbar-logo-img { max-width: 120px; }
 .nav-links { gap: 12px; }
 .nav-links > a:not(.nav-cta) { font-size: 12px; }
 .nav-cta { font-size: 12px; padding-inline: 12px; }
}

/* Compact photovoltaic summary aligned to the complete profile-card row. */
.fv-features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; margin: 24px 0 0; }
.fv-feature { gap: 12px; padding: 16px; min-width: 0; }
.fv-feature-icon { flex-basis: 34px; width: 34px; height: 34px; }
.fv-feature-icon .icon { width: 18px; height: 18px; }
.fv-feature strong { font-size: 14px; line-height: 1.4; }
.fv-feature p { font-size: 12px; line-height: 1.5; }
@media (min-width: 640px) {
 .fv-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .fv-feature { flex-direction: column; gap: 10px; }
 .fv-feature-icon { flex: 0 0 34px; }
}
/* Local entrepreneur enquiry form shares the other service forms' styling. */
.imp-enquiry { margin-top: 40px; scroll-margin-top: 100px; }
.imp-enquiry .sub-fields > label { min-width: 0; }
.imp-enquiry textarea { background: var(--paper); border: 1px solid var(--line); font: inherit; padding: 12px; width: 100%; resize: vertical; }
.imp-enquiry textarea:focus { border-color: var(--mint); outline: 0; }
@media (max-width: 639px) { .imp-enquiry .sub-full { grid-column: 1 / -1; } }
