/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child Theme for Medlight
Author: Medlight
Author URI: https://www.medlight.it
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ============================================
   MEDLIGHT CUSTOM STYLES FOR ELEMENTOR
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=DM+Serif+Display:ital@0;1&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Palette colori */
  --medlight-primary: #6e9ed4;
  --medlight-primary-rgb: 110, 158, 212;
  --medlight-secondary: #fdd075;
  --medlight-secondary-rgb: 253, 209, 117;
  --medlight-dark: #010101;
  --medlight-dark-rgb: 1, 1, 1;
  --medlight-light: #ffffff;
  --medlight-light-rgb: 255, 255, 255;
  --medlight-muted: #8999cb;
  --medlight-muted-rgb: 137, 153, 203;
  --medlight-body: #566593;
  --medlight-body-rgb: 86, 101, 147;

  /* Typography */
  --medlight-font-heading: 'Playfair Display', Georgia, serif;
  --medlight-font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Bootstrap CSS variable aliases — per SVG inline e componenti HTML importati */
  --bs-primary: #6e9ed4;
  --bs-primary-rgb: 110, 158, 212;
  --bs-secondary: #fdd075;
  --bs-secondary-rgb: 253, 208, 117;
  --bs-light: #eef4fb;
  --bs-light-rgb: 238, 244, 251;
  --bs-body-color: rgba(0, 0, 0, 0.6);
  --bs-heading-color: #010101;
  --font-family-base: "DM Sans", sans-serif;
  --font-family-title: "DM Sans", sans-serif;
  --border-color: #E1EBF1;

  /* Spacing */
  --medlight-spacing-xs: 8px;
  --medlight-spacing-sm: 16px;
  --medlight-spacing-md: 24px;
  --medlight-spacing-lg: 40px;
  --medlight-spacing-xl: 64px;
  --medlight-spacing-2xl: 96px;

  /* Border radius */
  --medlight-radius-sm: 8px;
  --medlight-radius-md: 12px;
  --medlight-radius-lg: 20px;
  --medlight-radius-xl: 30px;
  --medlight-radius-full: 50px;

  /* Shadows */
  --medlight-shadow-sm: 0 2px 8px rgba(160, 159, 202, 0.12);
  --medlight-shadow-md: 0 10px 30px rgba(160, 159, 202, 0.15);
  --medlight-shadow-lg: 0 1rem 3rem rgba(1, 1, 1, 0.175);

  /* Transitions */
  --medlight-transition-fast: 0.2s ease;
  --medlight-transition-base: 0.3s ease;
  --medlight-transition-slow: 0.5s ease;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: var(--medlight-font-heading);
  font-weight: 600;
  color: var(--medlight-dark);
  line-height: 1.1;
}

body, p {
  font-family: var(--medlight-font-body);
  color: var(--medlight-body);
  line-height: 1.7;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--medlight-light);
}

::-webkit-scrollbar-thumb {
  background: var(--medlight-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--medlight-dark);
}

/* ===== LOADER ANIMATION ===== */
.dz-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  pointer-events: none;
  background: var(--medlight-primary, #6e9ed4);
}

.dz-loader svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  preserveAspectRatio: none;
}

.dz-loader svg path {
  animation: loader-wave 2s ease-in-out infinite;
  fill: var(--medlight-light, #010101);
}

@keyframes loader-wave {
  0%, 100% {
    d: path("M0,1005S175,995,500,995s500,5,500,5V0H0Z");
  }
  50% {
    d: path("M0,800S175,900,500,900s500,100,500,100V0H0Z");
  }
}

.dz-loader-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.load-text {
  font-family: var(--medlight-font-heading, 'Playfair Display', serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--medlight-light, #fff);
  letter-spacing: 0.15em;
}

.load-text span {
  display: inline-block;
  animation: letter-bounce 1.4s ease-in-out infinite;
  animation-fill-mode: both;
}

.load-text span:nth-child(1)  { animation-delay: 0.0s; }
.load-text span:nth-child(2)  { animation-delay: 0.05s; }
.load-text span:nth-child(3)  { animation-delay: 0.10s; }
.load-text span:nth-child(4)  { animation-delay: 0.15s; }
.load-text span:nth-child(5)  { animation-delay: 0.20s; }
.load-text span:nth-child(6)  { animation-delay: 0.25s; }
.load-text span:nth-child(7)  { animation-delay: 0.30s; }
.load-text span:nth-child(8)  { animation-delay: 0.35s; }
.load-text span:nth-child(9)  { animation-delay: 0.40s; }
.load-text span:nth-child(10) { animation-delay: 0.45s; }
.load-text span:nth-child(11) { animation-delay: 0.50s; }
.load-text span:nth-child(12) { animation-delay: 0.55s; }

@keyframes letter-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-20px);
    opacity: 1;
  }
}

body.page-loaded .dz-loader {
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

/* ===== INSTAGRAM FEED — Smash Balloon override ===== */
/*
  Uso in Elementor: aggiungere shortcode [instagram-feed] in un HTML Widget.
  L'ID del feed va configurato in Smash Balloon → Feeds dopo aver collegato l'account IG.
  Shortcode con griglia 6 colonne: [instagram-feed num=6 cols=6 showfollow=false showheader=false]
*/

/* Override Smash Balloon per replicare la griglia originale */
#sbi_mod_error,
.sbi_header_text,
.sbi_header_img,
.sbi_follow_btn_outside,
.sbi_follow_btn { display: none !important; }

.sbi_outer_container {
  margin: 0 !important;
  padding: 0 !important;
}

#sb_instagram {
  padding: 0 !important;
  background: #fff;
}

#sb_instagram #sbi_images {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

#sb_instagram .sbi_item {
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

#sb_instagram .sbi_photo_wrap {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #010101;
}

#sb_instagram .sbi_photo_wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

#sb_instagram .sbi_photo_wrap:hover img {
  transform: scale(1.05);
}

/* Overlay hover con icona Instagram (Font Awesome 6) */
#sb_instagram .sbi_photo_wrap::after {
  content: "\f16d";
  font-family: "Font Awesome 6 Brands";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(110, 158, 212, 0.42);
  color: #fff;
  font-size: 30px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#sb_instagram .sbi_photo_wrap:hover::after {
  opacity: 1;
}

@media only screen and (max-width: 991px) {
  #sb_instagram #sbi_images {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media only screen and (max-width: 575px) {
  #sb_instagram #sbi_images {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #sb_instagram .sbi_photo_wrap::after { font-size: 22px; }
}

/* ===== INSTAGRAM GRID ===== */
.medlight-instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  background: var(--medlight-light, #fff);
  margin: 0;
  padding: 0;
}

.medlight-instagram-grid a {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--medlight-dark, #010101);
  text-decoration: none;
}

.medlight-instagram-grid video,
.medlight-instagram-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
  background: #010101;
}

.medlight-instagram-grid a:hover video,
.medlight-instagram-grid a:hover img {
  transform: scale(1.05);
}

.medlight-instagram-grid a::after {
  content: "\f16d";
  font-family: "Font Awesome 6 Brands";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(110, 158, 212, 0.42);
  color: var(--medlight-light, #fff);
  font-size: 30px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.medlight-instagram-grid a:hover::after {
  opacity: 1;
}

@media only screen and (max-width: 991px) {
  .medlight-instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media only screen and (max-width: 575px) {
  .medlight-instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .medlight-instagram-grid a::after {
    font-size: 22px;
  }
}

/* ===== CONTACT FORM 7 OVERRIDES ===== */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E1EBF1;
  border-radius: var(--medlight-radius-md, 12px);
  font-family: var(--medlight-font-body, 'Poppins', sans-serif);
  font-size: 0.95rem;
  color: var(--medlight-body, #566593);
  background: var(--medlight-light, #fff);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--medlight-primary, #6e9ed4);
  box-shadow: 0 0 0 3px rgba(110, 158, 212, 0.15);
}

.wpcf7-form textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7-form label {
  font-family: var(--medlight-font-body, 'Poppins', sans-serif);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--medlight-dark, #010101);
  margin-bottom: 6px;
  display: block;
}

.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  background: var(--medlight-secondary, #fdd075);
  color: var(--medlight-dark, #010101) !important;
  border: none;
  border-radius: var(--medlight-radius-full, 50px);
  font-family: var(--medlight-font-body, 'Poppins', sans-serif);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpcf7-submit:hover {
  background: var(--medlight-primary, #6e9ed4) !important;
  color: var(--medlight-light, #fff) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(110, 158, 212, 0.3);
}

.wpcf7-not-valid-tip {
  font-size: 0.82rem;
  color: #D23636;
  margin-top: 4px;
}

.wpcf7-validation-errors {
  border: 1px solid #D23636;
  border-radius: var(--medlight-radius-md, 12px);
  background: rgba(210, 54, 54, 0.05);
  color: #D23636;
  padding: 12px 16px;
  font-size: 0.9rem;
}

.wpcf7-spinner::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(110, 158, 212, 0.3);
  border-top-color: var(--medlight-primary, #6e9ed4);
  border-radius: 50%;
  animation: cf7-spin 0.8s linear infinite;
}

@keyframes cf7-spin {
  to { transform: rotate(360deg); }
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: var(--medlight-muted, #8999cb);
  opacity: 1;
}

.medlight-cf7-wrapper {
  background: #fff;
  padding: 32px;
  border-radius: var(--medlight-radius-lg, 20px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

/* ===== WORD ROTATE ===== */
.word-rotate-box.style-1 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--medlight-radius-full, 50px);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.word-rotate-box.style-1 .word-rotate {
  font-family: var(--medlight-font-body, 'Poppins', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--medlight-light, #fff);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: word-rotate 12s linear infinite;
  white-space: nowrap;
}

.word-rotate-box.style-1 .center-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--medlight-secondary, #fdd075);
}

@keyframes word-rotate {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SERVICE CARDS (versione originale) ===== */
.service-card.style-1 {
  background-color: var(--bs-secondary);
  padding: 40px 40px 40px 40px;
  display: flex; flex-direction: column;
  border: 1px solid #737373;
  transition: 0.4s;
  aspect-ratio: 1/2
  ;
}
@media only screen and (max-width: 575px) { .service-card.style-1 { padding: 30px 30px 40px 30px; } }
.service-card.style-1 .service-icon { margin-bottom: 30px; }
.service-card.style-1 .title { font-size: 24px; }
.service-card.style-1 .title a { color: #fff; text-decoration: none; }
.service-card.style-1 .text { font-size: 18px; color: #BFBFBF; margin-bottom: 30px; }
.service-card.style-1 .btn { background-color: #191919; }
.service-card.style-1:hover,
.service-card.style-1.active { background-color: var(--bs-primary); }
.service-card.style-1:hover .service-icon svg path,
.service-card.style-1.active .service-icon svg path { stroke: var(--bs-secondary); }
.service-card.style-1:hover .title a,
.service-card.style-1.active .title a { color: var(--bs-secondary); }
.service-card.style-1:hover .text,
.service-card.style-1.active .text { color: #454545; }
.service-card.style-1:hover .btn,
.service-card.style-1.active .btn { background-color: var(--bs-secondary); }
.service-card.style-1:hover .btn .right-icon,
.service-card.style-1.active .btn .right-icon { background-color: #fff; }

/* bg-line decorativi nella sezione servizi */
.service-section.style-1 .bg-line1,
.service-section.style-1 .bg-line2 {
  position: absolute;
  right: 0; top: 0;
  pointer-events: none;
  z-index: 0;
}
.service-section.style-1 .bg-line2 { left: auto; right: 0; }

/* ===== COUNTER BOX ===== */
.counter-box.style-1 {
  background: var(--medlight-light, #fff);
  border-radius: var(--medlight-radius-md, 12px);
  padding: 24px;
  text-align: center;
  box-shadow: var(--medlight-shadow-sm);
}

.counter-box.style-1.bg-primary {
  background: var(--medlight-primary, #6e9ed4);
}

.counter-box.style-1 .counter-text {
  font-family: var(--medlight-font-heading, 'Playfair Display', serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--medlight-primary, #6e9ed4);
  display: block;
}

.counter-box.style-1.bg-primary .counter-text {
  color: var(--medlight-light, #fff);
}

/* ===== SECTION HEAD style-16 ===== */
.section-head.style-16 { margin-bottom: 60px; }
@media only screen and (max-width: 1480px) { .section-head.style-16 { margin-bottom: 40px; } }
@media only screen and (max-width: 991px)  { .section-head.style-16 { margin-bottom: 30px; } }
.section-head.style-16 .title { font-size: 80px; font-weight: 600; text-transform: capitalize; line-height: 1.1; letter-spacing: 2px; }
@media only screen and (max-width: 1480px) { .section-head.style-16 .title { font-size: 40px; } }
@media only screen and (max-width: 991px)  { .section-head.style-16 .title { font-size: 32px; } }
@media only screen and (max-width: 575px)  { .section-head.style-16 .title { font-size: 28px; } }
.section-head.style-16 p { font-size: 20px; font-weight: 300; color: #000; opacity: 0.7; }
@media only screen and (max-width: 1480px) { .section-head.style-16 p { font-size: 18px; } }
@media only screen and (max-width: 575px)  { .section-head.style-16 p { font-size: 16px; } }

/* ===== BOOTSTRAP ACCORDION (base + dz-accordion style-1) ===== */
.accordion {
  --bs-accordion-btn-padding-x: 25px; --bs-accordion-btn-padding-y: 18px;
  --bs-accordion-btn-color: #031B4E; --bs-accordion-btn-bg: #fff;
  --bs-accordion-body-padding-x: 25px; --bs-accordion-body-padding-y: 25px;
  --bs-accordion-border-color: #E1EBF1; --bs-accordion-border-width: 1px;
  --bs-accordion-border-radius: 6px;
  --bs-accordion-active-color: #031B4E; --bs-accordion-active-bg: #ECF5FB;
  --bs-accordion-transition: color .15s ease-in-out, background-color .15s ease-in-out;
}
.accordion-button {
  position: relative; display: flex; align-items: center; width: 100%;
  padding: var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);
  font-size: 1rem; color: var(--bs-accordion-btn-color); text-align: left;
  background-color: var(--bs-accordion-btn-bg);
  border: 0; border-radius: 0; cursor: pointer;
  transition: var(--bs-accordion-transition);
}
.accordion-button:not(.collapsed) {
  color: var(--bs-accordion-active-color);
  background-color: var(--bs-accordion-active-bg);
}
.accordion-button::after {
  flex-shrink: 0; width: 24px; height: 24px; margin-left: auto;
  content: '';
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23566593' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-size: 24px;
  transition: transform .2s ease-in-out;
}
.accordion-button:not(.collapsed)::after { transform: rotate(180deg); }
.accordion-item {
  color: var(--bs-body-color, rgba(0,0,0,.6));
  background-color: #fff;
  border: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color);
}
.accordion-item:not(:first-of-type) { border-top: 0; }
.accordion-collapse { display: none; }
.accordion-collapse.show { display: block; }
.accordion-body { padding: var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x); }

/* dz-accordion style-1 overrides */
.dz-accordion .accordion-button { font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--bs-secondary); }
@media only screen and (max-width: 1199px) { .dz-accordion .accordion-button { font-size: 16px; } }
.dz-accordion.style-1 .accordion-item { background-color: transparent; border: 0; }
.dz-accordion.style-1 .accordion-item:not(:last-child) { margin-bottom: 20px; }
.dz-accordion.style-1 .accordion-item .accordion-button {
  border-radius: 6px; background-color: #F6F6F6; box-shadow: none; padding: 24px 35px;
}
@media only screen and (max-width: 575px) {
  .dz-accordion.style-1 .accordion-item .accordion-button { padding: 15px; font-size: 14px; }
}
.dz-accordion.style-1 .accordion-item .accordion-button::after {
  width: 30px; height: 30px; border-radius: 50%;
  background-color: var(--bs-primary);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-size: 18px; background-position: center;
}
.dz-accordion.style-1 .accordion-item .accordion-body { background-color: #fff; padding: 15px 25px 0 25px; }
.dz-accordion.style-1 .accordion-item .accordion-body p:last-child { margin-bottom: 0; }

/* ===== ACCORDION ===== */
.elementor-accordion-item {
  border: none !important;
  border-radius: var(--medlight-radius-md, 12px) !important;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  background: var(--medlight-light, #fff);
}

.elementor-accordion-item .elementor-tab-title {
  font-family: var(--medlight-font-body, 'Poppins', sans-serif);
  font-weight: 500;
  font-size: 1rem;
  color: var(--medlight-dark, #010101);
  padding: 18px 24px;
  background: var(--medlight-light, #fff);
}

.elementor-accordion-item .elementor-tab-content {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--medlight-body, #566593);
  line-height: 1.7;
}

/* ===== TESTIMONIAL ===== */
.testimonial-1 {
  background: var(--medlight-light, #fff);
  border-radius: var(--medlight-radius-lg, 20px);
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.testimonial-1 .testimonial-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.testimonial-1 .testimonial-rating .star-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 4px;
}

.testimonial-1 .testimonial-rating .star-list li {
  color: #FFBE17;
}

.testimonial-1 .testimonial-head .title {
  font-family: var(--medlight-font-heading, 'Playfair Display', serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--medlight-dark, #010101);
  margin: 0;
}

/* ===== CONTACT INFO BOX ===== */
.contact-info-box {
  background: #fff;
  border-radius: var(--medlight-radius-md, 12px);
  padding: 32px 28px;
  height: 100%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
}

.contact-info-box:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.contact-info-box .icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(110, 158, 212, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.contact-info-box h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--medlight-dark, #010101);
  margin-bottom: 8px;
}

.contact-info-box p {
  font-size: 0.95rem;
  color: var(--medlight-body, #566593);
  margin: 0;
}

/* ===== UTILITY CLASSES ===== */
.text-primary { color: var(--medlight-primary); }
.text-secondary { color: var(--medlight-secondary); }
.text-dark { color: var(--medlight-dark); }
.text-muted { color: var(--medlight-muted); }
.text-body { color: var(--medlight-body); }

.bg-primary { background-color: var(--medlight-primary); }
.bg-secondary { background-color: var(--medlight-secondary); }
.bg-dark { background-color: var(--medlight-dark); }
.bg-light { background-color: var(--medlight-light); }
.bg-custom_primary { background-color: #93abc6 !important; }
.text-custom_primary { color: #fff !important; }

/* ===== Z-INDEX UTILITIES ===== */
.z-index-0  { z-index: 0; }
.z-index-1  { z-index: 1; }
.z-index-2  { z-index: 2; }
.z-index-9  { z-index: 9; }
.z-index-99 { z-index: 99; }
.z-index-999 { z-index: 999; }

.overflow-visible { overflow: visible; }
.overflow-hidden  { overflow: hidden; }

/* ===== MOBILE STICKY BAR ===== */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--medlight-white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 8px 15px;
}

.mobile-sticky-cta {
  background: var(--medlight-secondary);
  color: var(--medlight-dark);
  text-align: center;
  padding: 10px;
  border-radius: 25px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.mobile-sticky-nav {
  display: flex;
  justify-content: space-around;
}

.mobile-sticky-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--medlight-gray);
  font-size: 11px;
  gap: 3px;
}

.mobile-sticky-item i {
  font-size: 18px;
}

/* ===== SCROLL TO TOP ===== */
#scrollProgress {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--medlight-primary);
  color: var(--medlight-white);
  border: none;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

#scrollProgress.visible {
  opacity: 1;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--medlight-dark);
  color: var(--medlight-white);
}

.footer-title {
  color: var(--medlight-white);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-legal-info p {
  font-size: 13px;
  line-height: 1.6;
  color: #aaa;
  margin-bottom: 8px;
}

.copyright-text {
  color: #aaa;
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .counter-text {
    font-size: 48px;
  }
}

/* ===== HERO BANNER ===== */

.hero-banner { position: relative; }

.hero-banner.style-1 {
  background-color: var(--bs-primary);
  height: 960px;
  background-size: cover;
  background-position: center;
  padding-top: 40px;
  z-index: 1;
  overflow: visible;
}
@media only screen and (max-width: 1480px) { .hero-banner.style-1 { height: 850px; } }
@media only screen and (max-width: 1199px) { .hero-banner.style-1 { height: 650px; } }
@media only screen and (max-width: 991px)  { .hero-banner.style-1 { height: 580px; } }
@media only screen and (max-width: 767px)  { .hero-banner.style-1 { height: 100%;  } }

.hero-banner.style-1 > * { height: 100%; }

.hero-banner.style-1 .inner-wrapper {
  height: 100%; z-index: 9;
}
@media only screen and (max-width: 991px) { .hero-banner.style-1 .inner-wrapper { padding-top: 50px; } }
@media only screen and (max-width: 767px) { .hero-banner.style-1 .inner-wrapper { padding-top: 150px; } }
@media only screen and (max-width: 575px) { .hero-banner.style-1 .inner-wrapper { padding-top: 120px; } }

/* Hero title */
.hero-banner.style-1 .title {
  font-size: 85px; font-weight: 500;
  color: var(--bs-secondary);
  margin-bottom: 10px; margin-top: 8px;
  font-family: var(--font-family-base, 'DM Sans', sans-serif);
  line-height: 1.1; letter-spacing: 4px;
}
@media only screen and (max-width: 1480px) { .hero-banner.style-1 .title { font-size: 55px; } }
@media only screen and (max-width: 1199px) { .hero-banner.style-1 .title { font-size: 40px; margin-bottom: 15px; } }
@media only screen and (max-width: 767px)  { .hero-banner.style-1 .title { font-size: 35px; } }
@media only screen and (max-width: 575px)  { .hero-banner.style-1 .title { font-size: 28px; } }
@media only screen and (max-width: 575px)  { .hero-banner.style-1 .title br { display: none; } }

/* Body text */
.hero-banner.style-1 .text {
  font-size: 24px; color: #3A3A3A; font-weight: 300;
  line-height: 1.3; margin-bottom: 50px;
}
@media only screen and (max-width: 1199px) { .hero-banner.style-1 .text { font-size: 18px; } }
@media only screen and (max-width: 991px)  { .hero-banner.style-1 .text { margin-bottom: 20px; } }
@media only screen and (max-width: 575px)  { .hero-banner.style-1 .text { font-size: 16px; line-height: 1.4; } }

/* Hero content (left column) */
.hero-banner.style-1 .hero-content {
  position: relative; z-index: 1;
  max-width: 600px; margin-top: -50px; margin-left: 10px;
}
@media only screen and (max-width: 1480px) { .hero-banner.style-1 .hero-content { margin-left: 0; } }
@media only screen and (max-width: 767px)  { .hero-banner.style-1 .hero-content { margin-bottom: 30px; } }

/* Hero thumbnail (center column) */
.hero-banner.style-1 .hero-thumbnail {
  width: 1040px; margin-left: -290px;
  margin-top: -10px; margin-bottom: -104px;
  position: relative; z-index: 1;
}
@media only screen and (max-width: 1680px) { .hero-banner.style-1 .hero-thumbnail { width: 950px; margin-top: 0; } }
@media only screen and (max-width: 1480px) { .hero-banner.style-1 .hero-thumbnail { width: 850px; margin-top: 0; margin-left: -250px; } }
@media only screen and (max-width: 1199px) { .hero-banner.style-1 .hero-thumbnail { width: 650px; margin-left: -150px; } }
@media only screen and (max-width: 991px)  { .hero-banner.style-1 .hero-thumbnail { width: 550px; margin-left: -140px; } }
@media only screen and (max-width: 767px)  { .hero-banner.style-1 .hero-thumbnail { margin: auto; } }
@media only screen and (max-width: 575px)  { .hero-banner.style-1 .hero-thumbnail { width: 350px; } }

.hero-banner.style-1 .hero-thumbnail img { width: 100%; }

/* Right content (col 3/12) */
.hero-banner.style-1 .right-content { width: 290px; }
@media only screen and (max-width: 1680px) { .hero-banner.style-1 .right-content { margin-left: -130px; } }
@media only screen and (max-width: 1199px) { .hero-banner.style-1 .right-content { width: 100%; margin-left: -60px; } }
@media only screen and (max-width: 991px)  { .hero-banner.style-1 .right-content { display: none; } }
@media only screen and (max-width: 1199px) { .hero-banner.style-1 .right-content .popup-btn { transform: scale(0.8); } }

/* Media box (2 stacked thumbnails) */
.hero-banner.style-1 .right-content .media-box {
  position: relative; height: 290px; margin-bottom: 20px;
}
.hero-banner.style-1 .right-content .media-box .media1 { width: 175px; }
.hero-banner.style-1 .right-content .media-box .media2 {
  width: 170px; position: absolute; bottom: 0; left: 40%;
}
@media only screen and (max-width: 1480px) {
  .hero-banner.style-1 .right-content .media-box { display: none; }
  .hero-banner.style-1 .right-content .content { display: none; }
}
.hero-banner.style-1 .right-content .content .text {
  font-size: 20px; color: var(--bs-secondary); font-weight: 400; line-height: 1.4;
}

/* Star decorations */
.hero-banner.style-1 .item1,
.hero-banner.style-1 .item2,
.hero-banner.style-1 .item3 { position: absolute; width: auto; height: auto; }
@media only screen and (max-width: 991px) {
  .hero-banner.style-1 .item1,
  .hero-banner.style-1 .item2,
  .hero-banner.style-1 .item3 { display: none; }
}
.hero-banner.style-1 .item1 { top: 10%; right: 20%; }
.hero-banner.style-1 .item2 { bottom: 10%; left: 8%; }
.hero-banner.style-1 .item3 { bottom: 10%; right: 5%; }

/* ===== WORD-ROTATE-BOX ===== */

.word-rotate-box {
  display: flex; justify-content: center; align-items: center;
  width: 180px; height: 180px;
  background: transparent; border-radius: 100%;
  animation: identifier 20s linear infinite;
  text-align: center; padding: 15px; position: relative;
}
.word-rotate-box::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; z-index: -1;
  border-radius: 50%;
  border: 25px solid transparent;
  background: rgba(255,255,255,0.7);
  filter: drop-shadow(0 0 100px rgba(0,0,0,0.15));
  backdrop-filter: blur(17px);
}
.word-rotate-box .text__char {
  display: block; position: absolute;
  top: 10px; left: 10px;
  height: 80px; width: 160px;
  text-transform: uppercase; font-weight: 500; font-size: 16px;
  transform-origin: bottom center;
  transform: rotate(var(--char-rotate));
  color: #000;
}
.word-rotate-box .center-icon {
  width: 60px; height: 60px;
  background-color: #000; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.word-rotate-box.after-white { background-color: #fff; filter: none; backdrop-filter: none; }
.word-rotate-box.style-1 {
  width: 150px; height: 150px;
  display: flex; justify-content: center; align-items: center;
  padding: 15px; border-radius: 100%;
  background: transparent; backdrop-filter: none;
  border: none; gap: 0;
}
.word-rotate-box.style-1 .text__char {
  top: 5px; left: 5px; height: 70px; width: 140px;
  font-weight: 300; text-transform: inherit;
}
@media only screen and (max-width: 1199px) {
  .word-rotate-box { width: 150px; height: 150px; }
  .word-rotate-box .text__char { font-size: 13px; height: 65px; width: 130px; }
}
@media only screen and (max-width: 991px) {
  .word-rotate-box { width: 120px; height: 120px; }
  .word-rotate-box .text__char { font-size: 12px; height: 55px; width: 110px; top: 5px; left: 5px; }
}

.animate-rotate { animation: identifier 20s linear infinite; }
.animation-reverse { animation-direction: reverse !important; }

@keyframes identifier {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== SHOP PRODUCT CARDS ===== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 991px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .shop-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
}

.product-card .product-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
}

.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.04);
}

.product-card .badge-sale {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--medlight-secondary);
  color: #010101;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 50px;
}

.product-card .product-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.product-card .product-name {
  font-size: 16px;
  font-weight: 700;
  color: #010101;
  margin: 0;
  line-height: 1.35;
}

.product-card .product-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-card .product-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.product-card .product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--medlight-primary);
}

.product-card .product-price-original {
  font-size: 14px;
  color: #aaa;
  text-decoration: line-through;
}

/* ===== PRICE CARDS ===== */
.price-card {
  background: #fff;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.price-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.price-card.price-free {
  background: var(--medlight-primary);
  color: #fff;
}

.price-card .price-name {
  font-size: 15px;
  font-weight: 600;
  color: #010101;
  margin: 0;
}

.price-card.price-free .price-name {
  color: #fff;
}

.price-card .price-amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--medlight-primary);
  white-space: nowrap;
}

.price-card.price-free .price-amount {
  color: #fff;
  background: rgba(255,255,255,0.22);
  padding: 6px 16px;
  border-radius: 50px;
}

.price-card .price-subcategory {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--medlight-primary);
}

/* ===== AUTH CARDS (Area Riservata) ===== */
.auth-card {
  transition: all 0.3s ease;
}

.auth-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

/* ===== ORARI TABLE ===== */
.orari-table td {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.orari-table tr:last-child td {
  border-bottom: none;
}

/* ===== MAP WRAPPER ===== */
.map-wrapper iframe,
.map-wrapper .elementor-widget-google_maps iframe {
  border-radius: 0 !important;
  filter: grayscale(20%);
}

/* ===== BREADCRUMB ===== */
.dz-bnr-inr.style-1 {
  position: relative;
  overflow: hidden;
}

.dz-bnr-inr.style-1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(110,158,212,0.95) 0%, rgba(110,158,212,0.85) 100%);
  z-index: 0;
}

/* ===== BOX HOVER ===== */
.box-hover {
  transition: all 0.3s ease;
}

.box-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(110, 158, 212, 0.18);
}

/* ===== FILTER BUTTONS ===== */
.site-filters.style-1 .filter-prezzi a {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.site-filters.style-1 .filter-prezzi a.active {
  background: #010101;
  color: #fff;
}

.site-filters.style-1 .filter-prezzi a:not(.active) {
  background: #fdd075;
  color: #010101;
}

.site-filters.style-1 .filter-prezzi a:not(.active):hover {
  background: #010101;
  color: #fff;
}

/* ===== TEAM CARD ===== */
.team-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.team-card .team-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.team-card .team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover .team-img img {
  transform: scale(1.04);
}

.team-card .team-body {
  padding: 20px;
  text-align: center;
}

.team-card .team-name {
  font-family: var(--medlight-font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #010101;
  margin-bottom: 4px;
}

.team-card .team-role {
  font-size: 13px;
  color: var(--medlight-primary);
  font-weight: 500;
}

/* ===== BUTTONS ===== */

.btn {
  --bs-btn-padding-x: 25px; --bs-btn-padding-y: 14px;
  --bs-btn-font-size: 1rem; --bs-btn-font-weight: 400; --bs-btn-line-height: 1.25;
  --bs-btn-color: var(--bs-body-color); --bs-btn-bg: transparent;
  --bs-btn-border-width: 1px; --bs-btn-border-color: transparent;
  --bs-btn-border-radius: 15px; --bs-btn-hover-border-color: transparent;
  display: inline-block;
  padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
  font-size: var(--bs-btn-font-size); font-weight: var(--bs-btn-font-weight);
  line-height: var(--bs-btn-line-height); color: var(--bs-btn-color);
  text-align: center; text-decoration: none; vertical-align: middle;
  cursor: pointer; user-select: none;
  border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
  border-radius: var(--bs-btn-border-radius);
  background-color: var(--bs-btn-bg);
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}
.btn:hover  { color: var(--bs-btn-hover-color); background-color: var(--bs-btn-hover-bg); border-color: var(--bs-btn-hover-border-color); }
.btn-secondary {
  --bs-btn-color: #000; --bs-btn-bg: #fdd075; --bs-btn-border-color: #fdd075;
  --bs-btn-hover-color: #000; --bs-btn-hover-bg: #fdd893; --bs-btn-hover-border-color: #fdd893;
}
.btn-primary {
  --bs-btn-color: #fff; --bs-btn-bg: var(--bs-primary); --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #5b8fc4; --bs-btn-hover-border-color: #5b8fc4;
}
.btn-lg, .btn-group-lg > .btn {
  --bs-btn-padding-y: 18px; --bs-btn-padding-x: 25px;
  --bs-btn-font-size: 1.125rem; --bs-btn-border-radius: 15px;
}
.btn-sm, .btn-group-sm > .btn {
  --bs-btn-padding-y: 11px; --bs-btn-padding-x: 20px;
  --bs-btn-font-size: .875rem; --bs-btn-border-radius: 10px;
}
.btn-icon { display: inline-flex; align-items: center; }
.btn-icon .right-icon, .btn-icon .left-icon {
  height: 40px; width: 40px; min-width: 40px;
  background-color: #fff; border-radius: 10px;
  color: var(--bs-heading-color);
  display: inline-flex; align-items: center; justify-content: center;
  transform: translateY(1px);
}
.btn-icon .right-icon { margin: -11px -20px -11px 15px; }
.btn-icon .left-icon  { margin: -11px 15px -11px -20px; }
.btn-icon.btn-rounded .right-icon,
.btn-icon.btn-rounded .left-icon { border-radius: 50px; }
.btn-icon:hover .right-icon i,  .btn-icon:hover .right-icon svg  { animation: toRightFromLeft .3s forwards; }
.btn-icon:hover .left-icon i,   .btn-icon:hover .left-icon svg   { animation: toLeftFromRight .3s forwards; }

.btn-style1 { border-radius: 50px; position: relative; overflow: visible; }
.btn-style1:has(.right-icon) { padding: 13px 50px 13px 25px; }
.btn-style1:has(.left-icon)  { padding: 13px 25px 13px 50px; }
.btn-style1 .right-icon { position: absolute; right: 0; margin-left: -15px; }
.btn-style1 .left-icon  { position: absolute; left: 0; margin-right: -15px; }
.btn-style1.btn-lg .right-icon, .btn-style1.btn-lg .left-icon { width: 50px; height: 50px; border: 1px solid var(--medlight-light); }
.btn-style1.btn-secondary .right-icon { background-color: var(--bs-primary); }

@keyframes toRightFromLeft {
  49%  { transform: translateX(100%); }
  50%  { opacity: 0; transform: translateX(-100%); }
  51%  { opacity: 1; }
}
@keyframes toLeftFromRight {
  49%  { transform: translateX(-100%); }
  50%  { opacity: 0; transform: translateX(100%); }
  51%  { opacity: 1; }
}

/* ===== LAYOUT HELPERS ===== */

.content-inner-6 { padding-top: 140px !important; padding-bottom: 140px !important; }
@media only screen and (max-width: 1480px) { .content-inner-6 { padding-top: 100px !important; padding-bottom: 100px !important; } }
@media only screen and (max-width: 575px)  { .content-inner-6 { padding-top: 60px !important; padding-bottom: 60px !important; } }

.content-inner   { padding-top: 100px !important; padding-bottom: 100px !important; }
@media only screen and (max-width: 575px) { .content-inner { padding-top: 60px !important; padding-bottom: 60px !important; } }

.m-b0  { margin-bottom: 0 !important; }
.m-b30 { margin-bottom: 30px; }
.p-t80 { padding-top: 80px !important; }

/* bg-higlight — pannello grigio decorativo sulla destra (sezione Chi Siamo) */
.bg-higlight, .bg-higlight-left { z-index: 1; position: relative; }
.bg-higlight::before, .bg-higlight-left::before {
  content: ''; position: absolute; top: 0; right: 16%;
  background-color: #F6F6F6; width: 30%; height: 100%; z-index: -1;
}
@media only screen and (max-width: 991px) {
  .bg-higlight::before, .bg-higlight-left::before { content: none; }
}
.bg-higlight.bg-text::after, .bg-higlight-left.bg-text::after { mix-blend-mode: multiply; }

/* FAQ section bg-text: hardcoded perché apostrofo in attr() causa problemi */
.faq-section .bg-text.position5::after { content: "Faq's"; }

/* bg-text position4 e position5 */
.bg-text.position4::after { left: -15%; right: auto; top: -25%; width: 40%; }
.bg-text.position5::after { left: 0; top: -7%; }
@media only screen and (max-width: 1680px) { .bg-text.position5::after { top: 0; } }
@media only screen and (max-width: 767px)  { .bg-text.position5::after { left: 6%; } }

/* section-head style-8 (usata nel blog) */
.section-head.style-8 { margin-bottom: 40px; }
.section-head.style-8 .title { font-size: 50px; font-weight: 600; line-height: 1.15; }
@media only screen and (max-width: 1480px) { .section-head.style-8 .title { font-size: 38px; } }
@media only screen and (max-width: 991px)  { .section-head.style-8 .title { font-size: 30px; } }
@media only screen and (max-width: 575px)  { .section-head.style-8 .title { font-size: 26px; } }
.section-head.style-8 p { font-size: 18px; color: #000; opacity: 0.7; margin-top: 16px; }

/* blog card horizontal (Swiper) */
.dz-card.blog-half { display: flex; }
.dz-card.blog-half .dz-media { min-width: 320px; width: 320px; min-height: 250px; height: 100%; }
@media only screen and (max-width: 1199px) { .dz-card.blog-half .dz-media { min-width: 280px; width: 280px; } }
@media only screen and (max-width: 767px)  { .dz-card.blog-half .dz-media { min-width: 100%; width: 100%; } }
.dz-card.blog-half .dz-media img { width: 100%; height: 100%; object-fit: cover; }

.dz-card.style-1.blog-half { align-items: center; gap: 55px; }
@media only screen and (max-width: 1199px) { .dz-card.style-1.blog-half { gap: 30px; } }
.dz-card.style-1.blog-half .dz-media { min-width: 320px; width: 320px; min-height: 250px; border-radius: 0; }
.dz-card.style-1.blog-half .dz-media img { border-radius: 0; height: 100%; object-fit: cover; }
@media only screen and (max-width: 767px) {
  .dz-card.style-1.blog-half .dz-media { width: 100%; min-width: 100%; height: 400px; margin-bottom: 30px; }
}
.dz-card.style-1.blog-half .dz-info { padding: 0; border-radius: 0; flex: 1; }
.dz-card.style-1.blog-half .dz-info .dz-title { font-size: 30px; color: #000; margin-bottom: 15px; }
.dz-card.style-1.blog-half .dz-info p { font-size: 20px; color: #000; opacity: 0.7; margin-bottom: 60px; }
@media only screen and (max-width: 1199px) { .dz-card.style-1.blog-half .dz-info p { margin-bottom: 20px; } }
@media only screen and (max-width: 575px) {
  .dz-card.style-1.blog-half .dz-info .dz-title { font-size: 25px; }
  .dz-card.style-1.blog-half .dz-info p { font-size: 16px; margin-bottom: 10px; }
}
.dz-card.style-1.blog-half .dz-info .dz-meta ul { list-style: none; padding: 0; margin-bottom: 12px; }
.dz-card.style-1.blog-half .dz-info .dz-meta ul li.post-date {
  display: inline-block; background-color: #F6F6F6;
  font-size: 16px; font-family: 'DM Sans', sans-serif;
  padding: 6px 14px; line-height: 1; font-weight: 500;
}
.dz-card.style-1.blog-half .dz-info .info-bottom { display: flex; align-items: center; gap: 20px; }
.dz-card.style-1.blog-half .dz-info .dz-user-box { display: flex; align-items: center; gap: 10px; }
.dz-card.style-1.blog-half .dz-info .user-media { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; }
.dz-card.style-1.blog-half .dz-info .user-media img { width: 100%; height: 100%; object-fit: cover; }
.dz-card.style-1.blog-half .dz-info .dz-user { font-size: 15px; color: #000; }
.dz-card.style-1.blog-half .dz-info .dz-user a { color: #000; font-weight: 600; text-decoration: none; }

/* btn-square (bottone rotondo freccia nel blog) */
.btn-square { width: 50px; height: 50px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.btn.btn-primary { --bs-btn-color:#fff; --bs-btn-bg:var(--bs-primary); --bs-btn-border-color:var(--bs-primary); }
.rounded-circle { border-radius: 50% !important; }

/* service-pagination (frecce blog) */
.service-pagination.style-2 { display: flex; gap: 20px; margin-top: 30px; }
.service-pagination.style-2 .service-button-prev,
.service-pagination.style-2 .service-button-next {
  cursor: pointer; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,0,0,0.15); border-radius: 50%;
  transition: border-color .2s;
}
.service-pagination.style-2 .service-button-prev:hover,
.service-pagination.style-2 .service-button-next:hover { border-color: var(--bs-primary); }

/* Testimonial Swiper8 wrapper */
.testimonial-swiper8.testimonial-wrapper8 { padding-bottom: 120px; margin-bottom: -120px; overflow: hidden; }
@media only screen and (max-width: 1680px) { .testimonial-swiper8.testimonial-wrapper8 { padding-bottom: 0; margin-bottom: 0; } }

/* section-head style-3 (CTA title) */
.section-head.style-3 .title { font-size: 55px; font-weight: 700; text-transform: capitalize; line-height: 1.2; }
@media only screen and (max-width: 1480px) { .section-head.style-3 .title { font-size: 45px; } }
@media only screen and (max-width: 1199px) { .section-head.style-3 .title { font-size: 42px; } }
@media only screen and (max-width: 991px)  { .section-head.style-3 .title { font-size: 32px; } }
@media only screen and (max-width: 575px)  { .section-head.style-3 .title { font-size: 28px; } }

/* btn-white */
.btn.btn-white { color: var(--bs-secondary); background-color: #fff; }
.btn.btn-white:hover, .btn.btn-white:focus, .btn.btn-white:active {
  border-color: var(--bs-primary) !important; background-color: var(--bs-primary) !important; color: #fff;
}

/* content-wrapper style-3 (sezione CTA) */
.content-wrapper.style-3 { padding-top: 80px !important; padding-bottom: 80px !important; position: relative; overflow: hidden; }
.content-wrapper.style-3 .dz-media { overflow: hidden; height: 100%; }
.content-wrapper.style-3 .dz-media img { width: 100%; height: 100%; object-fit: cover; }
.content-wrapper.style-3 .content-info { padding: 60px 40px; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.content-wrapper.style-3 .bottom-info { margin-top: 40px; }
@media only screen and (max-width: 991px) { .content-wrapper.style-3 .content-info { padding: 40px 20px; } }

/* counter-box: assicura che il numero assoluto sia visibile */
.counter-box { overflow: visible !important; }
.counter-wrapper { overflow: visible !important; }

/* dz-features scrolling text (footer) */
.dz-features {
  font-family: 'DM Sans', sans-serif; font-style: normal; font-weight: 800;
  text-transform: uppercase; font-size: 170px; white-space: nowrap;
  color: #141414; line-height: 0.7; padding-top: 40px; padding-bottom: 40px;
  animation: ticker 32s linear infinite;
}
@media only screen and (max-width: 1199px) { .dz-features { font-size: 120px; padding: 30px 0; } }
@media only screen and (max-width: 575px)  { .dz-features { font-size: 50px; padding: 15px 0; } }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.dz-media, .dz-post-media { position: relative; overflow: hidden; }
.dz-media img, .dz-post-media img { max-width: 100%; height: auto; width: 100%; }

/* ===== SECTION HEAD style-15 ===== */

.section-head.style-15 { margin-bottom: 60px; }
@media only screen and (max-width: 1480px) { .section-head.style-15 { margin-bottom: 40px; } }
@media only screen and (max-width: 991px)  { .section-head.style-15 { margin-bottom: 30px; } }

.section-head.style-15 .title {
  font-size: 70px; font-weight: 600;
  text-transform: capitalize; line-height: 1.1; letter-spacing: 2px;
}
@media only screen and (max-width: 1480px) { .section-head.style-15 .title { font-size: 40px; } }
@media only screen and (max-width: 991px)  { .section-head.style-15 .title { font-size: 32px; } }
@media only screen and (max-width: 575px)  { .section-head.style-15 .title { font-size: 28px; } }

.section-head.style-15 p {
  font-size: 20px; font-weight: 300;
  font-family: var(--bs-body-font-family, 'DM Sans', sans-serif);
  color: #000; opacity: 0.7;
}
@media only screen and (max-width: 1480px) { .section-head.style-15 p { font-size: 18px; } }
@media only screen and (max-width: 575px)  { .section-head.style-15 p { font-size: 16px; } }

/* ===== COUNTER BOX (versione originale) ===== */

.counter-box {
  padding: 34px 46px 34px 120px;
  background-color: #F6F6F6;
  width: 340px;
  display: flex; align-items: center;
  position: relative;
  margin-left: 40px;
}
.counter-box .text { font-size: 18px; color: #000; }
.counter-box .counter-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600; font-size: 90px; color: #000;
  line-height: 1; position: absolute; left: -12%;
}
.counter-box.bg-primary { background-color: var(--bs-primary); }
.counter-box.bg-primary .text { color: #fff; }
.counter-box.bg-primary .counter-text { color: #fff; }
@media only screen and (max-width: 991px) {
  .counter-box { padding: 25px 40px 25px 80px; width: 300px; margin-left: 20px; }
  .counter-box .counter-text { font-size: 70px; }
}
@media only screen and (max-width: 767px) {
  .counter-box { width: 90%; margin-left: 10%; }
}

/* ===== TESTIMONIAL CARD (style-1) ===== */

.testimonial-1 {
  padding: 50px;
  height: 100%;
  background-color: #F6F6F6;
  position: relative;
}
@media only screen and (max-width: 1199px) { .testimonial-1 { padding: 35px; } }
@media only screen and (max-width: 575px)  { .testimonial-1 { padding: 25px; } }

.testimonial-1::after {
  content: "";
  position: absolute;
  background-image: url('data:image/svg+xml,<svg width="80" height="60" viewBox="0 0 80 60" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0V60L30 30V0H0Z" fill="%236e9ed4"/><path d="M50 0V60L80 30V0H50Z" fill="%236e9ed4"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  width: 80px;
  height: 60px;
  bottom: 10%;
  right: 10%;
  pointer-events: none;
}
@media only screen and (max-width: 575px) {
  .testimonial-1::after { width: 40px; height: 40px; bottom: 0; right: 2%; }
}

.testimonial-1 .testimonial-head {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}
.testimonial-1 .testimonial-head .title {
  margin-bottom: 0;
  font-size: 22px;
}
@media only screen and (max-width: 575px) {
  .testimonial-1 .testimonial-head .title { font-size: 20px; }
  .testimonial-1 .testimonial-head { margin-bottom: 10px; }
}
.testimonial-1 .testimonial-info .testimonial-text { margin-bottom: 55px; }
.testimonial-1 .testimonial-info .testimonial-text p {
  font-size: 20px;
  color: #000;
  opacity: 0.8;
}
@media only screen and (max-width: 1199px) {
  .testimonial-1 .testimonial-info .testimonial-text { margin-bottom: 35px; }
  .testimonial-1 .testimonial-info .testimonial-text p { font-size: 18px; }
}
@media only screen and (max-width: 575px) {
  .testimonial-1 .testimonial-info .testimonial-text { margin-bottom: 25px; }
  .testimonial-1 .testimonial-info .testimonial-text p { font-size: 16px; }
}
.testimonial-1 .testimonial-detail {
  display: flex;
  align-items: center;
  gap: 18px;
}
.testimonial-1 .testimonial-detail .dz-media {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial-1 .testimonial-detail .dz-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial-1 .testimonial-detail .testimonial-name {
  font-size: 20px;
  color: #100820;
  margin-bottom: 0;
}
.testimonial-1 .testimonial-detail .testimonial-position {
  color: #666666;
  font-size: 14px;
}

/* Stelle rating */
.testimonial-rating .star-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 4px;
}
.testimonial-rating .star-list li {
  color: #FFBE17;
  font-size: 16px;
}

/* Swiper testimonial section wrapper */
.testimonial-section { position: relative; }

/* Progress bar pagination */
.testimonial-pagination-swiper2.swiper-pagination-progressbar {
  background: rgba(110, 158, 212, 0.2);
  height: 3px;
  border-radius: 2px;
  margin-top: 32px;
  position: relative;
}
.testimonial-pagination-swiper2 .swiper-pagination-progressbar-fill {
  background: var(--bs-primary);
  border-radius: 2px;
}

/* Counter slide */
.testimonial-slider__current,
.testimonial-slider__total {
  font-family: var(--medlight-font-heading);
  font-weight: 600;
  color: var(--medlight-dark);
}

/* ===== SWIPER PAGINATION ===== */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(110, 158, 212, 0.3);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--medlight-primary);
  width: 24px;
  border-radius: 5px;
}

/* ===== VIDEO GALLERY ===== */
.video-gallery-medlight .epyt-gallery-title {
  font-size: 100%;
}

/* ===== MENU PREZZI ===== */
.menu-prezzi .menu a {
  border: 1px solid var(--ast-global-color-1);
}

.menu-prezzi li {
  padding: 0 10px;
}

/* ===== BG-TEXT — testo decorativo di sfondo ===== */
/*
  Uso in Elementor: aggiungere sulla Section/Container:
    Advanced → Custom Attributes → data-text = "Chi Siamo"
  Le classi CSS .bg-text e .positionX vanno in Advanced → CSS Classes
*/

.bg-text {
  position: relative;
}
.bg-text::after {
  content: attr(data-text);
  position: absolute;
  font-weight: 500;
  font-size: 190px;
  line-height: 1;
  color: #F6F6F6;
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  display: block;
  top: 0;
  left: 15%;
  z-index: -1;
  pointer-events: none;
  white-space: nowrap;
}
@media only screen and (max-width: 1480px) { .bg-text::after { font-size: 140px; } }
@media only screen and (max-width: 1199px) { .bg-text::after { font-size: 120px; } }
@media only screen and (max-width: 991px)  { .bg-text::after { font-size: 100px; } }
@media only screen and (max-width: 767px)  { .bg-text::after { font-size: 50px;  } }

/* position1 — sezione Chi Siamo (destra, 11% dall'alto) */
.bg-text.position1::after {
  left: auto; right: 10%; top: 11%;
}
@media only screen and (max-width: 991px)  { .bg-text.position1::after { top: 38%; } }
@media only screen and (max-width: 767px)  { .bg-text.position1::after { top: 52%; } }
@media only screen and (max-width: 575px)  { .bg-text.position1::after { right: 5%; top: 65%; } }

/* position2 — sezione Servizi (destra, colore scuro su sfondo colorato) */
.bg-text.position2::after {
  left: auto; right: 0; top: 7%;
  z-index: 0;
  color: #191919;
  opacity: 0.08;
}
@media only screen and (max-width: 1480px) { .bg-text.position2::after { top: -5%; } }
@media only screen and (max-width: 1199px) { .bg-text.position2::after { top: 0; } }
@media only screen and (max-width: 767px)  { .bg-text.position2::after { top: -4%; left: 2%; } }
@media only screen and (max-width: 575px)  { .bg-text.position2::after { top: -3%; left: 4%; } }

/* position3 — sezione Testimonial (destra, leggero) */
.bg-text.position3::after {
  left: auto; right: 2%; top: -7%;
}
@media only screen and (max-width: 1480px) { .bg-text.position3::after { top: 0; } }
@media only screen and (max-width: 991px)  { .bg-text.position3::after { top: -8%; } }
@media only screen and (max-width: 767px)  { .bg-text.position3::after { top: -6%; } }

/* ===== OFFCANVAS SIDEBAR (dz-offcanvas) ===== */

.dz-offcanvas {
  position: fixed;
  top: 0;
  right: -400px;
  width: 340px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  z-index: 99999;
  overflow-y: auto;
  transition: right 0.35s ease;
  box-shadow: -4px 0 30px rgba(0,0,0,0.12);
}
.dz-offcanvas.show {
  right: 0;
}
.dz-offcanvas .offcanvas-body {
  padding: 30px;
}
.dz-offcanvas .btn-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--medlight-dark);
  line-height: 1;
  padding: 4px 8px;
}
.dz-offcanvas .sidebar-header {
  width: 160px;
  margin-bottom: 24px;
}
.dz-offcanvas .widget {
  margin-bottom: 32px;
}
.dz-offcanvas .widget-title .title {
  font-size: 15px;
  font-weight: 600;
  color: var(--medlight-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dz-offcanvas.style-2 .widget .list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dz-offcanvas.style-2 .widget .list-check li {
  color: rgba(0,0,0,0.6);
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.6;
}
.dz-offcanvas.style-2 .widget .list-check li a {
  color: rgba(0,0,0,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.dz-offcanvas.style-2 .widget .list-check li a:hover {
  color: var(--bs-primary);
}
.dz-offcanvas .dz-social-icon ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
}
.dz-offcanvas.style-2 .widget .dz-social-icon ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bs-primary);
  text-decoration: none;
  transition: transform 0.2s;
}
.dz-offcanvas.style-2 .widget .dz-social-icon ul li a:hover {
  transform: translateY(-3px);
}
.dz-offcanvas.style-2 .widget .dz-social-icon ul li a i {
  color: var(--bs-secondary);
  font-size: 15px;
}

/* Overlay scuro dietro la sidebar */
.dz-offcanvas-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 99998;
}
.dz-offcanvas-overlay.show {
  display: block;
}

/* Newsletter form dentro sidebar */
.dz-offcanvas .dzSubscribe .input-group {
  display: flex;
  border: 1px solid #E1EBF1;
  border-radius: 8px;
  overflow: hidden;
}
.dz-offcanvas .dzSubscribe .form-control {
  border: none;
  padding: 10px 14px;
  font-size: 13px;
  flex: 1;
  outline: none;
}
.dz-offcanvas .dzSubscribe .input-group-addon .btn {
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--bs-secondary);
}

/* ===== HEADER — TRANSPARENT + STICKY + DUAL LOGO ===== */

/* Elementor Theme Builder header — sopra l'hero, trasparente */
.elementor-location-header {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: transparent !important;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Stato scrolled — diventa fisso con sfondo bianco */
.elementor-location-header.header-scrolled {
  position: fixed !important;
  background: #ffffff !important;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.08) !important;
}

/* Dual logo: trasparente → logo bianco */
.elementor-location-header:not(.header-scrolled) .logo-dark  { display: none !important; }
.elementor-location-header:not(.header-scrolled) .logo-light { display: flex !important; }

/* Dual logo: scrolled → logo scuro */
.elementor-location-header.header-scrolled .logo-dark  { display: flex !important; }
.elementor-location-header.header-scrolled .logo-light { display: none !important; }

/* Su mobile: sempre logo scuro */
@media only screen and (max-width: 991px) {
  .elementor-location-header .logo-dark  { display: flex !important; }
  .elementor-location-header .logo-light { display: none !important; }
}

/* Hamburger: bianco su trasparente, scuro su scrolled */
.elementor-location-header:not(.header-scrolled) .w3menu-toggler span { background: #ffffff; }
.elementor-location-header.header-scrolled .w3menu-toggler span { background: var(--bs-heading-color, #010101); }

/* Icona search: bianca su trasparente */
.elementor-location-header:not(.header-scrolled) .extra-nav svg path { fill: #ffffff; }
.elementor-location-header.header-scrolled .extra-nav svg path { fill: var(--bs-secondary, #fdd075); }

/* Struttura base */
.site-header {
  position: relative;
  z-index: 9999;
}
.site-header .main-bar {
  width: 100%;
  position: relative;
  transition: all 0.5s ease;
}
.sticky-header {
  position: relative;
}

/* Header trasparente — posizione assoluta sopra l'hero */
.header-transparent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.header-transparent .main-bar {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Sticky attivo (classe .is-fixed aggiunta da medlight-core.js su scroll) */
.is-fixed .main-bar {
  position: fixed !important;
  top: 0;
  left: 0;
  box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.1) !important;
  background: #ffffff !important;
  z-index: 9999;
}

/* Admin bar offset */
.admin-bar .is-fixed .main-bar {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .is-fixed .main-bar {
    top: 46px;
  }
}

/* Dual logo — stato trasparente: logo bianco visibile, logo scuro nascosto */
.header-transparent .logo-light { display: flex; }
.header-transparent .logo-dark  { display: none;  }

/* Dual logo — dopo scroll (is-fixed): sfondo bianco, logo scuro */
.header-transparent .is-fixed .logo-light { display: none;  }
.header-transparent .is-fixed .logo-dark  { display: flex;  }

/* Mobile: header sempre leggibile → logo scuro */
@media only screen and (max-width: 991px) {
  .header-transparent .logo-dark  { display: flex; }
  .header-transparent .logo-light { display: none; }
}

/* Logo — dimensioni */
.logo-header {
  display: flex;
  align-items: center;
  height: 80px;
  width: 190px;
  position: relative;
  z-index: 9;
  flex-shrink: 0;
}
.logo-header img {
  max-width: 100%;
  object-fit: contain;
  transition: all 0.5s;
}
@media only screen and (max-width: 1199px) {
  .logo-header { width: 135px; }
}
@media only screen and (max-width: 575px) {
  .logo-header { height: 65px; }
}

/* Icona search e nav-item SVG — bianchi sul trasparente, cambiano su is-fixed */
.header-transparent .extra-nav .nav-item svg path {
  fill: #ffffff;
  transition: fill 0.3s;
}
.header-transparent .is-fixed .extra-nav .nav-item svg path {
  fill: var(--bs-secondary);
}

/* Hamburger icon — bianco su trasparente */
.header-transparent .w3menu-toggler span {
  background: #ffffff;
  transition: background 0.3s;
}
.header-transparent .is-fixed .w3menu-toggler span {
  background: var(--bs-heading-color);
}

/* ===== FIX 2026-07-01: hero passa sotto header sticky ===== */
/* Header sticky (position:absolute, top:0, height:90px) copriva i primi 90px
   del titolo hero. Padding-top 100px sull'hero container per compensare. */
body.page-id-6854 .elementor-element-3d6ccbf {
  padding-top: 100px !important;
  box-sizing: border-box;
}

/* ===== FIX 2026-07-01: paragrafo hero troppo stretto ===== */
/* L'editor text 724e4b7 aveva padding-right:4em (=64px) che "strizzava"
   il paragrafo a 197px invece di 479px naturali. Lo zero. */
body.page-id-6854 .elementor-element-724e4b7 {
  padding-right: 0 !important;
}

/* ===== FIX 2026-07-01: container testo hero troppo stretto ===== */
/* Il container f9cb2e9 era width:46.336% (510px su 1102px). Lo allargo
   a 60% per dare al paragrafo hero più respiro. */
body.page-id-6854 .elementor-element-f9cb2e9 {
  --width: 60% !important;
  flex: 0 0 60% !important;
  max-width: 60% !important;
}

/* ===== FIX 2026-07-01: freccia "I MIGLIORI SERVIZI" bianca ===== */
/* Dopo il rewrite JS, la freccia prende currentColor (parent color).
   Per .mlrt-link (cerchio "I MIGLIORI SERVIZI") il parent ha color rosa
   di default — forza bianco. */
.mlrt-link,
.mlrt-link svg,
.mlrt-link svg path {
  color: #fff !important;
  fill: #fff !important;
}
