/**
  * Theme Name: MEGACARTA
  * Description: Another Syrus Child Theme
  * Author: Syrus
  * Template: syrus
  * Version: 0.0.1
  */

@import url(https://fonts.googleapis.com/css?family=Poppins:600,500,700%7CRoboto:400,500,700&display=swap&ver=1689169854);

:root {
  --main-color: #970713;
  --secondary-color: #192f4f;
}

body {
  font-family: Poppins !important;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer {
  margin-top: auto !important;
  color: white;
}

.container {
  max-width: 1200px !important;
}

.topnav {
  position: absolute;
  z-index: 9;
  width: 100%;
}

.topnav .main-menu {
  margin: 0;
  height: 100%;
  padding: 0;
}

.topnav .main-menu li {
  display: inline-block;
  height: 100%;
  padding: .5em 10px;
  position: relative;
}

.topnav .main-menu li.with-submenu:hover .submenu {
  display: block;
}

.topnav .main-menu li.with-submenu .submenu {
  display: none;
  position: absolute;
  padding: 0;
  left: 0;
  background: white;
}

.topnav .main-menu li a {
  text-decoration: none;
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all .1s;
}

.topnav .main-menu li.with-submenu .submenu li a {
  color: var(--main-color);
}

.topnav .main-menu li a:hover {
  color: var(--main-color);
}

.topnav .icon-topnav {
  cursor: pointer;
}

.clip-hide {
  transform: scaleY(0);
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.clip-show {
  transform: scaleY(1);
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.dropdown-mobile {
  padding: 27px 0 17px 0;
  border-top: 1px solid black;
  background-color: var(--secondary-color);
}

.dropdown-mobile a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: Poppins;
  color: white;
  padding: 9px 36px 9px 36px;
  text-decoration: none;
}

.dropdown-mobile a.active,
.topnav .main-menu li.active a {
  color: var(--main-color);
}

.custom-link-linkedin,
.custom-link-instagram {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid white;
  border-radius: 50%;
  height: 70px;
  width: 70px;
  text-decoration: none;
  color: white;
  transition: all .2s;
}

.custom-link-linkedin:hover,
.custom-link-instagram:hover {
  background-color: white;
  color: rgb(22,73,104);
}

footer section.section-copyright,
footer section.section-contatti {
  background: rgb(22,73,104);
  background: linear-gradient(90deg, rgba(22,73,104,1) 0%, rgba(25,47,79,1) 100%);
  color: white;
  font-weight: 400;
  font-family: 'SF-Pro-Display', Roboto, Sans-Serif;
  font-size: 14px;
}

footer section.section-contatti {
  background: linear-gradient(90deg, rgba(22,73,104,1) 10%, rgba(25,47,79,1) 100%);
}

footer section.section-copyright a,
footer section.section-contatti a {
  color: white;
  text-decoration: none;
}

section.base,
section.format {
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: scroll;
  background-size: cover;
  height: 100vh;
  position: relative;
}

/* section.format.corp {
  height: 100vh;
} */

section.base {
  /* background-image: url(https://corelations.it/wp-content/uploads/2024/02/unnamed-3.png); */
  background: linear-gradient(109.6deg, rgb(245, 95, 152) 11.2%, rgb(254, 148, 136) 100.2%);
}

section.format {
  background-image: url(https://corelations.it/wp-content/uploads/2024/02/unnamed-3.png);
}

.bg-overlay {
  background: rgba(0,0,0, .4);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-overlay.white {
  background: white;
}

.bg-overlay.opacity-95 {
  opacity: .95;
}

.bg-overlay.opacity-85 {
  opacity: .85;
}

.bg-overlay.opacity-70 {
  opacity: .7;
}

.bg-overlay.opacity-50 {
  opacity: .5;
}

#particles-js {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 2;
}

section.grey,
section.content .container-fluid.grey {
  background-color: #f7f7f7;
}

section.section-news h2,
section.chi-siamo h2,
section.content h2,
section.content h3,
section.carousel-partner h2 {
  font-size: 29px;
  color: var(--secondary-color);
  font-weight: 500;
  font-family: Roboto;
  text-transform: uppercase;
}

section.content h3 {
  font-size: 25px;
}

section.section-news button {
  border: 0;
  color: #012350;
  background-color: #0097b2;
  padding: 15px;
}

section.content h3 {
  font-size: 25px;
  line-height: 1.75;
  color: #48464f;
  font-weight: 500;
  font-family: 'SF-Pro-Display', Roboto, Sans-Serif;
}

section.content h4 {
  font-size: 17px;
  font-weight: 500;
  font-family: 'SF-Pro-Display', Roboto, Sans-Serif;
  line-height: 1.5em;
  color: var(--secondary-color);
}

section.carousel-partner h2 .light ,
section.chi-siamo h2 .light ,
section.chi-siamo h3 .light ,
section.content h2 .light,
section.content h3 .light {
  color: var(--main-color);
}

section.partners p,
section.chi-siamo p,
section.content p,
section.content li {
  font-weight: 400;
  font-size: 15px;
  font-family: Roboto;
  color: #48464f;
  line-height: 1.75;
}

section.content p strong {
  color: var(--secondary-color);
}

section.contatti p a,
section.partners p a,
section.content p a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: .5s;
}

section.contatti p a:hover,
section.content p a .light,
section.partners p a:hover,
section.content p a:hover {
  color: var(--main-color);
}

section.content .image-section {
  height: 90vh;
  position: relative;
}

section.contatti img,
section.content .image-section img {
  position: absolute;
  object-position: center left;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

section.content .max-w {
  max-width: 80%;
  margin: 0 auto;
}

section.content .btn {
  font-weight: 500;
  font-family: 'SF-Pro-Display', Roboto, Sans-Serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: var(--main-color);
  color: white;
  border-radius: 10em;
  transition: .5s;
  font-size: 12px;
  padding: 13px 31px;
}

section.content .btn:hover {
  background-color: white;
  color: var(--secondary-color);
  border-color: var(--main-color);
}

section.content i.fa-circle-check {
  color: var(--main-color);
}

section.customers .accordion-button,
section.customers .accordion-body,
section.content .accordion-button,
section.content .accordion-body {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

section.customers .accordion-button,
section.content .accordion-button {
  font-weight: 500 !important;
  font-family: 'SF-Pro-Display', Roboto, Sans-Serif !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.75;
  border-radius: 0 !important;
  transition: .5s;
}

section.customers .accordion-button span {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

section.customers .accordion-button:not(.collapsed),
section.content .accordion-button:not(.collapsed) {
  background-color: white !important;
}

section.customers .accordion-button:not(.collapsed),
section.customers .accordion-button:hover,
section.content .accordion-button:not(.collapsed),
section.content .accordion-button:hover {
  color: var(--main-color);
}

section.customers .accordion-item,
section.content .accordion-item {
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

section.customers .accordion-button:focus,
section.content .accordion-button:focus {
  border-color: none !important;
  box-shadow: none !important;
}

section.customers .accordion-button.collapsed::after,
section.content .accordion-button.collapsed::after {
  transform: scale(.6) rotate(-90deg) !important;
}

section.customers .accordion-button:not(.collapsed)::after,
section.content .accordion-button:not(.collapsed)::after {
  transform: scale(.6) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%230cb4ce' fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

section.customers .accordion-body p,
section.customers .accordion-body li,
section.content .accordion-body p,
section.content .accordion-body li {
  font-size: 15px;
  color: #48464f;
}

section.customers .accordion-body p strong,
section.content .accordion-body p strong {
  color: var(--secondary-color);
}

section.chi-siamo .team-img {
  box-shadow: 0px 20px 60px -30px rgba(0, 0, 0, 0.45);
}

section.chi-siamo h3 {
  font-weight: 500;
  font-family: 'SF-Pro-Display', Roboto, Sans-Serif;
  font-size: 17px;
  color: var(--secondary-color);
  text-transform: uppercase;
  margin: 0;
  padding-top: 18px;
}

section.chi-siamo p.meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary-color);
}

section.chi-siamo p.excerpt {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
}

section.format .title {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

section.format .title h1 {
  font-family: 'SF-Pro-Display', Roboto, Sans-Serif;
  font-weight: 600;
  color: white;
  font-size: 35px;
  letter-spacing: -0.02em;
  z-index: 4;
  position: relative;
  text-align: center;
}

section.format .title img,
section.format .title a {
  z-index: 4;
}

section.format .format-img {
  width: 20%;
}

section.partners h2 {
  color: #0cb4ce;
  font-size: 29px;
  font-weight: 600;
  font-family: 'SF-Pro-Display', Roboto, Sans-Serif;
  line-height: 1.2;
  text-transform: uppercase;
}

section.case-history {
  background: -webkit-radial-gradient(left top , circle cover , rgb(12, 180, 206) 9% , rgb(59, 79, 106) 48% , rgb(25, 47, 79) 91%);
}

section.case-history h1 {
  padding: 36px;
  color: white;
  font-family: 'SF-Pro-Display', Roboto, Sans-Serif;
  font-size: 29px;
  font-weight: 500;
  margin: 0;
}

.customer-img {
  border: 1px solid #eaeaea;
  overflow: hidden;
  cursor: pointer;
}

.customer-img img {
  transition: .5s;
}

.customer-img:hover img {
  transform: scale(1.1);
}

section.contatti .col-12 {
  position: relative;
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

section.contatti h2,
section.contatti p {
  position: relative;
  z-index: 5;
  text-align: center;
  font-family: 'SF-Pro-Display', Roboto, Sans-Serif;
}

section.contatti h2 {
  font-size: 29px;
  font-weight: 500;
  color: var(--secondary-color);
  padding-bottom: 27px;
  margin-bottom: 36px;
  border-bottom: 2px solid #0cb4ce;
  text-transform: uppercase;
}

section.contatti p {
  font-weight: 400;
  font-size: 18px;
  color: #48464f;
  margin: 0;
  line-height: 1.75;
}

#scrollTop {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  position: fixed;
  right: 22px;
  bottom: 22px;
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  border-radius: 2px !important;
  height: 2em;
  width: 2em;
}

#scrollTop:hover {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  border-radius: 2px !important;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fade-up-now {
  opacity: 1;
  transform: translateY(0);
}


section.masonry-section .card {
  background-color: #56a9d2;
  aspect-ratio: 1;
}

.btn-custom {
  background-color: #56a9d2 !important;
  border-color: #56a9d2 !important;
  color: white !important;
}

section.bg-custom {
  background-color: #56a9d225;
}

section.front-page-section h2 {
  color: #113358;
  position: relative;
  margin-bottom: 25px;
}

section.front-page-section h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  height: 5px;
  background-color: #113358;
  width: 400px;
}

section.front-page-section h2.text-end:after {
  left: auto;
  right: 0;
}

.core-img-wrapper {
  position: relative;
  cursor: pointer;
}

.core-img-wrapper span {
  display: block;
  position: absolute;
  text-align: center;
  bottom: 20px;
  transform: translate(-50%, -50%);
  color: white;
  width: 100%;
  opacity: 0;
  transform: translate3d(0px, 94.134px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg);
  transform-style: preserve-3d;
  will-change: opacity, transform;
  transition: opacity 1s, transform 1s;
  background: #0000ff75;
}

.core-img-wrapper a,
.core-img-wrapper img {
  opacity: 0;
  transform: translate3d(0px, 94.134px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg);
  transform-style: preserve-3d;
  will-change: opacity, transform;
  transition: opacity 1s, transform 1s;
}

.core-img-wrapper img.freccia {
  filter: invert(19%) sepia(48%) saturate(2908%) hue-rotate(194deg) brightness(92%) contrast(98%);
}

.core-img-wrapper a.showed,
.core-img-wrapper img.showed,
.core-img-wrapper span.showed {
  opacity: 1;
  transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg);
}

section.gallery-section .image-container {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1;
  transition: all .2s;
}

section.gallery-section .image-container:hover {
  transform: scale(1.05);
  box-shadow: 0 0 5px rgba(0,0,0,.4);
}

section.gallery-section .image-container > img {
  width: 100%;
  height: 100%;
  object-position: center;
  object-fit: cover;
}

.mobile-submenu {
  display: none;
  padding-left: 20px;
}


.gallery-slideshow > .container {
  overflow: hidden; /* Nasconde le parti delle immagini che escono dal contenitore */
}

.slideshow {
  display: flex; /* Disponi le immagini in una riga */
  animation: slide 10s linear infinite;
}

.slideshow img {
  width: auto;
  height: 40vw;
  margin-right: 10px;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.form-settings label {
  font-size: 19px;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-150%); }
}

@media screen and (max-width: 600px) {
  
}
















































.navbar.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.intestazione {
  /* background-image: url(assets/images/homepage-bg.jpg); */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.intestazione.mg-contacts {
  /* background-image: url(assets/images/contatti-bg.jpg); */
  background-position: top;
}

/* .intestazione.mg-chi-siamo {
  background-image: url(assets/images/chi-siamo-bg.jpg);
} */

.mc-overlay {
  min-height: 80vh;
  background-color: #00000080;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mc-overlay h1 {
  color: white;
  font-size: 5vw;
}

/* Fascia piu' bassa: solo la home tiene l'hero a piena altezza */
.intestazione.mg-catalogo .mc-overlay,
.intestazione.mg-contacts .mc-overlay,
.intestazione.mg-chi-siamo .mc-overlay {
  min-height: 42vh;
}

.intestazione.mg-catalogo .mc-overlay h1,
.intestazione.mg-contacts .mc-overlay h1,
.intestazione.mg-chi-siamo .mc-overlay h1 {
  font-size: 3.4vw;
}

.card-categoria {
  width: 100%;
  aspect-ratio: 1/1;
  height: auto;
  border: 1px solid lightgray;
  border-radius: 10px;
  overflow: hidden;
}

.card-categoria .img-cat {
  width: 100%;
  height: 80%;
  object-fit: cover;
}

.card-categoria .img-cat.placeholder {
  object-fit: contain;
  background-color: white;
}

.link-cat {
  text-decoration: none;
}

.card-categoria p {
  color: black;
  text-align: center;
  font-size: 22px;
  margin: 0;
  height: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-title,
.products h2,
.categories h2,
.contacts h2,
.mappa h2 {
  padding: 50px 0;
  font-size: 30px;
  margin: 0;
}

.img-content {
  height: 100%;
  object-fit: cover;
}

.firma {
  display: none;
}

.product-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-sizes {
  display: flex;
}

.catalogo {
  background: #e8e8e8;
}

.products .row:not(.row-breadcrumb) {
  margin: 0 0 20px 0;
  background: white;
  border-radius: .375rem;
  padding: 10px;
}

.products .img-container {
  padding: 25px;
}

.wp-post-image,
.row-cart-product,
.products .img-container img {
  aspect-ratio: 1;
  object-fit: contain;
}

.wp-post-image {
  padding: 10px;
}

.order-statuses {
  position: relative;
  padding: 4em 0 2em 0;
}

.order-statuses .label-status {
  position: absolute;
  transform: translate(-50%);
  opacity: 0.1;
  top: -100%;
  cursor: pointer;
}

.order-statuses .label-status.actual {
  opacity: 1;
}

#sendCustomerEmail {
  position: absolute;
}

.order-price {
  text-align: end;
  color: green;
  font-weight: 600;
  font-size: 50px;
}

#btnSave {
  visibility: hidden;
}

#btnSave.show {
  visibility: visible;
}

/* .products .p-img {
  border-right: 1px solid lightgray;
} */

.products .product-title {
  font-size: 35px;
  color: black;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.products a {
  text-decoration: none;
}

.products a:hover {
  text-decoration: underline;
}

.products .col-9 {
  padding: 25px;
  padding-left: 0;
}

.mg-price {
  font-size: 45px;
}

.products .product-desc {
  font-size: 20px;
}

.woocommerce-Price-currencySymbol {
  display: none;
}

.catalogo label {
  display: flex;
  cursor: pointer;
}

.catalogo input[type="checkbox"] {
  margin-right: 10px;
}

.p-info {
  width: 20%;
  display: inline-block;
  margin: 0;
}

#syrus-theme-footer,
section.firma-footer {
  background-color: var(--main-color) !important;
  margin: 0;
}

.p-info {
  text-align: center;
}

.p-info img {
  display: block;
  /* margin: 0 auto; */
  margin-bottom: 5px;
  width: 100%;
}

.p-info span {
  color: grey;
  font-size: 13px;
}

.up-container {
  display: none !important;
}

.socials {
  display: flex;
  justify-content: end;
  align-items: center;
}

.socials.mobile {
  justify-content: center;
}

.socials i {
  padding: 10px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  margin: 0 15px;
  font-size: 23px;
  aspect-ratio: 1/1;
  width: 50px;
}

.socials a {
  text-decoration: none;
}

.socials .whatsapp i {
  background-color: green;
}

.socials .phone i {
  background-color: var(--main-color);
}

.socials .email i {
  background-color: red;
}

.navbar-toggler {
  border-color: white !important;
}

.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='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

a[name=add-to-cart],
button[name=add-to-cart] {
  background-color: white !important;
  line-height: 1.1em !important;
  border: 1px solid var(--main-color) !important;
  border-radius: 5px !important;
  padding: 10px !important;
  color: var(--main-color) !important;
  font-weight: 400 !important;
  /* font-size: 13px; */
}

a[name=add-to-cart]:hover,
button[name=add-to-cart]:hover {
  background-color: var(--main-color) !important;
  color: white !important;
}

.text-danger {
  color: var(--main-color) !important;
}

.bg-mc {
  background-color: var(--main-color) !important;
}

.btn-danger {
  background-color: var(--main-color) !important;
  border-color: var(--main-color) !important;
}

.accordion-button:not(.collapsed) {
  color: var(--bs-danger-text-emphasis) !important;
  background-color: var(--bs-danger-bg-subtle) !important;
}

a {
  color: var(--bs-danger) !important;
}



@media (max-width: 768px) {
  .p-info span {
    font-size: 9px;
  }

  .mc-overlay h1 {
    font-size: 8vw;
  }

  .mc-overlay {
    min-height: 40vh;
  }

  .intestazione.mg-catalogo .mc-overlay,
  .intestazione.mg-contacts .mc-overlay,
  .intestazione.mg-chi-siamo .mc-overlay {
    min-height: 24vh;
  }

  .intestazione.mg-catalogo .mc-overlay h1,
  .intestazione.mg-contacts .mc-overlay h1,
  .intestazione.mg-chi-siamo .mc-overlay h1 {
    font-size: 6.5vw;
  }
}

.row-pagination span {
  padding: 0.375rem 0.75rem;
  background: #970713;
  color: white;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.375rem;
  border: 1px solid #970713;
  width: 2.5em;
  transition: .3s;
}

.row-pagination span.actual-page {
  color: #970713;
  background: white;
}

.row-pagination.admin span {
  background: #0d6efd;
  border: 1px solid #0d6efd;
}

.row-pagination.admin span.actual-page {
  color: #0d6efd;
  background: white;
}

.row-pagination span.points {
  opacity: .65;
}

.row-pagination .btn {
  transition: .3s !important;
}

.row-pagination .btn:hover,
.row-pagination span:not(.actual-page, .points):hover {
  cursor: pointer;
  opacity: .65 !important;
}

.card-pagina {
  aspect-ratio: 1/1;
  cursor: pointer;
}

.card-pagina .card-body {
  position: relative;
  transition: .3s;
}

.card-pagina:hover .card-body {
  box-shadow: 0 0.5rem 1rem #0d6efd35;
}

.card-pagina .card-body h3 {
  width: 40%;
  border: 3px solid #0d6efd;
  margin: 20px auto 50px auto;
  aspect-ratio: 1/1;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-pagina .card-body h3 i {
  color: #0d6efd;
  font-size: 60px;
}

.card-pagina .card-body a {
  position: absolute;
  bottom: 15px;
  right: 15px;
}

.label-home {
  cursor: pointer;
  display: flex;
}

.label-home.child {
  padding-left: 20px;
}

.img-for-edit {
  object-fit: cover;
  cursor: pointer;
}

.img-for-edit.mc-square {
  aspect-ratio: 1/1;
}

.img-for-edit.main-img {
  aspect-ratio: 8/3;
}

.img-for-edit.ph {
  transition: .3s;
  object-fit: contain;
  background-color: #e9eef1;
}

.img-for-edit:hover {
  filter: brightness(.6);
}

.mg-variant {
  display: inline-block;
  border: 1px solid grey;
  padding: 10px;
  margin: 0 10px 10px 0;
  cursor: pointer;
  transition: box-shadow .3s;
}

.mg-variant:not(.selected):hover {
  box-shadow: 0 0.5rem 1rem #00000015;
}

.mg-variant.selected {
  border: 1px solid #970713;
  color: #970713;
  font-weight: bold;
  box-shadow: 0px 0px 0px 1px #970713 inset;
}

.mg-variant .v-name {
  font-size: 14px;
}

.mg-variant .v-price {
  color: #198754;
  font-size: 19px;
}

.mg-variant.selected .v-price {
  color: #970713;
  font-weight: 600;
}

.mg-variant img {
  width: 30px;
  margin-right: 10px;
}

html {
  margin: 0 !important;
}

#wpadminbar {
  display: none !important;
}

footer a {
  color: white !important;
}

#orderStatusModal a {
  font-size: 15px;
  padding-top: 10px;
  display: flex;
  justify-content: end;
  align-items: center;
}

.mc-dropdown {
  position: absolute;
  display: none;
  border: 1px solid #dee2e6;
  font-size: 1rem;
  width: 100%;
  z-index: 9999;
  background: white;
  max-height: 200px;
  overflow-y: scroll;
}

#phones-dropdown {
  width: max-content;
}

#phones-dropdown .mc-option {
  justify-content: start;
  gap: 10px;
}

#phones-dropdown .mc-option .dial-code {
  color: grey;
}

.sub-options-container {
  display: none;
}

.mc-option {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px .75rem;
  cursor: pointer;
}

.mc-option.selected,
.mc-option:not(.back-to-main):hover {
  background-color: #dee2e6;
}

.mc-option.back-to-main {
  border-bottom: 1px solid #dee2e6;
  justify-content: start;
  font-size: 0.7rem;
  color: gray;
}

.mc-option .icon-selected {
  color: green;
}

.mc-option:not(.selected) .icon-selected {
  display: none
}

.mc-option.back-to-main:hover {
  color: black;
}



/* ============================================================
   HOME / FRONT-PAGE (restyling)
   ============================================================ */

/* Bottoni brand riusabili */
.btn-mc-primary {
  background-color: var(--main-color) !important;
  border: 1px solid var(--main-color) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 28px;
  transition: .25s;
}

.btn-mc-primary:hover {
  background-color: #7a0510 !important;
  border-color: #7a0510 !important;
  color: #fff !important;
}

.btn-mc-outline {
  background-color: transparent !important;
  border: 1px solid var(--main-color) !important;
  color: var(--main-color) !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 28px;
  transition: .25s;
}

.btn-mc-outline:hover {
  background-color: var(--main-color) !important;
  color: #fff !important;
}

.btn-mc-outline-light {
  background-color: transparent !important;
  border: 1px solid #fff !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 28px;
  transition: .25s;
}

.btn-mc-outline-light:hover {
  background-color: #fff !important;
  color: var(--main-color) !important;
}

.btn-mc-success {
  background-color: #198754 !important;
  border: 1px solid #198754 !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 28px;
  transition: .25s;
}

.btn-mc-success:hover {
  background-color: #146c43 !important;
  color: #fff !important;
}

/* Titoli di sezione */
.mc-section-title {
  color: var(--main-color);
  font-weight: 700;
  font-size: 32px;
  margin: 0 0 12px 0;
  padding-top: 70px;
}

.mc-section-sub {
  color: #6b6b6b;
  font-size: 16px;
  margin-bottom: 40px;
}

/* HERO */
.mc-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mc-hero-overlay {
  background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,.96) 35%, rgba(255,255,255,.6) 55%, rgba(255,255,255,0) 80%);
  width: 100%;
  padding: 110px 0;
}

.mc-hero-title {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 46px;
  line-height: 1.12;
  margin-bottom: 6px;
}

.mc-hero-region {
  color: var(--main-color);
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 20px 0;
}

.mc-hero-subtitle {
  color: #444;
  font-size: 21px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 640px;
}

.mc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* BARRA TRUST */
.mc-trust {
  background: #fff;
  padding: 36px 0;
  border-bottom: 1px solid #eef1f5;
}

.mc-trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mc-trust-item i {
  font-size: 30px;
  color: var(--main-color);
  width: 44px;
  text-align: center;
  flex-shrink: 0;
}

.mc-trust-title {
  margin: 0;
  font-weight: 600;
  color: #222;
  font-size: 16px;
}

.mc-trust-text {
  margin: 0;
  font-size: 13px;
  color: #6c6c6c;
}

/* SETTORI */
.mc-settori {
  background: var(--main-color);
  background-image: linear-gradient(160deg, #a8101c 0%, var(--main-color) 55%, #7d0611 100%);
  padding-bottom: 70px;
}

.mc-settori .mc-section-title {
  color: #fff;
}

.mc-settori .mc-section-sub {
  color: rgba(255,255,255,.85);
}

.mc-settori-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.mc-settore {
  width: 110px;
  text-align: center;
  text-decoration: none !important;
}

.mc-settore-card {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 26px -18px rgba(0,0,0,.45);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}

.mc-settore-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #b00a1a 0%, #7a0510 100%);
  opacity: 0;
  transition: opacity .35s;
}

.mc-settore-card svg {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  fill: none;
  color: var(--main-color);
  stroke: var(--main-color);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color .35s, stroke .35s, transform .35s;
}

.mc-settore:hover .mc-settore-card {
  transform: translateY(-8px) rotate(-2deg);
  border-color: transparent;
  box-shadow: 0 20px 32px -14px rgba(151,7,19,.55);
}

.mc-settore:hover .mc-settore-card::before {
  opacity: 1;
}

.mc-settore:hover .mc-settore-card svg {
  color: #fff;
  stroke: #fff;
  transform: scale(1.12);
}

.mc-settore-label {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  transition: opacity .25s;
}

.mc-settore:hover .mc-settore-label {
  opacity: .8;
}

@media (max-width: 575px) {
  .mc-settori-grid { gap: 14px; }
  .mc-settore,
  .mc-settore-card { width: 92px; }
  .mc-settore-card { height: 92px; }
}

/* PRODOTTI */
.mc-prodotti {
  background: linear-gradient(180deg, #faf3f3 0%, #f2f4f7 100%);
  padding-bottom: 70px;
}

.mc-product-card {
  border: 1px solid #ececf0;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 12px 30px -18px rgba(25,47,79,.28);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.mc-product-card:hover {
  box-shadow: 0 20px 40px -18px rgba(151,7,19,.32);
  transform: translateY(-6px);
  border-color: rgba(151,7,19,.28);
}

.mc-product-img {
  display: block;
  padding: 24px;
  background: #fff;
  border-bottom: 1px solid #f1f1f4;
}

.mc-product-img img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
}

.mc-product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mc-product-title {
  color: #222 !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.mc-product-title:hover {
  color: var(--main-color) !important;
}

.mc-product-sku {
  font-size: 12px;
  color: #999;
  margin: 4px 0 0 0;
}

.mc-product-price {
  color: #198754;
  font-weight: 700;
  font-size: 22px;
  margin: 8px 0 14px 0;
}

.mc-product-body .cart,
.mc-product-body .btn {
  margin-top: auto;
}

/* SERVIZI */
.mc-servizi {
  background: #f6f8fa;
  padding-bottom: 70px;
}

.mc-servizio {
  background: #fff;
  border-radius: 12px;
  padding: 30px 24px;
  height: 100%;
  text-align: center;
  border: 1px solid #e9edf2;
  transition: .25s;
}

.mc-servizio:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.3);
}

.mc-servizio-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(151,7,19,.08);
  color: var(--main-color);
  font-size: 26px;
  margin-bottom: 18px;
}

.mc-servizio-title {
  color: #222;
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 10px;
}

.mc-servizio-text {
  color: #6c6c6c;
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

/* CTA CONTATTI */
.mc-cta {
  background: #23262b;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(151,7,19,.30), transparent 55%),
    linear-gradient(120deg, #1d1f24 0%, #2b2f37 100%);
}

.mc-cta-overlay {
  padding: 80px 0;
}

.mc-cta-title {
  color: #fff;
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 16px;
}

.mc-cta-text {
  color: #cfd2d8;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.mc-cta-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mc-cta-contacts li {
  color: #dfe1e6;
  margin-bottom: 12px;
  font-size: 15px;
}

.mc-cta-contacts li i {
  color: #fff;
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.mc-cta-privacy {
  font-size: 11px;
  line-height: 1.5;
  color: #b9bcc4;
  cursor: pointer;
}

.mc-cta-privacy a {
  color: #ef5b64 !important;
  font-weight: 600;
  text-decoration: underline;
}

.mc-cta-contacts a {
  color: #fff !important;
  text-decoration: none;
}

.mc-cta-contacts a:hover {
  text-decoration: underline;
}

.mc-cta-form {
  background: #fff;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.5);
}

.mc-cta-form .form-control,
.mc-cta-form .form-select {
  border-radius: 8px;
  padding: 12px 14px;
}

@media (max-width: 991px) {
  .mc-hero-title { font-size: 34px; }
  .mc-hero-overlay { padding: 70px 0; }
  .mc-section-title { font-size: 26px; padding-top: 50px; }
  .mc-cta-title { font-size: 26px; }
}


/* ============================================================
   HEADER (topnav restyling)
   ============================================================ */

.mc-topnav {
  background-color: #fff !important;
  box-shadow: 0 2px 14px -8px rgba(0,0,0,.3);
  padding-top: .4rem;
  padding-bottom: .4rem;
}

.mc-topnav .navbar-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.mc-topnav .nav-link {
  color: #222 !important;
  font-weight: 600;
  font-size: 15px;
  padding: .5rem 1rem;
  margin: 0 7px;
  letter-spacing: .3px;
  transition: color .2s;
}

.mc-topnav .nav-link:hover {
  color: var(--main-color) !important;
}

.mc-topnav .form-control {
  border-radius: 8px;
  max-width: 200px;
}

.btn-mc-search {
  background-color: var(--main-color) !important;
  border: 1px solid var(--main-color) !important;
  color: #fff !important;
  border-radius: 8px;
}

.btn-mc-search:hover {
  background-color: #7a0510 !important;
  border-color: #7a0510 !important;
}

.mc-topnav-actions {
  gap: 6px;
}

.mc-topnav-phone {
  color: #222 !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  align-items: center;
  white-space: nowrap;
  margin-right: 6px;
}

.mc-topnav-phone i {
  color: var(--main-color);
}

.mc-topnav-cta {
  padding: 8px 18px !important;
  white-space: nowrap;
}

.mc-topnav .cart-icon i {
  color: #222;
}

.mc-topnav .cart-icon:hover i {
  color: var(--main-color);
}

/* Toggler scuro su sfondo bianco */
.mc-topnav .navbar-toggler {
  border-color: #222 !important;
}

.mc-topnav .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='rgba%2834, 34, 34, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}


/* ============================================================
   FOOTER (restyling)
   ============================================================ */

.mc-footer {
  color: rgba(255,255,255,.85);
  padding: 0;
}

.mc-footer .mc-footer-main {
  padding: 60px 0 40px 0;
}

.mc-footer h5 {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
}

.mc-footer-logo {
  width: 90px;
  height: auto;
  margin-bottom: 18px;
}

.mc-footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.8);
  max-width: 340px;
}

.mc-footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.mc-footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.15);
  color: #fff !important;
  transition: .25s;
}

.mc-footer-socials a:hover {
  background: #fff;
  color: var(--main-color) !important;
}

.mc-footer-links ul,
.mc-footer-contacts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mc-footer-links li {
  margin-bottom: 10px;
}

.mc-footer-links a {
  color: rgba(255,255,255,.85) !important;
  text-decoration: none;
  font-size: 14px;
  transition: .2s;
}

.mc-footer-links a:hover {
  color: #fff !important;
  padding-left: 4px;
}

.mc-footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}

.mc-footer-contacts li i {
  color: #fff;
  margin-top: 3px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.mc-footer-contacts a {
  color: rgba(255,255,255,.85) !important;
  text-decoration: none;
}

.mc-footer-contacts a:hover {
  color: #fff !important;
}

.mc-footer-map-embed iframe {
  width: 100%;
  height: 160px;
  border: 0;
  border-radius: 10px;
}

.mc-footer-map-link {
  color: rgba(255,255,255,.85) !important;
  text-decoration: none;
  font-size: 14px;
}

.mc-footer-map-link:hover {
  color: #fff !important;
}

.mc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2);
  padding: 18px 0;
  font-size: 13px;
}

.mc-footer-bottom span,
.mc-footer-bottom a {
  color: rgba(255,255,255,.75) !important;
  text-decoration: none;
}

.mc-footer-bottom a:hover {
  color: #fff !important;
}


/* ============================================================
   SOPRA-HEADER (top bar)
   ============================================================ */

.mc-topbar {
  background: var(--main-color);
  font-size: 13px;
  color: #fff;
  padding: 7px 0;
}

.mc-topbar-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mc-topbar-info i {
  color: #fff;
  margin-right: 5px;
}

.mc-topbar-sep {
  color: rgba(255,255,255,.4);
}

.mc-topbar-phone {
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.mc-topbar-phone i {
  color: #fff;
}

@media (max-width: 991px) {
  .mc-topbar-sep { display: none; }
  .mc-topbar-info { justify-content: center; gap: 16px; }
  .mc-topbar-phone { margin-top: 5px; }
}


/* ============================================================
   CAROSELLO PRODOTTI (Owl)
   ============================================================ */

.mc-products-carousel .owl-stage {
  display: flex;
}

.mc-products-carousel .owl-item {
  display: flex;
  height: auto;
}

.mc-products-carousel .mc-product-card {
  width: 100%;
}

.mc-products-carousel .owl-dots {
  text-align: center;
  margin-top: 28px;
}

.mc-products-carousel .owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  background: #d9d9d9;
  transition: .25s;
}

.mc-products-carousel .owl-dots .owl-dot.active span,
.mc-products-carousel .owl-dots .owl-dot:hover span {
  background: var(--main-color);
  width: 26px;
  border-radius: 6px;
}


/* ============================================================
   PAGINA B2B (scaffold)
   ============================================================ */

.mc-b2b-hero {
  padding: 90px 0;
  background: #f6f8fa;
}

.mc-b2b-badge {
  display: inline-block;
  background: rgba(151,7,19,.1);
  color: var(--main-color);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.mc-b2b-title {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 38px;
  margin-bottom: 18px;
}

.mc-b2b-text {
  color: #555;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 28px;
}


/* ============================================================
   SEZIONE CONSEGNE (SVG animato)
   ============================================================ */

.mc-delivery {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  padding: 80px 0;
  overflow: hidden;
}

.mc-delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(151,7,19,.1);
  color: var(--main-color);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.mc-delivery-title {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.mc-delivery-title span {
  color: var(--main-color);
}

.mc-delivery-text {
  color: #555;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.mc-delivery-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}

.mc-delivery-list li {
  color: #333;
  font-size: 15px;
  margin-bottom: 10px;
}

.mc-delivery-list li i {
  color: var(--main-color);
  margin-right: 10px;
}

.mc-delivery-scene {
  width: 100%;
}

.mc-delivery-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* animazioni della scena */
.mc-truck     { transform-box: fill-box; transform-origin: center; animation: mc-bob 2.2s ease-in-out infinite; }
.mc-wheel     { transform-box: fill-box; transform-origin: center; animation: mc-spin 1.1s linear infinite; }
.mc-road-dash { animation: mc-dash 1.1s linear infinite; }
.mc-pin       { transform-box: fill-box; transform-origin: center bottom; animation: mc-pinbounce 1.9s ease-in-out infinite; }
.mc-pulse     { transform-box: fill-box; transform-origin: center; animation: mc-pulse 2.1s ease-out infinite; }
.mc-pkg       { transform-box: fill-box; transform-origin: center; animation: mc-float 3.2s ease-in-out infinite; }
.mc-speed     { animation: mc-speed 1.1s linear infinite; opacity: 0; }
.mc-puff      { transform-box: fill-box; transform-origin: center; animation: mc-puff 1.7s ease-out infinite; }

@keyframes mc-bob       { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes mc-spin      { to { transform: rotate(360deg); } }
@keyframes mc-dash      { to { stroke-dashoffset: -96; } }
@keyframes mc-pinbounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes mc-pulse     { 0% { transform: scale(.35); opacity: .5; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes mc-float     { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes mc-speed     { 0% { opacity: 0; transform: translateX(10px); } 40% { opacity: .75; } 100% { opacity: 0; transform: translateX(-16px); } }
@keyframes mc-puff      { 0% { opacity: .5; transform: translate(0,0) scale(.5); } 100% { opacity: 0; transform: translate(-18px,-14px) scale(1.4); } }

@media (max-width: 991px) {
  .mc-delivery { padding: 60px 0; }
  .mc-delivery-title { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .mc-truck, .mc-wheel, .mc-road-dash, .mc-pin, .mc-pulse, .mc-pkg, .mc-speed, .mc-puff { animation: none !important; }
  .mc-speed { opacity: .5; }
}


/* --- Variante "percorso" --- */
.mc-route-base {
  fill: none;
  stroke: #e3e7ec;
  stroke-width: 6;
  stroke-linecap: round;
}

.mc-route-draw {
  fill: none;
  stroke: var(--main-color);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: mc-draw 4.5s ease-in-out infinite;
}

.mc-route-marker {
  offset-path: path('M70 290 C 170 300 180 170 290 185 S 440 235 525 110');
  offset-rotate: 0deg;
  animation: mc-move 4.5s ease-in-out infinite;
}

@keyframes mc-draw {
  0%   { stroke-dashoffset: 800; }
  55%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

@keyframes mc-move {
  0%   { offset-distance: 0%; }
  55%  { offset-distance: 100%; }
  100% { offset-distance: 100%; }
}

/* --- Variante "pacco" --- */
.mc-box {
  transform-box: fill-box;
  transform-origin: center;
  animation: mc-bob 2.6s ease-in-out infinite;
}

.mc-pop {
  transform-box: fill-box;
  transform-origin: center;
  animation: mc-pop 2.4s ease-in-out infinite;
}

.mc-spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: mc-twinkle 1.8s ease-in-out infinite;
}

@keyframes mc-pop {
  0%, 100% { transform: scale(1); }
  12%      { transform: scale(1.18); }
  24%      { transform: scale(1); }
}

@keyframes mc-twinkle {
  0%, 100% { opacity: .2; transform: scale(.7); }
  50%      { opacity: 1;  transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .mc-route-draw { stroke-dashoffset: 0; animation: none !important; }
  .mc-route-marker, .mc-box, .mc-pop, .mc-spark { animation: none !important; }
}


/* ============================================================
   MOBILE: header, ticker, barra fissa, no scroll orizzontale
   ============================================================ */

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

.mc-cta-illu {
  margin-top: 26px;
  max-width: 360px;
}

/* icone header mobile */
.mc-mobile-icons {
  gap: 2px;
}

.mc-icon-btn {
  background: transparent;
  border: 0;
  color: var(--secondary-color);
  font-size: 20px;
  line-height: 1;
  padding: 8px 9px;
  text-decoration: none;
}

.mc-icon-btn:hover {
  color: var(--main-color);
}

.mc-search-panel form {
  width: 100%;
}

/* sopra-header come ticker su mobile */
@media (max-width: 991px) {
  .mc-topbar .container {
    gap: 12px;
    flex-wrap: nowrap;
  }

  .mc-topbar-sep {
    display: none;
  }

  .mc-topbar-info {
    position: relative;
    height: 20px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .mc-topbar-info .mc-tb-item {
    position: absolute;
    inset: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(9px);
    transition: opacity .45s ease, transform .45s ease;
  }

  .mc-topbar-info .mc-tb-item.active {
    opacity: 1;
    transform: translateY(0);
  }

  .mc-topbar-phone {
    flex: 0 0 auto;
  }
}

/* barra fissa in basso (mobile) */
.mc-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  box-shadow: 0 -4px 16px rgba(0,0,0,.16);
}

.mc-mobile-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.mc-mobile-bar-btn.primary {
  background: var(--main-color);
  color: #fff !important;
}

.mc-mobile-bar-btn.call {
  background: #fff;
  color: var(--main-color) !important;
  border-left: 1px solid #eee;
}

@media (max-width: 991px) {
  body { padding-bottom: 58px; }
}


/* ============================================================
   HERO illustrazione (combo / alternata) + header fisso
   ============================================================ */

.mc-hero-illu {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
}

.mc-hero-illu .mc-hero-route svg,
.mc-hero-illu .mc-hero-pack svg {
  width: 100%;
  height: auto;
  display: block;
}

.mc-hero-illu .mc-hero-pack {
  position: absolute;
  right: -2%;
  bottom: -4%;
  width: 50%;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}

/* versione alternata (?hero=alterna) */
.mc-hero-illu.alterna {
  aspect-ratio: 5 / 3;
}

.mc-hero-illu.alterna .mc-hero-fade {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: mc-herofade 9s ease-in-out infinite;
}

.mc-hero-illu.alterna .mc-hero-fade svg {
  width: 100%;
  height: auto;
  display: block;
}

.mc-hero-illu.alterna .mc-hero-fade-2 {
  animation-delay: 4.5s;
}

@keyframes mc-herofade {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  44%  { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 0; }
}

/* pannello ricerca mobile: a tutta larghezza, su una riga */
.mc-search-panel form {
  flex-wrap: nowrap;
}

.mc-search-panel .form-control {
  max-width: none !important;
  flex: 1 1 auto;
  min-width: 0;
}

.mc-search-panel .btn {
  flex: 0 0 auto;
}

/* sopra-header + nav fissi insieme durante lo scroll */
.mc-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
}

@media (prefers-reduced-motion: reduce) {
  .mc-hero-illu.alterna .mc-hero-fade { animation: none !important; }
  .mc-hero-illu.alterna .mc-hero-fade-1 { opacity: 1; }
}
