/* ==========================================================================
   Rifiniture grafiche - Studio Dott. Vincenzo Monte
   Stessi colori del template (azzurro #0085d3), resa più curata.
   ========================================================================== */

body { color: #555; font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { transition: color .2s ease, background-color .2s ease; }
img { max-width: 100%; }

/* ---------- Barra contatti in alto ---------- */
#sp-topbar { background: #1f2a33; color: rgba(255, 255, 255, .8); font-size: 13px; line-height: 1.4; }
#sp-topbar .topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 40px; }
#sp-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
#sp-topbar li { display: flex; align-items: center; }
#sp-topbar i { color: #3aa8ea; margin-right: 7px; font-size: 14px; }
#sp-topbar a { color: rgba(255, 255, 255, .85); }
#sp-topbar a:hover { color: #fff; }
#sp-topbar .topbar-cta { background: #0085d3; color: #fff; padding: 0 18px; line-height: 40px; font-weight: 600; white-space: nowrap; align-self: stretch; }
#sp-topbar .topbar-cta i { color: #fff; }
#sp-topbar .topbar-cta:hover { background: #00456d; color: #fff; }
@media (max-width: 991px) { #sp-topbar .topbar-address { display: none; } }
@media (max-width: 575px) {
	#sp-topbar { font-size: 12px; }
	#sp-topbar .topbar-email { display: none; }
	#sp-topbar .topbar-cta { padding: 0 12px; }
	#sp-topbar .container { padding-right: 0; }
}

/* ---------- Intestazione ---------- */
#sp-header { box-shadow: 0 2px 14px rgba(0, 0, 0, .06); }
#sp-header.menu-fixed { box-shadow: 0 4px 20px rgba(0, 0, 0, .1); }
.sp-megamenu-parent > li > a { letter-spacing: .6px; }
@media (max-width: 991px) {
	#sp-header > .container > .row { display: flex; align-items: center; flex-wrap: nowrap; }
	#sp-header #sp-logo { order: 2; flex: 1 1 auto; width: auto; max-width: none; text-align: center; }
	#sp-header #sp-menu { order: 1; flex: 0 0 auto; width: auto; max-width: none; }
	#sp-header #sp-top1 { order: 3; flex: 0 0 auto; width: auto; max-width: none; padding-top: 0; padding-bottom: 0; }
	#sp-header .logo { display: inline-block; height: auto; }
	#sp-header .logo a { padding: 10px 0; }
	#sp-header .logo img { max-height: 48px; width: auto; }
}

/* ---------- Slider ---------- */
.slider-index .sppb-carousel-content,
.slider-index .sppb-carousel-content * { text-shadow: 0 2px 16px rgba(0, 0, 0, .55) !important; }
.slider-index .sppb-carousel-content h2 { font-weight: 700; letter-spacing: .5px; }
.slider-index .sppb-carousel-indicators li { width: 10px; height: 10px; margin: 0 4px; border-color: #fff; }
@media (max-width: 767px) {
	.slider-index .sppb-carousel-inner > .sppb-item > img { height: 230px; width: 100%; object-fit: cover; object-position: center top; }
}

/* ---------- Titoli di sezione ---------- */
.custom-title h2 { font-weight: 700; letter-spacing: -.5px; line-height: 1.15; }
.sppb-text-center .custom-title h2:after { content: ""; display: block; width: 60px; height: 3px; background: #0085d3; margin: 18px auto 0; border-radius: 2px; }
@media (max-width: 767px) { .custom-title h2 { font-size: 32px; } }

/* ---------- Presentazione (home) ---------- */
.idoctor_excellence #mod-custom116 h2 { font-size: 30px; line-height: 1.25; color: #1c1c1c; font-weight: 700; margin: 0; }
.idoctor_excellence #mod-custom116 h2:after { content: ""; display: block; width: 60px; height: 3px; background: #0085d3; margin: 18px 0 22px; border-radius: 2px; }
.idoctor_excellence #mod-custom116 h2 + p { display: none; }
.idoctor_excellence #mod-custom116 article p { font-size: 15.5px; line-height: 1.85; color: #555; }
@media (max-width: 767px) {
	.idoctor_excellence #mod-custom116 h2 { font-size: 24px; }
	.idoctor_excellence #mod-custom116 article p { text-align: left !important; }
}

/* ---------- Modulo di prenotazione ---------- */
#sp-main-body .contact-ajax.theme1 { border-radius: 10px; overflow: hidden; box-shadow: 0 22px 45px rgba(0, 60, 100, .25); }
.contact-ajax .el-input { border: 1px solid #dde4ea; box-shadow: none; font-size: 14px; color: #333; transition: border-color .2s, box-shadow .2s; }
.contact-ajax .el-input:focus { border-color: #0085d3; box-shadow: 0 0 0 3px rgba(0, 133, 211, .18); outline: 0; }
.contact-ajax.theme1 .el-input { border-color: transparent; }
.contact-ajax #cainput_submit { font-weight: 700; letter-spacing: .8px; text-transform: uppercase; font-size: 14px; transition: background-color .2s, transform .2s; }
.contact-ajax #cainput_submit:hover { transform: translateY(-1px); }
.contact-ajax .el-ctajax-return i { font-style: normal; }

/* ---------- Servizi ---------- */
.our_services .services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.our_services .services-grid > .service-card { flex: 0 0 calc((100% - 72px) / 4); max-width: calc((100% - 72px) / 4); }
@media (max-width: 1199px) { .our_services .services-grid > .service-card { flex-basis: calc((100% - 48px) / 3); max-width: calc((100% - 48px) / 3); } }
@media (max-width: 767px) {
	.our_services .services-grid { gap: 12px; }
	.our_services .services-grid > .service-card { flex-basis: calc((100% - 12px) / 2); max-width: calc((100% - 12px) / 2); }
}
.service-card { background: #fff; border: 1px solid #eef1f4; border-radius: 10px; padding: 32px 18px 28px; text-align: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .04); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 60, 100, .12); }
.service-icon { width: 74px; height: 74px; border-radius: 50%; background: rgba(0, 133, 211, .1); color: #0085d3; display: inline-flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 18px; transition: background-color .25s, color .25s; }
.service-card:hover .service-icon { background: #0085d3; color: #fff; }
.service-icon.has-image { background: transparent; }
.service-card:hover .service-icon.has-image { background: transparent; }
.service-icon img { max-width: 60px; max-height: 60px; }
.service-title { font-size: 17px; font-weight: 600; color: #1c1c1c; margin: 0; line-height: 1.35; }
.service-text { font-size: 14px; line-height: 1.6; margin: 10px 0 0; color: #666; }
@media (max-width: 767px) {
	.service-card { padding: 22px 10px 20px; }
	.service-icon { width: 58px; height: 58px; font-size: 24px; margin-bottom: 12px; }
	.service-title { font-size: 15px; }
}

/* ---------- Testimonianze: staccate dai servizi ---------- */
.sp-page-builder .page-content #section-id-1488265152 { padding-bottom: 80px; }
#sp-page-builder .clien-say .content-client-say { margin-top: 0 !important; padding-top: 80px !important; }
#sp-page-builder .clien-say { padding-bottom: 60px; }
#sppb-addon-1488764798050 { margin-top: 0 !important; }
.clien-say .sppb-testimonial-message { font-size: 16px !important; font-style: italic; line-height: 1.8 !important; }

/* ---------- Galleria ---------- */

/* ---------- Contattaci ---------- */
#section-id-1700730813808 .sppb-row { row-gap: 20px; }
#section-id-1700730813808 .sppb-column,
#section-id-1700730813808 .sppb-column-addons,
#section-id-1700730813808 .sppb-column-addons > .clearfix { height: 100%; }
#section-id-1700730813808 .sppb-addon-feature { background: #fff; border: 1px solid #eef1f4; border-radius: 10px; padding: 30px 20px 26px; box-shadow: 0 2px 10px rgba(0, 0, 0, .04); height: 100%; transition: transform .25s, box-shadow .25s; }
#section-id-1700730813808 .sppb-addon-feature:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 60, 100, .1); }
#section-id-1700730813808 .sppb-icon .sppb-icon-container { width: 74px; height: 74px; border-radius: 50%; background: rgba(0, 133, 211, .1); display: inline-flex !important; align-items: center; justify-content: center; margin-bottom: 14px; }
#section-id-1700730813808 .sppb-icon .sppb-icon-container > i { font-size: 30px !important; }
#section-id-1700730813808 .sppb-addon-title { font-size: 13px !important; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: #888 !important; margin-bottom: 8px; }
#section-id-1700730813808 .sppb-addon-text,
#section-id-1700730813808 .sppb-addon-text a { font-size: 16px; color: #1c1c1c; font-weight: 600; }
#section-id-1700730813808 .sppb-addon-text a:hover { color: #0085d3; }
#section-id-1700730813808 .sppb-addon-text p { margin: 0; }
.contact-form-section .sppb-column { background: #fff; border: 1px solid #eef1f4; border-radius: 10px; box-shadow: 0 10px 34px rgba(0, 0, 0, .07); padding: 40px; }
.contact-form-title { font-size: 22px; font-weight: 600; color: #1c1c1c; text-align: center; margin: 0 0 30px; }
.contact-form-title i { color: #0085d3; margin-right: 6px; }
.dvm-anchor { position: relative; top: -130px; display: block; visibility: hidden; height: 0; }
@media (max-width: 767px) { .contact-form-section .sppb-column { padding: 24px 18px; } }

/* ---------- Torna su ---------- */
.dvm-totop { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: #0085d3; color: #fff; display: block; padding: 0; text-align: center; line-height: 44px; font-size: 16px; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s, background-color .2s; z-index: 999; }
.dvm-totop i { display: inline-block; line-height: 44px; margin: 0 !important; vertical-align: top; position: relative; top: -1px; }
.dvm-totop.show { opacity: 1; visibility: visible; transform: none; }
.dvm-totop:hover, .dvm-totop:focus { background: #00456d; color: #fff; }

/* ---------- Accessibilità ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #0085d3; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	*, *:before, *:after { transition: none !important; animation: none !important; }
}

/* ---------- Home: modulo di prenotazione più compatto ---------- */
#sp-main-body .contact-ajax.theme1 .pre-text { padding: 18px 15px; font-size: 18px; }
#sp-main-body .contact-ajax.theme1 .ctajax-wrap .ctajax-element .el-inner { padding: 24px 26px 26px; }
#sp-main-body .contact-ajax.theme1 .ctajax-wrap .ctajax-element .el-inner .el-ctajax-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
#sp-main-body .contact-ajax.theme1 .ctajax-wrap .ctajax-element .el-inner .el-ctajax-form .el-control { margin-bottom: 12px; min-width: 0; }
#sp-main-body .contact-ajax.theme1 .ctajax-wrap .ctajax-element .el-inner .el-ctajax-form .el-control:nth-last-child(-n+3) { grid-column: 1 / -1; }
#sp-main-body .contact-ajax.theme1 .ctajax-wrap .ctajax-element .el-inner .el-ctajax-form .el-control:last-child { margin-bottom: 0; margin-top: 4px; }
#sp-main-body .contact-ajax.theme1 .ctajax-wrap .ctajax-element .el-inner .el-ctajax-form .el-control .el-input { padding: 11px 12px; }
#sp-main-body .contact-ajax.theme1 .ctajax-wrap .ctajax-element .el-inner .el-ctajax-form .el-control textarea { min-height: 84px; }
#sp-main-body .contact-ajax.theme1 .ctajax-wrap .ctajax-element .el-inner .el-ctajax-form .el-control #cainput_submit { padding: 12px; }
.contact-ajax.theme1 .ctajax-wrap .ctajax-element .el-inner .el-ctajax-form .el-control .ca-tooltip .el-error,
.contact-ajax.theme1 .ctajax-wrap .ctajax-element .el-inner .el-ctajax-form .el-control .el-ok { height: 43px; line-height: 43px; }
@media (max-width: 400px) {
	#sp-main-body .contact-ajax.theme1 .ctajax-wrap .ctajax-element .el-inner .el-ctajax-form { grid-template-columns: 1fr; }
}

/* ---------- Domande frequenti ---------- */
.dvm-faq { background: #f4f7fa; padding: 80px 0 70px; }
.dvm-faq .custom-title h2 { font-size: 40px; }
#dvm-faq ul.yt-accordion.dvm-faq-list { max-width: 860px; margin: 10px auto 0; padding: 0; list-style: none; clear: both; }
#dvm-faq ul.yt-accordion li.yt-accordion-group { background: #fff !important; border: 1px solid #e3e9ef; border-radius: 10px; margin: 0 0 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .03); overflow: hidden; transition: box-shadow .25s; }
#dvm-faq ul.yt-accordion li.yt-accordion-group:hover { box-shadow: 0 8px 20px rgba(0, 60, 100, .08); }
#dvm-faq ul.yt-accordion li.yt-accordion-group h3.accordion-heading { display: flex; align-items: center; gap: 14px; padding: 18px 22px; margin: 0; font-size: 16px; line-height: 1.45; font-weight: 600; color: #1c1c1c; background: transparent; cursor: pointer; transition: color .2s; }
#dvm-faq ul.yt-accordion li.yt-accordion-group h3.accordion-heading:hover,
#dvm-faq ul.yt-accordion li.yt-accordion-group h3.accordion-heading.active { color: #0085d3; }
#dvm-faq ul.yt-accordion .icon_accordion { flex: 0 0 30px; height: 30px; border-radius: 50%; background: rgba(0, 133, 211, .1); color: #0085d3; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; transition: background-color .25s, color .25s; }
#dvm-faq ul.yt-accordion h3.accordion-heading.active .icon_accordion { background: #0085d3; color: #fff; }
#dvm-faq ul.yt-accordion li.yt-accordion-group .yt-accordion-inner { padding: 0 22px 20px 66px; color: #666; font-size: 15px; line-height: 1.75; background: transparent; }
@media (max-width: 767px) {
	.dvm-faq { padding: 55px 0 50px; }
	.dvm-faq .custom-title h2 { font-size: 30px; }
	#dvm-faq ul.yt-accordion li.yt-accordion-group h3.accordion-heading { padding: 15px 16px; font-size: 15px; }
	#dvm-faq ul.yt-accordion li.yt-accordion-group .yt-accordion-inner { padding: 0 16px 16px 16px; }
}

/* ---------- Fondo pagina ---------- */
.dvm-footer { background: #1f2a33; color: rgba(255, 255, 255, .72); font-size: 14.5px; line-height: 1.7; border-top: 4px solid #0085d3; }
.dvm-footer a { color: rgba(255, 255, 255, .88); }
.dvm-footer a:hover, .dvm-footer a:focus { color: #fff; }
.dvm-footer-row { padding: 60px 0 36px; }
.dvm-footer-col { margin-bottom: 26px; }
.dvm-footer-logo { display: inline-block; }
.dvm-footer-logo img { width: 290px; max-width: 100%; height: auto; filter: brightness(0) invert(1); }
.dvm-footer-brand p { margin: 18px 0 0; max-width: 400px; }
.dvm-footer-title { color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; margin: 4px 0 22px; padding-bottom: 12px; position: relative; }
.dvm-footer-title:after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: #0085d3; border-radius: 2px; }
.dvm-footer-contacts, .dvm-footer-menu { list-style: none; margin: 0; padding: 0; }
.dvm-footer-contacts li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dvm-footer-contacts i { flex: 0 0 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #3aa8ea; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.dvm-footer-menu li { margin-bottom: 8px; }
.dvm-footer-menu a { display: inline-flex; align-items: center; gap: 10px; }
.dvm-footer-menu a i { font-size: 10px; color: #3aa8ea; transition: transform .2s; }
.dvm-footer-menu a:hover i { transform: translateX(3px); }
.dvm-footer .dvm-footer-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 18px; border-radius: 4px; background: #0085d3; color: #fff; font-weight: 600; font-size: 14px; }
.dvm-footer .dvm-footer-cta:hover { background: #00456d; color: #fff; }
.dvm-credits { background: #161e24; padding: 9px 0; font-size: 11.5px; line-height: 1.4; color: rgba(255, 255, 255, .55); text-align: center; }
.dvm-footer .dvm-credits a { color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 991px) { .dvm-footer-row { padding: 45px 0 20px; } }

/* ---------- Home: box prenotazione allineato alla presentazione (non più sopra lo slider) ---------- */
#sp-main-body .contact-ajax-index1 { margin-top: 0 !important; }
.sp-page-builder .page-content #section-id-1488351252061 { padding-top: 60px !important; padding-bottom: 70px !important; }
@media (max-width: 767px) {
	.sp-page-builder .page-content #section-id-1488351252061 { padding-top: 35px !important; padding-bottom: 45px !important; }
	#sp-main-body .contact-ajax-index1 { margin-top: 25px !important; }
}

/* ---------- Galleria Lo Studio a mosaico ---------- */
.dvm-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 14px; }
.dvm-mosaic .dvm-mosaic-item { position: relative; display: block; overflow: hidden; border-radius: 10px; background: #e9eef2; box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.dvm-mosaic .dvm-mosaic-item.big { grid-column: span 2; grid-row: span 2; }
.dvm-mosaic .dvm-mosaic-item.big.big-right { grid-column: 3 / span 2; }
.dvm-mosaic .dvm-mosaic-item.wide { grid-column: span 2; }
.dvm-mosaic .dvm-mosaic-item.wide4 { grid-column: span 4; grid-row: span 2; }
.dvm-mosaic .dvm-mosaic-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.dvm-mosaic .dvm-mosaic-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(0, 69, 109, .05), rgba(0, 69, 109, .55)); opacity: 0; transition: opacity .35s ease; }
.dvm-mosaic .dvm-mosaic-overlay i { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #0085d3; font-size: 20px; line-height: 54px; text-align: center; transform: scale(.7); transition: transform .35s ease; }
.dvm-mosaic .dvm-mosaic-item:hover img, .dvm-mosaic .dvm-mosaic-item:focus img { transform: scale(1.06); }
.dvm-mosaic .dvm-mosaic-item:hover .dvm-mosaic-overlay, .dvm-mosaic .dvm-mosaic-item:focus .dvm-mosaic-overlay { opacity: 1; }
.dvm-mosaic .dvm-mosaic-item:hover .dvm-mosaic-overlay i, .dvm-mosaic .dvm-mosaic-item:focus .dvm-mosaic-overlay i { transform: scale(1); }
@media (max-width: 991px) { .dvm-mosaic { grid-auto-rows: 180px; gap: 12px; } }
@media (max-width: 767px) {
	.dvm-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
	.dvm-mosaic .dvm-mosaic-item.big, .dvm-mosaic .dvm-mosaic-item.big.big-right, .dvm-mosaic .dvm-mosaic-item.wide, .dvm-mosaic .dvm-mosaic-item.wide4 { grid-column: span 2; }
	.dvm-mosaic .dvm-mosaic-item.wide4 { grid-row: span 1; }
	.dvm-mosaic .dvm-mosaic-item { border-radius: 8px; }
}
