/* ============================================================
   layout.css — Stili condivisi RS Rental
   top-bar, footer, modal PDF
   ============================================================ */

/* TOP BAR */
.top-bar {
    background: #1a3c6e; color: #fff;
    padding: 10px 24px; display: flex;
    justify-content: space-between; align-items: center;
}
.top-bar a { color: #fff; text-decoration: none; font-size: 14px; }
.top-bar a:hover { opacity: .85; }
.cart-link { position: relative; font-size: 14px; }
.cart-badge-top {
    display: inline-flex; align-items: center; justify-content: center;
    background: #e74c3c; color: #fff;
    border-radius: 50%; font-size: 11px;
    width: 18px; height: 18px;
    margin-left: 4px; vertical-align: middle;
}

/* MODAL PDF */
.pdf-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.6); z-index: 9999;
    align-items: center; justify-content: center;
}
.pdf-modal-overlay.open { display: flex; }
.pdf-modal {
    background: #fff; border-radius: 10px;
    width: 90%; max-width: 860px; height: 88vh;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.pdf-modal-header {
    background: #1a3c6e; color: #fff;
    padding: 12px 18px; display: flex;
    justify-content: space-between; align-items: center;
}
.pdf-modal-header span { font-size: 15px; font-weight: 700; }
.pdf-modal-close {
    background: none; border: none; color: #fff;
    font-size: 22px; cursor: pointer; line-height: 1;
}
.pdf-modal iframe { flex: 1; border: none; width: 100%; }

/* FOOTER */
.site-footer {
    background: #1a3c6e; color: rgba(255,255,255,.85);
    padding: 30px 24px; margin-top: 40px;
}
.footer-inner {
    max-width: 980px; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 24px;
    justify-content: space-between; align-items: flex-start;
}
.footer-logo img { height: 70px; }
.footer-info { font-size: 13px; line-height: 1.8; }
.footer-info strong { color: #fff; font-size: 14px; }
.footer-links { font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
    color: rgba(255,255,255,.8); text-decoration: none;
    cursor: pointer; transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
    max-width: 980px; margin: 18px auto 0;
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 14px; font-size: 11px;
    color: rgba(255,255,255,.5); text-align: center;
}

/* CHECKBOX PRIVACY / CONDIZIONI */
.check-group {
    margin: 10px 0 6px; display: flex;
    align-items: flex-start; gap: 10px;
}
.check-group input[type=checkbox] {
    margin-top: 3px; width: 16px; height: 16px;
    accent-color: #1a3c6e; flex-shrink: 0; cursor: pointer;
}
.check-group label { font-size: 13px; color: #444; line-height: 1.5; cursor: pointer; }
.check-group label a { color: #1a3c6e; text-decoration: underline; cursor: pointer; }
.check-err { color: #e74c3c; font-size: 11px; margin: 0 0 8px 26px; display: none; }
