/*
 * Schede tecniche MuroRapido / Fissativo (Lavabile e Antimuffa)
 * Layout comune alle 4 schede, colori e font del sito (styles.css).
 * La variante colore si sceglie con la classe sul <body>:
 *   .v-lavabile  -> rosso Cinghiale
 *   .v-antimuffa -> verde (come i blocchi Antimuffa del sito)
 */
:root {
    --cinghiale-red: #E30613;
    --cinghiale-red-dark: #B30410;
    --cinghiale-yellow: #FFD700;
    --cinghiale-green: #4CAF50;
    --cinghiale-black: #1a1a1a;
    --dark-grey: #2c2c2c;
    --mid-grey: #666666;
    --light-grey: #e8e8e8;
    --row-alt: #f7f7f7;
    --accent: var(--cinghiale-red);
    --accent-text: var(--cinghiale-red-dark);
    --accent-bg: linear-gradient(135deg, #E30613 0%, #B30410 100%);
    --accent-soft: #fdecec;
}

.v-antimuffa {
    --accent: var(--cinghiale-green);
    --accent-text: #2E7D32;
    --accent-bg: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    --accent-soft: #edf7ee;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark-grey);
    background: #f0f0f0;
}

h1, h2 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.02em;
}

/* ---------- Barra comandi (solo schermo) ---------- */
.st-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f0f0f0;
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.st-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 2px solid var(--cinghiale-black);
    border-radius: 999px;
    background: #fff;
    color: var(--cinghiale-black);
    font: 700 14px 'Montserrat', sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.st-btn:hover {
    background: var(--cinghiale-black);
    color: #fff;
}

.st-btn.primary {
    border-color: var(--accent);
    background: var(--accent-bg);
    color: #fff;
}

.st-btn.primary:hover {
    filter: brightness(0.92);
}

/* ---------- Foglio ---------- */
.st-sheet {
    max-width: 900px;
    margin: 0 auto 32px;
    background: #fff;
    border-top: 6px solid var(--accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.st-head {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 40px 20px;
    border-bottom: 3px solid var(--cinghiale-yellow);
}

.st-head img {
    width: 120px;
    height: auto;
    flex-shrink: 0;
}

.st-title {
    flex: 1;
}

.st-eyebrow {
    font: 700 12px 'Montserrat', sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mid-grey);
}

.st-title h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--cinghiale-black);
}

.st-subtitle {
    margin-top: 4px;
    font-size: 16px;
    color: var(--mid-grey);
}

.st-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--accent-bg);
    color: #fff;
    font: 700 12px 'Montserrat', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.st-meta {
    display: flex;
    flex-wrap: wrap;
    background: var(--cinghiale-black);
    color: #fff;
    padding: 10px 40px;
    gap: 6px 32px;
    font-size: 13px;
}

.st-meta div {
    display: flex;
    gap: 6px;
}

.st-meta dt {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--cinghiale-yellow);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.st-body {
    padding: 8px 40px 32px;
}

.st-body section {
    margin-top: 26px;
    break-inside: avoid-page;
}

.st-body h2 {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-text);
    padding-bottom: 6px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.st-body p + p {
    margin-top: 8px;
}

.st-advantages {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 6px 20px;
}

.st-advantages li {
    position: relative;
    padding-left: 22px;
}

.st-advantages li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

/* Tabelle proprietà: Proprietà | Valore | Norma */
.st-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.st-table th,
.st-table td {
    text-align: left;
    vertical-align: top;
    padding: 8px 12px;
    border-bottom: 1px solid var(--light-grey);
}

.st-table tr:nth-child(even) {
    background: var(--row-alt);
}

.st-table th {
    width: 32%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--cinghiale-black);
}

.st-table td.st-norm {
    width: 20%;
    color: var(--mid-grey);
    font-size: 12px;
    white-space: nowrap;
}

.st-footnote {
    margin-top: 8px;
    font-size: 12px;
    color: var(--mid-grey);
}

.st-notes {
    list-style: none;
}

.st-notes li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 5px;
}

.st-notes li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 7px;
    height: 7px;
    background: var(--accent);
}

.st-callout {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    padding: 12px 16px;
}

.st-disclaimer {
    margin-top: 26px;
    font-size: 12px;
    color: var(--mid-grey);
    font-style: italic;
}

.st-foot {
    padding: 16px 40px;
    border-top: 3px solid var(--cinghiale-yellow);
    background: #fafafa;
    font-size: 12px;
    color: var(--mid-grey);
    line-height: 1.5;
}

.st-foot strong {
    font-family: 'Montserrat', sans-serif;
    color: var(--cinghiale-black);
}

/* ---------- Smartphone ---------- */
@media (max-width: 640px) {
    .st-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px 16px 16px;
    }

    .st-head img {
        width: 90px;
    }

    .st-title h1 {
        font-size: 24px;
    }

    .st-meta,
    .st-body,
    .st-foot {
        padding-left: 16px;
        padding-right: 16px;
    }

    .st-table th,
    .st-table td,
    .st-table td.st-norm {
        display: block;
        width: auto;
        border: 0;
        padding: 2px 10px;
        white-space: normal;
    }

    .st-table tr {
        display: block;
        padding: 6px 0;
        border-bottom: 1px solid var(--light-grey);
    }

    .st-table th {
        padding-top: 4px;
    }
}

/* ---------- Stampa / Salva PDF ---------- */
@page {
    size: A4;
    margin: 12mm 12mm 14mm;
}

@media print {
    body {
        background: #fff;
        font-size: 10.5pt;
    }

    .st-toolbar {
        display: none;
    }

    .st-sheet {
        max-width: none;
        margin: 0;
        box-shadow: none;
    }

    .st-head,
    .st-meta,
    .st-body,
    .st-foot {
        padding-left: 0;
        padding-right: 0;
    }

    .st-meta {
        padding-left: 10px;
        padding-right: 10px;
    }

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
