/* Radici Contract — TZ custom styles */

:root {
  --radici-green: #008c45;
  --radici-green-dark: #006b34;
  --radici-white: #ffffff;
  --radici-ink: #1a1a1a;
  --radici-muted: #666666;
  --radici-line: #e5e5e5;
  --radici-red: #cd212a;
}

/* ---------- Header bar inject ---------- */
.radici-header-bar {
  background: #f7f7f7;
  border-bottom: 1px solid var(--radici-line);
  font-size: 13px;
  line-height: 1.35;
  position: relative;
  z-index: 40;
}

.radici-header-bar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  justify-content: space-between;
}

.radici-header-bar__phones,
.radici-header-bar__emails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.radici-header-bar__phone,
.radici-header-bar__email {
  display: flex;
  flex-direction: column;
  color: var(--radici-ink);
  text-decoration: none;
}

.radici-header-bar__phone-num,
.radici-header-bar__email-addr {
  font-weight: 700;
  color: var(--radici-ink);
}

.radici-header-bar__phone-label,
.radici-header-bar__email-label {
  font-size: 11px;
  color: var(--radici-muted);
}

.radici-flag-cta {
  display: flex;
  gap: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.radici-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.radici-btn--green {
  background: var(--radici-green);
  color: #fff !important;
}

.radici-btn--green:hover {
  background: var(--radici-green-dark);
  color: #fff !important;
}

.radici-btn--italy {
  background: #fff;
  color: #111 !important;
  border-left: 3px solid var(--radici-red);
}

.radici-btn--italy:hover {
  background: #f3f3f3;
}

.radici-header-bar__socials {
  display: flex;
  gap: 8px;
  align-items: center;
}

.radici-social {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #222;
  position: relative;
  text-decoration: none;
}

.radici-social::before {
  content: "";
  width: 16px;
  height: 16px;
  background: #fff;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.radici-social--ig { background: #e1306c; }
.radici-social--ig::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm5 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm6.5-.9a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2zM12 9a3 3 0 1 1 0 6 3 3 0 0 1 0-6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm5 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm6.5-.9a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2zM12 9a3 3 0 1 1 0 6 3 3 0 0 1 0-6z'/%3E%3C/svg%3E");
}

.radici-social--tg { background: #2AABEE; }
.radici-social--tg::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.04 15.3 8.8 18.7c.34 0 .49-.15.67-.32l1.6-1.53 3.32 2.44c.61.34 1.04.16 1.2-.56l2.18-10.25c.2-.9-.33-1.25-.92-1.03L4.4 10.4c-.87.34-.86.82-.15 1.04l3.7 1.15 8.58-5.4c.4-.27.77-.12.47.15L9.04 15.3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.04 15.3 8.8 18.7c.34 0 .49-.15.67-.32l1.6-1.53 3.32 2.44c.61.34 1.04.16 1.2-.56l2.18-10.25c.2-.9-.33-1.25-.92-1.03L4.4 10.4c-.87.34-.86.82-.15 1.04l3.7 1.15 8.58-5.4c.4-.27.77-.12.47.15L9.04 15.3z'/%3E%3C/svg%3E");
}

.radici-social--wa { background: #25D366; }
.radici-social--wa::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 0 0-8.7 14.9L2 22l5.3-1.4A10 10 0 1 0 12 2zm0 18a8 8 0 0 1-4.1-1.1l-.3-.2-3.1.8.8-3-.2-.3A8 8 0 1 1 12 20zm4.4-5.9c-.2-.1-1.4-.7-1.6-.8-.2-.1-.4-.1-.5.1-.2.2-.6.8-.7.9-.1.2-.3.2-.5.1-1.4-.7-2.3-1.2-3.2-2.8-.2-.4.2-.4.6-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.5-.4h-.5c-.2 0-.4.1-.6.3-.2.2-.8.8-.8 1.9s.8 2.2.9 2.3c.1.2 1.6 2.5 3.9 3.4 2.3.9 2.3.6 2.7.6.4 0 1.3-.5 1.5-1 .2-.5.2-.9.1-1-.1-.1-.2-.1-.4-.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 0 0-8.7 14.9L2 22l5.3-1.4A10 10 0 1 0 12 2zm0 18a8 8 0 0 1-4.1-1.1l-.3-.2-3.1.8.8-3-.2-.3A8 8 0 1 1 12 20zm4.4-5.9c-.2-.1-1.4-.7-1.6-.8-.2-.1-.4-.1-.5.1-.2.2-.6.8-.7.9-.1.2-.3.2-.5.1-1.4-.7-2.3-1.2-3.2-2.8-.2-.4.2-.4.6-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.5-.4h-.5c-.2 0-.4.1-.6.3-.2.2-.8.8-.8 1.9s.8 2.2.9 2.3c.1.2 1.6 2.5 3.9 3.4 2.3.9 2.3.6 2.7.6.4 0 1.3-.5 1.5-1 .2-.5.2-.9.1-1-.1-.1-.2-.1-.4-.2z'/%3E%3C/svg%3E");
}

.radici-social--max { background: #4b5cff; }
.radici-social--max::before {
  content: "M";
  background: none;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  width: auto;
  height: auto;
  mask: none;
  -webkit-mask: none;
}

/* Samples tooltip */
.radici-samples-wrap {
  position: relative;
  display: inline-flex;
}

.radici-samples-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(360px, 80vw);
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  padding: 14px 16px;
  z-index: 1000;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.radici-samples-tooltip[hidden] { display: none !important; }

.radici-samples-wrap:hover .radici-samples-tooltip,
.radici-samples-wrap:focus-within .radici-samples-tooltip {
  display: block !important;
}

.radici-samples-tooltip p { margin: 0 0 0.6em; }
.radici-samples-tooltip p:last-child { margin-bottom: 0; }

/* Hide redundant old header phones/emails/socials when our bar is present */
body:has(.radici-header-bar) .elementor-4400 .elementor-element-4409225,
body:has(.radici-header-bar) .jet-blocks-icon-box,
body.radici-has-bar .elementor-location-header .jet-header-search .fa,
body.radici-has-bar .elementor-location-header .jet-search__popup-trigger {
  /* keep search, style it below */
}

/* Hide old Elementor top contact strip — replaced by .radici-header-bar */
body.radici-has-bar .elementor-4400 > .elementor-inner > .elementor-section-wrap > .elementor-element-d27eff2,
body:has(.radici-header-bar) .elementor-4400 .elementor-element-d27eff2 {
  display: none !important;
}

/* Search more noticeable */
.elementor-location-header .jet-search__popup-trigger,
.elementor-location-header .fa-search,
.elementor-location-header .eicon-search,
.site-header .search-form .search-submit {
  font-size: 22px !important;
  font-weight: 700 !important;
  transform: scale(1.15);
}

.elementor-location-header .jet-search__popup-trigger svg,
.elementor-location-header .jet-search__popup-trigger i {
  font-size: 22px !important;
  width: 22px;
  height: 22px;
}

/* Main menu one line */
.jet-menu.jet-menu--roll-up,
.jet-desktop-menu-active .jet-menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  white-space: nowrap;
}

.jet-menu > .jet-menu-item > a .jet-menu-link-text,
.jet-menu > .jet-menu-item > .jet-menu-item-wrapper > a {
  white-space: nowrap;
  font-size: 14px;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* Round old social icons in header/footer */
.elementor-social-icon,
.elementor-widget-social-icons .elementor-icon {
  border-radius: 50% !important;
}

/* ---------- Cooperation tabs ---------- */
.cooperation-page .page-title {
  margin-bottom: 24px;
}

.radici-tabs__nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--radici-line);
  padding-bottom: 8px;
}

.radici-tabs__btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--radici-muted);
  border-bottom: 2px solid transparent;
}

.radici-tabs__btn.is-active {
  color: var(--radici-ink);
  border-bottom-color: var(--radici-green);
}

.radici-tabs__panel[hidden] { display: none !important; }

.radici-coop__text {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: 17px;
  line-height: 1.65;
  color: #444;
}

.radici-coop__text ul { padding-left: 1.2em; }
.radici-coop__text li { margin-bottom: 0.55em; }

.radici-coop__form {
  max-width: 560px;
  background: #f6f6f6;
  padding: 24px;
}

.radici-coop__form-title {
  margin: 0 0 16px;
  font-size: 22px;
}

/* ---------- Contacts ---------- */
.contacts-page-radici .radici-contacts {
  padding: 10px 0 40px;
}

.radici-contacts__title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  color: var(--radici-ink);
}

.radici-contacts__lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--radici-muted);
  max-width: 640px;
  margin: 0 0 36px;
}

.radici-contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.radici-contacts__block {
  margin-bottom: 22px;
}

.radici-contacts__label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
  color: #888;
}

.radici-contacts__hint {
  color: var(--radici-muted);
  font-size: 13px;
}

.radici-contacts__form {
  background: #f7f7f7;
  padding: 24px;
}

.radici-contacts__form-title {
  margin: 0 0 16px;
  font-size: 22px;
}

/* ---------- Home ---------- */
.home-page-radici {
  margin-top: -20px;
}

.radici-home-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
}

.radici-home-hero .swiper-slide img {
  width: 100%;
  height: min(72vh, 680px);
  object-fit: cover;
  display: block;
}

.radici-swiper-prev,
.radici-swiper-next {
  color: #fff !important;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
}

.radici-home-about,
.radici-home-video,
.radici-home-why,
.radici-home-trust,
.radici-home-projects,
.radici-home-articles,
.radici-home-form {
  padding: 56px 0;
}

.radici-home-about__inner,
.radici-home-why,
.radici-home-trust,
.radici-home-projects,
.radici-home-articles,
.radici-home-form__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.radici-home-about__title,
.radici-home-why__title,
.radici-home-trust__title,
.radici-home-projects__title,
.radici-home-articles__title,
.radici-home-form__title {
  text-align: center;
  font-size: 34px;
  margin: 0 0 24px;
  color: var(--radici-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.radici-home-about__text {
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto 36px;
  color: #444;
}

.radici-home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.radici-home-stats__num {
  font-size: 40px;
  font-weight: 700;
  color: var(--radici-green);
}

.radici-home-stats__label {
  margin-top: 6px;
  color: var(--radici-muted);
}

.radici-home-video__placeholder {
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #ececec, #d9d9d9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 20px;
  border: 1px dashed #bbb;
}

.radici-home-why__list {
  max-width: 860px;
  margin: 0 auto;
  padding-left: 1.4em;
  font-size: 16px;
  line-height: 1.55;
  color: #444;
}

.radici-home-why__list li {
  margin-bottom: 12px;
}

.radici-swiper--logos .swiper-slide,
.radici-swiper--projects .swiper-slide {
  width: auto;
}

.radici-swiper--logos img {
  height: 72px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(0.2);
  margin: 0 auto;
  display: block;
}

.radici-swiper--projects img {
  height: 220px;
  width: 320px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.radici-home-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.radici-home-articles__card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--radici-line);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.radici-home-articles__card:hover {
  transform: translateY(-3px);
}

.radici-home-articles__thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.radici-home-articles__name {
  display: block;
  padding: 14px;
  font-weight: 600;
}

.radici-home-form {
  background: #efefef;
}

.radici-home-form__lead {
  text-align: center;
  margin: -8px 0 24px;
  color: var(--radici-muted);
}

.radici-home-form__box {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  padding: 24px;
}

/* ---------- Captcha / consent ---------- */
.radici-consent {
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.45;
}

.radici-consent label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.radici-captcha {
  margin: 16px 0 8px;
  padding: 12px;
  border: 1px solid #ddd;
  background: #fafafa;
}

.radici-captcha__ask {
  margin: 0 0 10px;
  font-size: 14px;
}

.radici-captcha__choices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radici-captcha__choice {
  width: 56px;
  height: 56px;
  border: 2px solid #ddd;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.radici-captcha__choice.is-selected {
  border-color: var(--radici-green);
  box-shadow: 0 0 0 2px rgba(0, 140, 69, 0.2);
}

/* ---------- Messengers floating ---------- */
.radici-messengers {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99998;
}

.radici-messengers__toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--radici-green);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.radici-messengers__toggle span,
.radici-messengers__toggle span::before,
.radici-messengers__toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  position: relative;
}

.radici-messengers__toggle span::before {
  position: absolute;
  top: -7px;
  left: 0;
}

.radici-messengers__toggle span::after {
  position: absolute;
  top: 7px;
  left: 0;
}

.radici-messengers__list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.radici-messengers__list[hidden] { display: none !important; }

.radici-messengers__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.radici-messengers__link--wa { background: #25D366; }
.radici-messengers__link--tg { background: #2AABEE; }
.radici-messengers__link--ig { background: #e1306c; }
.radici-messengers__link--max { background: #4b5cff; }

/* ---------- Modal ---------- */
.radici-modal[hidden] { display: none !important; }

.radici-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.radici-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.radici-modal__dialog {
  position: relative;
  background: #fff;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  z-index: 1;
}

.radici-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.radici-privacy {
  max-width: 860px;
  font-size: 15px;
  line-height: 1.65;
  color: #444;
}

@media (max-width: 991px) {
  .radici-contacts__grid,
  .radici-home-articles__grid,
  .radici-home-stats {
    grid-template-columns: 1fr;
  }

  .radici-header-bar__inner {
    justify-content: flex-start;
  }

  .jet-menu.jet-menu--roll-up {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 767px) {
  .radici-home-hero .swiper-slide img {
    height: 46vh;
  }

  .radici-home-about__title,
  .radici-home-why__title,
  .radici-home-trust__title,
  .radici-home-projects__title,
  .radici-home-articles__title,
  .radici-home-form__title {
    font-size: 26px;
  }

  .radici-contacts__title {
    font-size: 26px;
  }
}
