/* =====================================================================
   Corisud Srl - foglio di stile
   Riproduce l'aspetto del vecchio tema The7 con codice pulito.
   ===================================================================== */

/* ---------- Font (Roboto ospitato in locale, nessuna chiamata a Google) */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/roboto-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/roboto-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/roboto-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Variabili */
:root {
  --blu: #165189;
  --blu-scuro: #0f3d68;
  --rosso: #dd3333;
  --testo: #777;
  --titoli: #333;
  --nav: #3a3a3a;
  --fondo: #fafafa;
  --bordo: #ebebeb;
  --largo: 1250px;
  --margine: 44px;
  --testata: 110px;
}

/* ---------- Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font: 400 16px/27px "Roboto", Helvetica, Arial, Verdana, sans-serif;
  color: var(--testo);
  background: #fff;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--blu); text-decoration: none; }
a:hover { color: var(--rosso); }
p { margin: 0 0 10px; }
p.vuoto { min-height: 17px; }
h1, h2, h3, h4, h5, h6 { color: var(--titoli); font-weight: 400; margin: 0 0 10px; }
h1 { font-size: 26px; line-height: 34px; }
h2 { font-size: 26px; line-height: 34px; }
h3 { font-size: 22px; line-height: 30px; }
h4 { font-size: 20px; line-height: 28px; }
h5 { font-size: 18px; line-height: 27px; }
h6 { font-size: 16px; line-height: 26px; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; }
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover { color: var(--blu); }
strong, b { font-weight: 700; color: inherit; }
ul, ol { margin: 0 0 10px; padding-left: 22px; }
hr { border: 0; border-top: 1px solid var(--bordo); margin: 0 0 9px; height: 0; }
figure { margin: 0 0 10px; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--blu); outline-offset: 2px; }

.ico { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; flex: none; }
.nascosto, .campo-trappola {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.salta { position: absolute; left: 8px; top: -60px; z-index: 2000; background: #fff; color: var(--blu); padding: 8px 14px; }
.salta:focus { top: 8px; }

.contenitore { max-width: var(--largo); margin: 0 auto; padding: 0 var(--margine); }
.a-centro { text-align: center; }
.a-destra { text-align: right; }
.a-giust { text-align: justify; }
.a-sinistra { text-align: left !important; }
.rosso { color: var(--rosso); }
.blu { color: var(--blu); }
.alignleft { float: left; margin: 0 25px 15px 0; }
.alignright { float: right; margin: 0 0 15px 25px; }
.aligncenter { display: block; margin: 0 auto 15px; }

.avviso-anteprima { background: #fff3c4; color: #5a4a00; text-align: center; font-size: 13px; line-height: 20px; padding: 4px 10px; }

/* ---------- Barra superiore */
.barra-sup { background: var(--blu); color: #fff; font-size: 14px; line-height: 25px; }
.barra-sup a { color: #fff; }
.barra-sup a:hover { color: #cfe0f1; }
.barra-sup-in { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 10px 24px; flex-wrap: wrap; }
.barra-sup-contatti { display: flex; flex-wrap: wrap; gap: 0 22px; }
.barra-sup .mini .ico { width: 14px; height: 14px; margin-right: 5px; opacity: .9; }
.barra-sup-destra { display: flex; align-items: center; gap: 20px; }
.menu-sup { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.social { display: flex; gap: 6px; align-items: center; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; }
.social .ico { width: 15px; height: 15px; }
.social-contenuto a { width: 30px; height: 30px; background: #e4e4e4; color: #666; }
.social-contenuto a:hover { background: var(--blu); color: #fff; }
.social-contenuto { margin-bottom: 10px; }

/* ---------- Testata e menu */
.testata { background: #fff; border-bottom: 1px solid #e9e9e9; position: sticky; top: 0; z-index: 50; transition: box-shadow .2s; }
.testata.ridotta { box-shadow: 0 1px 8px rgba(0, 0, 0, .08); }
.testata-in { position: relative; display: flex; justify-content: space-between; align-items: stretch; height: var(--testata); transition: height .2s; }
.testata.ridotta .testata-in { height: 70px; }
.logo { align-self: center; display: block; line-height: 0; }
.logo img { width: 250px; height: 70px; transition: width .2s, height .2s; }
.testata.ridotta .logo img { width: 179px; height: 50px; }
.menu-apri { display: none; }
.nav { display: flex; }
.nav-lista { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-lista > li { position: relative; display: flex; align-items: center; margin: 0 13px; }
.nav-lista > li:last-child { margin-right: 0; }
.nav-lista > li > a { display: block; color: var(--nav); font-size: 17px; line-height: 21px; padding: 4px 0 6px; border-bottom: 2px solid transparent; }
.nav-lista > li > a:hover, .nav-lista > li:hover > a, .nav-lista > li.attiva > a { color: var(--nav); border-bottom-color: var(--blu); }
.sotto-apri { display: none; }
.nav-mobile-extra { display: none !important; }
.sotto {
  position: absolute; top: 100%; left: -20px; width: 280px; margin: 0; padding: 12px 0;
  list-style: none; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); border-top: 2px solid var(--blu);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60;
}
.nav-lista > li:hover > .sotto, .nav-lista > li:focus-within > .sotto { opacity: 1; visibility: visible; transform: none; }
.sotto a { display: block; padding: 9px 30px 9px 20px; color: var(--blu); font-size: 12px; font-weight: 500; line-height: 16px; text-transform: uppercase; }
.sotto a:hover, .sotto li.attiva > a { color: var(--rosso); }
.nav-lista > li.mega { position: static; }
.nav-lista > li.mega > .sotto { left: var(--margine); right: var(--margine); width: auto; columns: 3; column-gap: 20px; padding: 18px 10px; }
.nav-lista > li.mega > .sotto li { break-inside: avoid; }

/* ---------- Barra del titolo */
.barra-titolo { background: var(--fondo); border-bottom: 1px solid var(--bordo); }
.barra-titolo-in { display: flex; justify-content: space-between; align-items: center; gap: 10px 30px; min-height: 106px; padding-top: 15px; padding-bottom: 15px; }
.barra-titolo h1 { margin: 5px 0; }
.briciole ol { display: flex; flex-wrap: wrap; justify-content: flex-end; list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 25px; color: #aaa; }
.briciole li + li::before { content: "/"; margin: 0 7px; color: #ccc; }
.briciole a { color: #aaa; }
.briciole a:hover { color: var(--blu); }

/* ---------- Contenuto */
.contenuto { padding-top: 50px; padding-bottom: 30px; }
.contenuto::after { content: ""; display: table; clear: both; }
.tipo-home .contenuto { padding-top: 40px; }

.riga { display: flex; flex-wrap: wrap; margin: 0 -22px; }
.col { width: 100%; padding: 0 22px; display: flow-root; min-width: 0; }
@media (min-width: 768px) {
  .c-1 { width: 8.3333%; } .c-2 { width: 16.6667%; } .c-3 { width: 25%; } .c-4 { width: 33.3333%; }
  .c-5 { width: 41.6667%; } .c-6 { width: 50%; } .c-7 { width: 58.3333%; } .c-8 { width: 66.6667%; }
  .c-9 { width: 75%; } .c-10 { width: 83.3333%; } .c-11 { width: 91.6667%; } .c-12 { width: 100%; }
}
.fascia { padding: 20px 0 10px; }
.testo { margin-bottom: 0; }
.testo::after { content: ""; display: table; clear: both; }
.spazio { clear: both; }
.s5 { height: 5px; } .s10 { height: 10px; } .s15 { height: 15px; } .s20 { height: 20px; } .s25 { height: 25px; }
.s30 { height: 30px; } .s35 { height: 35px; } .s40 { height: 40px; } .s50 { height: 50px; }

/* titoli con linea */
.titolo-sep { display: flex; align-items: center; gap: 20px; font-size: 20px; line-height: 28px; color: var(--titoli); margin: 0 auto 10px; }
.titolo-sep::before, .titolo-sep::after { content: ""; flex: 1 1 0; border-top: 1px solid var(--bordo); min-width: 20px; }
.titolo-sep.sinistra::before { display: none; }
.titolo-sep.destra::after { display: none; }
.titolo-sep.stretto { width: 50%; }
.titolo-sep.piccolo { font-size: 16px; line-height: 26px; }
.titolo-sep.rosso { color: var(--rosso); }

/* immagini */
.foto { line-height: 0; }
.foto.centro { text-align: center; }
.foto.destra { text-align: right; }
.foto.bordo img { padding: 1px; background: var(--bordo); }
.foto.cornice { padding: 10px; background: var(--fondo); box-shadow: inset 0 0 0 1px var(--bordo); display: inline-block; max-width: 100%; }
.foto.cornice.alignleft, .foto.cornice.alignright { float: none; margin: 0 0 10px; }
.foto a.lb { cursor: zoom-in; }
.foto figcaption { line-height: 22px; font-size: 14px; padding-top: 8px; }
a.lb img { transition: opacity .2s; }
a.lb:hover img { opacity: .85; }

/* riquadri teaser (home e pagine categoria) */
.teaser { margin-bottom: 20px; }
.teaser.cornice { background: var(--fondo); box-shadow: inset 0 0 0 1px var(--bordo); }
.teaser-img { line-height: 0; background: #fff; }
.teaser.cornice .teaser-img { margin: 1px 1px 0; }
.teaser-img img { width: 100%; }
.teaser-testo { padding: 15px 15px 5px; }
.teaser-testo h5, .teaser-testo h4 { font-size: 16px; line-height: 24px; }
.teaser-testo h5 a, .teaser-testo h4 a { color: var(--titoli); }

/* tabelle */
.tabella-scorri { overflow-x: auto; margin-bottom: 20px; -webkit-overflow-scrolling: touch; }
.tabella { width: 100%; border-collapse: separate; border-spacing: 1px; background: #c0c0c0; font-size: 15px; line-height: 22px; text-align: center; }
.tabella th, .tabella td { padding: 9px 10px; background: #fff; vertical-align: middle; }
.tabella tbody tr:nth-child(even) td { background: #f8f8f8; }
.tabella th, .tabella td.cella-titolo { background: var(--rosso) !important; color: #fff; font-weight: 400; text-transform: uppercase; }
.tabella img { max-width: none; }
.informativa-tabella { font-size: 14px; line-height: 21px; }
.informativa-tabella th { text-transform: none; text-align: left; }
.informativa h5 { margin-top: 15px; }
.informativa .titolo-sep { margin-top: 30px; }

/* liste */
.lista-frecce { list-style: none; padding: 0; }
.lista-frecce li { position: relative; padding-left: 22px; }
.lista-frecce li::before {
  content: ""; position: absolute; left: 3px; top: 10px; width: 7px; height: 7px;
  border: solid var(--blu); border-width: 2px 2px 0 0; transform: rotate(45deg);
}
.lista-frecce.divisa li { padding-top: 7px; padding-bottom: 7px; border-bottom: 1px solid var(--bordo); }
.lista-frecce.divisa li::before { top: 17px; }
.lista-frecce li p { margin: 0; }

/* pulsanti e link */
.btn {
  display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--blu); color: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .12); line-height: 1; white-space: nowrap;
  --ico-interno: var(--blu);
}
.btn:hover { background: var(--blu-scuro); color: #fff; }
.btn .ico { color: #fff; width: 1.05em; height: 1.05em; }
.btn-l { font-size: 18px; height: 48px; padding: 0 18px 1px; }
.btn-m { font-size: 16px; height: 40px; padding: 0 16px; }
.btn-s { font-size: 14px; height: 34px; padding: 0 14px; }
.btn-chiaro { background: #fff; color: var(--blu); box-shadow: inset 0 0 0 1px var(--blu); }
.btn-chiaro:hover { background: #eef3f8; color: var(--blu-scuro); }
.link-dettagli { display: inline-flex; align-items: center; gap: 7px; color: var(--titoli); line-height: 40px; }
.link-dettagli .ico { width: 15px; height: 15px; }
.link-dettagli:hover { color: var(--blu); }
.link-bottone { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font-size: inherit; }
.link-bottone:hover { color: var(--blu); }

/* box "richiedi preventivo" */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 30px; flex-wrap: wrap;
  background: var(--fondo); box-shadow: inset 0 0 0 1px var(--bordo); border-radius: 4px; padding: 20px 25px 10px; margin: 10px 0 20px;
}
.cta h3 { font-size: 26px; line-height: 34px; margin: 0 0 10px; }
.cta-sotto { font-size: 20px; line-height: 28px; color: var(--titoli); }
.cta-sotto .ico { color: var(--titoli); }
.cta-sotto a { color: var(--titoli); }
.cta-azione { margin-bottom: 10px; }

/* fisarmonica */
.fisarmonica { margin-bottom: 15px; }
.fisarmonica details { border-bottom: 1px solid var(--bordo); }
.fisarmonica details:last-child { border-bottom: 0; }
.fisarmonica summary { list-style: none; cursor: pointer; position: relative; padding: 8px 0 8px 22px; color: var(--titoli); font-size: 16px; line-height: 24px; }
.fisarmonica summary::-webkit-details-marker { display: none; }
.fisarmonica summary::before, .fisarmonica summary::after { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 2px; background: #aaa; }
.fisarmonica summary::after { transform: rotate(90deg); transition: transform .2s; }
.fisarmonica details[open] summary::after { transform: rotate(0deg); }
.fisarmonica summary:hover { color: var(--blu); }
.fisarmonica-testo { padding: 0 0 10px 22px; }

/* box icona (decreti) */
.icon-box { display: flex; align-items: center; gap: 16px; color: var(--titoli); padding: 6px 0 10px; font-size: 16px; line-height: 24px; }
.icon-box:hover { color: var(--blu); }
.ico-box { width: 32px; height: 32px; color: var(--rosso); }

/* video (caricato solo dopo il consenso o il clic) */
.video { position: relative; max-width: 800px; margin: 0 auto 20px; aspect-ratio: 16 / 9; background: #1b1b1b; color: #ddd; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-avvio { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; background: none; border: 0; color: #ddd; cursor: pointer; font-size: 14px; line-height: 20px; }
.video-avvio .ico { width: 68px; height: 48px; }
.video-avvio:hover .ico { transform: scale(1.06); }

/* caroselli */
.carosello { position: relative; margin: 0 0 20px; }
.carosello-traccia { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carosello-traccia::-webkit-scrollbar { display: none; }
.carosello-traccia > * { flex: 0 0 auto; scroll-snap-align: start; line-height: 0; }
.carosello-traccia img { height: 280px; width: auto; max-width: none; }
.carosello.singolo .carosello-traccia > * { flex-basis: 100%; }
.carosello.singolo .carosello-traccia img { width: 100%; height: auto; max-width: 100%; }
.carosello.singolo .foto { margin: 0; text-align: center; }
.car-freccia { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.car-freccia:hover { background: rgba(0, 0, 0, .6); }
.car-freccia .ico { width: 18px; height: 18px; }
.car-freccia.prec { left: 8px; }
.car-freccia.prec .ico { transform: rotate(180deg); }
.car-freccia.succ { right: 8px; }
.car-punti { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.car-punti button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #ccc; cursor: pointer; }
.car-punti button[aria-current="true"] { background: #555; }

/* gallerie */
.galleria { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 20px; }
.galleria a { display: block; line-height: 0; background: var(--fondo); }
.galleria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.album { margin-bottom: 20px; }
.album-copertina { position: relative; display: block; line-height: 0; }
.album-copertina img { width: 100%; }
.album-n { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 13px; line-height: 20px; padding: 2px 8px; border-radius: 3px; }
.album-titolo { font-size: 16px; margin: 10px 0 0; }
.griglia-gallerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.scheda-galleria { display: block; background: var(--fondo); box-shadow: inset 0 0 0 1px var(--bordo); color: var(--titoli); }
.scheda-galleria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.scheda-galleria-titolo { display: block; padding: 12px 15px 0; font-size: 17px; }
.scheda-galleria-n { display: block; padding: 0 15px 12px; font-size: 13px; color: #999; }

/* elenco articoli */
.griglia-articoli { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.scheda-articolo { background: var(--fondo); box-shadow: inset 0 0 0 1px var(--bordo); display: flex; flex-direction: column; }
.scheda-img { display: block; line-height: 0; }
.scheda-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.scheda-testo { padding: 20px 22px 10px; display: flex; flex-direction: column; flex: 1; }
.scheda-testo h2 { font-size: 20px; line-height: 28px; }
.scheda-testo h2 a { color: var(--titoli); }
.scheda-meta { font-size: 13px; color: #999; margin-top: auto; }
.mini-articoli { list-style: none; margin: 0; padding: 0; }
.mini-articoli li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; line-height: 21px; }
.mini-articoli .mini-img { flex: none; line-height: 0; }
.mini-articoli .mini-img img { width: 60px; height: 60px; object-fit: cover; }
.mini-articoli li a { color: var(--titoli); }
.mini-articoli li a:hover { color: var(--blu); }
.mini-articoli time { font-size: 13px; color: #999; }
.correlati { clear: both; margin-top: 30px; }
.correlati .mini-img img { border-radius: 50%; }
.griglia-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 30px; }
.non-trovata { min-height: 200px; }

/* moduli */
.modulo { margin-bottom: 20px; }
.campo { margin: 0 0 14px; }
.campo label { display: block; color: var(--titoli); font-size: 15px; line-height: 22px; margin-bottom: 4px; }
.campo input[type=text], .campo input[type=email], .campo input[type=tel], .campo textarea {
  width: 100%; font: inherit; font-size: 15px; color: #444; background: #fdfdfd; border: 1px solid #ddd; border-radius: 3px; padding: 8px 12px; line-height: 22px;
}
.campo textarea { resize: vertical; min-height: 110px; }
.campo input:focus, .campo textarea:focus { border-color: var(--blu); outline: none; box-shadow: 0 0 0 3px rgba(22, 81, 137, .15); }
.con-errore input, .con-errore textarea { border-color: var(--rosso); }
.errore { display: block; color: var(--rosso); font-size: 13px; line-height: 20px; margin-top: 3px; }
.obbl { color: var(--rosso); margin-left: 2px; }
.spunta { display: flex !important; gap: 10px; align-items: flex-start; font-size: 14px !important; line-height: 21px !important; color: var(--testo) !important; cursor: pointer; }
.spunta input { margin-top: 3px; flex: none; width: 17px; height: 17px; accent-color: var(--blu); }
.nota-obbl { font-size: 13px; }
.esito { padding: 12px 16px; border-radius: 4px; line-height: 22px; }
.esito-ok { background: #e7f5ea; color: #1e6b31; border: 1px solid #b6dfc0; }
.esito-errore { background: #fdecec; color: #a12424; border: 1px solid #f2c0c0; }

/* ---------- Slider home */
.slider { position: relative; height: clamp(300px, 43vw, 550px); background: #e9e9e9; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.slide.attiva { opacity: 1; visibility: visible; }
.slide-sfondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-testo { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 70px; color: #fff; }
.slide-titolo { font: 700 clamp(28px, 4.7vw, 60px)/1.2 Tahoma, Geneva, Verdana, sans-serif; letter-spacing: -1px; text-shadow: 0 2px 5px rgba(0, 0, 0, .5); margin: 0 0 18px; }
.slide-sotto { font: 700 clamp(15px, 1.9vw, 24px)/1.4 Tahoma, Geneva, Verdana, sans-serif; text-shadow: 0 2px 5px rgba(0, 0, 0, .5); margin: 0 0 26px; }
.slide-btn { background: #fff; color: #000; font: 300 clamp(20px, 2.3vw, 30px)/1 "Roboto", sans-serif; padding: 6px 16px 10px; }
.slide-btn:hover { background: var(--blu); color: #fff; }
.slider-freccia { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0; background: rgba(0, 0, 0, .3); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slider-freccia:hover { background: rgba(0, 0, 0, .55); }
.slider-freccia .ico { width: 22px; height: 22px; }
.slider-freccia.prec { left: 20px; }
.slider-freccia.prec .ico { transform: rotate(180deg); }
.slider-freccia.succ { right: 20px; }

/* ---------- Piè di pagina */
.piede { background: var(--fondo); border-top: 1px solid var(--bordo); padding: 50px 0 25px; font-size: 14px; line-height: 25px; }
.piede-colonne { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 44px; }
.piede-titolo { font-size: 18px; line-height: 27px; margin: 0 0 15px; }
.piede-titolo a { color: var(--titoli); }
.piede .link-dettagli { font-size: 16px; line-height: 40px; }
/* foto gallery: 4 miniature per riga come nel vecchio sito */
.piede-foto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; max-width: 246px; }
.piede-foto a { line-height: 0; }
.piede-foto img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.etichetta { color: var(--titoli); font-weight: 500; }
/* novità: miniature rotonde, titoli scuri, date chiare */
.piede .mini-articoli li { gap: 14px; align-items: center; margin-bottom: 20px; line-height: 25px; }
.piede .mini-articoli .mini-img img { width: 50px; height: 50px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #eee; }
.piede .mini-articoli li a { font-size: 14px; color: var(--titoli); }
.piede .mini-articoli li a:hover { color: var(--blu); }
.piede .mini-articoli time { font-size: 13px; color: #aaa; }
/* info aziendali: niente link azzurri */
.piede-info p { margin: 0 0 5px; }
.piede-etichetta { color: var(--titoli); }
.piede-info a { color: var(--testo); }
.piede-info a.tel { text-decoration: none; cursor: default; }
.piede-info a.mail { text-decoration: underline; }
.piede-info a:hover { color: var(--titoli); }
.social-piede { margin-top: 18px; gap: 4px; }
.social-piede a { width: 24px; height: 24px; background: #f2f2f2; box-shadow: inset 0 0 0 1px #e2e2e2; color: #777; }
.social-piede .ico { width: 12px; height: 12px; }
.social-piede a:hover { background: var(--blu); box-shadow: none; color: #fff; }
.barra-inf { border-top: 1px solid var(--bordo); font-size: 13px; line-height: 23px; }
.barra-inf-in { display: flex; justify-content: space-between; align-items: center; gap: 8px 30px; flex-wrap: wrap; min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
.barra-inf p { margin: 0; }
.barra-inf p a { color: var(--testo); }
.barra-inf p a:hover { color: var(--titoli); }
.menu-inf { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.menu-inf a, .menu-inf .link-bottone { color: var(--testo); }
.menu-inf a:hover, .menu-inf .link-bottone:hover { color: var(--blu); }
.menu-inf .con-sotto { position: relative; }
.menu-inf .sotto { top: auto; bottom: 100%; left: auto; right: 0; width: 240px; transform: translateY(-6px); border-top: 0; border-bottom: 2px solid var(--blu); }
.menu-inf .con-sotto:hover .sotto, .menu-inf .con-sotto:focus-within .sotto, .menu-inf .con-sotto.aperto .sotto { opacity: 1; visibility: visible; transform: none; }

/* ---------- Popup comunicazione */
.popup { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px 30px; overflow-y: auto; opacity: 0; transition: opacity .35s; }
.popup.visibile { opacity: 1; }
.popup[hidden] { display: none; }
.popup-box { position: relative; width: 100%; max-width: 600px; background: #fff; padding: 18px; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); line-height: 0; }
.popup-box img { width: 100%; }
.popup-chiudi { position: absolute; top: -12px; right: -12px; background: #00b5d1; color: #fff; border: 0; font: 500 13px/1 "Roboto", sans-serif; padding: 12px 14px; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.popup-chiudi:hover { background: #0094ab; }

/* ---------- Banner cookie */
.consenso { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 0 12px 12px; pointer-events: none; }
.consenso[hidden] { display: none; }
.consenso-box {
  position: relative; max-width: 980px; margin: 0 auto; background: #fff; color: #444; border-radius: 6px;
  box-shadow: 0 -2px 30px rgba(0, 0, 0, .25); padding: 20px 26px 16px; font-size: 14px; line-height: 21px; pointer-events: auto;
}
.consenso-titolo { font-size: 17px; color: var(--titoli); font-weight: 500; margin: 0 30px 6px 0; }
.consenso-x { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; background: none; border: 0; font-size: 26px; line-height: 1; color: #777; cursor: pointer; }
.consenso-x:hover { color: #000; }
.consenso-azioni { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.consenso-pref { margin-top: 12px; border-top: 1px solid var(--bordo); }
.consenso-voce { border-bottom: 1px solid var(--bordo); padding: 10px 0; }
.consenso-voce label { display: flex; align-items: center; gap: 8px; color: var(--titoli); cursor: pointer; }
.consenso-voce input { width: 17px; height: 17px; accent-color: var(--blu); }
.consenso-voce p { margin: 2px 0 0 25px; font-size: 13px; color: #777; }

/* ---------- Lightbox */
.lb-fondo { position: fixed; inset: 0; z-index: 1100; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.lb-fondo[hidden] { display: none; }
.lb-img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; box-shadow: 0 0 30px rgba(0, 0, 0, .5); background: #fff; }
.lb-fondo button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .8; display: flex; align-items: center; justify-content: center; }
.lb-fondo button:hover { opacity: 1; }
.lb-chiudi { top: 10px; right: 14px; font-size: 38px; width: 48px; height: 48px; }
.lb-prec, .lb-succ { top: 50%; transform: translateY(-50%); width: 56px; height: 80px; }
.lb-prec { left: 6px; }
.lb-succ { right: 6px; }
.lb-prec .ico { transform: rotate(180deg); }
.lb-fondo .ico { width: 34px; height: 34px; }
.lb-conta { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 13px; }

/* ---------- Responsive */
@media (max-width: 1150px) {
  .nav-lista > li { margin: 0 9px; }
  .nav-lista > li > a { font-size: 16px; }
}
@media (max-width: 1050px) {
  :root { --testata: 80px; }
  .logo img { width: 200px; height: 56px; }
  .testata.ridotta .testata-in { height: 64px; }
  .testata.ridotta .logo img { width: 160px; height: 45px; }
  .menu-apri {
    display: flex; align-items: center; gap: 10px; align-self: center; background: var(--blu); color: #fff; border: 0;
    border-radius: 4px; padding: 9px 14px; cursor: pointer; font-size: 15px;
  }
  .menu-icona { display: flex; flex-direction: column; gap: 4px; }
  .menu-icona span { display: block; width: 20px; height: 2px; background: #fff; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 86vw); background: #fff; z-index: 200;
    flex-direction: column; overflow-y: auto; padding: 20px 0 40px; transform: translateX(105%);
    transition: transform .25s ease; box-shadow: -4px 0 24px rgba(0, 0, 0, .2); visibility: hidden;
  }
  .nav.aperta { transform: none; visibility: visible; }
  body.menu-aperto::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 150; }
  body.menu-aperto { overflow: hidden; }
  body.menu-aperto .testata { z-index: 300; }
  .nav-lista { flex-direction: column; }
  .nav-lista > li { display: flex; flex-wrap: wrap; align-items: stretch; margin: 0; border-bottom: 1px solid var(--bordo); }
  .nav-lista > li > a { flex: 1; padding: 13px 22px; border-bottom: 0; }
  .nav-lista > li.attiva > a { color: var(--blu); font-weight: 500; }
  .sotto-apri { display: flex; align-items: center; justify-content: center; width: 52px; background: none; border: 0; border-left: 1px solid var(--bordo); color: var(--nav); cursor: pointer; }
  .sotto-apri .ico { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .2s; }
  .sotto-apri[aria-expanded="true"] .ico { transform: rotate(-90deg); }
  .sotto, .nav-lista > li.mega > .sotto {
    position: static; width: 100%; columns: auto; box-shadow: none; border-top: 1px solid var(--bordo);
    opacity: 1; visibility: visible; transform: none; display: none; padding: 6px 0; background: var(--fondo);
  }
  .nav-lista > li.aperto > .sotto { display: block; }
  .sotto a { padding: 9px 22px 9px 34px; }
  .nav-mobile-extra { display: flex !important; margin-top: 16px; }
  .nav-mobile-extra li { border-bottom: 0; }
  .nav-mobile-extra a { font-size: 14px !important; color: var(--testo) !important; padding: 6px 22px !important; }
  .piede-colonne { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .menu-sup, .barra-sup .social { display: none; }
  .barra-sup-in { justify-content: center; text-align: center; padding-top: 6px; padding-bottom: 6px; }
  .barra-sup-contatti { justify-content: center; }
  .barra-titolo-in { flex-direction: column; align-items: flex-start; min-height: 0; }
  .briciole ol { justify-content: flex-start; }
}
@media (max-width: 767px) {
  :root { --margine: 18px; }
  .riga { margin: 0 -12px; }
  .col { padding: 0 12px; }
  .titolo-sep.stretto { width: 100%; }
  .alignleft, .alignright { float: none; margin: 0 0 15px; }
  .contenuto { padding-top: 30px; }
  .carosello-traccia img { height: 200px; }
  .cta h3 { font-size: 22px; line-height: 30px; }
  .cta-sotto { font-size: 17px; line-height: 25px; }
  .griglia-3 { grid-template-columns: 1fr; }
  .slide-testo { padding: 0 50px; }
  .slide-sotto br, .slide-titolo br { display: none; }
  .slider-freccia { width: 36px; height: 36px; }
  .slider-freccia.prec { left: 6px; }
  .slider-freccia.succ { right: 6px; }
  .barra-inf-in { flex-direction: column; text-align: center; }
  .menu-inf { flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
  .consenso-box { padding: 16px 16px 12px; }
  .consenso-azioni { justify-content: stretch; }
  .consenso-azioni .btn { flex: 1 1 40%; justify-content: center; }
}
@media (max-width: 560px) {
  .piede-colonne { grid-template-columns: 1fr; }
  .barra-sup { font-size: 13px; }
  .barra-sup .mini:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .barra-sup, .testata, .piede, .barra-inf, .consenso, .popup, .slider, .cta, .modulo { display: none !important; }
  .contenuto { padding-top: 0; }
}
