/*
 * ibisense.it — stile unico del sito.
 * Poche parole, blocchi chiari, un disegno per ogni cosa. Carattere Inter (in /fonts), niente risorse esterne.
 * Colori: il blu dell'ibis del logo, un accento rosso-arancio (ibis scarlatto), inchiostro scuro.
 */
:root {
    --inchiostro: #0b1b33;
    --testo: #1f2a3d;
    --testo-2: #52607a;
    --bordo: #dbe2ee;
    --carta: #ffffff;
    --cielo: #f3f6fc;
    --blu: #1e40af;
    --blu-scuro: #172f80;
    --blu-chiaro: #dbe6ff;
    --accento: #e4572e;
    --accento-tenue: #fde9e1;
    --verde: #0f7a41;
    --verde-tenue: #e2f4e9;
    --raggio: 18px;
    --ombra: 0 1px 2px rgba(11, 27, 51, .05), 0 12px 32px rgba(11, 27, 51, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 Inter, "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--testo); background: var(--carta); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--blu); text-decoration: none; transition: color .15s; }
/* sottolineato solo dentro i testi lunghi (privacy, guida, articoli), e leggero */
.testo p a, .testo li a, .testo td a { text-decoration: underline; text-decoration-color: rgba(30, 64, 175, .3); text-underline-offset: 3px; }
.testo p a:hover, .testo li a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--blu); outline-offset: 2px; }
h1, h2, h3 { color: var(--inchiostro); line-height: 1.12; margin: 0; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: 2.3rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; font-weight: 700; }
p { margin: 10px 0 0; }
b, strong { color: var(--inchiostro); }
@media (min-width: 800px) { h1 { font-size: 3.2rem; } h2 { font-size: 2.2rem; } }

.salta { position: absolute; left: -9999px; }
.salta:focus { left: 16px; top: 12px; z-index: 50; background: #fff; padding: 8px 14px; border-radius: 8px; }
.larga { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.media { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.stretta { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.centro { text-align: center; }
.nota { color: var(--testo-2); font-size: .95rem; }

/* ---------------------------------------------------------------- testata */
.testata { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bordo); }
.testata .larga { display: flex; align-items: center; min-height: 70px; }
.marchio { display: inline-flex; align-items: center; text-decoration: none; color: var(--inchiostro); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; margin-right: 28px; }
.marchio img { width: 38px; height: 38px; margin-right: 10px; }
.menu { display: none; align-items: center; }
.menu > a, .menu summary { color: var(--testo); font-weight: 600; text-decoration: none; padding: 8px 12px; border-radius: 10px; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: "▾"; font-size: .8em; margin-left: 4px; color: var(--testo-2); }
.menu > a:hover, .menu summary:hover, .menu details[open] summary { background: var(--cielo); }
.menu details { position: relative; }
.menu .tendina { position: absolute; top: 46px; left: 0; background: #fff; border: 1px solid var(--bordo); border-radius: 16px; box-shadow: var(--ombra); padding: 10px; min-width: 300px; display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 2px; z-index: 30; }
.menu .tendina-larga { min-width: 560px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tendina a { display: flex; align-items: center; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--inchiostro); font-weight: 600; font-size: .97rem; }
.tendina a:hover { background: var(--cielo); }
.tendina a small { display: block; color: var(--testo-2); font-weight: 400; font-size: .85rem; }
.tendina .ico { width: 34px; height: 34px; flex: none; margin-right: 10px; border-radius: 10px; background: var(--blu-chiaro); color: var(--blu); display: flex; align-items: center; justify-content: center; }
.tendina-titolo { grid-column: 1 / -1; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--testo-2); padding: 8px 10px 2px; }
.azioni { margin-left: auto; display: flex; align-items: center; }
.azioni .accedi { display: none; color: var(--testo); font-weight: 600; text-decoration: none; margin-right: 14px; }
.menu-tel { margin-left: 10px; }
.menu-tel summary { list-style: none; cursor: pointer; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--bordo); border-radius: 12px; display: flex; align-items: center; font-weight: 700; color: var(--inchiostro); }
.menu-tel summary::-webkit-details-marker { display: none; }
.menu-tel nav { position: absolute; left: 12px; right: 12px; top: 74px; background: #fff; border: 1px solid var(--bordo); border-radius: 18px; box-shadow: var(--ombra); padding: 12px; max-height: 75vh; overflow-y: auto; }
.menu-tel nav b { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--testo-2); margin: 12px 8px 4px; }
.menu-tel nav a { display: block; padding: 10px 8px; color: var(--inchiostro); font-weight: 600; text-decoration: none; border-radius: 10px; }
.menu-tel nav a:hover { background: var(--cielo); }
@media (min-width: 1020px) {
    .menu { display: flex; }
    .menu-tel { display: none; }
    .azioni .accedi { display: inline; }
}
@media (max-width: 460px) { .azioni > .bottone { display: none; } }

/* ---------------------------------------------------------------- bottoni */
.bottone { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--blu); color: #fff; font: inherit; font-weight: 700; text-decoration: none; border: 0; border-radius: 12px; cursor: pointer; }
.bottone:hover { background: var(--blu-scuro); }
.bottone-grande { min-height: 58px; padding: 0 28px; font-size: 1.08rem; border-radius: 14px; }
.bottone-chiaro { background: #fff; color: var(--inchiostro); border: 1.5px solid var(--bordo); }
.bottone-chiaro:hover { background: var(--cielo); }
.bottone-accento { background: var(--accento); }
.bottone-accento:hover { background: #c94622; }
.bottoni { margin-top: 28px; }
.bottoni .bottone { margin: 0 10px 10px 0; }

/* ---------------------------------------------------------------- sezioni */
.sezione { padding: 64px 0; }
.sezione-cielo { background: var(--cielo); }
.sezione-scura { background: var(--inchiostro); color: #c6d0e2; }
.sezione-scura h2, .sezione-scura h3, .sezione-scura b { color: #fff; }
.sezione-scura a:not(.bottone) { color: #ffb59c; }
@media (min-width: 800px) { .sezione { padding: 92px 0; } }
.occhiello { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accento); margin-bottom: 12px; }
.apertura { font-size: 1.2rem; color: var(--testo-2); max-width: 60ch; }
.sezione-scura .apertura { color: #c6d0e2; }
.titolo-sezione { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.titolo-sezione .apertura { margin-left: auto; margin-right: auto; }
.briciole { font-size: .9rem; color: var(--testo-2); margin-bottom: 16px; }
.briciole a { color: var(--testo-2); }
.briciole a:hover { color: var(--blu); }

/* apertura delle pagine: frase a sinistra, disegno a destra */
.eroe { padding: 48px 0 56px; background: linear-gradient(180deg, #fff 0%, var(--cielo) 100%); overflow: hidden; }
.eroe-griglia { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 36px; align-items: center; }
@media (min-width: 900px) { .eroe { padding: 76px 0 84px; } .eroe-griglia { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.eroe h1 { max-width: 16ch; }
.eroe .disegno { justify-self: center; width: 100%; max-width: 520px; }
.punti-eroe { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; color: var(--testo-2); font-size: .97rem; }
.punti-eroe li { margin-right: 18px; }
.punti-eroe li::before { content: "✓ "; color: var(--verde); font-weight: 700; }

/* schede: icona, titolo, una riga */
.schede { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 16px; }
@media (min-width: 640px) { .schede { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .schede-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .schede-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.scheda { background: #fff; border: 1px solid var(--bordo); border-radius: var(--raggio); padding: 24px; height: 100%; display: flex; flex-direction: column; align-items: flex-start; }
a.scheda { text-decoration: none; color: var(--testo); transition: border-color .15s, transform .15s, box-shadow .15s; }
a.scheda:hover { border-color: var(--blu); box-shadow: var(--ombra); transform: translateY(-2px); }
.scheda h3 { margin-top: 12px; }
.scheda .etichetta { margin-top: 14px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accento); }
.scheda .etichetta + h3 { margin-top: 4px; }
.scheda p { color: var(--testo-2); margin-top: 6px; }
/* in fondo alla scheda: prezzo e link sempre alla stessa altezza delle schede vicine */
.scheda .vai { margin-top: auto; padding-top: 16px; }
.scheda .prezzo-scheda { margin-top: auto; padding-top: 16px; }
.scheda .prezzo-scheda + .vai { margin-top: 4px; padding-top: 0; }
.ico-grande { width: 54px; height: 54px; border-radius: 16px; background: var(--blu-chiaro); color: var(--blu); display: flex; align-items: center; justify-content: center; }
.ico-accento { background: var(--accento-tenue); color: var(--accento); }
.prezzo-scheda { font-size: .9rem; font-weight: 700; color: var(--verde); margin-top: 10px; }

/* passi numerati */
.passi { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 18px; counter-reset: passo; }
@media (min-width: 800px) { .passi { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); } }
.passi li { counter-increment: passo; position: relative; padding: 26px 22px 22px; background: #fff; border: 1px solid var(--bordo); border-radius: var(--raggio); }
.passi li::before { content: counter(passo); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blu); color: #fff; font-weight: 800; margin-bottom: 14px; }
.passi p { color: var(--testo-2); margin-top: 6px; }

/* prezzi */
.prezzi { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 16px; }
@media (min-width: 800px) { .prezzi { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); } }
.piano { background: #fff; border: 1px solid var(--bordo); border-radius: var(--raggio); padding: 26px 22px; text-align: center; display: flex; flex-direction: column; }
.piano-evidente { border: 2px solid var(--blu); box-shadow: var(--ombra); }
.piano h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accento); }
.piano .cifra { font-size: 2.6rem; font-weight: 800; color: var(--inchiostro); margin-top: 8px; letter-spacing: -.02em; }
.piano .cifra span { font-size: 1rem; font-weight: 500; color: var(--testo-2); }
.piano ul { list-style: none; padding: 0; margin: 14px 0 0; text-align: left; }
.piano li { padding: 5px 0 5px 26px; position: relative; }
.piano li::before { content: "✓"; position: absolute; left: 0; color: var(--verde); font-weight: 800; }
.piano .bottone { width: 100%; margin-top: auto; }
.piano ul { margin-bottom: 20px; }

/* domande */
.domande details { border-top: 1px solid var(--bordo); }
.domande details:last-child { border-bottom: 1px solid var(--bordo); }
.domande summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 700; color: var(--inchiostro); }
.domande summary::-webkit-details-marker { display: none; }
.domande summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font-size: 1.5rem; color: var(--blu); }
.domande details[open] summary::after { content: "–"; }
.domande p { margin: 0 0 18px; color: var(--testo-2); }

/* fascia finale */
.invito { text-align: center; }
.invito h2 { color: #fff; }
.invito p { font-size: 1.15rem; }

/* testi lunghi (guida, privacy, cookie) */
.testo h2 { font-size: 1.5rem; margin-top: 44px; }
.testo h3 { margin-top: 26px; }
.testo ul, .testo ol { padding-left: 22px; }
.testo li + li { margin-top: 6px; }
.testo table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .95rem; }
.testo th, .testo td { border-bottom: 1px solid var(--bordo); padding: 10px 8px; text-align: left; vertical-align: top; }
.riquadro { background: var(--cielo); border-radius: var(--raggio); padding: 20px 22px; margin-top: 18px; }

/* modulo di contatto */
.contatti-griglia { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 36px; align-items: start; }
@media (min-width: 900px) { .contatti-griglia { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.modulo { background: #fff; border: 1px solid var(--bordo); border-radius: var(--raggio); padding: 26px; box-shadow: var(--ombra); color: var(--testo); }
.modulo .riga2 { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 0 16px; }
@media (min-width: 640px) { .modulo .riga2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.campo { margin-top: 16px; }
.campo label { display: block; font-weight: 700; color: var(--inchiostro); margin-bottom: 6px; font-size: .95rem; }
.campo input, .campo select, .campo textarea { width: 100%; font: inherit; color: var(--testo); background: #fff; border: 1.5px solid #b4bfd2; border-radius: 12px; padding: 12px 14px; }
.campo textarea { min-height: 110px; resize: vertical; }
/* campi a una riga tutti uguali; il menu a tendina perde l'aspetto del sistema (Safari) e prende la freccia del sito */
.campo input, .campo select { height: 54px; line-height: 1.4; }
.campo select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 46px; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352607a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat; }
.campo select::-ms-expand { display: none; }
.campo select:invalid { color: var(--testo-2); }   /* «Scegli…» grigio come un suggerimento */
.campo select option { color: var(--testo); }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--blu); outline: none; box-shadow: 0 0 0 3px var(--blu-chiaro); }
.scelta { display: flex; align-items: flex-start; margin-top: 16px; font-size: .95rem; }
.scelta input { width: 20px; height: 20px; margin: 2px 10px 0 0; flex: none; accent-color: var(--blu); }
.trappola { position: absolute; left: -9999px; }
.esito { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 700; }
.esito-ok { background: var(--verde-tenue); color: var(--verde); }
.esito-errore { background: var(--accento-tenue); color: #a8381a; }
.contatti-dirette { list-style: none; padding: 0; margin: 22px 0 0; }
.contatti-dirette li { display: flex; align-items: center; margin-top: 12px; }
.contatti-dirette .ico-grande { width: 44px; height: 44px; border-radius: 12px; margin-right: 12px; }

/* ---------------------------------------------------------------- apertura della home: dal caos all'ordine */
.caos { position: relative; height: 380px; max-width: 520px; width: 100%; justify-self: center; }
.foglio { position: absolute; width: 170px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--bordo); box-shadow: 0 10px 24px rgba(11, 27, 51, .12); font-size: .78rem; line-height: 1.35; animation-duration: 9s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.6, 0, .3, 1); }
.foglio b { display: block; font-size: .82rem; }
.foglio .tag { display: inline-block; font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; margin-bottom: 4px; }
.f-excel .tag { background: #e3f3e8; color: #157a3c; }
.f-pdf .tag { background: #fde4e1; color: #b3261e; }
.f-postit { background: #fff6b8; border-color: #f0dc6c; }
.f-postit .tag { background: #f5e37a; color: #6b5a00; }
.f-email .tag { background: var(--blu-chiaro); color: var(--blu); }
.f-dos { background: #10243f; border-color: #10243f; color: #7ee787; font-family: ui-monospace, Menlo, Consolas, monospace; }
.f-dos .tag { background: #1d3a5f; color: #9cc3ff; }
.griglia-excel { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 2px; margin-top: 4px; }
.griglia-excel i { display: block; height: 9px; background: #edf1f7; border-radius: 2px; }
/* la scheda cliente ordinata in cui finisce tutto */
.ordine { position: absolute; left: 50%; top: 50%; width: 300px; margin: -130px 0 0 -150px; background: #fff; border-radius: 18px; border: 2px solid var(--blu); box-shadow: 0 24px 50px rgba(30, 64, 175, .25); padding: 18px; animation: compare 9s infinite; }
.ordine-testa { display: flex; align-items: center; }
.ordine-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blu-chiaro); color: var(--blu); display: flex; align-items: center; justify-content: center; font-weight: 800; margin-right: 12px; }
.ordine-testa b { display: block; color: var(--inchiostro); }
.ordine-testa small { color: var(--testo-2); }
.ordine ul { list-style: none; padding: 0; margin: 14px 0 0; font-size: .85rem; }
.ordine li { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--bordo); }
.ordine li span:last-child { font-weight: 700; color: var(--inchiostro); }
.ordine .auto { margin-top: 10px; background: var(--verde-tenue); color: var(--verde); font-weight: 700; font-size: .8rem; border-radius: 10px; padding: 8px 10px; }
@keyframes compare { 0%, 38% { opacity: 0; transform: scale(.9); } 48%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.96); } }
@keyframes f1 { 0%, 22% { transform: translate(0, 0) rotate(-8deg); opacity: 1; } 44% { transform: translate(120px, 90px) rotate(0) scale(.4); opacity: 0; } 92% { transform: translate(0, 0) rotate(-8deg); opacity: 0; } 100% { opacity: 1; } }
@keyframes f2 { 0%, 24% { transform: translate(0, 0) rotate(7deg); opacity: 1; } 46% { transform: translate(-110px, 100px) rotate(0) scale(.4); opacity: 0; } 92% { transform: translate(0, 0) rotate(7deg); opacity: 0; } 100% { opacity: 1; } }
@keyframes f3 { 0%, 26% { transform: translate(0, 0) rotate(-4deg); opacity: 1; } 48% { transform: translate(110px, -40px) rotate(0) scale(.4); opacity: 0; } 92% { transform: translate(0, 0) rotate(-4deg); opacity: 0; } 100% { opacity: 1; } }
@keyframes f4 { 0%, 28% { transform: translate(0, 0) rotate(5deg); opacity: 1; } 50% { transform: translate(-120px, -60px) rotate(0) scale(.4); opacity: 0; } 92% { transform: translate(0, 0) rotate(5deg); opacity: 0; } 100% { opacity: 1; } }
@keyframes f5 { 0%, 30% { transform: translate(0, 0) rotate(-6deg); opacity: 1; } 52% { transform: translate(0, -130px) rotate(0) scale(.4); opacity: 0; } 92% { transform: translate(0, 0) rotate(-6deg); opacity: 0; } 100% { opacity: 1; } }
.f-excel { left: 0; top: 10px; animation-name: f1; }
.f-pdf { right: 0; top: 0; animation-name: f2; }
.f-postit { left: 10px; bottom: 30px; width: 150px; animation-name: f3; }
.f-email { right: 6px; bottom: 50px; animation-name: f4; }
.f-dos { left: 50%; margin-left: -85px; bottom: -6px; animation-name: f5; }
@media (max-width: 520px) { .caos { height: 340px; transform: scale(.86); } }
@media (prefers-reduced-motion: reduce) {
    .foglio { animation: none; opacity: 0; }
    .ordine { animation: none; opacity: 1; }
    a.scheda { transition: none; }
}

/* ---------------------------------------------------------------- piè di pagina */
.piede { background: var(--inchiostro); color: #a9b5ca; padding: 56px 0 24px; font-size: .95rem; }
.piede-griglia { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 30px; }
@media (min-width: 900px) { .piede-griglia { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; } }
.piede .marchio { color: #fff; }
.piede h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #ffb59c; margin-bottom: 10px; }
.piede ul { list-style: none; margin: 0; padding: 0; }
.piede li { margin-top: 7px; }
.piede a { color: #dbe3f0; text-decoration: none; }
.piede a:hover { color: #fff; }
.piede-legale { margin-top: 40px; padding-top: 18px; border-top: 1px solid #22344f; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; }
.piede-legale p { margin: 4px 16px 0 0; }

/* ---------------------------------------------------------------- blog (le schede le scrive generate-post.php) */
.blog-griglia { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 22px; }
@media (min-width: 700px) { .blog-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1050px) { .blog-griglia { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.blog-card { background: #fff; border: 1px solid var(--bordo); border-radius: var(--raggio); overflow: hidden; display: flex; flex-direction: column; }
.blog-card-cover { position: relative; height: 180px; overflow: hidden; }
.blog-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { font-size: .82rem; color: var(--testo-2); }
.blog-card-tag { display: inline-block; background: var(--blu-chiaro); color: var(--blu); font-weight: 700; border-radius: 6px; padding: 1px 8px; margin-right: 8px; }
.blog-card h3 { margin-top: 10px; font-size: 1.08rem; line-height: 1.3; }
.blog-card h3 a { color: var(--inchiostro); text-decoration: none; }
.blog-card h3 a:hover { color: var(--blu); }
.blog-card-excerpt { color: var(--testo-2); font-size: .95rem; }
.blog-card-footer { margin-top: auto; padding-top: 12px; }
.read-more { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; }
.read-more svg { margin-left: 4px; }
.sezione-scura .modulo a { color: var(--blu); }
.testo { overflow-wrap: break-word; word-wrap: break-word; }
.testo table { display: block; overflow-x: auto; max-width: 100%; }

/* ---------- link con freccia (al posto di "›") ---------- */
.vai, .freccia { display: inline-flex; align-items: center; color: var(--blu); font-weight: 700; text-decoration: none; }
.vai::after, .freccia::after { content: ""; width: 18px; height: 18px; margin-left: 6px; background: currentColor; transition: transform .15s;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
a.scheda:hover .vai::after, .freccia:hover::after { transform: translateX(3px); }
.fondo { margin-top: auto; padding-top: 16px; }

/* ---------- passi: stessa altezza, link in fondo ---------- */
.passi li { display: flex; flex-direction: column; align-items: flex-start; }

/* ---------- foto ---------- */
.foto { display: block; width: 100%; height: auto; background: var(--cielo); }
.foto-tonda { border-radius: var(--raggio); box-shadow: var(--ombra); }
/* tre passi con foto */
.passi-foto li { padding: 0; overflow: hidden; }
.passi-foto li::before { position: absolute; top: 14px; left: 14px; z-index: 1; margin: 0; box-shadow: 0 2px 10px rgba(11, 27, 51, .3); }
.passo-testo { padding: 20px 22px 22px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
/* schede con foto (settori) */
.scheda-foto { padding: 0; overflow: hidden; align-items: stretch; }
.scheda-foto .foto { transition: transform .35s; }
a.scheda-foto:hover .foto { transform: scale(1.04); }
.scheda-testo { padding: 16px 18px 18px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; background: #fff; position: relative; }
.scheda-foto h3 { margin-top: 0; font-size: 1.08rem; }
.scheda-foto .vai { padding-top: 8px; }
@media (max-width: 639px) { .schede-foto { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 12px; } .schede-foto .scheda-testo { padding: 12px 12px 14px; } .schede-foto h3 { font-size: .98rem; } }
/* foto accanto al testo */
.foto-e-testo { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 28px; align-items: center; }
@media (min-width: 900px) { .foto-e-testo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-gap: 56px; } .foto-a-destra > .foto { order: 2; } }
/* vetrina di Concierge: il video vero, dentro un telefono */
.vetrina { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 28px; align-items: center; background: #fff; border: 1px solid var(--bordo); border-radius: 24px; padding: 28px 24px; margin-bottom: 22px; box-shadow: var(--ombra); }
@media (min-width: 800px) { .vetrina { grid-template-columns: 260px minmax(0, 1fr); grid-gap: 56px; padding: 36px 56px; } }
.vetrina h3 { font-size: 2rem; }
.vetrina .apertura { margin-top: 10px; }
.telefono { justify-self: center; width: 220px; border: 9px solid var(--inchiostro); border-radius: 32px; overflow: hidden; background: var(--inchiostro); box-shadow: 0 20px 40px rgba(11, 27, 51, .18); }
.telefono video { display: block; width: 100%; height: auto; }
/* prezzi: la diagnosi in evidenza, poi le scelte */
.diagnosi { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 20px; align-items: center; background: var(--inchiostro); color: #dbe3f0; border-radius: 24px; padding: 30px 28px; }
.diagnosi h2 { color: #fff; }
.diagnosi p { margin: 8px 0 0; }
@media (min-width: 800px) { .diagnosi { grid-template-columns: minmax(0, 1fr) auto; padding: 36px 48px; } }
.diagnosi-azione { display: flex; align-items: center; flex-wrap: wrap; }
.diagnosi-azione .prezzo-grande { font-size: 1.6rem; font-weight: 800; color: #7ee2a8; margin-right: 22px; }

/* ---------- captcha «Non sono un robot» ---------- */
.captcha { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; }
.captcha-casella { position: relative; display: inline-flex; align-items: center; min-height: 52px; padding: 0 18px 0 14px; margin-right: 14px; background: var(--cielo); border: 1px solid var(--bordo); border-radius: 12px; font-weight: 700; color: var(--inchiostro); cursor: pointer; }
.captcha-casella input { width: 22px; height: 22px; margin: 0 12px 0 0; accent-color: var(--verde); cursor: pointer; }
.captcha-nota { font-size: .82rem; color: var(--testo-2); }
.captcha[data-stato=lavoro] .captcha-casella input { opacity: 0; }
.captcha[data-stato=lavoro] .captcha-casella::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -11px; border: 2px solid var(--bordo); border-top-color: var(--blu); border-radius: 50%; animation: captcha-giro .7s linear infinite; }
.captcha[data-stato=fatto] .captcha-casella { border-color: #9fd8b7; background: #eaf7ef; color: var(--verde); }
.captcha[data-stato=fatto] .captcha-casella input { opacity: 0; }
.captcha[data-stato=fatto] .captcha-casella::before { content: ""; position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 6px;
    background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.captcha[data-stato=errore] .captcha-testo { color: #b3261e; }
@keyframes captcha-giro { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .captcha[data-stato=lavoro] .captcha-casella::before { animation-duration: 2s; } }

/* ================================================================ colori a tema e fasce
 * Ogni prodotto, servizio e settore ha il suo colore (--tema, --tema-scuro, --tema-tenue, da Sito::TEMI).
 * Le fasce colorate salgono sulla sezione prima con gli angoli arrotondati: le aree si distinguono a colpo d'occhio. */
.tema .occhiello { color: var(--tema); }
.tema .ico-grande { background: var(--tema-tenue); color: var(--tema); }
.tema .vai, .tema .freccia { color: var(--tema); }
.tema .passi li::before { background: var(--tema); }
.tema .piano-evidente { border-color: var(--tema); }
.tema .piano h3 { color: var(--tema); }
.bottone-tema { background: var(--tema-scuro, var(--blu)); }
.bottone-tema:hover { background: var(--tema, var(--blu-scuro)); }
.sezione-tenue { background: var(--tema-tenue, var(--cielo)); }

.eroe-tema { background: radial-gradient(circle at 88% 18%, var(--tema-tenue) 0, rgba(255, 255, 255, 0) 52%), linear-gradient(180deg, #fff 0%, var(--tema-tenue) 100%); }
.chip-tema { display: inline-flex; align-items: center; padding: 6px 14px 6px 6px; margin-bottom: 16px; background: #fff; border: 1px solid var(--bordo); border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--tema-scuro, var(--inchiostro)); box-shadow: 0 2px 8px rgba(11, 27, 51, .06); }
.chip-tema .ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-right: 8px; border-radius: 50%; background: var(--tema, var(--blu)); color: #fff; }
/* la foto in alto, con un riquadro del colore del tema dietro */
.eroe-foto { position: relative; justify-self: center; width: 100%; max-width: 576px; padding: 0 16px 16px 0; }
.eroe-foto::before { content: ""; position: absolute; top: 22px; left: 22px; right: 0; bottom: 0; border-radius: 26px; background: var(--tema, var(--blu)); }
.eroe-foto > .foto { position: relative; border-radius: 22px; box-shadow: 0 24px 48px rgba(11, 27, 51, .18); }
@media (max-width: 640px) { .eroe-foto { padding: 0 10px 10px 0; } .eroe-foto::before { top: 14px; left: 14px; } }

.fascia { position: relative; margin-top: -36px; border-radius: 36px 36px 0 0; }
.fascia-tema { background: var(--tema-scuro); color: rgba(255, 255, 255, .82); }
.fascia-tema .titolo-sezione h2 { color: #fff; }
.fascia-tema .titolo-sezione .occhiello { color: #fff; opacity: .7; }
.fascia-tema .titolo-sezione .apertura { color: rgba(255, 255, 255, .8); }
.fascia-blu { background: linear-gradient(165deg, #1e40af 0%, #172f80 100%); color: #dbe6ff; }
.fascia-blu .titolo-sezione h2 { color: #fff; }
.fascia-blu .titolo-sezione .occhiello { color: #ffb59c; }
.fascia-sabbia { background: #fff4ee; }
.fascia-accento { background: linear-gradient(135deg, #e4572e 0%, #b93a17 100%); color: #fff; }
.fascia-accento h2, .fascia-accento .occhiello { color: #fff; }
.fascia-accento .occhiello { opacity: .8; }
.fascia-accento .apertura { color: rgba(255, 255, 255, .9); }

/* «In breve»: il disegno grande accanto alle schede */
.cosa-griglia { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 24px; align-items: center; }
@media (min-width: 960px) { .cosa-griglia { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-gap: 40px; } }
.disegno-grande { background: #fff; border-radius: 24px; padding: 18px; box-shadow: 0 24px 48px rgba(0, 0, 0, .18); }
.disegno-grande svg { display: block; width: 100%; height: auto; }
@media (min-width: 640px) { .schede-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* schede dei prodotti: foto, bollino del colore del prodotto, testo */
.scheda-prodotto .scheda-testo { padding-top: 0; }
.scheda-prodotto .bollino { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: -23px 0 10px; border-radius: 14px; background: var(--tema); color: #fff; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(11, 27, 51, .18); position: relative; z-index: 1; }
.scheda-prodotto .vai { color: var(--tema); }
.scheda-prodotto .prezzo-scheda { color: var(--tema-scuro); }
.scheda-problema .ico-grande { background: var(--accento-tenue); color: var(--accento); }
.fascia-tema .scheda, .fascia-blu .scheda { border-color: transparent; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }

/* ---------- home: eroe scuro con la foto sullo sfondo */
.eroe-scuro { position: relative; background: var(--inchiostro); color: #c6d0e2; }
.eroe-scuro .eroe-sfondo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.eroe-scuro::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; background: linear-gradient(90deg, rgba(11, 27, 51, .97) 0%, rgba(11, 27, 51, .88) 48%, rgba(11, 27, 51, .55) 100%); }
.eroe-scuro > .larga { position: relative; z-index: 2; }
.eroe-scuro h1 { color: #fff; }
.eroe-scuro .apertura { color: #d3dbea; }
.eroe-scuro .occhiello { color: #ffb59c; }
.eroe-scuro .punti-eroe { color: #c6d0e2; }
.eroe-scuro .punti-eroe li::before { color: #7ee2a8; }
@media (max-width: 899px) { .eroe-scuro::before { background: linear-gradient(180deg, rgba(11, 27, 51, .95) 0%, rgba(11, 27, 51, .85) 60%, rgba(11, 27, 51, .7) 100%); } }
.bottone-vuoto { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.bottone-vuoto:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- tre passi: il numero prende il colore del prodotto */
.passi-foto li::before { background: var(--tema, var(--blu)); }
.passi-foto .freccia { color: var(--tema, var(--blu)); }

/* ---------- settori: tessere fotografiche con il colore del settore */
.tessere { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 12px; }
@media (min-width: 900px) { .tessere { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 18px; } }
.tessera { position: relative; display: block; height: 190px; border-radius: 20px; overflow: hidden; text-decoration: none; box-shadow: 0 10px 26px rgba(11, 27, 51, .12); }
@media (min-width: 900px) { .tessera { height: 250px; } }
.tessera .foto { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tessera::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, var(--tema-scuro) 100%); opacity: .95; }
.tessera:hover .foto { transform: scale(1.05); }
.tessera-testo { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.tessera h3 { color: #fff; font-size: 1.12rem; }
.tessera .vai { color: #fff; opacity: .9; margin-top: 4px; font-size: .95rem; }
@media (max-width: 899px) { .tessera h3 { font-size: 1rem; } }

/* ---------- schede con foto: etichetta del colore */
.scheda-prodotto .etichetta { margin-top: 0; color: var(--tema); }
.fascia-blu .vetrina { border: 0; }

/* ---------- guide */
.guida-info { margin-top: 14px; font-size: .92rem; color: var(--testo-2); }
.scarica { display: flex; align-items: flex-start; margin: 36px 0 8px; padding: 22px; background: var(--tema-tenue, var(--cielo)); border-radius: var(--raggio); }
.scarica .ico-grande { flex: none; margin-right: 16px; background: #fff; }
.scarica b { font-size: 1.1rem; color: var(--inchiostro); }
.scarica p { margin: 4px 0 0; }
.testo .passo { counter-increment: passo-guida; }
.testo table th { white-space: nowrap; }
.testo code { background: var(--cielo); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.testo kbd { border: 1px solid var(--bordo); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; font: inherit; font-size: .9em; background: #fff; }
.indice { list-style: none; margin: 8px 0 0; padding: 0; }
.indice li + li { margin-top: 4px; }

/* messaggi da copiare nelle guide */
.messaggio-modello { margin: 16px 0; padding: 16px 20px; background: #fff; border: 1px solid var(--bordo); border-left: 4px solid var(--tema, var(--blu)); border-radius: 12px; box-shadow: 0 6px 18px rgba(11, 27, 51, .06); }
.messaggio-modello p { margin: 0 0 8px; }
.messaggio-modello p:last-child { margin-bottom: 0; }
.messaggio-modello ul { margin: 0 0 8px; }

/* home: i quattro prodotti principali, gli altri in una riga */
.schede-principali .scheda-prodotto h3 { font-size: 1.3rem; }
.schede-principali .scheda-prodotto p { font-size: 1rem; }
.altri-prodotti { margin-top: 26px; text-align: center; color: #dbe6ff; font-size: .95rem; }
.altri-prodotti b { color: #fff; margin-right: 6px; }
.altri-prodotti a { color: #fff; margin: 0 8px; white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }

/* ---------- aggiornamento di software obsoleto: riquadro «da → a» nella pagina del servizio */
.cambi { background: #fff; color: var(--testo); border-radius: 24px; padding: 24px 22px; box-shadow: 0 24px 48px rgba(0, 0, 0, .2); }
@media (min-width: 640px) { .cambi { padding: 28px 32px; } }
.cambi h3 { font-size: 1.25rem; margin-bottom: 8px; }
.cambi ul { list-style: none; margin: 0; padding: 0; }
.cambi li { padding: 9px 0; border-bottom: 1px solid var(--bordo); font-size: .95rem; line-height: 1.35; overflow-wrap: break-word; }
.cambi li > span { display: block; min-width: 0; }
@media (min-width: 480px) { .cambi li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-gap: 16px; align-items: center; } }
.cambi li:last-child { border-bottom: 0; }
.cambi-da { color: var(--testo-2); }
.cambi-a { font-weight: 700; color: var(--tema-scuro, var(--inchiostro)); }
.cambi-a::before { content: "→ "; color: var(--tema, var(--accento)); }
.cambi .nota { margin: 10px 0 0; font-size: .88rem; }

/* novità di Concierge nella vetrina della home */
.novita-titolo { margin: 22px 0 8px; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accento); }
.novita { list-style: none; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 8px 24px; color: var(--testo); font-size: .97rem; }
@media (min-width: 640px) { .novita { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.novita li { padding-left: 26px; position: relative; }
.novita li::before { content: "✓"; position: absolute; left: 0; color: var(--verde); font-weight: 700; }
