/* WM6 integration: additions to the original stylesheets */

/* Rich text from the CMS editor (Htmlarea).
   Same rendering as the original site: the reset stylesheet leaves p without margins and strong/ul unstyled.
   <b> is used where the original text had bold inline styles. */
#wrap > #content b { font-weight: bold; }
#wrap > #content em { font-style: italic; }
#wrap > #content u { text-decoration: underline; }

/* Cookie bar (cookiechoices.js, as on the original site) */
#cookieChoiceInfo { font-family: Verdana, Geneva, sans-serif; font-size: 11px !important; }
#cookieChoiceInfo a { color: #fff; text-decoration: underline; }
#cookieChoiceInfo a:hover { color: #F00; }
#cookieChoiceDismiss:hover { color: #0C0 !important; }

/* Detail pages: first photo and gallery thumbnails from WM6 image sizes */
#ft img { display: block; width: 100%; height: auto; }
div.noover img, div.noover-d img { display: block; width: 150px; height: auto; }

/* Contact form (WM6 fe() markup styled like the original form) */
.contact-form { width: 469px; margin-top: 20px; }
.contact-form .form-floating { display: flex; flex-direction: column-reverse; margin-bottom: 4px; }
.contact-form .form-floating label { display: block; }
.contact-form label span[aria-hidden="true"] { color: red; font-size: 9px; vertical-align: super; }
.contact-form .form-control, .contact-form .form-select { width: 400px; border: 1px solid #9d9ea0; font: 13px Arial, sans-serif; padding: 1px 2px; box-sizing: border-box; }
.contact-form input.form-control { height: 19px; }
.contact-form textarea.form-control { height: 96px; }
.contact-form .form-control::placeholder { color: transparent; }
.contact-form .contact-preference { margin: 2px 0 4px; }
.contact-form .contact-preference ul, .contact-form .contact-preference li, .contact-form .contact-preference .form-check { display: inline; }
.contact-form .contact-preference .form-check-label { margin: 0 4px; }
.contact-form .contact-preference .form-check-input { vertical-align: middle; }
.contact-form .form-check.form-switch { margin: 4px 0; }
.contact-form .gdpr-link { color: #4C7CD9; cursor: pointer; }
.contact-form .invalid-feedback { color: red; font-size: 11px; }
.contact-form .d-none { display: none; }
.contact-form .invio { margin-top: 25px; padding-bottom: 30px; }
.contact-form .contact-submit { font: 13px Arial, sans-serif; padding: 2px 8px; cursor: pointer; }
.contact-form .form-error, #content .form-error { color: red; }

/* "Request information" modal */
.info-request-modal { width: 520px; max-width: 100%; padding: 25px 30px; font-family: 'mulilight'; font-size: 15px; line-height: 1.3em; color: #000; }
.info-request-modal h2 { font-family: 'oswald'; font-size: 2.5em; line-height: 1.1em; margin: 0 0 10px; }
.info-request-modal .info-request-for { margin-bottom: 10px; }
.info-request-modal .info-request-for span { color: #4C7CD9; }
.info-request-modal .contact-form { width: auto; margin-top: 10px; }
.info-request-modal .gdpr-link { color: #4C7CD9; }

/* Form error alert inserted by form-processor.js under the submit button (Bootstrap markup, no Bootstrap CSS) */
.contact-form .invio { padding-bottom: 15px; }
.contact-form [errorMsgContainerWrapper] { margin-bottom: 30px; }
.contact-form #errorMsgContainer { outline: none; }
.contact-form .alert-danger { position: relative; padding: 10px 40px 10px 15px; border: 1px solid #e3a5a5; border-left: 4px solid #c62828; background: #fdecec; color: #8e1c1c; font-size: 13px; line-height: 1.4em; }
.contact-form .alert-danger .btn-close { position: absolute; top: 50%; right: 10px; width: 20px; height: 20px; margin-top: -10px; padding: 0; border: 0; background: transparent; cursor: pointer; color: #8e1c1c; font-size: 18px; line-height: 20px; }
.contact-form .alert-danger .btn-close::before { content: "\00d7"; }
.contact-form .alert-danger .btn-close:hover { color: #000; }
