/* RecDati — foglio di stile unico del sito.
   Struttura: 1) base  2) layout  3) componenti  4) testata/piè di pagina
   5) modelli di pagina  6) contenuti degli articoli  7) utilità */

/* 1. Base ------------------------------------------------------------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-700.woff2') format('woff2'); }

:root {
  --primary: #005073;
  --accent: #009dda;
  --ink: #0b1f2a;
  --text: #333333;
  --muted: #69727d;
  --line: #e7e7e7;
  --light: #f3f3f3;
  --sky: #f6fcff;
  --white: #ffffff;
  --orange: #fb4e00;
  --green: #34b233;
  --radius: 10px;
  --shadow: -12px 24px 35px -8px rgba(0, 0, 0, .07);
  --max: 1140px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.5; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, video, svg, iframe { max-width: 100%; }
img, video { height: auto; vertical-align: middle; }
a { color: var(--primary); font-weight: 600; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-family: inherit; line-height: 1.2; color: inherit; }
h1 { font-size: 42px; font-weight: 700; color: var(--ink); }
h2 { font-size: 32px; font-weight: 600; }
h3 { font-size: 22px; font-weight: 500; }
h4 { font-size: 18px; font-weight: 500; }
h5 { font-size: 16px; font-weight: 500; }
h6 { font-size: 14px; font-weight: 500; }
p { margin: 0 0 .9em; }
ul, ol { margin: 0 0 .9em; padding-left: 1.5em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
strong, b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

@media (max-width: 767px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  h4 { font-size: 16px; }
}

/* Dimensioni del testo impostate per singolo elemento (style="--fs:..") */
[style*="--fs:"] { font-size: var(--fs); }
@media (max-width: 767px) { [style*="--fs-m:"] { font-size: var(--fs-m); } }

.sr, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; background: var(--white); border-radius: 6px; }

/* 2. Layout ----------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Sezioni di contenuto: sfondo a tutta larghezza, contenuto centrato */
/* Le variabili di impaginazione valgono solo per l'elemento che le dichiara:
   senza questo azzeramento i figli erediterebbero padding, sfondi e bordi. */
:where(.sec, .flex, .grid, .bx, .btn, .divider, .img) { --w: initial; --w-m: initial; --gap: initial; --gap-m: initial; --pad: initial; --pad-m: initial; --bg: initial; --bgi: initial; --bd: initial; --rad: initial; --sh: initial; --cols: initial; --cols-m: initial; --cols-t: initial; --minh: initial; }
:where(.btn) { --fs: initial; --bc: initial; --fg: initial; }
.sec { position: relative; padding: var(--pad, 0); background: var(--bg, transparent) var(--bgi, none) center / cover no-repeat; color: var(--c, inherit); }
.sec.minh { min-height: var(--minh); display: flex; align-items: center; }
.sec > .box { max-width: var(--max); margin-inline: auto; }
.sec.minh > .box, .sec.minh > .full { flex: 1; }
@media (max-width: 1180px) { .sec > .box { padding-inline: max(10px, var(--pad-x, 0px)); } }
@media (max-width: 767px) { .sec { padding: var(--pad-m, var(--pad, 0)); } }

/* Contenitori flessibili e griglie (equivalenti ai container Elementor) */
.flex { display: flex; flex-direction: column; gap: var(--gap, 20px); padding: var(--pad, 0); background: var(--bg, transparent) var(--bgi, none) center / cover no-repeat; border: var(--bd, 0); border-radius: var(--rad, 0); box-shadow: var(--sh, none); min-height: var(--minh, 0); color: var(--c, inherit); min-width: 0; }
.flex.row { flex-direction: row; }
.flex.wrap { flex-wrap: wrap; }
.flex > *, .grid > * { min-width: 0; }
.flex.row > [style*="--w:"] { width: var(--w); flex: 0 1 auto; }
.flex.row > .btn-wrap, .flex.row > .img { flex: 0 1 auto; }
.flex.row > .flex:not([style*="--w:"]), .flex.row > .bx:not([style*="--w:"]) { flex: 1 1 0; }
/* numeri (20+, 1240+...) nelle pagine privati/aziende: larghezza del contenuto, bordo a sinistra */
.flex.row > .bx.stat-bx { flex: 0 1 auto; border-left: 2px solid #e7e7e7; }
.flex:not(.row) > .flex[style*="--w:"] { width: var(--w); }
.flex:not(.row) > .flex:not([style*="--w:"]), .flex:not(.row) > .grid { width: 100%; }
/* widget a larghezza propria (vecchie colonne Elementor: righe a capo) */
.flex.lw { flex-direction: row; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 0; }
.flex.lw > * { width: 100%; }
.flex.lw > .wi, .flex:not(.row) > .wi { width: var(--w); max-width: 100%; }
@media (max-width: 767px) { .flex.lw > .wi[style*="--w-m:"], .flex:not(.row) > .wi[style*="--w-m:"] { width: var(--w-m); } }
.ai-c { align-items: center; } .ai-s { align-items: flex-start; } .ai-e { align-items: flex-end; } .ai-b { align-items: baseline; } .ai-st { align-items: stretch; }
.jc-c { justify-content: center; } .jc-e { justify-content: flex-end; } .jc-sb { justify-content: space-between; } .jc-sa { justify-content: space-around; } .jc-se { justify-content: space-evenly; }
.flex.ai-c:not(.row) > :is(.text, ul, h1, h2, h3, h4, p) { align-self: stretch; }
.linkbox { color: inherit; font-weight: inherit; }

.grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--gap, 20px); padding: var(--pad, 0); background: var(--bg, transparent); border: var(--bd, 0); border-radius: var(--rad, 0); box-shadow: var(--sh, none); }

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(var(--cols-t, min(var(--cols, 3), 2)), minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .flex { padding: var(--pad-m, var(--pad, 0)); gap: var(--gap-m, var(--gap, 20px)); }
  .flex.row:not(.row-m) { flex-direction: column; }
  .flex.row:not(.row-m) > [style*="--w:"] { width: var(--w-m, 100%); }
  .flex.row.row-m > [style*="--w-m:"] { width: var(--w-m); }
  .flex.row.row-m { flex-wrap: wrap; }
  /* come Elementor: su mobile i contenitori vanno a tutta larghezza se non hanno una larghezza mobile */
  .flex > .flex[style*="--w:"]:not([style*="--w-m:"]) { width: 100%; }
  .grid { grid-template-columns: repeat(var(--cols-m, 1), minmax(0, 1fr)); gap: var(--gap-m, var(--gap, 20px)); }
}

.spacer { height: var(--h, 20px); }
.hide-d { display: none !important; }
@media (max-width: 1024px) { .hide-d { display: revert !important; } .hide-t { display: none !important; } }
@media (max-width: 767px) { .hide-t { display: revert !important; } .hide-m { display: none !important; } }

/* 3. Componenti ------------------------------------------------------- */

/* Testo libero (editor) */
.text > :last-child, .bx-desc > :last-child, .acc-body > :last-child { margin-bottom: 0; }
.text p a, .prose p a { text-decoration: underline; text-underline-offset: 3px; }
.text img { border-radius: var(--radius); }

/* Etichetta con linea ("IL NOSTRO PROCESSO") */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; color: var(--primary); }
.eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--accent); opacity: .8; }

.divider { border: 0; border-top: 1px solid var(--c, var(--line)); width: var(--w, 100%); margin: 0; }

/* Pulsanti */
.btn-wrap { display: block; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: var(--pad, 10px 20px); border: 1px solid var(--bc, var(--primary)); border-radius: var(--rad, 8px); background: var(--bg, var(--primary)); color: var(--fg, var(--white)); font-size: var(--fs, 14px); font-weight: 600; line-height: 1.5; text-align: center; cursor: pointer; transition: background .25s, border-color .25s, color .25s, transform .2s, box-shadow .25s; box-shadow: 0 2px 6px rgba(0, 80, 115, .25); }
.btn:hover, .btn:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 157, 218, .35); }
.btn .i { width: 1em; height: 1em; fill: currentColor; flex: none; }
.btn.ir { flex-direction: row; }
.btn-outline { --bg: transparent; --fg: var(--primary); box-shadow: none; }
.btn-white { --bg: var(--white); --fg: var(--primary); --bc: var(--accent); box-shadow: none; }
.btn-custom { box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.recdati-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border: 1.5px solid var(--primary); border-radius: 8px; background: var(--primary); color: var(--white) !important; font-size: 14px; font-weight: 500; text-decoration: none !important; cursor: pointer; transition: background .3s, border-color .3s, transform .2s, box-shadow .3s; box-shadow: 0 2px 6px rgba(0, 80, 115, .25); }
.recdati-btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 157, 218, .35); }

/* Elenchi con icona */
.ilist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--c, inherit); font-size: var(--fs, inherit); }
.ilist li, .ilist a { display: flex; align-items: center; gap: 8px; }
.ilist a { color: inherit; font-weight: inherit; }
.ilist a:hover { color: var(--accent); }
.ilist .i { width: var(--is, 14px); height: var(--is, 14px); flex: none; fill: var(--ic, var(--green)); }
.ilist.inline { flex-direction: row; flex-wrap: wrap; column-gap: 16px; }
.ilist.tc { align-items: center; justify-content: center; }

/* Immagini e video */
.img { line-height: 0; }
.img img { border-radius: inherit; }
.img.tc { text-align: center; }
figure { margin: 0; }
figcaption { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.video { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; line-height: 0; }
.video video { width: 100%; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* Riquadri con icona/immagine (icon box, image box) */
.bx { display: flex; flex-direction: column; gap: 10px; padding: var(--pad, 0); background: var(--bg, transparent); border: var(--bd, 0); border-radius: var(--rad, 0); box-shadow: var(--sh, none); height: 100%; }
.bx-left, .bx-right { flex-direction: row; align-items: flex-start; gap: 15px; }
.bx-right { flex-direction: row-reverse; }
@media (max-width: 767px) { .bx-m-top { flex-direction: column; } }
.bx-icon { flex: none; line-height: 0; }
.bx-icon .bi { width: var(--is, 50px); height: var(--is, 50px); color: var(--ic, var(--primary)); object-fit: contain; }
.bx-icon svg.bi:not([fill]) { fill: var(--ic, var(--primary)); }
.bx-icon.ibg { display: flex; align-items: center; justify-content: center; width: var(--iw, auto); height: var(--iw, auto); background: var(--ib); border-radius: var(--irad, 0); }
.bx-left .bx-icon.ibg, .bx-right .bx-icon.ibg { align-self: flex-start; }
.bx-icon .bimg { width: var(--is, auto); max-width: 100%; height: auto; }
.bx.tc { align-items: center; text-align: center; }
.bx-body { min-width: 0; flex: 1; }
.bx-title { margin: 8px 0 10px; font-size: var(--fs, 18px); font-weight: 600; line-height: 1.2; color: var(--ink); }
.bx-title a { color: inherit; font-weight: inherit; }
.bx-desc { margin: 0; }
.bx-desc p { margin-bottom: .9em; }
.card { position: relative; }

/* Passaggi numerati della home ("Come funziona") */
.step-card { position: relative; overflow: hidden; }
.step-num { position: absolute; bottom: 0; right: 0; width: 56px; height: 56px; display: flex; align-items: flex-end; justify-content: flex-end; padding: 8px 9px; font-size: 15px; font-weight: 600; color: #fff; pointer-events: none; z-index: 2; }
.step-num::after { content: ''; position: absolute; bottom: 0; right: 0; width: 56px; height: 56px; background: #1a3a5c; clip-path: path('M 56 0 L 0 56 L 46 56 Q 56 56 56 46 Z'); z-index: -1; }
.step-num::before { content: ''; position: absolute; bottom: 0; right: 0; width: 58px; height: 58px; background: #e7e7e7; clip-path: path('M 58 0 L 0 58 L 48 58 Q 58 58 58 48 Z'); z-index: -2; }
.step-arrow, .step-arrow-end { position: absolute; right: -23px; top: 30%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 10; pointer-events: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.step-arrow { background: #fff; border: .5px solid #e7e7e7; color: #1a3a5c; }
.step-arrow-end { background: #34b233; border: .5px solid #c0dd97; color: #fff; }
.step-grid > *, .step-grid .bx { overflow: visible; }
@media (max-width: 768px) { .step-arrow, .step-arrow-end { display: none; } }

/* Stelle di valutazione */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars i { display: inline-flex; width: var(--ss, 16px); height: var(--ss, 16px); position: relative; }
.stars svg { width: 100%; height: 100%; fill: #ccd6df; }
.stars .on svg { fill: var(--star, #f0ad4e); }
.stars .half svg { fill: #ccd6df; }
.stars .half::after { content: ''; position: absolute; inset: 0; width: 50%; overflow: hidden; background: var(--star, #f0ad4e); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M259.3 17.8 194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z'/%3E%3C/svg%3E") left / 200% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M259.3 17.8 194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z'/%3E%3C/svg%3E") left / 200% 100% no-repeat; }
.stars-wrap { display: flex; align-items: center; gap: 8px; }

/* Recensioni (scorrimento orizzontale, avanzamento automatico in site.js) */
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 20px) / 3); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 0 4px; }
.reviews::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; display: flex; flex-direction: column; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 6px; min-height: 190px; }
.review-head { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 10px; border-bottom: 1px solid var(--line); }
.review .stars { --ss: 22px; --star: #00b67a; }
.review figcaption { margin: 0; font-size: 12px; color: var(--muted); }
.review blockquote { margin: 0; padding: 10px 12px 14px; font-size: 13px; line-height: 1.55; color: var(--text); }
@media (max-width: 1024px) { .reviews { grid-auto-columns: calc((100% - 10px) / 2); } }
@media (max-width: 767px) { .reviews { grid-auto-columns: 100%; } }

/* Fisarmonica (FAQ) */
.accordion { display: flex; flex-direction: column; }
.acc { border-bottom: 1px solid #d5d8dc; }
.acc summary { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; list-style: none; font-weight: 500; color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before { content: ''; flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; margin: 0 4px 0 2px; }
.acc[open] summary::before { transform: rotate(45deg); }
.acc-body { padding: 0 0 15px; }

/* Schede (tabs) */
.tab-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tab-list button { flex: 1 1 0; padding: 15px 35px; border: 0; border-bottom: 3px solid var(--primary); border-radius: 0; background: transparent; cursor: pointer; font: inherit; font-size: 16px; color: var(--text); white-space: nowrap; transition: color .2s, border-color .2s; }
.tab-list button:hover, .tab-list button[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--accent); }
@media (max-width: 767px) { .tab-list button { flex: 1 1 100%; padding: 12px 15px; } }

/* Elenchi di articoli (card) */
.posts { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 35px 30px; }
.pc { display: flex; flex-direction: column; background: #f9fcfe; border: 1px solid #edf2f6; border-radius: 15px; overflow: hidden; }
.pc-img { display: block; aspect-ratio: 66 / 50; overflow: hidden; background: #eef3f6; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pc:hover .pc-img img { transform: scale(1.04); }
.pc-body { padding: 15px 15px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.25; }
.pc-title a { color: var(--ink); }
.pc-title a:hover { color: var(--primary); }
.pc-meta { margin: 0; font-size: 11px; color: var(--primary); }
.pc-excerpt { font-size: 13px; line-height: 1.6; margin-top: 8px; }
.pc-excerpt p { margin: 0; }
.pc-badge { align-self: flex-start; margin: 12px 15px 0; padding: 4px 10px; border-radius: 50px; background: var(--primary); color: var(--white); font-size: 11px; font-weight: 600; }
.pc-cards .pc { position: relative; background: var(--white); border: 0; border-radius: 3px; box-shadow: 0 0 10px rgba(0, 0, 0, .15); }
.pc-cards .pc-img { aspect-ratio: 100 / 66; }
.pc-cards .pc-badge { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); margin: 0; padding: 7px 14px; max-width: calc(100% - 40px); background: #69727d; font-size: 12px; font-weight: 400; line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-cards .pc-body { padding: 20px 30px 25px; gap: 0; }
.pc-cards .pc-title { margin-bottom: 25px; font-size: 21px; font-weight: 500; }
.pc-cards .pc-title a { color: var(--primary); }
.pc-cards .pc-excerpt { margin: 0; font-size: 14px; color: #777; }
.pc-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid #eaeaea; color: #adadad; }
.pc-more { font-size: 12px; font-weight: 700; margin-top: 8px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); }
.pagination [aria-current] { background: var(--primary); border-color: var(--primary); color: var(--white); }
@media (max-width: 1024px) { .posts { grid-template-columns: repeat(var(--cols-t, 2), minmax(0, 1fr)); } }
@media (max-width: 767px) { .posts { grid-template-columns: repeat(var(--cols-m, 1), minmax(0, 1fr)); } }

/* Moduli */
.form .fields { display: flex; flex-wrap: wrap; gap: 10px; }
.form .field { flex: 0 0 100%; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
/* larghezza X%: ogni campo cede la sua quota degli spazi da 10px */
.form .w20 { flex-basis: calc(20% - 8px); }
.form .w25 { flex-basis: calc(25% - 7.5px); }
.form .w30 { flex-basis: calc(30% - 7px); }
.form .w33 { flex-basis: calc(33.333% - 6.667px); }
.form .w40 { flex-basis: calc(40% - 6px); }
.form .w50 { flex-basis: calc(50% - 5px); }
.form .w60 { flex-basis: calc(60% - 4px); }
.form .w66 { flex-basis: calc(66.666% - 3.333px); }
.form .w70 { flex-basis: calc(70% - 3px); }
.form .w75 { flex-basis: calc(75% - 2.5px); }
.form .w80 { flex-basis: calc(80% - 2px); }
@media (max-width: 767px) { .form .field { flex-basis: 100%; } }
.form label { font-size: 14px; font-weight: 500; color: var(--ink); }
.form .req { color: #d63638; }
.form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea { width: 100%; min-height: 47px; padding: 6px 16px; border: 1px solid #69727d; border-radius: 4px; background: var(--white); font-size: 16px; line-height: 1.4; color: var(--text); }
.form select { appearance: none; padding-right: 34px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23333'/%3E%3C/svg%3E") right 12px center / 10px 6px no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form ::placeholder { color: #8a8f95; }
.form .check { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; font-weight: 400; line-height: 1.6; color: var(--text); }
.form .check input { margin: 4px 0 0; flex: none; }
.form .options { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.form .submit { align-items: center; }
.form .submit .btn { font-size: 16px; font-weight: 500; padding: 14px 18px; border-radius: 10px; line-height: 1.1; }
.form [aria-invalid="true"] { border-color: #d63638 !important; }
.form .field-error { font-size: 12px; color: #d63638; }
.form-msg { margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.form-msg.ok { background: #e6f6ec; color: #1d6b35; }
.form-msg.err { background: #fdecec; color: #8a1f1f; }
.form.sending button[type="submit"] { opacity: .6; pointer-events: none; }

/* Call to action */
.cta { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--ink) var(--bgi, none) center / cover; color: var(--white); }
.cta-img img { width: 100%; }
.cta-body { padding: 30px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; background: rgba(11, 31, 42, .55); }
.cta-title { color: inherit; margin: 0; }
.ribbon { position: absolute; top: 14px; right: 14px; padding: 4px 10px; background: var(--orange); color: var(--white); font-size: 12px; font-weight: 600; border-radius: 4px; }

/* Icone social */
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; color: inherit; }
.social .i { width: 20px; height: 20px; fill: currentColor; }

.html > :last-child { margin-bottom: 0; }

/* 4. Testata ---------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--light); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 92px; padding-block: 10px; }
.logo { display: inline-flex; flex: none; padding-left: 10px; }
.logo img { width: 135px; height: auto; }
.nav { flex: 1; }
.nav > ul { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; }
.nav li { position: relative; list-style: none; }
.nav a, .nav .nav-parent { display: flex; align-items: center; gap: 6px; padding: 13px 10px; color: var(--ink); font-size: 16px; font-weight: 400; line-height: 1; white-space: nowrap; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav .nav-parent:hover, .nav [aria-current="page"] { color: var(--accent); }
.nav .caret { width: 10px; height: 10px; fill: currentColor; transition: transform .2s; }
.nav ul ul { position: absolute; top: 100%; left: 0; min-width: 220px; margin: 0; padding: 6px 0; background: var(--white); border-radius: 10px; box-shadow: 0 10px 30px rgba(11, 31, 42, .12); display: none; z-index: 5; }
.nav ul ul ul { top: -6px; left: 100%; }
.nav ul ul a, .nav ul ul .nav-parent { width: 100%; padding: 10px 16px; font-size: 15px; justify-content: space-between; }
.nav li:hover > ul, .nav li:focus-within > ul, .nav li.open > ul { display: block; }
.nav ul ul .caret { transform: rotate(-90deg); }
.header-cta { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.header-cta .btn { padding: 15px; border-radius: 10px; font-size: 16px; font-weight: 400; box-shadow: none; }
.wa { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 10px; background: #25d366; color: var(--white); flex: none; }
.wa:hover { color: var(--white); background: #1ebe5a; }
.wa svg { width: 25px; height: 25px; fill: currentColor; }
.menu-toggle { display: none; width: 30px; height: 30px; padding: 4px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 100%; height: 100%; fill: currentColor; }

@media (max-width: 1024px) {
  .site-header .wrap { min-height: 72px; gap: 10px; padding: 0 10px; flex-wrap: wrap; }
  .logo { padding-left: 0; order: 0; }
  .logo img { width: 79px; }
  .menu-toggle { display: inline-flex; order: 1; }
  .header-cta { order: 2; gap: 10px; }
  .header-cta .btn { font-size: 14px; padding: 17px 10px 17px 15px; }
  .nav { order: 3; flex-basis: 100%; display: none; padding-bottom: 10px; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; background: var(--white); border-radius: 10px; }
  .nav ul ul, .nav ul ul ul { position: static; display: none; box-shadow: none; padding: 0 0 0 14px; min-width: 0; border-radius: 0; }
  .nav li:hover > ul, .nav li:focus-within > ul { display: none; }
  .nav li.open > ul { display: block; }
  .nav a, .nav .nav-parent { width: 100%; justify-content: space-between; font-size: 14px; }
  .nav li.open > .nav-parent .caret { transform: rotate(180deg); }
}
@media (max-width: 767px) {
  .header-cta .btn { width: auto; }
}

/* Popup preventivo */
.modal { width: min(640px, calc(100% - 20px)); max-height: calc(100% - 20px); padding: 30px; border: 0; border-radius: 15px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); color: var(--text); }
.modal::backdrop { background: rgba(0, 0, 0, .6); }
.modal h2 { margin: 0 0 4px; color: var(--primary); font-size: 30px; }
.modal-sub { margin: 0 0 20px; color: var(--primary); font-size: 16px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; padding: 6px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.modal-close svg { width: 100%; height: 100%; fill: currentColor; }
@media (max-width: 767px) { .modal { padding: 30px 15px 20px; } .modal h2 { font-size: 23px; } }

/* Banner cookie */
.cookie { position: fixed; right: 10px; bottom: 10px; z-index: 60; width: min(526px, calc(100% - 20px)); padding: 15px 20px 18px; background: var(--white); border-radius: 0; box-shadow: 0 0 10px rgba(0, 0, 0, .35); font-size: 12px; text-align: center; }
.cookie-title { margin: 0 0 10px; font-size: 15px; font-weight: 500; color: #191e23; }
.cookie p { margin: 0 0 14px; line-height: 1.5; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions button { flex: 1; padding: 10px; border: 1px solid #f9f9f9; border-radius: 0; background: #f9f9f9; color: #222; font-size: 15px; cursor: pointer; }
.cookie-actions .accept { background: #1e73be; border-color: #1e73be; color: var(--white); }
.cookie-links { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.cookie-links a { font-size: 12px; text-decoration: underline; color: #191e23; }
.cookie-close { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; padding: 2px; border: 2px solid #191e23; background: none; cursor: pointer; line-height: 0; }
.cookie-close svg { width: 100%; height: 100%; fill: #191e23; }
.cookie-manage { position: fixed; left: 10px; bottom: 0; z-index: 40; padding: 8px 12px; border: 0; border-radius: 5px 5px 0 0; background: var(--line); font-size: 12px; cursor: pointer; }

/* Piè di pagina ------------------------------------------------------- */
.cta-band { background: var(--sky); padding: 50px 0; }
.cta-band .wrap { display: flex; gap: 0; align-items: center; }
.cta-band .col { flex: 0 0 50%; padding: 10px; display: flex; flex-direction: column; gap: 20px; }
.cta-band h2 { margin: 0; font-size: 22px; line-height: 1; color: var(--ink); }
.cta-band p { margin: 0; }
.quote-box { background: var(--white); border: 1px solid var(--line); border-radius: 15px; padding: 30px; }
.quote-box h3 { margin: 0 0 16px; font-size: 30px; font-weight: 600; line-height: 1; color: var(--primary); }
.quote-box .sub { margin: 0 0 20px; font-size: 18px; line-height: 1; color: var(--primary); }
@media (max-width: 767px) {
  .cta-band .wrap { flex-direction: column-reverse; }
  .cta-band .col { flex-basis: auto; width: 100%; }
  .quote-box { padding: 30px 10px; }
  .quote-box h3 { font-size: 23px; }
}

.reviews-band { padding: 60px 0; }
.reviews-band .wrap { display: flex; flex-direction: column; gap: 20px; }
.reviews-band h2 { margin: 0; }
.reviews-band .text p { margin: 0; }

.site-footer { background: var(--ink); color: var(--line); padding: 60px 0 0; font-size: 15px; }
.site-footer .cols { display: flex; gap: 0; }
.site-footer .col-about { width: 42.9%; padding-right: 228px; display: flex; flex-direction: column; gap: 20px; justify-content: space-between; }
.site-footer .col-links, .site-footer .col-contacts { width: 28.6%; display: flex; flex-direction: column; gap: 20px; }
.site-footer .f-logo { width: 130px; }
.site-footer p { margin: 0; font-weight: 300; line-height: 1.5; }
.site-footer .f-title { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.2; color: var(--line); }
.site-footer a { color: var(--line); font-weight: 400; }
.site-footer a:hover { color: var(--accent); }
.site-footer .ilist { gap: 4px; }
.site-footer .ilist .i { fill: var(--line); }
.f-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.f-menu a { display: block; padding: 6px 0; font-size: 15px; }
.f-bottom { margin-top: 40px; padding: 10px 0 20px; border-top: 1px solid var(--accent); text-align: center; }
.f-bottom .copy { color: var(--white); margin-bottom: 4px; }
.f-bottom .disclaimer { color: #c0c0c0; font-weight: 400; }
.site-footer .social a { color: var(--white); }
@media (max-width: 1024px) { .site-footer .col-about { padding-right: 40px; } }
@media (max-width: 767px) {
  .site-footer { padding-inline: 10px; }
  .site-footer .cols { flex-direction: column-reverse; gap: 30px; }
  .site-footer .col-about, .site-footer .col-links, .site-footer .col-contacts { width: 100%; padding: 0; }
  .site-footer p, .f-bottom .copy { font-size: 14px; }
}

/* 5. Modelli di pagina ------------------------------------------------ */

/* Testata di città, servizi e home */
.hero { background: var(--light); padding-top: 50px; }
.hero-grid { display: flex; align-items: center; gap: 20px; }
.hero-text { width: 58.9%; padding: 10px; display: flex; flex-direction: column; gap: 20px; }
.hero-text h1 { margin: 0; line-height: 1; }
.hero-text .lead { margin: 0; }
.hero-media { width: 39.3%; padding: 10px; }
.hero-media img { width: 100%; border-radius: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px; padding: 10px; }
.hero-actions .btn { font-size: 15px; padding: 15px; border-radius: 10px; }
.hero-actions .btn-white { --bc: var(--primary); }
.stats { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-evenly; margin-top: 64px; margin-bottom: -35px; padding: 20px 0; background: var(--white); border: 2px solid var(--line); border-radius: 20px; }
.stats-rating { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px; row-gap: 2px; padding: 0 20px; }
.stats-rating img { grid-row: span 2; width: 42px; height: 42px; }
.stats-rating .score { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-transform: uppercase; }
.stats-rating .score .stars { --ss: 14px; }
.stats-rating a { font-size: 14px; font-weight: 600; text-transform: uppercase; color: var(--text); }
.stat { padding-left: 10px; border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 26px; font-weight: 700; line-height: .85; color: var(--primary); margin: 8px 0 6px; }
.stat span { display: block; line-height: 1.12; }
.hero + .page-body { padding-top: 75px; }
.hero + .page-body.content-elementor { padding-top: 117px; }
.page-body { padding: 50px 0 60px; }
.page-body.content-elementor { padding-bottom: 0; }
.page-body > .wrap, .article-body > .wrap { max-width: 1140px; padding: 0 10px; }
@media (max-width: 767px) {
  .hero { padding-top: 20px; }
  .hero-grid { flex-direction: column; }
  .hero-text, .hero-media { width: 100%; }
  .hero-actions { gap: 10px; }
  .hero > .wrap, .post-hero > .wrap, .archive-hero > .wrap { padding-inline: 0; }
  .stats { flex-wrap: wrap; gap: 10px; margin-top: 30px; }
  .stats-rating { width: 100%; justify-content: center; }
  .stat { width: calc(50% - 10px); border-left: 0; text-align: center; padding: 0; }
}

/* Articoli del blog */
.post-hero { background: var(--light); padding: 50px 0; }
.post-hero .wrap { display: flex; align-items: center; gap: 30px; }
.post-hero .ph-text { flex: 1; display: flex; flex-direction: column; gap: 20px; padding: 10px; }
.post-hero h1 { margin: 0; line-height: 1; }
.post-hero .lead { margin: 0; }
.post-hero .ph-media { width: 50%; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 10px; }
.post-hero .ph-media img { width: 100%; border-radius: 15px; }
.post-info { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.post-info a { color: var(--primary); }
.share { display: flex; flex-wrap: wrap; gap: 10px; }
.share a { display: inline-flex; align-items: stretch; border: 2px solid var(--primary); border-radius: 3px; color: var(--primary); font-size: 13px; font-weight: 600; line-height: 1; }
.share a span:first-child { display: flex; align-items: center; padding: 8px 10px; background: var(--primary); }
.share svg { width: 13px; height: 13px; fill: var(--white); }
.share a span:last-child { display: flex; align-items: center; padding: 8px 16px; }
.share a:hover { color: var(--accent); border-color: var(--accent); }
.share a:hover span:first-child { background: var(--accent); }
.article-body { padding: 40px 0 20px; }
.article-cta { margin: 30px 0; padding: 30px; background: var(--sky); border: 1px solid #d6ecf5; border-radius: 15px; text-align: center; }
.article-cta .cta-title { margin: 0 0 10px; font-size: 24px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.article-cta p { margin: 0 0 18px; }
.author-box { display: flex; gap: 20px; align-items: flex-start; margin: 30px 0 0; padding: 20px 0; border-top: 1px solid var(--line); }
.author-box img { width: 80px; height: 80px; border-radius: 50%; flex: none; }
.author-box h4 { margin: 0 0 6px; color: var(--ink); font-size: 18px; }
.author-box p { margin: 0; font-size: 14px; }
.related { padding: 40px 0 60px; }
.related h3 { margin: 0 0 24px; font-size: 22px; font-weight: 500; line-height: 1; color: var(--text); }
@media (max-width: 767px) {
  .post-hero { padding: 20px 0 30px; }
  .post-hero .wrap { flex-direction: column; }
  .post-hero .ph-media { width: 100%; }
}

/* Archivi (categorie, tag, regioni) */
.archive-hero { background: var(--light); padding: 50px 0; }
.archive-hero .wrap { display: flex; align-items: center; gap: 30px; }
.archive-hero .ah-text { flex: 1; display: flex; flex-direction: column; gap: 20px; padding: 10px; }
.archive-hero h1 { margin: 0; }
.archive-hero .ah-media { width: 49%; padding: 10px; }
.archive-hero .ah-media img { width: 100%; border-radius: 15px; }
.archive-list { padding: 50px 0 60px; }
@media (max-width: 767px) {
  .archive-hero .wrap { flex-direction: column; }
  .archive-hero .ah-media { width: 100%; }
}

/* Pagine semplici */
.simple-page { padding: 40px 0 60px; }
.simple-page h1 { margin-bottom: 24px; }

/* 6. Contenuti degli articoli (ex blocchi Gutenberg) ------------------ */

.prose > * + h2, .prose > * + h3 { margin-top: 1.2em; }
.prose h2 { font-size: 32px; }
.prose img { border-radius: 6px; }
.prose figure { margin: 0 0 1.2em; }
.prose ul, .prose ol { padding-left: 40px; }
.prose li > ul, .prose li > ol { margin-bottom: 0; }
.prose blockquote { margin: 0 0 1.2em; padding: 6px 0 6px 18px; border-left: 4px solid var(--accent); font-style: italic; }
.prose pre, .prose .code { overflow-x: auto; padding: 14px; background: #f5f7f9; border-radius: 6px; font-size: 14px; }
.prose code { font-size: .92em; }
.prose .table { overflow-x: auto; }
.prose table { margin: 0 0 1.2em; font-size: 15px; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid #ccc; text-align: left; vertical-align: top; }
.prose thead th { background: #f3f3f3; }
.prose .striped tbody tr:nth-child(odd) { background: #f6f6f6; }
.prose .fr { float: right; margin: 0 0 1em 1.5em; }
.prose .fl { float: left; margin: 0 1.5em 1em 0; }
.prose .tc { text-align: center; }
.prose .wp-row { display: flex; flex-wrap: nowrap; gap: 1em; align-items: center; }
.prose .gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.prose .gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.prose .gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.prose .gallery img { width: 100%; height: 100%; object-fit: cover; }
.prose .faq-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.2em; }
.prose .faq-q { margin: 0 0 6px; }
.prose .faq-a > :last-child { margin-bottom: 0; }
[class*="bg-"]:not(.btn) { padding: 1.25em 2.375em; }
.bg-amber { background: #fcb900; }
.bg-green { background: #7bdcb5; }
.bg-cyan { background: #8ed1fc; }
.bg-orange { background: #ff6900; }
.bg-red { background: #cf2e2e; color: #fff; }
.bg-pink { background: #f78da7; }
.bg-blue { background: #0693e3; color: #fff; }
.bg-teal { background: #00d084; }
.bg-gray { background: #abb8c3; }
.bg-light { background: #f3f3f3; }
.bg-white { background: #fff; }
.bg-dark { background: #000; color: #fff; }
.prose .bordered { border: 1px solid #abb8c3; }
@media (max-width: 767px) {
  .prose h2 { font-size: 24px; }
  .prose .fr, .prose .fl { float: none; margin: 0 0 1em; }
  .prose .wp-row { flex-wrap: wrap; }
  .prose .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* 7. Utilità ---------------------------------------------------------- */
.tc { text-align: center; }
.tr { text-align: right; }
.flex.tc { align-items: center; }
.flex.tc > * { align-self: stretch; }
.flex.tc > .btn-wrap, .flex.tc > .img { align-self: center; }
.clear::after { content: ''; display: table; clear: both; }
.map-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 320px; padding: 30px; background: #eef3f6; border-radius: var(--radius); text-align: center; font-size: 14px; }
.pratica-note { margin: 0 0 12px; padding: 8px 12px; border-left: 4px solid var(--accent); background: var(--sky); font-size: 14px; font-weight: 600; color: var(--primary); }
/* Immagine principale con didascalia */
.hero-fig { margin: 0; }
.hero-fig figcaption, .prose figcaption, .fig-cap { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted, #6b7780); text-align: center; }
.video-fig { margin: 0; }
.video-fig figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted, #6b7780); }
