/*
 * LAYOUT RB Clean (tutte le pagine): header, menu, pulsanti, titoletti, blocco contatti, footer, torna su, animazioni di entrata.
 * Misure dall'originale (tema Zaver + Elementor). Mobile first; menu orizzontale da 1201px come l'originale.
 */
body { background: var(--rbc-color-bg); line-height: var(--rbc-lh-body); }
a { color: var(--rbc-color-primary); text-decoration: none; }
a:hover { color: var(--rbc-color-heading); }
p { margin: 0 0 25px; }
.rbc-content p:last-child { margin-bottom: 0; }

/* Contenitore come Zaver: 1560px utili */
.rbc-wrap { width: 100%; max-width: calc(var(--rbc-width) + 2 * var(--rbc-gutter)); margin-inline: auto; padding-inline: var(--rbc-gutter); }

/* Titoletto viola (h1/h2 piccoli dell'originale) */
.rbc-eyebrow { margin: 0 0 12px; font-family: var(--rbc-font-heading); font-size: var(--rbc-fs-eyebrow); line-height: 22px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--rbc-color-primary-dark); }

/* Pulsanti */
.rbc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 0; padding: 20px 25px 15px; border: 1px solid var(--rbc-color-primary-dark); border-radius: 10px; background: transparent; color: var(--rbc-color-primary-dark); font-family: var(--rbc-font-heading); font-size: 18px; line-height: 18px; font-weight: 600; text-transform: uppercase; transition: all .3s; }
.rbc-btn:hover { background: var(--rbc-color-primary-dark); border-color: var(--rbc-color-primary-dark); color: #fff; }

/* ---------- Header ---------- */
.rbc-header { position: sticky; top: 0; z-index: 100; background: var(--rbc-color-bg); transition: box-shadow var(--rbc-speed) var(--rbc-ease), background var(--rbc-speed) var(--rbc-ease); }
.rbc-header.is-scrolled { background: #fff; box-shadow: var(--rbc-shadow); }
.rbc-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--rbc-header-h); padding-inline: 15px; }
.rbc-logo { flex: 0 0 auto; display: inline-flex; }
.rbc-logo__img { width: 190px; max-height: none; height: auto; }
.rbc-header.is-scrolled .rbc-logo__img { max-height: none; }
.rbc-nav { order: 4; }
.rbc-header__call { display: none; margin-left: auto; padding: 20px 30px; border-radius: var(--rbc-radius-btn); background: #fff; color: var(--rbc-color-heading); font-size: 14px; line-height: 14px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; transition: all var(--rbc-speed) var(--rbc-ease); }
.rbc-header__call:hover { background: var(--rbc-color-primary); color: #fff; }
.rbc-nav-toggle { margin-left: auto; }
.rbc-nav { inset: var(--rbc-header-h) 0 0 0; background: #fff; }
.rbc-menu a { padding: 15px 0; color: var(--rbc-color-heading); font-size: 14px; line-height: 14px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; transition: color var(--rbc-speed) var(--rbc-ease); }
.rbc-menu a:hover, .rbc-menu a[aria-current="page"] { color: var(--rbc-color-primary); }
@media (min-width: 1201px) {
	.rbc-header__inner { padding-inline: 40px 50px; }
	.rbc-logo__img { width: 250px; }
	.rbc-nav-toggle { display: none; }
	.rbc-nav { order: 0; flex: 1; position: static; overflow: visible; padding: 0; background: none; visibility: visible; opacity: 1; transform: none; transition: none; }
	.rbc-nav { min-width: 0; }
	.rbc-menu { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0; }
	.rbc-menu a { padding: 10px 20px; }
	.rbc-header__call { display: inline-block; margin-left: 0; }
}
@media (max-width: 1200px) {
	.rbc-menu { display: block; }
}

/* ---------- Animazione di entrata (Elementor zoomIn, 1.25s) ---------- */
@keyframes rbc-zoom-in { from { opacity: 0; transform: scale3d(.3, .3, .3); } 50% { opacity: 1; } to { opacity: 1; transform: none; } }
.js .rbc-reveal { opacity: 0; }
.js .rbc-reveal.is-in { opacity: 1; animation: rbc-zoom-in 1.25s both; }

/* ---------- Blocco contatti (ex "Contact Area - Bottom Page") ---------- */
.rbc-contact { max-width: calc(var(--rbc-width) + 2 * var(--rbc-gutter)); margin: 80px auto 70px; padding: 10px calc(var(--rbc-gutter) + 10px); }
@media (min-width: 768px) { .rbc-contact { margin: 0 auto 100px; } }
@media (min-width: 1025px) { .rbc-contact { margin-bottom: 120px; } }
@media (min-width: 1367px) { .rbc-contact { margin-bottom: 150px; } }
.rbc-intro__btn { margin-top: 25px; }
.rbc-contact__box { display: grid; gap: 133px; padding: 70px 15px; border-radius: var(--rbc-radius-l); background: var(--rbc-color-dark); }
.rbc-contact__text { margin-top: 0; color: #fff; font-weight: 300; }
.rbc-contact__text p { margin: 0; }
.rbc-contact__phone { display: flex; align-items: flex-start; gap: 15px; margin-top: 20px; }
.rbc-contact__icon { flex: 0 0 48px; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--rbc-color-primary-dark); color: #fff; }
.rbc-contact__phone-title { margin: 3px 0 0; font-family: var(--rbc-font-body); font-size: 21px; line-height: 26px; font-weight: 600; color: var(--rbc-color-primary-dark); }
.rbc-contact__phone-num { margin: 0; font-size: 17px; line-height: 16px; }
.rbc-contact__phone-num a { color: #fff; }
/* Padding del box scuro come il template Elementor 8699 (uguale su tutte le pagine) */
@media (min-width: 768px) { .rbc-contact__box { gap: 132px; padding: 100px 15px 99px; } }
/* Pagina Contatti: il box del modulo ha la sua spaziatura (misurata dall'altro alpha) */
.rbc-ct__form .rbc-contact__box { gap: 60px; }
@media (min-width: 768px) { .rbc-ct__form .rbc-contact__box { gap: 90px; } }
@media (min-width: 1025px) { .rbc-ct__form .rbc-contact__box { gap: 0; } }
@media (min-width: 1025px) {
	.rbc-contact__box { grid-template-columns: 1fr 1fr; gap: 0; padding: 100px 30px; }
}
@media (min-width: 1367px) {
	.rbc-contact__box { padding-inline: 100px; }
	.rbc-contact__info { max-width: 510px; }
}

/* Modulo CF7 su fondo scuro (come il form Elementor dell'originale) */
.rbc-form-dark .wpcf7-form > p { margin: 0; }
.rbc-form-dark .rbc-form { margin-inline: -5px; }
.rbc-form-dark .rbc-form__row { display: flex; flex-wrap: wrap; }
.rbc-form-dark .rbc-form__field, .rbc-form-dark .rbc-form__privacy, .rbc-form-dark .rbc-form__submit { flex: 1 1 100%; margin: 0 0 15px; padding-inline: 5px; }
.rbc-form-dark .rbc-form__privacy { margin-bottom: 15px; line-height: 30px; }
.rbc-form-dark .rbc-form__submit { margin: 0; }
.rbc-form-dark .wpcf7-form-control-wrap, .rbc-form-dark .wpcf7-form-control-wrap input, .rbc-form-dark textarea { display: block; }
.rbc-form-dark .rbc-form__submit { display: flex; align-items: center; }
.rbc-form-dark .wpcf7-response-output:empty { display: none; }
.rbc-form-dark .rbc-form__field label { display: block; }
.rbc-form-dark .wpcf7-form-control-wrap { margin-top: 0; }
.rbc-form-dark .wpcf7-acceptance label { min-height: 0; align-items: center; gap: 6px; }
.rbc-form-dark .wpcf7-form input[type="checkbox"] { width: 13px; height: 13px; margin: 0; }
.rbc-form-dark .rbc-form__privacy { font-size: 14px; line-height: 30px; }
.rbc-form-dark .rbc-form__privacy input[type="checkbox"] { margin: 0 6px 0 0; vertical-align: middle; }
.rbc-contact .rbc-form-dark input[type="submit"] { min-height: 40px; height: 40px; line-height: 38px; }
@media (min-width: 768px) {
	.rbc-form-dark .rbc-form__field--half { flex-basis: 50%; }
}
.rbc-form-dark label { color: #fff; font-size: 14px; }
.rbc-form-dark .wpcf7-list-item { margin: 0; }
.rbc-form-dark .wpcf7-acceptance a { color: #fff; }
.rbc-contact .rbc-form-dark input[type="text"], .rbc-contact .rbc-form-dark input[type="email"], .rbc-contact .rbc-form-dark input[type="tel"], .rbc-contact .rbc-form-dark textarea {
	width: 100%; min-height: 60px; padding: 5px 14px 5px 20px; border: 0; border-bottom: 1px solid var(--rbc-color-line); border-radius: 0; background: transparent; color: #fff; font: 400 14px/1.4 var(--rbc-font-body);
}
.rbc-contact .rbc-form-dark textarea { height: 120px; border-radius: 0 0 15px 15px; resize: vertical; }
.rbc-form-dark ::placeholder { color: #fff; opacity: 1; }
.rbc-form-dark .wpcf7-acceptance, .rbc-form-dark .wpcf7-acceptance label { color: #fff; font-size: 14px; line-height: 30px; }
.rbc-contact .rbc-form-dark input[type="submit"] { height: 40px; padding: 0 24px; border: 1px solid var(--rbc-color-primary-dark); border-radius: 5px; background: transparent; color: #fff; font: 500 15px/15px var(--rbc-font-body); letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: all .3s; }
.rbc-contact .rbc-form-dark input[type="submit"]:hover { background: var(--rbc-color-primary-dark); }

/* ---------- Footer ---------- */
.rbc-footer { padding: 0 15px 15px; background: none; color: var(--rbc-color-text); font-size: var(--rbc-fs-body); }
.rbc-footer__bar { display: flex; align-items: center; justify-content: center; min-height: 276px; padding: 23px 25px; text-align: center; border-radius: 15px; background: var(--rbc-color-dark); }
.rbc-footer__copy { margin: 0; line-height: 30px; }
.rbc-footer a { color: var(--rbc-color-footer-link); transition: color .4s linear; }
.rbc-footer a:hover { color: var(--rbc-color-primary); }
.rbc-footer .rbc-footer__credit { color: #fff; text-decoration: underline; }
/* Altezza come l'originale (li' c'erano anche le icone social, qui non messe): 276 / 131 / 101 / 76 */
@media (min-width: 768px) { .rbc-footer__bar { min-height: 131px; justify-content: flex-start; text-align: left; } }
@media (min-width: 1025px) { .rbc-footer__bar { min-height: 101px; } }
@media (min-width: 1201px) { .rbc-footer__bar { padding-inline: 80px; } }
@media (min-width: 1367px) { .rbc-footer__bar { min-height: 76px; } }
.rbc-footer__copy a { text-decoration: underline; }

/* ---------- Torna su ---------- */
.rbc-totop { position: fixed; right: 25px; bottom: 25px; z-index: 90; display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 100px; background: var(--rbc-color-primary); color: #fff; opacity: 0; visibility: hidden; transition: all var(--rbc-speed) var(--rbc-ease); }
.rbc-totop.is-visible { opacity: 1; visibility: visible; }
.rbc-totop:hover { background: var(--rbc-color-dark); color: #fff; }

/* ---------- Fase 7, mobile: aree di tocco, testi lunghi, banner cookie ---------- */
.rbc-logo { min-height: 44px; align-items: center; }
.rbc-contact .rbc-form-dark input[type="submit"] { min-height: 44px; height: 44px; line-height: 42px; }
.rbc-content { overflow-wrap: anywhere; }
.rbc-content table { display: block; max-width: 100%; overflow-x: auto; }
/* Banner CookieYes come l'originale: "Accetta" nero, "Personalizza" bordo nero, "Rifiuta" blu (stili in linea di CookieYes: serve !important) */
.cky-btn.cky-btn-accept { background: #252525 !important; border-color: #252525 !important; color: #fff !important; }
.cky-btn.cky-btn-customize, .cky-btn.cky-btn-preferences { background: transparent !important; border-color: #252525 !important; color: #212121 !important; }
.cky-btn.cky-btn-reject { background: #1863dc !important; border-color: #252525 !important; color: #212121 !important; }