html body,
html body * {
  font-family: "Onest", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.post,
.page {
  margin: 0;
}
:root {
  --bs-primary: var(--wp--preset--color--primary);
  --bs-secondary: var(--wp--preset--color--secondary);
  --bs-dark: var(--wp--preset--color--dark);
  --bs-light: var(--wp--preset--color--light);
  --bs-accent: var(--wp--preset--color--accent);
  --bs-gray: var(--wp--preset--color--gray);
}

.container {
  width: 100%;
  max-width: clamp(960px, 90vw, 1600px);
  margin-inline: auto;
}

.bg-primary {
  background-color: var(--wp--preset--color--primary) !important;
}

a,
a:visited {
  color: inherit;
  text-decoration: none;
}

.sticky-bar {
  top: 95px !important;
}

.product-card__cta
  a.btn
  .tax-categoria-prodottia
  .product-card__cta
  .product-card__cta
  a:visited
  .btn {
  color: inherit;
  text-decoration: none;
}

.bg-gray {
  background-color: var(--wp--preset--color--gray);
}

.post a {
  color: var(--wp--preset--color--accent);
  text-decoration: none;
}

.w-80 {
  width: 80%;
  margin: 0 auto;
}
/** ----- 

SITE HEADER

----***/

.site-header {
  background: var(--wp--preset--color--secondary);
  padding: 18px 0;
  /*position: relative;*/
  z-index: 999;
}

a,
a:visited {
  color: inherit;
  text-decoration: none;
}

.navbar {
  padding: 0;
}

.navbar-brand img {
  max-height: 64px;
  width: auto;
}

.navbar-nav {
  gap: 10px;
}

.navbar-nav .menu-item a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}

.navbar-nav .menu-item a:hover {
  color: var(--wp--preset--color--primary);
}

.navbar-toggler {
  border: 0;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.navbar-toggler:focus {
  box-shadow: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-search {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

.lang-switch {
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
}

.header-cta {
  background: var(--wp--preset--color--primary);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.header-cta:hover {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--secondary) !important;
}

.dropdown-menu {
  background: var(--wp--preset--color--secondary);
  border: none;
  border-radius: 0;
  padding: 12px 0;
  margin-top: 18px;
  min-width: 220px;
}

.dropdown-item {
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
}

.dropdown-menu .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--wp--preset--color--primary) !important;
}

.dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: middle;
}

/* menu */
.navbar-nav .nav-link,
.navbar-nav .nav-link:visited {
  color: #fff !important;
  text-decoration: none;
}

/* hover */
.navbar-nav .nav-link:hover,
.navbar-nav .menu-item a:hover {
  color: var(--wp--preset--color--primary) !important;
}

/* focus / active */
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active {
  color: var(--wp--preset--color--primary) !important;
}

/* dropdown */
.dropdown-menu .dropdown-item {
  color: #fff !important;
}

/* tolgo caret bootstrap */
.dropdown-toggle::after {
  display: none !important;
}

/* link */
.navbar .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* chevron custom */
.navbar .dropdown-toggle::before {
  content: "";
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  order: 2;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M3.2 5.5L8 10.3l4.8-4.8' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  transition: transform 0.25s ease;
}

/* ruota quando aperto */
.dropdown.show > .dropdown-toggle::before,
.dropdown-toggle[aria-expanded="true"]::before {
  transform: rotate(180deg);
}

/**** FOOTER ***/
.site-footer {
  background: var(--wp--preset--color--secondary);
  color: #fff;
  font-size: medium;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  font-size: medium;
}

.site-footer a:hover {
  opacity: 0.7;
}



.footer-widget {
  margin-bottom: 20px;
}

.site-footer h4 {
  color: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--base);
}

ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.sub-menu {
  list-style: none;
  padding-left: 10px;
  margin: 0;
}

ul.menu li a:hover {
  color: var(--wp--preset--color--primary);
}

/*** single prodotto ***/

/* .single-prodotti .badge {
  font-size: medium;
  font-weight: 400;
}
 */
.modelli .nav-tabs {
  border-bottom-width: 2px;
}

.modelli .nav-tabs .nav-link.active {
  border-style: solid;
  border-color: transparent;
  border-bottom-width: 2px;
  border-bottom-color: black;
}

.modelli .nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
  border-style: solid;
  border-color: transparent;
  border-bottom-width: 2px;
  border-bottom-color: black;
}

.modelli .nav-link {
  color: #5c5c5c;
}

.esplora h4::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  background-image: url("/wp-content/themes/takler-theme/assets/img/esplora.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

.dettagli h4::before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 25px;
  margin-right: 10px;
  background-image: url("/wp-content/themes/takler-theme/assets/img/dettagli.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

.disegno h4::before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 25px;
  margin-right: 10px;
  background-image: url("/wp-content/themes/takler-theme/assets/img/disegno-tecnico.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

.wcf--image-box.style-3 .content {
  background-color: rgba(0, 0, 0, 0) !important;
}

/*tabella prodotti*/

.table-responsive .table tbody tr:first-child td,
.table-responsive .table tbody td:first-child {
  font-weight: 700;
}

.table tbody tr {
  background-color: #fff;
}

.table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.table tbody tr:first-child {
  background-color: #fff;
  font-weight: 700;
}

/* #galleryProdottoDettagli .carousel-item img {
  max-height: 456px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
} */

.esplora img.esplora-img {
  max-height: 456px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* base stile icona */
.wpc-filter-header .widget-title {
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

/* ICONA MATERIALI */
.wpc-filter-materiale .wpc-filter-header .widget-title::before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 25px;
  background-image: url("/wp-content/themes/takler-theme/assets/img/material.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ICONA FINITURA */
.wpc-filter-finitura .wpc-filter-header .widget-title::before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 25px;
  background-image: url("/wp-content/themes/takler-theme/assets/img/finitura.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

/* palline */

.animated-bg-orange {
  position: relative;
  overflow: hidden;
  background: #111;
}

.animated-bg-orange::before,
.animated-bg-orange::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.65;
  z-index: 0;
  pointer-events: none;
}

/* Pallina arancione 1 */
.animated-bg-orange::before {
  width: 450px;
  height: 450px;
  background: #f39202;
  top: -150px;
  left: -120px;
  animation: orangeMove1 14s infinite alternate ease-in-out;
}

/* Pallina arancione 2 */
.animated-bg-orange::after {
  width: 380px;
  height: 380px;
  background: #ffb347;
  bottom: 309px;
  right: 400px;
  animation: orangeMove2 18s infinite alternate ease-in-out;
}

@keyframes orangeMove1 {
  0% {
    transform: translate(-30px, -20px) scale(1);
  }

  50% {
    transform: translate(100px, 70px) scale(1.15);
  }

  100% {
    transform: translate(-20px, 120px) scale(1);
  }
}

@keyframes orangeMove2 {
  0% {
    transform: translate(30px, 50px) scale(1);
  }

  50% {
    transform: translate(-120px, -80px) scale(1.2);
  }

  100% {
    transform: translate(20px, -30px) scale(1);
  }
}

.animated-bg-orange > * {
  position: relative;
  z-index: 1;
}

.video-reveal {
  overflow: hidden;
  transform: scale(0.9);
  opacity: 0;
}

.video-reveal video {
  width: 100%;
  height: auto;
  display: block;
}

.storia .swiper-slide-active > .box {
  background-color: #f39202 !important;
}

.site-footer .wp-block-social-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .wp-social-link svg path {
  fill: white;
}

.video-popup {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}

.video-popup.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.video-popup-content {
  position: relative;
  width: 90%;
  max-width: 70%;
  z-index: 2;
}

.video-popup-content video {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.video-popup-close {
  position: absolute;
  top: -60px;
  right: -80px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
}

/* breadcrumb */

.breadcrumbs {
  padding: 0;
  font-size: var(--wp--preset--font-size--txt-sm);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.5;
}

.breadcrumbs a {
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--bs-accent);
}

.breadcrumbs [aria-current="page"] {
  font-weight: 600;
}

.wpc-filters-ul-list {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.wpc-filters-ul-list li {
  margin: 0;
}

.news-filter a {
  text-decoration: none;
  position: relative;
  transition: 0.3s;
  margin: 0 1rem;
}
.news-filter a.active {
  color: var(--wp--preset--color--accent);
}

.news-filter a:hover:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: 0.3s;
}
.news-filter a:hover {
  color: var(--wp--preset--color--accent);
}
/* 
colonna sticky */

.sticky-element .elementor-widget-wrap {
  position: sticky;
  top: 100px;
}

.sticky-content {
  overflow: visible !important;
}

.sticky-element {
  position: sticky;
  top: 200px;
  align-self: flex-start;
  height: fit-content;
}

.box-servizi .wcf--image-box {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
/*
.dettagli .carousel-item {
  height: 500px;  altezza fissa del frame
  text-align: center;
}

.dettagli .carousel-item img {
  width: auto !important;
  max-width: 500px;
  max-height: 500px;
  object-fit: scale-down;
}
 */
/*
.carousel-item {
  height: 500px; /* altezza fissa del frame 
  text-align: center;
}

.carousel-item img {
  width: auto !important;
  max-width: 500px;
  max-height: 500px;
  object-fit: contain;
}
*/
.disegno img {
  max-height: 500px;
}

.certificazioni-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.certificazioni-gallery img {
  width: 120px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* contact form */

/* Form */
.cf7-custom p {
  margin-bottom: 1rem;
}

/* Input e textarea */
.cf7-custom input:not([type="submit"]),
.cf7-custom input:not([type="checkbox"]),
.cf7-custom input:not([type="radio"]),
.cf7-custom input:not([type="file"]),
.cf7-custom select,
.cf7-custom textarea {
  width: 100%;
  height: 40px;
  padding: 0 18px;
  border: 1px solid #ccc;
  border-radius: 50px;
  background: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* Textarea */
.cf7-custom textarea {
  min-height: 120px;
  padding: 12px 18px;
  border-radius: 24px;
  resize: vertical;
}

/* Focus */
.cf7-custom input:focus,
.cf7-custom select:focus,
.cf7-custom textarea:focus {
  outline: none;
  border-color: #f39202;
  box-shadow: 0 0 0 0.2rem rgba(243, 146, 2, 0.15);
}

/* Bottone */
.cf7-custom input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 40px;
  padding: 0 24px;
  border: none;
  border-radius: 50px;
  background: #f39202;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* Hover */
.cf7-custom input[type="submit"]:hover {
  background: #000;
}

/* Messaggi CF7 */
.cf7-custom .wpcf7-response-output {
  margin: 1rem 0 0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.cf7-custom .wpcf7-not-valid-tip {
  margin-top: 0.35rem;
  font-size: 0.875rem;
}

.cf7-custom label {
  display: block;
}
/* Contenitore checkbox */
.cf7-custom .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  margin: 0;
}

.cf7-custom .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  line-height: 1.5;
}

/* Checkbox */
.cf7-custom input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: #f39202;
  flex-shrink: 0;
  cursor: pointer;
}

/* Testo del checkbox */
.cf7-custom .wpcf7-list-item-label {
  font-size: 14px;
  color: #555;
}

.custom-logo-link {
  width: 100%;
}

.site-footer .custom-logo-link {
  width: 240px;
}

/* Wrapper search */
.is-search-form {
  display: flex;
  align-items: center;
  border-radius: 50px;
  overflow: hidden;
  background: #f39202;
  padding: 5px;
}

/* Campo input */
.is-search-input {
  height: 50px !important;
  flex: 1;
  border: none !important;
  outline: none;
  background: #fff !important;
  padding: 0 20px;
  border-radius: 50px 0 0 50px !important;
  font-size: 16px;
}

/*ivory search*/
.is-form-style input.is-search-submit,.is-search-icon {
    display: inline-block!important;
    color: #fff;
    background: #f39202;
    box-shadow: none!important;
    outline: 0;
    margin: 0;
    font-size: 14px!important;
    border: 1px solid #f39202;
    border-radius: 0;
    line-height: 1;
    height: 36px;
    text-transform: capitalize;
    vertical-align: middle;
    -webkit-transition: background-color .1s ease-in-out;
    -moz-transition: background-color .1s ease-in-out;
    -o-transition: background-color .1s ease-in-out;
    transition: background-color .1s ease-in-out;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}

.is-search-icon:hover,form.is-form-style input.is-search-submit:hover {
    background: #f39202
}


/* Placeholder */
.is-search-input::placeholder {
  color: #777;
}

/* Pulsante */

.is-search-icon {
  color: #ffffff;
  background: #f39200;
  border: 0;
}
.is-search-icon:hover {
  color: #ffffff;
  background: #f39200;
  border: 0;
}

.is-search-submit {
  height: 50px !important;
  width: 55px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f39200 !important;
  border: none !important;
  border-radius: 0 50px 50px 0 !important;
  cursor: pointer;
}

/* Icona */

.is-form-style .is-search-submit path {
  fill: #fff;
}
.is-search-icon svg {
  fill: #fff;
  width: 22px;
  height: 22px;
}

/* Hover */
.is-search-submit:hover {
  background: #f39200 !important;
}

/* Paginazione */
.navigation.pagination {
  margin: 3rem 0;
  display: flex;
  justify-content: center;
}

.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 18px;
  border: 2px solid #f39202;
  border-radius: 999px;
  background: #fff;
  color: #1d1d1b;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Hover */
.navigation.pagination a.page-numbers:hover {
  background: #f39202;
  color: #fff;
  transform: translateY(-2px);
}

/* Pagina corrente */
.navigation.pagination .page-numbers.current {
  background: #f39202;
  color: #fff;
  border-color: #f39202;
  cursor: default;
}

/* Pulsanti Precedenti / Successivi */
.navigation.pagination .prev,
.navigation.pagination .next {
  padding: 0 22px;
}

/* Focus accessibilità */
.navigation.pagination a:focus-visible {
  outline: 3px solid rgba(243, 146, 2, 0.3);
  outline-offset: 3px;
}

/* Mobile */
@media (max-width: 576px) {
  .navigation.pagination .nav-links {
    gap: 0.5rem;
  }

  .navigation.pagination .page-numbers {
    min-width: 42px;
    height: 42px;
    font-size: 0.9rem;
    padding: 0 14px;
  }

  .navigation.pagination .prev,
  .navigation.pagination .next {
    padding: 0 16px;
  }
}

.footer-bg {
  background-image: url("../img/takler-bg-f.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
