/* medainfissialluminio.com — stesso aspetto del sito WordPress di oggi (Hello Elementor), rifatto a mano.
   Caratteri: quelli di sistema, come oggi (Nunito Sans e Bakbak One del tema non si caricavano mai: venivano da un
   dominio inesistente). Niente caratteri scaricati da fuori. Colori e misure presi dagli stili calcolati del sito di oggi.
   Gli sfondi e le colonne che cambiano da sezione a sezione sono in sezioni.css (generato da build.py). */

:root {
  --testo: #333333;
  --testo-tenue: #555555;
  --menu: #6d6161;
  --blu: #1e73be;
  --blu-scuro: #155a96;
  --rosso: #cf2e2e;
  --rosso-pulsante: #c62828;
  --fascia: #f5f5f5;
  --piede: #333333;
  --piede-testo: #dadada;
  --bordo: #dcdcdc;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-2: "Helvetica Neue", Helvetica, Arial, sans-serif;   /* dove oggi era previsto Nunito Sans o Bakbak One */
  --largo: 1240px;
  --margine: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--testo); background: #fff; overflow-x: hidden; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blu); }
a:hover { color: var(--blu-scuro); }
:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.2; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
button, input, textarea, select { font: inherit; }
.nascosto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salta { position: absolute; left: 8px; top: -60px; z-index: 100; background: #fff; padding: 10px 14px; border: 2px solid var(--blu); }
.salta:focus { top: 8px; }
main:focus { outline: none; }

/* ------------------------------------------------------------------ testata */
.testata { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #ececec; }
.testata-riga { display: flex; align-items: center; gap: 20px; max-width: 1440px; margin: 0 auto; padding: 10px 20px; min-height: 84px; }
.logo { flex: 0 0 auto; }
.logo img { width: 207px; height: auto; }
.menu { flex: 1 1 auto; }
.menu > ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.menu a { display: inline-block; padding: 7px 0; color: var(--menu); font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none;
  border-bottom: 3px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: #333; border-bottom-color: var(--blu); }
.menu .ha-sotto { position: relative; display: flex; align-items: center; }
.apri-sotto { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 32px; padding: 0; border: 0; background: none;
  color: var(--menu); cursor: pointer; }
.apri-sotto svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .2s; }
.apri-sotto[aria-expanded="true"] svg { transform: rotate(180deg); }
.sottomenu { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 320px; background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15); border-top: 3px solid var(--blu); visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility 0s .15s; z-index: 60; }
.sottomenu a { display: block; padding: 10px 18px; font-weight: 600; border: 0; color: #444; }
.sottomenu a:hover, .sottomenu a[aria-current="page"] { background: #f3f6fa; color: var(--blu); }
@media (hover: hover) and (min-width: 1280px) {
  .ha-sotto:hover > .sottomenu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
}
.ha-sotto.aperto > .sottomenu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.cerca { flex: 0 1 220px; display: flex; align-items: center; border: 1px solid #e3e3e3; background: #fafafa; height: 44px; }
.cerca input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 12px; font-size: 15px; color: #333; }
.cerca input::placeholder { color: #8a8a8a; }
.cerca button { width: 44px; height: 100%; border: 0; background: none; color: #c62828; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cerca svg, .menu-apri svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.btn-contatti { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 170px; height: 64px; padding: 0 24px;
  background: var(--blu); color: #fff; font-family: var(--font-2); font-size: 16px; text-decoration: none; }
.btn-contatti:hover { background: var(--blu-scuro); color: #fff; }
.social-fb { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 -6px; border-radius: 50%; }
.social-fb svg { width: 34px; height: 34px; display: block; transition: transform .15s; }
.social-fb:hover svg { transform: scale(1.08); }
.piede-social { margin-top: 14px; }
.piede .piede-fb { display: inline-flex; align-items: center; gap: 10px; }
.piede-fb svg { width: 30px; height: 30px; flex: none; display: block; }
.menu-apri { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; color: var(--blu); cursor: pointer; align-items: center; justify-content: center; }
.menu-apri svg { width: 30px; height: 30px; }
/* 9.11.2026, icona di Facebook in testata (~48 px) e menu SEMPRE su una riga (Fabio: «menu su una riga è meglio»).
   Prima c'era una media query 1100-1379 messa PRIMA delle regole base: valeva solo il column-gap, non font, ricerca e
   pulsante; e la ricerca non scendeva sotto 237 px (larghezza propria del campo) senza min-width: 0. Ora sta qui, dopo.
   Misurato con i caratteri del Mac: sotto 1280 px il menu non ci sta su una riga e si passa al menu a tendina (come su
   tablet e telefono); fra 1280 e 1439 misure compatte; margine di almeno ~25 px per i caratteri di Windows e Android. */
@media (min-width: 1280px) { .cerca { min-width: 0; } }
@media (min-width: 1440px) { .cerca { flex-basis: 200px; } }
@media (min-width: 1280px) and (max-width: 1439px) { .menu > ul { column-gap: 13px; } .menu a { font-size: 15px; } .cerca { flex-basis: 130px; } .btn-contatti { min-width: 150px; } }

@media (max-width: 1279px) {
  .testata-riga { min-height: 64px; padding: 8px 16px; gap: 12px; }
  .logo img { width: 160px; }
  .menu-apri { display: inline-flex; margin-left: 0; }
  .social-fb { margin-left: auto; }   /* sul telefono resta in testata, accanto al menu */
  .btn-contatti, .cerca { display: none; }
  .menu { position: fixed; inset: 64px 0 0 0; background: #fff; overflow-y: auto; padding: 8px 16px 32px; visibility: hidden; opacity: 0;
    transition: opacity .2s, visibility 0s .2s; }
  .menu.aperto { visibility: visible; opacity: 1; transition-delay: 0s; }
  .menu > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > ul > li { border-bottom: 1px solid #eee; }
  .menu a { padding: 14px 4px; font-size: 18px; border: 0; }
  .menu .ha-sotto { flex-wrap: wrap; }
  .menu .ha-sotto > a { flex: 1; }
  .apri-sotto { width: 48px; height: 48px; }
  .sottomenu { position: static; min-width: 0; width: 100%; box-shadow: none; border: 0; padding: 0 0 8px 12px; display: none; visibility: visible; opacity: 1; transform: none; }
  .ha-sotto.aperto > .sottomenu { display: block; }
  .sottomenu a { padding: 10px 4px; font-size: 16px; }
  .menu .cerca-mobile { display: flex; }
}
.menu .cerca-mobile { display: none; }

/* ------------------------------------------------------------------ fascia del titolo (in testa alle pagine interne) */
.fascia { background-color: var(--fascia);
  background-image: linear-gradient(to right, rgba(0, 0, 0, .045) 1px, transparent 1px);
  background-size: 20% 100%; background-position: -1px 0; border-bottom: 1px solid #e2e2e2; }
.fascia-dentro { max-width: 1440px; margin: 0 auto; min-height: 250px; padding: 60px 50px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.fascia-titolo { margin: 0; font-size: clamp(32px, 4.2vw, 50px); font-weight: 600; line-height: 1.1; color: #333; max-width: 760px; }
.fascia-titolo::after { content: ""; display: block; width: min(450px, 100%); height: 6px; margin-top: 14px; background: var(--blu); }
.briciole ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 15px; color: #333; }
.briciole li + li::before { content: "›"; margin: 0 8px 0 4px; color: var(--blu); font-weight: 700; }
.briciole a { color: #333; text-decoration: none; }
.briciole a:hover { color: var(--blu); text-decoration: underline; }
@media (max-width: 699px) { .fascia-dentro { min-height: 0; padding: 36px 16px 28px; } }

/* ------------------------------------------------------------------ sezioni generiche */
.sezione { padding: 40px 0; }
.sezione + .sezione { padding-top: 10px; }
.contenitore { max-width: var(--largo); margin: 0 auto; padding: 0 var(--margine); }
.contenitore.stretto { max-width: 860px; }
.blocco, .col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.righe { display: grid; grid-template-columns: 1fr; gap: 28px 48px; align-items: start; }
@media (min-width: 900px) { .righe { align-items: center; } }
.con-fondo, .con-foto { padding: 28px; }
.sezione.con-fondo, .sezione.con-foto { padding: 56px 0; }
.scuro { color: #fff; }
.scuro a { color: #fff; }
.con-ombra { background: #fff; }
.foto img, img.foto { width: 100%; }
.foto-link { display: block; }

.titolo { margin: 0; color: #333; }
.scuro .titolo, .titolo.chiaro { color: #fff; }
.titolo a { color: inherit; text-decoration: none; }
.titolo a:hover { text-decoration: underline; }
.t-xxl { font-size: clamp(40px, 6vw, 88px); }
.t-xl { font-size: clamp(30px, 3.6vw, 46px); }
.t-l { font-size: clamp(26px, 2.6vw, 34px); }
.t-m { font-size: clamp(22px, 2vw, 26px); }
.t-s { font-size: 20px; }
.t-xs { font-size: 17px; }
.w4 { font-weight: 400; } .w5 { font-weight: 500; } .w6 { font-weight: 600; } .w7, .w8, .w9 { font-weight: 700; }
.maiuscolo { text-transform: uppercase; letter-spacing: .02em; }
.titolo-p { font-size: 16px; }

.testo { color: inherit; }
.testo p:last-child, .testo ul:last-child { margin-bottom: 0; }
.testo li { margin-bottom: .35em; }
.testo h2, .testo h3, .testo h4 { margin: 1.1em 0 .45em; line-height: 1.25; }
.testo h2:first-child, .testo h3:first-child, .testo h1:first-child { margin-top: 0; }
.testo h2 { font-size: clamp(24px, 2.4vw, 30px); }
.testo h3 { font-size: 21px; }
.testo h4 { font-size: 18px; }
.p-16 { font-size: 16px; line-height: 1.7; }
.p-18 { font-size: 18px; line-height: 1.7; }
.p-20 { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.giustificato { text-align: justify; }
@media (max-width: 699px) { .giustificato { text-align: left; } }
.centrato { text-align: center; }
.chiaro { color: #fff; }

.divisore { width: min(450px, 60%); height: 6px; border: 0; margin: 0; background: var(--blu); }
.elenco { list-style: none; padding: 0; margin: 0; }
.riga-pulsante { margin: 6px 0 0; }

.btn-pieno, .btn-bordo, .btn-bordo-scuro, .btn-invia { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border-radius: 0; }
.btn-pieno { background: var(--blu); color: #fff; border: 2px solid var(--blu); }
.btn-pieno:hover { background: var(--blu-scuro); border-color: var(--blu-scuro); color: #fff; }
.btn-bordo { background: transparent; color: #fff; border: 1px solid #fff; font-family: var(--font-2); font-weight: 600; }
.btn-bordo:hover { background: #fff; color: #222; }
.btn-bordo-scuro { background: #fff; color: #333; border: 1px solid #333; }
.btn-bordo-scuro:hover { background: #333; color: #fff; }

/* ------------------------------------------------------------------ home */
.carosello { position: relative; margin: 10px; height: clamp(300px, 42vw, 600px); overflow: hidden; background: #222; }
/* le slide stanno tutte nella stessa cella della griglia: il carosello è alto quanto la più alta, senza misure fisse */
.slides { list-style: none; margin: 0; padding: 0; height: 100%; display: grid; }
.slide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s .8s; }
.slide.attiva { opacity: 1; visibility: visible; transition-delay: 0s; }
.slide-foto { position: absolute; inset: 0; }
.slide-foto, .slide-foto img { width: 100%; height: 100%; }
.slide-foto img { object-fit: cover; }
/* oggi il testo nero sta direttamente sulla foto (profili scuri, maniglia): illeggibile. Stesso testo, stesso nero,
   su un riquadro bianco semitrasparente */
.slide-testo { position: absolute; right: clamp(16px, 4vw, 60px); bottom: clamp(16px, 4vw, 48px); max-width: min(520px, calc(100% - 32px));
  background: rgba(255, 255, 255, .9); padding: 20px 24px; color: #111; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.slide-titolo { margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; color: #111; line-height: 1.15; }
.slide-titolo a { color: inherit; text-decoration: none; }
.slide-titolo a:hover { text-decoration: underline; }
.slide-testo p { margin: 0; font-size: 16px; line-height: 1.5; }
.car-freccia { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85);
  color: #222; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.car-freccia svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.car-freccia.prec { left: 14px; } .car-freccia.succ { right: 14px; }
.punti { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 4px; z-index: 2; }
.punto { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.punto::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.punto.attivo::before { background: #fff; transform: scale(1.25); }
@media (max-width: 699px) {
  /* sul telefono il testo va SOTTO la foto: sopra ne copriva quasi tutta l'altezza */
  .carosello { margin: 0; height: auto; background: #f5f5f5; }
  .slide { display: flex; flex-direction: column; }
  .slide-foto { position: relative; inset: auto; aspect-ratio: 16 / 10; height: auto; }
  .slide-testo { position: static; max-width: none; padding: 16px 16px 46px; background: #f5f5f5; box-shadow: none; }
  .slide-titolo { font-size: 21px; }
  .slide-testo p { font-size: 16px; }
  .car-freccia { width: 40px; height: 40px; top: calc(100vw * 10 / 16 / 2); }
  .punti { bottom: 8px; }
  .punto::before { background: #c4c4c4; box-shadow: none; }
  .punto.attivo::before { background: var(--blu); }
}

.prodotti-home { display: grid; grid-template-columns: 1fr; background: #262020; color: #fff; min-height: 577px; }
.prodotti-home-testo { padding: 56px var(--margine); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.occhiello { margin: 0; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #d8cfcf; }
.prodotti-titolo { margin: 0; font-family: var(--font-2); font-size: clamp(48px, 6.4vw, 93px); font-weight: 400; line-height: 1; color: #fff; }
.prodotti-home-foto { display: flex; align-items: center; padding: 0 0 40px; }
.prodotti-home-foto .foto { border: 8px solid #fff; }
@media (min-width: 900px) {
  .prodotti-home { grid-template-columns: 1fr 1fr; }
  .prodotti-home-testo { padding: 56px 45px 56px 55px; }
  .prodotti-home-foto { padding: 40px 0; }
}

.schede-home { padding: 100px 10px; }
.schede-home ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1440px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.scheda { position: relative; background: #fff; border-radius: 15px; box-shadow: 0 0 10px rgba(0, 0, 0, .5); padding: 32px 26px 56px; min-height: 300px; }
.scheda h3 { margin: 0 0 20px; font-size: clamp(22px, 1.9vw, 28px); font-weight: 600; line-height: 1.35; color: #333; }
.scheda h3 a { color: inherit; text-decoration: none; }
.scheda h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 15px; }   /* tutta la scheda è cliccabile */
.scheda:hover { box-shadow: 0 0 16px rgba(0, 0, 0, .6); }
.scheda:hover h3 a { color: var(--blu); }
.scheda-freccia { position: absolute; right: 22px; bottom: 18px; width: 28px; height: 28px; color: var(--blu); }
.scheda-freccia svg { fill: none; stroke: currentColor; stroke-width: 2.4; width: 100%; height: 100%; }
@media (min-width: 1100px) { .scheda { min-height: 460px; } }
@media (max-width: 699px) { .schede-home { padding: 48px 16px; } .scheda { min-height: 0; } }

.fascione { position: relative; min-height: 649px; display: flex; align-items: center; color: #fff; overflow: hidden; }
/* oggi: testo bianco su un velo grigio chiaro sopra foto chiare (contrasto 2:1). Stesso disegno in diagonale, velo scuro */
.fascione-velo { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(20, 20, 20, .72) 0%, rgba(20, 20, 20, .62) 52%, rgba(20, 20, 20, .08) 52.2%, rgba(20, 20, 20, .08) 100%); }
.fascione-dentro { position: relative; width: 100%; max-width: 1440px; padding: 60px var(--margine); }
.fascione-titolo { margin: 0; font-size: clamp(48px, 6.2vw, 88px); font-weight: 900; line-height: 1; color: #fbfbfb; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.divisore-rosso { width: min(540px, 80%); height: 16px; border: 0; margin: 12px 0 28px -3px; background: var(--rosso); }
.fascione .testo { max-width: 653px; font-family: var(--font-2); text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.fascione .testo p { margin-bottom: 0; }
.fascione .riga-pulsante { margin-top: 40px; }
.fascione .btn-bordo { padding: 22px 37px; font-weight: 800; font-family: var(--font); }
@media (max-width: 699px) {
  .fascione { min-height: 0; }
  .fascione-velo { background: rgba(20, 20, 20, .66); }
  .fascione-dentro { padding: 56px 16px; }
}

/* ------------------------------------------------------------------ pagine interne: righe testo/foto, schede News */
.sezione .righe .col-foto { align-self: start; }
@media (min-width: 900px) { .righe-articolo { grid-template-columns: 1.35fr 1fr; } .righe-articolo.foto-sx .col-foto { order: -1; } .righe-articolo.foto-sx { grid-template-columns: 1fr 1.35fr; } }
.articolo-unito { border-top: 1px solid #eee; }
.articolo-unito .col-foto { position: sticky; top: 110px; }
.pagina-news .righe { align-items: stretch; gap: 20px; }
.pagina-news .col { background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .14); padding: 0 0 22px; gap: 12px; }
.pagina-news .col > :not(picture):not(.foto-link) { padding: 0 16px; }
.pagina-news .col .titolo.t-s, .pagina-news .col h4 { font-size: 15px; font-weight: 700; color: #333; border-left: 4px solid var(--blu); padding-left: 10px !important; margin-left: 16px; }
.pagina-news .col h2 { font-size: 22px; }
.pagina-news .riga-pulsante { margin-top: auto; }
.pagina-news .btn-pieno { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.vuota { min-height: 160px; }

/* ------------------------------------------------------------------ moduli */
.modulo { width: 100%; }
.campi { display: grid; grid-template-columns: 1fr; gap: 14px 20px; }
@media (min-width: 700px) { .modulo-scheda .campi { grid-template-columns: 1fr 1fr; } }
.righe.in-alto { align-items: start; }
.foto-piccola img { width: 100%; }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo.largo, .modulo-blu .campo { grid-column: 1 / -1; }
.campo label, .etichetta-finta { font-weight: 600; font-size: 15px; }
.campo input[type="text"], .campo input[type="email"], .campo input[type="tel"], .campo textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c9c9c9; background: #fff; color: #222; border-radius: 0; font-size: 16px; }
.campo textarea { min-height: 120px; resize: vertical; }
.campo input:focus, .campo textarea:focus { border-color: var(--blu); outline: 2px solid rgba(30, 115, 190, .25); outline-offset: 0; }
.campo [aria-invalid="true"] { border-color: #c62828; }
.campo .errore { color: #b00020; font-size: 14px; font-weight: 600; }
.scuro .campo .errore { color: #ffe08a; }
.consenso { flex-direction: row; align-items: flex-start; gap: 10px; }
.consenso input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--blu); }
.consenso label { font-weight: 400; font-size: 14px; line-height: 1.5; }
.informativa { max-height: 170px; overflow-y: auto; border: 1px solid #c9c9c9; background: #fff; padding: 10px 12px; font-size: 14px; line-height: 1.55; color: #444; }
.informativa p { margin: 0 0 .6em; }
.nota-privacy { margin: 0; font-size: 14px; line-height: 1.5; color: #555; }
.scuro .nota-privacy, .modulo-blu .nota-privacy { color: #eef3ff; }
.modulo-blu .nota-privacy a { color: #fff; }
.testo-legale h2 { font-size: 22px; margin-top: 1.4em; }
.testo-legale h3 { font-size: 18px; margin-top: 1.1em; }
.testo-legale ul { margin-bottom: 1em; }
.testo-legale .aggiornamento { color: #666; font-size: 15px; margin-top: 2em; }
.nota-diritti { margin-top: 28px; }
.modulo-piede { margin-top: 18px; display: flex; justify-content: flex-start; }
.modulo-scheda .modulo-piede { justify-content: flex-end; }
.btn-invia { background: var(--rosso-pulsante); color: #fff; border: 0; min-width: 120px; }
.btn-invia:hover { background: #a31f1f; }
.btn-invia[disabled] { opacity: .6; cursor: wait; }
.esca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.esito { margin-top: 14px; font-weight: 600; }
.esito:empty, .esito span:empty { display: none; }
.esito.attesa span { display: block; padding: 12px 14px; background: #f3f6fa; color: #333; border-left: 4px solid var(--blu); }
.esito.ok span { display: block; padding: 12px 14px; background: #e8f5e9; color: #1b5e20; border-left: 4px solid #2e7d32; }
.esito.ko span { display: block; padding: 12px 14px; background: #fdecea; color: #8e1b1b; border-left: 4px solid #c62828; }
/* riquadro blu dei servizi: campi bianchi senza etichette visibili, come oggi (le etichette restano per i lettori di schermo) */
.modulo-blu .campo label:not(.consenso label) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.modulo-blu .campo input, .modulo-blu .campo textarea { border-color: #fff; }
.modulo-blu .consenso label, .modulo-blu .consenso a { color: #fff; }
.riquadro-modulo { padding: clamp(20px, 3vw, 40px); }
.con-fondo.ha-figli { padding: 0; gap: 0; align-items: stretch; }
.con-fondo.ha-figli > .con-fondo { padding: clamp(20px, 3vw, 36px); }
.riquadro-modulo .titolo { color: #fff; }
/* scheda bianca dei prodotti (oggi FormCraft) */
.modulo-scheda { background: #fff; box-shadow: 0 1px 12px rgba(0, 0, 0, .12); padding: clamp(18px, 3vw, 32px); max-width: 920px; }
.modulo-gdpr { max-width: 640px; margin-top: 10px; }

/* ------------------------------------------------------------------ mappa (Google solo dopo il clic) */
.mappa { position: relative; width: 100%; min-height: 420px; background: #e9eef2; overflow: hidden; display: grid; }
.mappa > picture, .mappa > picture img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; }
.mappa-azioni { grid-area: 1 / 1; align-self: center; justify-self: start; margin: 24px; background: rgba(255, 255, 255, .95); padding: 18px 20px; max-width: 360px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .18); display: flex; flex-direction: column; gap: 10px; z-index: 1; }
.mappa-azioni p { margin: 0; color: #333; }
.mappa-nota { font-size: 13px; color: #666 !important; }
.mappa-crediti { position: absolute; right: 6px; bottom: 4px; font-size: 11px; background: rgba(255, 255, 255, .8); padding: 1px 5px; color: #333; }
.mappa iframe { grid-area: 1 / 1; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ------------------------------------------------------------------ articoli */
.righe-articolo-pagina { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1000px) { .righe-articolo-pagina { grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr); } }
.articolo-testo .foto, .articolo-testo picture { margin-bottom: 18px; }
.titolo-articolo { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; margin-bottom: .5em; }
.data { display: inline-block; border-left: 4px solid var(--blu); padding-left: 10px; font-weight: 700; font-size: 15px; text-transform: uppercase; }
.recenti h2 { font-size: 20px; color: var(--blu); text-decoration: underline; text-underline-offset: 5px; }
.recenti ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.recenti a { display: flex; gap: 14px; align-items: center; color: #333; text-decoration: none; font-weight: 600; }
.recenti a:hover span { color: var(--blu); text-decoration: underline; }
.recenti .mini img { width: 96px; height: 72px; object-fit: cover; }
.recenti time { display: block; margin: 4px 0 0 110px; font-size: 14px; color: #777; }

/* ------------------------------------------------------------------ legali, tabelle, schede GDPR, ricerca, 404 */
.tabella-scorre { overflow-x: auto; }
.tabella-scorre table { border-collapse: collapse; width: 100%; font-size: 15px; }
.tabella-scorre th, .tabella-scorre td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; vertical-align: top; }
.tabella-scorre th { background: #f3f3f3; }
.schede-gdpr { max-width: 760px; margin: 0 auto; }
.tab-elenco { display: flex; flex-wrap: wrap; border-bottom: 2px solid #e5e5e5; }
.tab-elenco button { border: 0; background: none; padding: 12px 16px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .03em;
  color: #777; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab-elenco button[aria-selected="true"] { color: var(--blu); border-bottom-color: var(--blu); }
.pannello { padding: 18px 2px; }
.cerca-grande { display: flex; gap: 10px; margin-bottom: 24px; }
.cerca-grande input { flex: 1; min-width: 0; min-height: 48px; border: 1px solid #c9c9c9; padding: 0 14px; font-size: 17px; }
.risultati ol { padding-left: 1.2em; }
.risultati li { margin-bottom: 16px; }
.risultati a { font-size: 19px; font-weight: 700; }
.risultati p { margin: 4px 0 0; color: #555; }
.elenco-404 { columns: 2 220px; }

/* ------------------------------------------------------------------ piè di pagina */
.piede { background: var(--piede); color: var(--piede-testo); font-family: var(--font-2); }
.piede-griglia { max-width: 1440px; margin: 0 auto; padding: 90px var(--margine) 50px; display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 700px) { .piede-griglia { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .piede-griglia { grid-template-columns: 1.5fr 1fr .85fr .85fr; gap: 5%; padding: 115px 111px 80px; } }
.piede h2 { margin: 0 0 22px; font-size: 16px; font-weight: 600; color: #fff; font-family: var(--font-2); }
.piede h2::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 8px; background: linear-gradient(to right, var(--blu) 0 50%, #fff 50% 100%); }
.piede p, .piede li { font-size: 16px; line-height: 1.7; letter-spacing: .02em; color: var(--piede-testo); }
.piede ul { list-style: none; padding: 0; margin: 0; }
.piede li { margin-bottom: 8px; }
.piede a { color: var(--piede-testo); text-decoration: none; }
.piede a:hover { color: #fff; text-decoration: underline; }
.piede .btn-bordo { margin-top: 14px; padding: 14px 26px; font-weight: 400; font-size: 15px; text-decoration: none; }
.piede .btn-bordo:hover { color: #222; text-decoration: none; }
.piede-fondo { margin: 0; padding: 18px var(--margine) 26px; text-align: center; font-size: 14px !important; border-top: 1px solid #474747; color: #bdbdbd !important; }
.piede-fondo > span { display: inline-block; }
.piede-fondo .credito { margin-left: .4em; }
.piede-fondo .credito::before { content: "·"; margin-right: .5em; }
.piede-fondo .credito a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------------ torna su */
.torna-su { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 48px; height: 48px; border-radius: 50%; background: var(--blu); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); z-index: 40;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility 0s .25s; }
.torna-su.visibile { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.torna-su svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.torna-su:hover { background: var(--blu-scuro); color: #fff; }
@media (max-width: 699px) { .torna-su { width: 44px; height: 44px; right: 14px; } }
