/* Compro Oro Peschiera Borromeo — foglio di stile unico.
   Identità: blu notte profondo + oro caldo su carta avorio. Titoli in serif
   (stack di sistema, nessuna richiesta esterna), testo in Inter self-hosted. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }

:root {
  --notte: #0B1526;
  --notte-2: #122037;
  --notte-3: #1A2C4A;
  --avorio: #FBF9F4;
  --carta: #FFFFFF;
  --sabbia: #F3EFE4;
  --linea: #E6E1D4;
  --linea-2: #D5CFBF;
  --testo: #1C2433;
  --testo-2: #4C5668;
  --muto: #5F6878;
  --su-scuro: #F2EEE3;
  --su-scuro-2: #B8BFCC;
  --oro: #C9A227;
  --oro-chiaro: #E8C85A;
  --oro-scuro: #8E6F0E;
  --oro-tenue: #FBF3DB;
  --oro-linea: #EAD79A;
  --wa: #0E7A3C;
  --wa-scuro: #0B6431;
  --ok: #176E43;
  --errore: #B4322D;
  --r: 16px; --r-sm: 10px; --r-pill: 999px;
  --ombra-1: 0 1px 2px rgba(11,21,38,.06), 0 2px 6px rgba(11,21,38,.05);
  --ombra-2: 0 18px 40px -18px rgba(11,21,38,.28);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 16.5px; line-height: 1.65; color: var(--testo); background: var(--avorio); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--oro-tenue); color: var(--notte); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--notte-3); text-decoration-color: var(--oro-scuro); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--oro-scuro); text-decoration-color: var(--oro); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--notte); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { color: var(--notte); }
small, .piccolo { font-size: .88rem; }
.muto { color: var(--muto); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.wrap-stretto { max-width: 820px; margin: 0 auto; padding: 0 16px; }
.centro { text-align: center; }
.occhiello { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oro-scuro); margin-bottom: .6rem; }
.sez-scura .occhiello { color: var(--oro-chiaro); }
.sez-alt .occhiello { color: #7A5F0C; }
.intro { font-size: 1.12rem; color: var(--testo-2); max-width: 46em; }
.salta { position: absolute; left: -999px; top: 8px; background: var(--notte); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 1000; }
.salta:focus { left: 8px; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.35rem; border-radius: var(--r-pill); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; font-family: var(--sans); }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--notte); outline-offset: 2px; }
.hero .btn:focus-visible, .testata .btn:focus-visible, .sez-scura .btn:focus-visible, .cta-finale .btn:focus-visible, .footer .btn:focus-visible { outline-color: var(--oro-chiaro); }
.btn-oro { background: linear-gradient(180deg, var(--oro-chiaro), var(--oro)); color: var(--notte); box-shadow: 0 6px 18px -8px rgba(201,162,39,.8); }
.btn-oro:hover { color: var(--notte); box-shadow: 0 10px 22px -8px rgba(201,162,39,.9); }
.btn-notte { background: var(--notte); color: #fff; }
.btn-notte:hover { background: var(--notte-3); color: #fff; }
.btn-ghost { background: transparent; color: var(--notte); border-color: var(--linea-2); }
.btn-ghost:hover { border-color: var(--oro); color: var(--oro-scuro); }
.sez-scura .btn-ghost, .hero .btn-ghost, .testata .btn-ghost, .cta-finale .btn-ghost, .footer .btn-ghost { color: var(--su-scuro); border-color: rgba(255,255,255,.35); }
.sez-scura .btn-ghost:hover, .hero .btn-ghost:hover, .testata .btn-ghost:hover, .cta-finale .btn-ghost:hover, .footer .btn-ghost:hover { border-color: var(--oro-chiaro); color: var(--oro-chiaro); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-scuro); color: #fff; }
.btn-grande { padding: 1rem 1.7rem; font-size: 1.08rem; }
.btn-piccolo { padding: .5rem .95rem; font-size: .9rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Barra superiore + header */
.topbar { background: var(--notte); color: var(--su-scuro-2); font-size: .84rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
.topbar a { color: var(--su-scuro); text-decoration: none; }
.topbar a:hover { color: var(--oro-chiaro); }
.topbar .sp { margin-left: auto; }
.topbar svg { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; color: var(--oro-chiaro); }
.header { position: sticky; top: 0; z-index: 50; background: rgba(251,249,244,.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--linea); }
.header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--notte); font-family: var(--serif); font-weight: 700; font-size: 1.15rem; line-height: 1.05; letter-spacing: -.01em; }
.logo .marchio { width: 42px; height: 42px; flex: none; }
.logo .sotto { display: block; font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--oro-scuro); }
.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.nav > ul > li { position: relative; }
.nav ul a, .nav summary { display: block; padding: .55rem .75rem; border-radius: var(--r-sm); font-weight: 600; font-size: .96rem; text-decoration: none; color: var(--testo); cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav ul a:hover, .nav summary:hover, .nav ul a[aria-current="page"] { background: var(--oro-tenue); color: var(--notte); }
.nav details { position: relative; }
.nav details summary::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 7px; vertical-align: 3px; }
.nav details ul { position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: var(--carta); border: 1px solid var(--linea); border-radius: var(--r); box-shadow: var(--ombra-2); padding: .5rem; list-style: none; margin: 0; z-index: 60; }
.nav details ul a { padding: .55rem .7rem; font-weight: 500; }
.nav .cta { margin-left: .5rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--linea-2); border-radius: var(--r-sm); padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--notte); margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }
@media (max-width: 1159px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--carta); border-bottom: 1px solid var(--linea); padding: .8rem 16px 1.2rem; box-shadow: var(--ombra-2); max-height: calc(100vh - 65px); max-height: calc(100dvh - 65px); overflow-y: auto; }
  .nav.aperta { display: block; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav ul a, .nav summary { padding: .75rem .6rem; font-size: 1.02rem; }
  .nav details ul { position: static; box-shadow: none; border: 0; padding: 0 0 .4rem .8rem; min-width: 0; }
  .nav .cta { margin: .6rem 0 0; display: flex; }
  .header .wrap { min-height: 64px; }
  .logo { font-size: 1.02rem; }
  .topbar .sp { display: none; }
  .topbar .indirizzo { display: none; }
}

/* Hero */
.hero { background: radial-gradient(1200px 600px at 85% -10%, rgba(201,162,39,.28), transparent 60%), linear-gradient(160deg, var(--notte) 0%, var(--notte-2) 55%, #0E1A30 100%); color: var(--su-scuro); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--oro), transparent); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .9fr; gap: 2.5rem; align-items: center; padding-top: 3.6rem; padding-bottom: 3.6rem; }
.hero h1 { color: #fff; margin-bottom: .6rem; }
.hero h1 em { font-style: normal; color: var(--oro-chiaro); }
.motto { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--oro-chiaro); font-style: italic; margin: 0 0 1.1rem; }
.hero .intro { color: var(--su-scuro-2); font-size: 1.1rem; }
.punti { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .55rem; }
.punti li { display: flex; gap: .65rem; align-items: flex-start; font-size: 1.02rem; }
.punti li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--oro) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1526' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.2 4L19 7'/></svg>") center/14px no-repeat; }
.punti strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-nota { margin-top: 1rem; font-size: .86rem; color: var(--su-scuro-2); }
.card-prezzo { background: rgba(255,255,255,.06); border: 1px solid rgba(232,200,90,.35); border-radius: var(--r); padding: 1.4rem 1.5rem; backdrop-filter: blur(6px); box-shadow: var(--ombra-2); }
.card-prezzo h2 { color: #fff; font-size: 1.15rem; margin-bottom: .2rem; }
.card-prezzo .data { font-size: .82rem; color: var(--su-scuro-2); margin-bottom: 1rem; }
.card-prezzo table { width: 100%; border-collapse: collapse; }
.card-prezzo td, .card-prezzo th { padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.1); text-align: left; font-size: .98rem; }
.card-prezzo th { font-weight: 500; color: var(--su-scuro-2); }
.card-prezzo .muto { color: var(--su-scuro-2); }
.card-prezzo td { text-align: right; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.card-prezzo tr:first-child td { color: var(--oro-chiaro); font-size: 1.25rem; }
.card-prezzo .nota { font-size: .78rem; color: var(--su-scuro-2); margin: .8rem 0 0; line-height: 1.45; }
.card-prezzo .btn { margin-top: 1rem; width: 100%; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 2.4rem; padding-bottom: 2.4rem; gap: 1.6rem; } }

/* Nastro fiducia */
.fiducia { background: var(--carta); border-bottom: 1px solid var(--linea); }
.fiducia ul { list-style: none; margin: 0; padding: .9rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.fiducia li { display: flex; gap: .65rem; align-items: center; font-size: .95rem; font-weight: 600; color: var(--notte); }
.fiducia svg { width: 30px; height: 30px; flex: none; }
@media (max-width: 860px) { .fiducia ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .fiducia ul { grid-template-columns: 1fr; } }

/* Sezioni */
.sez { padding: 3.6rem 0; }
.sez-alt { background: var(--sabbia); }
.sez-bianca { background: var(--carta); }
.sez-scura { background: var(--notte); color: var(--su-scuro); }
.sez-scura h2, .sez-scura h3 { color: #fff; }
.sez-scura p { color: var(--su-scuro-2); }
.sez-scura a { color: var(--oro-chiaro); }
.testa { max-width: 760px; margin-bottom: 2rem; }
.testa.centro { margin-left: auto; margin-right: auto; }
.griglia { display: grid; gap: 1.2rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* Card */
.card { background: var(--carta); border: 1px solid var(--linea); border-radius: var(--r); padding: 1.4rem; box-shadow: var(--ombra-1); position: relative; }
a.card, .card.link { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.card:hover, .card.link:hover { transform: translateY(-3px); box-shadow: var(--ombra-2); border-color: var(--oro-linea); }
.card h3 { margin-top: .4rem; }
.card p { color: var(--testo-2); margin-bottom: .4rem; }
.card .freccia { color: var(--oro-scuro); font-weight: 700; font-size: .92rem; }
.ico { width: 48px; height: 48px; border-radius: 12px; background: var(--oro-tenue); display: grid; place-items: center; color: var(--oro-scuro); }
.ico svg { width: 26px; height: 26px; }
.card-passo { counter-increment: passo; }
.card-passo .num { font-family: var(--serif); font-size: 2.4rem; color: var(--oro-scuro); line-height: 1; font-weight: 700; }
.card-art { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-art .cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--notte-2), var(--notte-3)); display: grid; place-items: center; color: var(--oro-chiaro); font-family: var(--serif); font-size: 1.1rem; padding: 1rem; text-align: center; }
.card-art .cover img { width: 100%; height: 100%; object-fit: cover; }
.card-art .corpo { padding: 1.2rem 1.3rem 1.3rem; }
.card-art .meta { font-size: .82rem; color: var(--muto); margin-bottom: .4rem; }
.card-art h3 { font-size: 1.12rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .85rem; border-radius: var(--r-pill); background: var(--carta); border: 1px solid var(--linea-2); font-size: .92rem; font-weight: 600; color: var(--notte); text-decoration: none; }
.chip:hover { border-color: var(--oro); color: var(--oro-scuro); }
.chip.oro { background: var(--oro-tenue); border-color: var(--oro-linea); }
.sez-scura .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: var(--su-scuro); }

/* Blocco promessa pagamento */
.promessa { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.cifra { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.2rem); color: var(--oro-chiaro); line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.cifra small { display: block; font-family: var(--sans); font-size: 1rem; color: var(--su-scuro-2); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-top: .5rem; }
@media (max-width: 860px) { .promessa { grid-template-columns: 1fr; } }

/* Calcolatore */
.calc { background: var(--carta); border: 1px solid var(--oro-linea); border-radius: var(--r); padding: 1.6rem; box-shadow: var(--ombra-2); }
.calc-righe { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.calc label, .calc .calc-etichetta { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 .4rem; }
.calc-tab, .calc-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.calc-tab button, .calc-chips button { border: 1px solid var(--linea-2); background: var(--carta); padding: .5rem .9rem; border-radius: var(--r-pill); font-weight: 600; cursor: pointer; font-family: var(--sans); font-size: .92rem; color: var(--testo); }
.calc-tab button[aria-pressed="true"], .calc-chips button[aria-pressed="true"] { background: var(--notte); color: #fff; border-color: var(--notte); }
.calc input[type=number] { width: 100%; padding: .75rem .9rem; border: 1px solid var(--linea-2); border-radius: var(--r-sm); font-size: 1.1rem; font-family: var(--sans); }
.calc input[type=range] { width: 100%; accent-color: var(--oro); }
.calc-out { margin-top: 1.2rem; background: var(--notte); color: #fff; border-radius: var(--r-sm); padding: 1.1rem 1.3rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.calc-out .val { font-family: var(--serif); font-size: 2rem; color: var(--oro-chiaro); font-variant-numeric: tabular-nums; }
.calc-out .lbl { font-size: .9rem; color: var(--su-scuro-2); }
.calc .nota { font-size: .82rem; color: var(--muto); margin: .8rem 0 0; }
@media (max-width: 640px) { .calc-righe { grid-template-columns: 1fr; } }

/* Tabelle */
.tabella { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--linea); border-radius: var(--r-sm); background: var(--carta); }
.tabella table, .articolo table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.tabella th, .tabella td, .articolo th, .articolo td { padding: .7rem .9rem; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; }
.tabella th, .articolo th { background: var(--sabbia); font-weight: 700; color: var(--notte); font-size: .88rem; letter-spacing: .03em; text-transform: uppercase; }
.tabella tr:last-child td { border-bottom: 0; }
.articolo .tabella table { margin: 0; border: 0; }
.tabella:focus-visible { outline: 3px solid var(--notte); outline-offset: 2px; }
.tabella td.num, .tabella th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* FAQ */
.faq-lista { display: grid; gap: .7rem; }
.faq-item { background: var(--carta); border: 1px solid var(--linea); border-radius: var(--r-sm); padding: 0 1.2rem; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 1rem 2rem 1rem 0; list-style: none; position: relative; color: var(--notte); font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: .85rem; font-size: 1.5rem; color: var(--oro); font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .risposta { padding: 0 0 1.1rem; color: var(--testo-2); }
.faq-item .risposta p:last-child { margin-bottom: 0; }

/* Articolo / prosa */
.articolo { max-width: 760px; }
.articolo p, .articolo li { font-size: 1.06rem; }
.articolo h2 { margin-top: 2.2rem; font-size: 1.7rem; }
.articolo h3 { margin-top: 1.6rem; }
.articolo blockquote { margin: 1.4rem 0; padding: 1rem 1.3rem; border-left: 4px solid var(--oro); background: var(--oro-tenue); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-style: italic; }
.articolo table { margin: 1.2rem 0; background: var(--carta); border: 1px solid var(--linea); border-radius: var(--r-sm); overflow: hidden; display: table; }
.articolo .box { background: var(--carta); border: 1px solid var(--oro-linea); border-radius: var(--r); padding: 1.2rem 1.4rem; margin: 1.6rem 0; }
.articolo .box h3, .articolo .box h4 { margin-top: 0; }
.box-titolo { font-family: var(--sans); font-weight: 700; color: var(--notte); font-size: 1.05rem; margin: 0 0 .5em; }
.articolo img { border-radius: var(--r); margin: 1.4rem 0; }
.articolo .avvertenza { background: var(--sabbia); border-radius: var(--r-sm); padding: .9rem 1.1rem; font-size: .95rem; color: var(--testo-2); }
.meta-art { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .9rem; color: var(--muto); margin-bottom: 1.4rem; }
.meta-art strong { color: var(--testo-2); }
.autore { display: flex; gap: 1rem; align-items: center; background: var(--carta); border: 1px solid var(--linea); border-radius: var(--r); padding: 1.1rem 1.3rem; margin-top: 2.4rem; }
.autore .avatar { width: 56px; height: 56px; flex: none; }
.autore .avatar svg { width: 56px; height: 56px; }
.autore p { margin: 0; font-size: .95rem; color: var(--testo-2); }
.indice { background: var(--carta); border: 1px solid var(--linea); border-radius: var(--r-sm); padding: 1rem 1.2rem; margin: 1.4rem 0 2rem; font-size: .95rem; }
.indice strong { display: block; margin-bottom: .4rem; }
.indice ol { margin: 0; padding-left: 1.2em; }
.layout-lato { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
.lato { display: grid; gap: 1.2rem; }
.lato .card h3 { font-size: 1.08rem; }
.lato ul { padding-left: 1.1em; margin: 0; font-size: .95rem; }
@media (max-width: 980px) { .layout-lato { grid-template-columns: minmax(0, 1fr); } }

/* Testata pagina interna */
.testata { background: linear-gradient(160deg, var(--notte) 0%, var(--notte-2) 100%); color: var(--su-scuro); padding: 2.6rem 0 2.4rem; position: relative; }
.testata::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--oro), transparent); }
.testata h1 { color: #fff; margin-bottom: .4rem; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.testata .intro { color: var(--su-scuro-2); margin-bottom: 0; }
.briciole { font-size: .85rem; color: var(--su-scuro-2); margin-bottom: 1rem; }
.briciole ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.briciole li + li::before { content: "›"; margin: 0 .4rem 0 .1rem; color: var(--oro); }
.briciole a { color: var(--su-scuro); text-decoration: none; }
.briciole a:hover { color: var(--oro-chiaro); }
.testata .azioni { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .6rem; }

/* Modulo */
.modulo { display: grid; gap: 1rem; }
.modulo .riga { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .modulo .riga { grid-template-columns: 1fr; } }
.campo label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: var(--notte); }
.campo label .fac { font-weight: 400; color: var(--muto); }
.campo input, .campo select, .campo textarea { width: 100%; padding: .78rem .9rem; border: 1px solid var(--linea-2); border-radius: var(--r-sm); font-size: 1rem; font-family: var(--sans); background: var(--carta); color: var(--testo); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 2px solid var(--notte); outline-offset: 1px; border-color: var(--notte); }
.campo [aria-invalid="true"] { border-color: var(--errore); }
.campo textarea { min-height: 120px; resize: vertical; }
.consenso { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--testo-2); }
.consenso input { margin-top: .3rem; width: 18px; height: 18px; flex: none; accent-color: var(--oro-scuro); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.esito { padding: .9rem 1.1rem; border-radius: var(--r-sm); font-weight: 600; }
.esito:empty { padding: 0; }
.avviso-nojs { display: none; }
.avviso-nojs:target { display: block; }
.esito.ok { display: block; background: #E6F5EC; color: var(--ok); border: 1px solid #BFE3CC; }
.esito.errore { display: block; background: #FBE9E8; color: var(--errore); border: 1px solid #F1C4C1; }
.esito a { color: inherit; }
.oppure { display: flex; align-items: center; gap: 1rem; color: var(--muto); font-size: .88rem; text-transform: uppercase; letter-spacing: .1em; }
.oppure::before, .oppure::after { content: ""; flex: 1; height: 1px; background: var(--linea-2); }

/* Contatti */
.contatti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
@media (max-width: 900px) { .contatti-grid { grid-template-columns: 1fr; } }
.nap { display: grid; gap: 1rem; }
.nap .voce { display: flex; gap: .9rem; align-items: flex-start; }
.nap .voce svg { width: 24px; height: 24px; color: var(--oro-scuro); flex: none; margin-top: 2px; }
.nap .voce strong { display: block; color: var(--notte); }
.orari { width: 100%; border-collapse: collapse; }
.orari td { padding: .45rem 0; border-bottom: 1px dashed var(--linea-2); }
.orari td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.orari tr.oggi td { color: var(--oro-scuro); font-weight: 700; }
.mappa { position: relative; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; border: 1px solid var(--linea); background: var(--sabbia) repeating-linear-gradient(45deg, transparent 0 14px, rgba(11,21,38,.035) 14px 28px); display: grid; place-items: center; text-align: center; padding: 1rem; }
.mappa.caricata { display: block; padding: 0; }
.mappa .segna { font-family: var(--serif); font-size: 1.2rem; color: var(--notte); margin-bottom: .5rem; }
.mappa .caric { font-size: .85rem; color: var(--muto); margin-top: .6rem; }
.mappa #mappa-leaflet { position: absolute; inset: 0; }
.leaflet-container { font-family: var(--sans); }

/* Zone */
.zona-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.4rem 0; }
.zona-box .card { text-align: center; padding: 1.1rem; }
.zona-box .big { font-family: var(--serif); font-size: 2rem; color: var(--notte); font-weight: 700; line-height: 1; }
.zona-box .lbl { font-size: .82rem; color: var(--muto); text-transform: uppercase; letter-spacing: .08em; margin-top: .3rem; }
@media (max-width: 600px) { .zona-box { grid-template-columns: 1fr; } }

/* CTA finale */
.cta-finale { background: linear-gradient(160deg, var(--notte) 0%, var(--notte-3) 100%); color: var(--su-scuro); border-radius: var(--r); padding: 2.4rem; display: grid; grid-template-columns: 1.3fr .9fr; gap: 1.6rem; align-items: center; position: relative; overflow: hidden; }
.cta-finale::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,39,.35), transparent 70%); }
.cta-finale h2 { color: #fff; margin-bottom: .4rem; }
.cta-finale p { color: var(--su-scuro-2); margin-bottom: 0; }
.cta-finale .azioni { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: flex-end; position: relative; }
@media (max-width: 860px) { .cta-finale { grid-template-columns: 1fr; padding: 1.8rem; } .cta-finale .azioni { justify-content: flex-start; } }

/* Footer */
.footer { background: var(--notte); color: var(--su-scuro-2); padding: 3rem 0 6rem; font-size: .93rem; margin-top: 0; }
.footer a { color: var(--su-scuro); text-decoration: none; }
.footer a:hover { color: var(--oro-chiaro); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4, .footer .footer-titolo { color: #fff; font-family: var(--sans); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; line-height: 1.3; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .45rem; }
.footer .logo { color: #fff; margin-bottom: .8rem; }
.footer .logo .sotto { color: var(--oro-chiaro); }
.dati-societari { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.4rem; font-size: .82rem; color: var(--su-scuro-2); line-height: 1.6; }
.dati-societari p { margin-bottom: .4rem; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer { padding-bottom: 7rem; } }

/* WhatsApp flottante e barra mobile */
.wa-flot { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(14,122,60,.6); text-decoration: none; transition: transform .15s ease; }
.wa-flot:hover { transform: scale(1.06); color: #fff; }
.wa-flot svg { width: 30px; height: 30px; }
.sticky-mob { display: none; }
@media (max-width: 760px) {
  .wa-flot { display: none; }
  html { scroll-padding-bottom: 80px; }
  .sticky-mob { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 69; background: var(--linea-2); border-top: 1px solid var(--linea-2); padding-bottom: env(safe-area-inset-bottom); }
  .sticky-mob a { background: var(--carta); color: var(--notte); text-decoration: none; font-weight: 700; font-size: .82rem; padding: .65rem .3rem; display: grid; place-items: center; gap: 2px; }
  .sticky-mob a svg { width: 20px; height: 20px; }
  .sticky-mob a.wa { background: var(--wa); color: #fff; }
  .sticky-mob a.oro { background: var(--oro); color: var(--notte); }
}

/* Avvisi */
.avviso { background: var(--oro-tenue); border: 1px solid var(--oro-linea); border-radius: var(--r-sm); padding: .9rem 1.1rem; font-size: .95rem; }
.nastro { background: var(--oro); color: var(--notte); font-weight: 700; text-align: center; padding: .45rem 1rem; font-size: .9rem; }

/* Paginazione / elenco articoli */
.elenco-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 980px) { .elenco-art { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .elenco-art { grid-template-columns: 1fr; } }

/* Confronto */
.confronto th:first-child, .confronto td:first-child { width: 36%; }
.confronto .si { color: var(--ok); font-weight: 700; }
.confronto .no { color: var(--errore); font-weight: 700; }

/* Pagina 404 */
.p404 { padding: 5rem 0; text-align: center; }
.p404 .cifra { color: var(--oro-scuro); }

@media print {
  .topbar, .header, .wa-flot, .sticky-mob, .cta-finale, .footer-grid { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .testata { background: #fff; color: #000; }
  .hero h1, .testata h1 { color: #000; }
}

.menu-aperto .sticky-mob, .menu-aperto .wa-flot { display: none; }

/* ── correzioni della verifica di contrasto e larghezza (30/10/2026) ── */
/* il testo non allarga mai la pagina: parole lunghe, email e URL vanno a capo */
body { overflow-wrap: break-word; }
.articolo, .lato, .layout-lato > * { min-width: 0; }
/* grassetti e occhielli leggibili sui fondi scuri */
.hero strong, .testata strong, .sez-scura strong, .cta-finale strong, .card-prezzo strong, .footer strong { color: #fff; }
.card-prezzo .nota strong { color: var(--oro-chiaro); }
.hero .occhiello, .testata .occhiello, .cta-finale .occhiello { color: var(--oro-chiaro); }
/* i colori dei pulsanti non vengono sovrascritti dai link delle sezioni scure */
.btn.btn-oro, .btn.btn-oro:hover { color: var(--notte); }
.btn.btn-notte, .btn.btn-notte:hover, .btn.btn-wa, .btn.btn-wa:hover { color: #fff; }
/* menu desktop su una riga sola */
.nav ul a, .nav summary, .nav .cta { white-space: nowrap; }
@media (min-width: 1160px) {
  .nav > ul > li > a, .nav > ul > li > details > summary { padding: .5rem .6rem; font-size: .94rem; }
  .header .wrap { gap: .6rem; }
}
.header .logo { flex: none; }
