/* Guide pubbliche ElectroSense — stile del sito del 1 nov 2026 (disegnato da ChatGPT come la home),
   scritto da genera_guide_sito.py: non modificare a mano */
:root {
  --primary: #1E88E5;
  --primary-dark: #1565C0;
  --navy: #0B2440;
  --navy-deep: #071422;
  --accent: #FF9800;
  --accent-dark: #F57C00;
  --text: #1A2330;
  --text-light: #5A6572;
  --background-alt: #F7F9FC;
  --bg: #FFFFFF;
  --bg-alt: #F7F9FC;
  --border: #E6EBF2;
  --radius: 18px;
  --header-h: 78px;
  --shadow: 0 6px 24px rgba(13, 42, 80, .06);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--navy-deep);
  background: var(--background-alt);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
}

button, input {
  font: inherit;
}

button, a, input, summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 5px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.13;
  letter-spacing: -.04em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

h3 {
  font-size: 1.15rem;
}

p + p {
  margin-top: 14px;
}

.container {
  width: min(1350px, calc(100% - 64px));
  margin-inline: auto;
}

.icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.top {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: radial-gradient(ellipse at 78% 100%, #235698 0, #092e59 36%, #031c3a 67%, #04182f 100%);
}

.guide-band {
  height: 38px;
  background: linear-gradient(110deg, #07142250, #1e88e518);
  border-bottom: 1px solid #ffffff14;
}

.header {
  position: relative;
  z-index: 10;
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  white-space: nowrap;
}

.logo img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.nav-link {
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.active {
  color: var(--accent);
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--accent);
  left: -5px;
  right: -5px;
  bottom: -17px;
}

.nav .nav-login {
  margin-left: auto;
  padding: 12px 17px;
  border: 1px solid #fff;
  border-radius: 11px;
}

.nav .nav-cta {
  padding: 13px 19px;
  background: linear-gradient(120deg, #ff9800, #ff7900);
  color: #fff;
  border-radius: 12px;
}

.nav-cta .icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 7px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid #ffffff70;
  border-radius: 9px;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.btn,
.g-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 15px 22px;
  min-height: 55px;
  font-weight: 750;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
  text-align: center;
}

.btn .icon {
  width: 26px;
  height: 26px;
}

.btn-primary,
.g-cta {
  color: #fff;
  background: linear-gradient(110deg, #ff9800, #ff7900);
}

.btn-primary:hover,
.g-cta:hover {
  color: #fff;
  background: #e97300;
  text-decoration: none;
}

.btn-outline {
  background: #ffffff03;
  border-color: #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #ffffff12;
}

/* Contenuto generato delle guide */
.g-wrap {
  width: min(780px, calc(100% - 40px));
  margin-inline: auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

main.g-wrap {
  padding-block: 42px 12px;
  color: var(--text);
  line-height: 1.7;
}

.g-wrap h1,
.g-wrap h2,
.g-wrap h3 {
  color: var(--navy);
}

.g-wrap h1 {
  margin-bottom: 14px;
  line-height: 1.12;
}

.g-wrap h2 {
  margin: 36px 0 18px;
  line-height: 1.2;
}

.g-wrap h3 {
  margin: 24px 0 10px;
  line-height: 1.3;
}

.g-wrap p {
  margin: 0 0 16px;
}

.g-wrap a:not(.btn):not(.g-cta) {
  color: var(--primary-dark);
  text-underline-offset: 4px;
}

.g-wrap a:not(.btn):not(.g-cta):hover {
  color: #a74b00;
}

.g-wrap ul:not(.g-lista),
.g-wrap ol:not(.g-passi) {
  padding-left: 24px;
}

.g-wrap li {
  margin-block: 8px;
}

.g-occhiello {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 20px;
  background: #ffcf8e;
  color: #612d00;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.g-wrap .g-occhiello {
  margin-bottom: 14px;
}

.g-meta {
  color: var(--text-light);
  font-size: .9rem;
}

.g-wrap .g-meta {
  margin-bottom: 24px;
}

.g-sommario,
.g-scheda,
.g-cat {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.g-sommario {
  margin-block: 24px 30px;
  border-top: 3px solid var(--accent);
}

.g-sommario p:last-child,
.g-scheda p:last-child {
  margin-bottom: 0;
}

.g-passi {
  list-style: none;
  counter-reset: passo;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.g-passi > li {
  position: relative;
  counter-increment: passo;
  min-width: 0;
  min-height: 84px;
  margin: 0;
  padding: 22px 24px 22px 84px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.g-passi > li::before {
  content: counter(passo);
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #fff0df;
  color: #aa4d00;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.g-passi > li > :first-child {
  margin-top: 0;
}

.g-passi > li > :last-child {
  margin-bottom: 0;
}

.g-nota {
  display: block;
  margin-top: 9px;
  color: var(--text-light);
  font-size: .93rem;
}

.g-problema {
  margin-bottom: 14px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.g-problema > b,
.g-problema > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-weight: 800;
}

.g-etichetta {
  padding: 2px 6px;
  background: #eef4fb;
  border: 1px solid #dce6f2;
  border-radius: 6px;
  color: var(--navy);
  font-size: .94em;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.g-cat {
  margin-bottom: 26px;
}

.g-cat h2 {
  margin-top: 0;
  margin-bottom: 9px;
}

.g-cat .g-meta {
  margin-bottom: 12px;
}

.g-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

.g-lista > li {
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.g-lista > li:last-child {
  border-bottom: 0;
}

.g-lista a {
  display: block;
  padding: 18px 8px;
  border-radius: 10px;
  text-decoration: none;
}

.g-wrap .g-lista a {
  color: var(--text);
}

.g-wrap .g-lista a:hover {
  color: var(--primary-dark);
  background: #f7f9fc;
  text-decoration: none;
}

.g-t {
  font-weight: 750;
  line-height: 1.45;
}

.g-d {
  display: block;
  margin-top: 6px;
  color: var(--text-light);
  font-size: .92rem;
  line-height: 1.6;
}

.g-badge {
  display: inline-block;
  max-width: 100%;
  margin: 3px 0 3px 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #E3F2FD;
  color: #1565C0;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  vertical-align: middle;
}

.g-badge.priv {
  background: #fff0df;
  color: #a74b00;
}

.g-badge.spenta {
  background: #ECEFF1;
  color: #455A64;
}

.g-avviso {
  margin: 18px 0 24px;
  padding: 18px 22px;
  background: #fff2e2;
  border: 1px solid #ffe0b5;
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  color: #612d00;
  font-size: .95rem;
}

.g-avviso p:last-child {
  margin-bottom: 0;
}

.g-correlate {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.g-correlate a {
  display: inline-block;
  max-width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px #0b244008;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.g-wrap .g-correlate a {
  color: var(--navy);
}

.g-wrap .g-correlate a:hover {
  background: #fff2e2;
  border-color: #ffd4a0;
  color: #a74b00;
}

.g-briciole {
  font-size: .85rem;
  color: var(--text-light);
}

.g-wrap .g-briciole {
  margin-bottom: 20px;
}

.g-scheda h3 {
  margin-top: 24px;
}

.g-scheda > :first-child {
  margin-top: 0;
}

.g-wrap img {
  max-width: 100%;
  height: auto;
  margin-block: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.g-wrap figure {
  max-width: 100%;
  margin-block: 26px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.g-wrap figure img {
  margin: 0 auto;
  box-shadow: none;
  border-radius: 12px;
}

.g-wrap .g-passi img {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 16px auto 6px;
  border-radius: 14px;
}

.g-wrap figure.g-video {
  max-width: 340px;
  margin-inline: auto;
  text-align: center;
}

.g-wrap figure.g-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  background: #0b1a33;
}

.g-wrap figcaption {
  margin-top: 12px;
  color: var(--text-light);
  font-size: .8rem;
  line-height: 1.5;
}

.g-wrap pre {
  max-width: 100%;
  padding: 16px;
  overflow-x: auto;
  border-radius: 12px;
  background: #eef3f9;
}

.g-wrap table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.g-wrap th,
.g-wrap td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
}

/* Riquadro prima del piè di pagina */
.g-footer {
  padding: 30px 0 44px;
}

.g-footer-box {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.g-footer-nota {
  font-size: .95rem;
  line-height: 1.7;
}

.g-footer-piccolo {
  color: var(--text-light);
  font-size: .85rem;
  line-height: 1.8;
}

.g-footer-box > :last-child {
  margin-bottom: 0;
}

/* Piè di pagina della home */
.footer {
  padding: 44px 0 28px;
  background: var(--navy-deep);
  color: #c9d3df;
  text-align: center;
}

.footer-inner {
  display: grid;
  gap: 20px;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -.05em;
}

.footer-bolt {
  margin-right: 7px;
  color: var(--accent);
}

.footer-electro {
  color: #fff;
}

.footer-sense {
  color: var(--accent);
}

.footer-tagline,
.footer-contact {
  font-size: .87rem;
}

.footer-social,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  font-size: .83rem;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-contact a {
  overflow-wrap: anywhere;
}

.footer-copyright {
  font-size: .76rem;
  color: #9dacbd;
  padding-top: 12px;
}

[hidden] {
  display: none !important;
}

@media (min-width: 1500px) {
  .container {
    width: min(1410px, calc(100% - 120px));
  }
}

@media (max-width: 1190px) {
  .header-inner {
    gap: 20px;
  }

  .logo {
    font-size: 25px;
  }

  .nav {
    gap: 17px;
  }

  .nav-link {
    font-size: .79rem;
  }

  .nav .nav-login {
    margin-left: 0;
  }

  .nav .nav-cta {
    padding: 12px;
  }
}

/* La voce Guide aggiuntiva richiede il menu compatto prima dei 900 px. */
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 40px);
  }

  .header-inner {
    justify-content: space-between;
    min-height: 74px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    background: #0b2440;
    border: 1px solid #ffffff35;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 40px #0005;
  }

  .nav.active,
  .nav.open,
  .nav.is-open,
  .header.menu-open .nav,
  .header.nav-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  .nav-link {
    padding: 10px;
    font-size: .95rem;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav .nav-login,
  .nav .nav-cta {
    text-align: center;
    margin-top: 7px;
  }
}

@media (max-width: 540px) {
  .container {
    width: calc(100% - 36px);
  }

  .logo {
    font-size: 26px;
  }

  .guide-band {
    height: 24px;
  }

  .g-wrap {
    width: calc(100% - 36px);
  }

  main.g-wrap {
    padding-top: 28px;
  }

  .g-wrap h1 {
    font-size: clamp(1.8rem, 7.6vw, 2.25rem);
    line-height: 1.14;
  }

  .g-wrap h2 {
    margin-top: 30px;
    font-size: 1.5rem;
  }

  .g-wrap h3 {
    font-size: 1.08rem;
  }

  .g-sommario,
  .g-scheda,
  .g-cat {
    padding: 20px;
  }

  .g-cat h2 {
    margin-top: 0;
  }

  .g-passi {
    gap: 12px;
  }

  .g-passi > li {
    padding: 18px 16px 18px 64px;
  }

  .g-passi > li::before {
    top: 18px;
    left: 14px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .g-problema {
    padding: 18px;
  }

  .g-avviso {
    padding: 16px;
  }

  .g-lista a {
    padding: 16px 0;
  }

  .g-correlate a {
    width: 100%;
  }

  .g-wrap figure {
    padding: 10px;
  }

  .g-footer {
    padding: 24px 0 32px;
  }

  .g-footer-box {
    padding: 22px;
  }

  .g-footer .g-cta {
    width: 100%;
  }

  .footer-social,
  .footer-links {
    gap: 12px 17px;
  }

  .footer-contact {
    line-height: 1.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* 1 nov 2026: il logo del piè di pagina come quello della testata */
.footer-logo{display:flex;justify-content:center;align-items:center;gap:8px;font-size:1.8rem;font-weight:800;letter-spacing:-.05em;color:#fff}
.footer-logo img{width:40px;height:40px;flex:0 0 auto}
.footer-electro{color:#fff}
