/* ============================================================
 * mc-servizio.css — pagine di servizio (17/11/2026):
 * privacy-policy, cookie-policy (.ms-legale) e 404 (.ms-errore).
 * Si carica dopo mc-stile.css e mc-moto.css. 500 e maintenance sono
 * autonome (stile dentro la pagina) e non usano questo file.
 * ============================================================ */

/* ---------- Pagine da leggere: privacy e cookie ---------- */
/* titolo e testo sulla stessa colonna, centrata nella pagina */
.ms-legale .mc-wrap { max-width: calc(52rem + 2 * var(--mc-gutter)); }
.ms-legale .mm-titolone { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); }
.ms-azienda { max-width: none; font-size: 1.0625rem; font-weight: 500; line-height: 1.55; }
.ms-azienda strong { font-weight: 800; }
.ms-legale .mm-chiara { padding-block: clamp(2rem, 4vw, 3.5rem) var(--mc-sez); }

.ms-testo { line-height: 1.7; overflow-wrap: break-word; }
.ms-testo p { margin-top: 1rem; max-width: 68ch; }
.ms-testo > p:first-child { margin-top: 0; }
.ms-testo strong { font-weight: 700; }
.ms-testo h2 {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
    border-top: 1px solid var(--mc-linea);
    font-size: clamp(1.4375rem, 1.2rem + 1.1vw, 2rem);
    line-height: 1.15;
    letter-spacing: -.02em;
    scroll-margin-top: calc(var(--hh, 4.75rem) + 1rem);
}
.ms-testo > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ms-testo h3 { margin-top: 2rem; font-size: clamp(1.1875rem, 1.1rem + .35vw, 1.3125rem); line-height: 1.25; letter-spacing: -.01em; }
.ms-testo h2 + p, .ms-testo h3 + p { margin-top: .6rem; }
.ms-testo h2 + h3, .ms-testo h2 + .ms-categoria > h3:first-child { margin-top: 1.25rem; }
.ms-testo a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; transition: background-color .2s; }
.ms-testo a:hover { background: var(--mc-giallo); }
.ms-testo a.mc-btn { text-decoration: none; }
.ms-testo a.mc-btn:hover { background: var(--mc-scuro); }

.ms-testo ul, .ms-testo ol { margin-top: .9rem; max-width: 68ch; padding-left: 1.3rem; list-style: disc; }
.ms-testo ol { list-style: decimal; }
.ms-testo li { margin-top: .5rem; padding-left: .2rem; }
.ms-testo li::marker { color: var(--mc-scuro); }

/* tabelle: riquadro bianco; se non ci stanno scorrono dentro il riquadro */
.ms-tab-box { margin-top: 1.25rem; background: var(--mc-foglio); border: 1px solid var(--mc-linea); border-radius: var(--mc-angolo); overflow-x: auto; }
.ms-tab { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.ms-tab th { background: var(--mc-scuro); color: #fff; font-size: 1rem; font-weight: 700; text-align: left; padding: .7rem .9rem; line-height: 1.25; }
.ms-tab td { padding: .8rem .9rem; font-size: 1rem; line-height: 1.5; text-align: left; vertical-align: top; border-top: 1px solid var(--mc-linea-chiara); }
.ms-tab tr:nth-child(odd) td { background: #FAFAF8; }
.ms-tab td:first-child { font-weight: 700; }
.ms-tab-3 th:nth-child(1) { width: 36%; }
.ms-tab-3 th:nth-child(2) { width: 34%; }
.ms-categoria .ms-tab-3 th:nth-child(1) { width: 30%; }
.ms-categoria .ms-tab-3 th:nth-child(2) { width: 46%; }

/* telefono: ogni riga diventa una scheda, con il nome della colonna sopra il valore */
@media (max-width: 719px) {
    .ms-tab-box { background: none; border: 0; border-radius: 0; overflow: visible; }
    .ms-tab, .ms-tab tbody, .ms-tab tr, .ms-tab td { display: block; width: auto; }
    .ms-tab tr:first-child { display: none; }               /* riga dei titoli: sostituita dalle etichette */
    .ms-tab tr { background: var(--mc-foglio); border: 1px solid var(--mc-linea); border-radius: var(--mc-angolo); padding: .35rem 1rem; }
    .ms-tab tr + tr { margin-top: .75rem; }
    .ms-tab td, .ms-tab tr:nth-child(odd) td { background: none; padding: .7rem 0; font-size: 1.0625rem; }
    .ms-tab td:first-child { border-top: 0; }
    .ms-tab td::before { content: attr(data-etichetta); display: block; margin-bottom: .1rem; font-size: 1rem; font-weight: 800; color: var(--mc-muto); }
    .ms-tab td:first-child { font-weight: 700; }
}

.ms-contatti { margin-top: 1rem; padding: clamp(1.1rem, 3vw, 1.75rem); max-width: 68ch; }
.ms-contatti > p:first-child { margin-top: 0; }
.ms-torna { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--mc-linea); }
.ms-aggiornato { margin-top: 1.25rem; color: var(--mc-muto); font-size: 1rem; font-weight: 600; }
/* spazio per il pulsante verde in fondo alla lettura */
.ms-legale .ms-aggiornato { padding-right: 4.5rem; }

@media (max-width: 599px) {
    .ms-legale .mc-azioni .mc-btn, .ms-torna .mc-btn { width: 100%; }
}

/* ---------- 404 ---------- */
.ms-errore .mm-attacco { max-width: 50ch; }
.ms-vie { margin-top: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--mc-linea); }
.ms-vie li { border-top: 1px solid var(--mc-linea); }
.ms-vie a {
    display: grid;
    grid-template-columns: minmax(9rem, 1fr) minmax(0, 2fr) auto;
    align-items: center;
    gap: .25rem clamp(1rem, 3vw, 3rem);
    padding-block: clamp(1rem, 2vw, 1.6rem);
    text-decoration: none;
}
.ms-via-nome { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.ms-via-nome { justify-self: start; background: linear-gradient(var(--mc-giallo), var(--mc-giallo)) no-repeat 0 100% / 0% 100%; padding: 0 .12em; margin-left: -.12em; border-radius: .08em; transition: background-size .45s var(--mc-ease); }
.ms-vie a:focus-visible .ms-via-nome { background-size: 100% 100%; }
.ms-vie a:focus-visible svg { transform: translateX(.4rem); }
@media (hover: hover) {
    .ms-vie a:hover .ms-via-nome { background-size: 100% 100%; }
    .ms-vie a:hover svg { transform: translateX(.4rem); }
}
.ms-via-testo { color: var(--mc-muto); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); font-weight: 500; }
.ms-vie svg { transition: transform .35s var(--mc-ease); }
@media (max-width: 719px) {
    .ms-vie a { grid-template-columns: minmax(0, 1fr) auto; }
    .ms-via-nome { grid-column: 1; }
    .ms-via-testo { grid-column: 1; }
    .ms-vie svg { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 599px) {
    .ms-errore .mm-testata .mc-azioni { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
    .ms-via-nome, .ms-vie svg { transition: none; }
}

/* telefono, tabelle dei cookie (valori brevi): etichetta a sinistra, valore a destra */
@media (max-width: 719px) {
    .ms-categoria .ms-tab td { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 0 .75rem; padding: .55rem 0; }
    .ms-categoria .ms-tab td::before { margin: 0; }
}
