/* Styles for the static replacements of WordPress plugins (ratings, share buttons, cookie bar, popups, sliders). */

/* ---------- star ratings ---------- */
.rateit { display: inline-block; vertical-align: middle; line-height: 1; }
.rateit-range { position: relative; display: inline-block; }
.rateit-range::before,
.rateit-selected::before {
  content: "\2605\2605\2605\2605\2605";
  position: absolute; left: 0; top: 0;
  letter-spacing: 0; line-height: 1; white-space: nowrap;
}
.rateit-range::before { color: #d6d6d6; }
.rateit-selected { position: absolute; left: 0; top: 0; height: 100%; overflow: hidden; }
.rateit-selected::before { color: #f5b301; }
.rateit-range { font-family: Arial, "Segoe UI Symbol", sans-serif; }
.rateit.col-md-6 .rateit-range { max-width: 100%; }

/* ---------- AddToAny share buttons (links work without the AddToAny script) ---------- */
.addtoany_list { display: inline-block; line-height: 32px; margin: 10px 0; }
.addtoany_list a { display: inline-block; vertical-align: middle; margin: 0 4px 4px 0; text-decoration: none !important; border: 0 !important; box-shadow: none !important; }
.addtoany_list a[class*="a2a_button_"]::before {
  display: inline-block; width: 32px; height: 32px; border-radius: 4px;
  color: #fff; font: bold 15px/32px Arial, sans-serif; text-align: center;
  background: #0166ff; content: "+";
}
.addtoany_list a.a2a_button_facebook::before { background: #3b5998; content: "f"; font-size: 20px; }
.addtoany_list a.a2a_button_twitter::before { background: #000; content: "X"; }
.addtoany_list a.a2a_button_google_plus::before { background: #dd4b39; content: "G+"; font-size: 13px; }
.addtoany_list a.a2a_button_facebook_messenger::before { background: #0084ff; content: "m"; font-size: 18px; }
.addtoany_list a.a2a_button_whatsapp::before { background: #12af0a; content: "w"; font-size: 18px; }
.addtoany_list a.a2a_button_pinterest::before { background: #bd081c; content: "P"; }
.addtoany_list a.a2a_button_linkedin::before { background: #007bb5; content: "in"; }
.addtoany_list a.a2a_button_email::before { background: #0166ff; content: "@"; }
.addtoany_list a.a2a_dd { display: none; }

/* ---------- cookie notice ---------- */
#cookie-notice {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100000;
  padding: 10px 15px; text-align: center; font-size: 13px; line-height: 20px;
  display: none;
}
#cookie-notice.cookie-notice-visible { display: block; }
#cookie-notice .cookie-notice-container { padding: 0; }
#cookie-notice .button,
#cookie-notice .cn-button {
  display: inline-block; margin: 0 0 0 10px; padding: 3px 12px; border-radius: 3px;
  background: #fff; color: #222 !important; font-size: 13px; text-decoration: none; cursor: pointer;
}
#cookie-notice .cn-more-info { margin-left: 6px; }

/* ---------- sliders / carousels ---------- */
.js-slider { position: relative; }
.js-slider-viewport { overflow: hidden; width: 100%; }
.js-slider-rail { display: flex; transition: transform .5s ease; will-change: transform; }
.js-slider-rail > * { box-sizing: border-box; }
.js-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 26px; line-height: 34px; cursor: pointer; padding: 0;
}
.js-slider-arrow:hover { background: rgba(0, 0, 0, .8); }
.js-slider-prev { left: 6px; }
.js-slider-next { right: 6px; }
.js-slider-dots { list-style: none; margin: 10px 0 0; padding: 0; text-align: center; }
.js-slider-dots li { display: inline-block; margin: 0 4px; padding: 0; border: 0; }
.js-slider-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #bbb; cursor: pointer; }
.js-slider-dots li.active button { background: #333; }
.carousel-wrapper .carousel.js-slider { padding: 0 44px; }
.carousel-wrapper .carousel .carousel-block { float: none; width: auto; padding: 0 10px; }
.wppsac-post-slider.js-slider .wppsac-post-slides { float: none; }
.bnews-ticker .item.ticker-in { animation: ticker-in .4s ease; }
@keyframes ticker-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- popups (newsletter) ---------- */
.snppopup, #popup.modal { display: none; }
.static-popup-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 100001; }
.static-popup-overlay.open { display: block; }
.snppopup.static-popup-open,
#popup.modal.static-popup-open {
  display: block; position: fixed; z-index: 100002; left: 50%; top: 50%;
  transform: translate(-50%, -50%); width: 660px; max-width: calc(100% - 30px); max-height: calc(100% - 30px);
  overflow: auto; margin: 0 !important; opacity: 1;
}
#popup.modal.static-popup-open .modal-dialog { margin: 0; width: auto; }
#popup .modal-content { background: #fff; border-radius: 6px; box-shadow: 0 5px 25px rgba(0, 0, 0, .4); }
#popup .modal-header { padding: 15px; border-bottom: 1px solid #e5e5e5; position: relative; }
#popup .modal-body { padding: 15px 15px 60px; }
#popup .close { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; opacity: .5; }
#popup .btn-warning { color: #fff; padding: 10px 16px; font-size: 18px; border-radius: 6px; border: 1px solid; cursor: pointer; }
.snppopup .snp-newtheme3 { background: #489668; color: #fff; font-family: Arial, sans-serif; position: relative; }
.snppopup header { padding: 25px 30px 10px; text-align: center; }
.snppopup header h2 { color: #fff; font-size: 24px; margin: 0 0 10px; }
.snppopup header h3 { color: #fff; font-size: 16px; margin: 10px 0 0; line-height: 1.4; }
.snppopup header img { max-width: 100%; height: auto; margin: 10px auto; display: block; }
.snppopup .snp-newsletter-content { background: #dbd646; padding: 20px 30px; }
.snppopup .snp-newsletter-content input[type="text"] { width: 100%; margin: 0 0 10px; padding: 10px; border: 0; }
.snppopup .snp-submit { width: 100%; padding: 12px; background: transparent; border: 4px solid #fff; color: #489668; font-weight: bold; font-size: 16px; cursor: pointer; }
.snppopup .snp-submit:hover { background: #222; border-color: #222; color: #75fa2d; }
.snppopup footer { padding: 10px 30px 15px; text-align: center; color: #fff; }
.snppopup footer a { color: #fff; text-decoration: underline; }
.snppopup footer img { vertical-align: middle; margin-right: 5px; }
.snppopup .snp-close {
  position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: #222; color: #fff; text-align: center; line-height: 30px; text-decoration: none;
}
.snppopup .snp-close::before { content: "\00d7"; font-size: 22px; }

/* ---------- newsletter / mailpoet widgets ---------- */
.mailpoet_hp_email_label { display: none !important; }
.mailpoet_form .mailpoet_paragraph { margin-bottom: 10px; }
.mailpoet_form .mailpoet_text { width: 100%; max-width: 100%; padding: 6px; }
.tnp-widget .tnp-field { margin-bottom: 10px; }
.tnp-widget input.tnp-email { width: 100%; padding: 6px; }
.tnp-widget label { display: block; }
.tnp-widget .tnp-submit { padding: 6px 14px; cursor: pointer; }
form.sent::after { content: "Grazie! Completa l'invio dal tuo programma di posta."; display: block; margin-top: 8px; font-size: 13px; }

/* ---------- theme fixes for the missing scripts ---------- */
.search-box.reveal-search { display: block; z-index: 99; }
#scroll-up.visible { display: block; cursor: pointer; }
.collapse.in { display: block; }
.dropdown.open > .dropdown-menu { display: block; }
.wpcf7-form p { margin-bottom: 12px; }
.wpcf7-form input:not([type=submit]):not([type=checkbox]), .wpcf7-form textarea { width: 100%; max-width: 100%; }
img[src="/assets/missing.svg"] { background: #f2f2f2; }
#search-results:empty::before { content: "Ricerca in corso\2026"; }

/* aReview hides #page until its script fades it in */
body > #page { display: block; }
.js-slider { visibility: visible !important; opacity: 1 !important; }
/* logo text when the logo image was never archived */
.text-logo { display: inline-block; font: 700 44px/1.1 Poppins, Roboto, Arial, sans-serif; color: #042738; letter-spacing: -1px; padding: 20px 0; }
