/* ============================================
   Hello Elementor Child - Custom CSS
   ============================================ */

:root {
    --colore-blu: #253A81;
    --colore-rosso: #E30613;
    --colore-chiaro:#FAF8F5;
    --colore-scuro: #F5F2ED;
    --header-h: 68px;
}

.title_mt-0 h3 {
    margin-top: 0 !important;
}

/* =============================================================
   HEADER – Nessuno è Solo Child Theme
   ============================================================= */

/* Compensa header fisso */
body { padding-top: var(--header-h); background: #F5F2ED; }
body.elementor-editor-active { padding-top: 0; }

/* ── Base header: completamente trasparente in cima ─────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: var(--header-h) !important;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition:
    background      0.35s ease,
    backdrop-filter 0.35s ease,
    border-color    0.3s  ease,
    box-shadow      0.3s  ease;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Stato scrolled: sfondo bianco semi-trasparente + blur ──── */
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

/* ── Inner layout ────────────────────────────────────────────── */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px !important;
  height: var(--header-h) !important;
  gap: 24px;
  box-sizing: border-box;
}

/* ── BRANDING ────────────────────────────────────────────────── */
.site-branding {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.site-logo img {
  max-height: 40px;
  width: 100%;
  display: block;
}
.site-title a {
  font-size: 18px;
  font-weight: 800;
  color: #1a2540;
  text-decoration: none;
  letter-spacing: -0.4px;
  text-transform: uppercase;
}
.site-description {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
  margin: 0;
}

/* ── NAVIGAZIONE DESKTOP ─────────────────────────────────────── */
.site-navigation { flex: 1; display: flex; justify-content: center; }
.site-navigation ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.site-navigation ul li a {
  display: block;
  padding: 7px 15px;
  font-size: 14px;
  font-weight: 500;
  color: hsl(226deg 56% 14% / 80%);
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.site-navigation ul li a:hover { background: #E2E6F3; }
.site-navigation ul li.current-menu-item > a,
.site-navigation ul li.current-menu-ancestor > a {
  background: #E2E6F3;
  font-weight: 500;
  color: var(--colore-blu);
}

/* Freccia dropdown → arrow-down.svg */
.site-navigation ul.menu li.menu-item-has-children:after { display: none !important; }
.site-navigation ul li.menu-item-has-children > a {
  padding-right: 30px;
  position: relative;
}
.site-navigation ul li.menu-item-has-children > a::after {
  content: '';
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  background: url('../icons/arrow-down.svg') center / contain no-repeat;
  opacity: 1;
  transition: transform 0.2s;
}
.site-navigation ul li.menu-item-has-children:hover > a::after,
.site-navigation ul li.menu-item-has-children:focus-within > a::after {
  transform: translateY(-50%) rotate(180deg);
  opacity: 1;
}

/* Sottomenu */
.site-navigation ul li.menu-item-has-children { position: relative; }
.site-navigation ul li.menu-item-has-children > ul.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px; padding: 8px 0;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 100; flex-direction: column; gap: 0;
}
.site-navigation ul li.menu-item-has-children:hover > ul.sub-menu,
.site-navigation ul li.menu-item-has-children:focus-within > ul.sub-menu { display: flex; align-items: start; }
.site-navigation ul li.menu-item-has-children > ul.sub-menu li {
    display: block;
    width: 100%;
}
.site-navigation ul li.menu-item-has-children > ul.sub-menu li a {
  border-radius: 6px; margin: 0 8px; padding: 9px 14px; font-size: 13px;
}
/* Ponte invisibile per coprire il gap di 8px e mantenere l'hover */
.site-navigation ul li.menu-item-has-children > ul.sub-menu::before {
    content: '';
    position: absolute;
    top: -8px; /* Deve essere uguale al valore aggiunto nel calc() */
    left: 0;
    width: 100%;
    height: 8px; /* Altezza del gap */
    background: transparent; /* Invisibile */
}

.site-navigation ul.menu li.menu-item-has-children {
    padding-inline-end: 0 !important;
}
/* ── HEADER ACTIONS ──────────────────────────────────────────── */
.header-actions { flex-shrink: 0; display: flex; align-items: center; gap: 12px; }

/* ── CTA BUTTON ──────────────────────────────────────────────── */
.header-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: #e03030; color: #fff !important;
  font-size: 14px; font-weight: 600;
  border-radius: 50px; text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(224, 48, 48, 0.25);
  white-space: nowrap;
}
.header-cta-btn:hover {
  background: #c02020; transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(224, 48, 48, 0.35);
}
.header-cta-icon {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; 
  border-radius: 0; flex-shrink: 0;
}
.header-cta-icon img {
  width: 25px; height: 25px;
  filter: brightness(0) invert(1);
}

/* ── HAMBURGER MOBILE: SVG image ────────────────────────────── */
.my-custom-toggle {
  background: none; border: none; cursor: pointer;
  padding: 8px; display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 8px; transition: background 0.2s;
}
.my-custom-toggle:hover { background: rgba(0, 0, 0, 0.06); }
.my-custom-toggle img   { display: block; width: 24px; height: 24px; }
.my-custom-toggle-icon,
.my-custom-toggle-icon::before,
.my-custom-toggle-icon::after { display: none; }

/* ── OVERLAY scuro dietro il drawer ──────────────────────────── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9996;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s ease;
}
.mobile-nav-overlay.is-visible {
  display: block;
  background: rgba(0, 0, 0, 0.45);
}

/* ── DRAWER MOBILE CUSTOM (Slegato da Elementor) ─────────────── */
#mobile-nav.my-custom-drawer {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 80% !important;
    max-width: 450px;
    z-index: 9997;
    background: var(--colore-blu);
    padding: calc(var(--header-h) + 32px) 36px 48px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s linear 0.4s !important;
}

#mobile-nav.my-custom-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: all;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s linear 0s !important;
}

/* Pulsante chiudi (close.svg) */
.mobile-nav-close {
  position: absolute;
  top: calc((var(--header-h) - 40px) / 2);
  right: 20px; 
  border: none; cursor: pointer;
  width: 40px; height: 40px; 
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  padding: 0 !important;
}
.mobile-nav-close:hover { background: rgba(255, 255, 255, 0.2); }
.mobile-nav-close img {
  width: 40px; height: 40px;
  filter: brightness(0) invert(1);
}

/* Reset struttura lista e rimozione sfondi di default WordPress/Elementor */
.my-custom-mobile-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Voci di menu principali */
.my-custom-mobile-menu li {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.my-custom-mobile-menu li:last-child { 
    border-bottom: none !important; 
}

/* Ingresso animato quando si apre il drawer */
#mobile-nav.is-open .my-custom-mobile-menu li { 
    opacity: 1; 
    transform: translateX(0); 
}

/* Stagger delle voci */
#mobile-nav.is-open .my-custom-mobile-menu li:nth-child(1) { transition-delay: 0.18s; }
#mobile-nav.is-open .my-custom-mobile-menu li:nth-child(2) { transition-delay: 0.23s; }
#mobile-nav.is-open .my-custom-mobile-menu li:nth-child(3) { transition-delay: 0.28s; }
#mobile-nav.is-open .my-custom-mobile-menu li:nth-child(4) { transition-delay: 0.33s; }
#mobile-nav.is-open .my-custom-mobile-menu li:nth-child(5) { transition-delay: 0.38s; }
#mobile-nav.is-open .my-custom-mobile-menu li:nth-child(6) { transition-delay: 0.43s; }
#mobile-nav.is-open .my-custom-mobile-menu li:nth-child(7) { transition-delay: 0.48s; }
#mobile-nav.is-open .my-custom-mobile-menu li:nth-child(8) { transition-delay: 0.53s; }

/* Link */
.my-custom-mobile-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 20px; 
    font-weight: 600;
    color: #ffffff !important;
    background: transparent !important;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

.my-custom-mobile-menu li a:hover {
    color: rgba(255, 255, 255, 0.65) !important;
    padding-left: 6px;
}

/* Freccia Sottomenu nel drawer */
.my-custom-mobile-menu li.menu-item-has-children > a::after {
    content: '';
    width: 18px; 
    height: 18px; 
    flex-shrink: 0;
    background: url('../icons/arrow-down.svg') center / contain no-repeat;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: transform 0.3s;
    position: static;
    transform: none;
}
.my-custom-mobile-menu li.menu-item-has-children.is-open > a::after {
    transform: rotate(180deg);
}

/* Struttura Sottomenu (Accordion) */
.my-custom-mobile-menu li > ul.sub-menu {
    display: none; 
    padding: 0 0 8px 16px;
    background: transparent;
    list-style: none;
}

.my-custom-mobile-menu li.is-open > ul.sub-menu { display: block; }

.my-custom-mobile-menu li > ul.sub-menu li {
    border-bottom: none !important; 
    opacity: 1; 
    transform: none; 
    transition: none;
}

.my-custom-mobile-menu li > ul.sub-menu li a {
    font-size: 15px; 
    font-weight: 400; 
    padding: 9px 0;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ── ADMIN BAR (utenti loggati) ──────────────────────────────── */
.admin-bar #site-header { top: 32px; }
.admin-bar body         { padding-top: calc(var(--header-h) + 32px); }
.admin-bar .my-custom-drawer { top: 32px; }
.admin-bar .mobile-nav-close { top: calc((var(--header-h) - 40px) / 2 + 32px); }

@media screen and (max-width: 782px) {
  .admin-bar #site-header { top: 46px; }
  .admin-bar body         { padding-top: calc(var(--header-h) + 46px); }
  .admin-bar .my-custom-drawer { top: 46px; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
 
@media screen and (min-width: 992px) and (max-width:1200px){
    .site-footer .footer-inner, .site-footer:not(.dynamic-footer), .site-header .header-inner, .site-header:not(.dynamic-header) {
        max-width: 100% !important;
    }
}

@media (max-width: 1024px) {
  .site-navigation         { display: none; }
  .my-custom-toggle  { display: flex; }
  .header-cta-label        { display: none; }
  .header-cta-btn          { padding: 0px 0px; }
  .header-cta-icon {
    
    width: 40px;
    height: 40px;
  }
  .header-cta-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    padding: 5px;
}
.site-navigation-toggle-holder {
    padding: 0 !important;
}

.my-custom-toggle {
    padding: 0 !important;
}
.my-custom-toggle img {
    display: block;
    width: 40px;
    height: 40px;
}
}
@media (max-width: 600px) {
  .header-inner { padding: 0 10px !important; }
  .my-custom-drawer { padding: calc(var(--header-h) + 32px) 24px 40px; }
  .my-custom-mobile-menu li a { font-size: 20px; }
  .site-logo img {
    height: 35px !important;
  }
}


/* =============================================================
   Form di contatto
   ===== CONTACT FORM 7 CUSTOM STYLE =====
   ============================================================= */

.cf7-custom-wrapper {
  width: 100%;
  margin: 0 auto;
}

/* ---- Layout a due colonne ---- */
.cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.cf7-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cf7-field-group.cf7-full { margin-bottom: 20px; }

/* ---- Labels ---- */
.cf7-custom-wrapper label {
  font-size: 13px;
  font-weight: 600;
  color: var(--e-global-color-text);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ---- Input, Textarea, Select ---- */
.cf7-custom-wrapper input[type="text"],
.cf7-custom-wrapper input[type="tel"],
.cf7-custom-wrapper input[type="email"],
.cf7-custom-wrapper select,
.cf7-custom-wrapper textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1.5px solid #e0dbd4;
  border-radius: 6px;
  color: var(--e-global-color-text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.cf7-custom-wrapper input::placeholder,
.cf7-custom-wrapper textarea::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.cf7-custom-wrapper input:focus,
.cf7-custom-wrapper select:focus,
.cf7-custom-wrapper textarea:focus {
  outline: none;
  border-color: var(--colore-rosso);
  background-color: rgba(255, 255, 255, 0.12);
}

/* ---- Select con freccia personalizzata ---- */
.cf7-custom-wrapper select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23212121' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}

/* ---- Textarea ---- */
.cf7-custom-wrapper textarea { resize: vertical; min-height: 120px; }

/* ---- Asterisco required ---- */
.cf7-required { color: var(--colore-rosso); }

/* ---- Bottone Submit ---- */
.cf7-submit-row { margin-top: 10px; }

.cf7-custom-wrapper input[type="submit"],
.cf7-custom-wrapper .wpcf7-submit {
  display: inline-flex; align-items: center; gap: 8px;
  background-color: var(--colore-rosso);
  color: var(--e-global-color-text);
  border: none; border-radius: 6px;
  padding: 15px 32px;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.02em; cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  font-family: inherit;
}
.cf7-custom-wrapper input[type="submit"]:hover,
.cf7-custom-wrapper .wpcf7-submit:hover {
  background-color: #b00015;
  transform: translateY(-1px);
}

/* ---- Messaggi di risposta ---- */
.cf7-custom-wrapper .wpcf7-response-output {
  margin-top: 16px; padding: 12px 18px;
  border-radius: 6px; font-size: 14px; border: none !important;
}
.cf7-custom-wrapper .wpcf7-mail-sent-ok {
  background-color: rgba(34, 197, 94, 0.15); color: #6ee7a0;
}
.cf7-custom-wrapper .wpcf7-validation-errors,
.cf7-custom-wrapper .wpcf7-mail-sent-ng {
  background-color: rgba(212, 0, 27, 0.15); color: var(--colore-rosso);
}

/* ---- Errori sui singoli campi ---- */
.cf7-custom-wrapper .wpcf7-not-valid-tip {
  color: var(--colore-rosso); font-size: 12px; margin-top: 4px;
}
.cf7-custom-wrapper input.wpcf7-not-valid,
.cf7-custom-wrapper select.wpcf7-not-valid,
.cf7-custom-wrapper textarea.wpcf7-not-valid { border-color: var(--colore-rosso); }

/* ---- Spinner di caricamento ---- */
.cf7-custom-wrapper .wpcf7-spinner { margin-left: 12px; vertical-align: middle; }

/* ---- Responsive mobile ---- */
@media (max-width: 640px) {
  .cf7-row { grid-template-columns: 1fr; }
}

/* ---- Select wrapper (fix freccia visibile) ---- */
.cf7-custom-wrapper .cf7-field-group.has-select { position: relative; }
.cf7-custom-wrapper select {
  background-image: none;
  background-repeat: no-repeat;
  padding-right: 42px;
  cursor: pointer;
}

/* ===== CHECKBOX PRIVACY CF7 — stile animato ===== */

.cf7-privacy .wpcf7-list-item { margin: 0; }
.cf7-privacy .checkbox-wrapper-33 {
  --s-small: 1.2em;
  --border-width: 1.5px;
  --c-primary: #212121;
  --c-primary-20: rgb(212 0 27 / 20%);
  --c-primary-10: rgb(212 0 27 / 10%);
  --t-base: 0.4s;
  --t-fast: 0.2s;
  --e-in: ease-in;
  --e-out: cubic-bezier(.11,.29,.18,.98);
}

.cf7-privacy .checkbox__trigger.visuallyhidden {
  border: 0; clip: rect(0 0 0 0); height: 1px;
  margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px;
}
.cf7-privacy .checkbox {
  display: flex; align-items: flex-start; gap: 0; cursor: pointer;
}
.cf7-privacy .checkbox__symbol {
  display: inline-flex; flex-shrink: 0;
  margin-right: calc(var(--s-small) * 0.7); margin-top: 2px;
  border: var(--border-width) solid var(--c-primary);
  position: relative; border-radius: 0.15em;
  width: 1.4em; height: 1.4em;
  transition: box-shadow var(--t-base) var(--e-out), background-color var(--t-base);
  box-shadow: 0 0 0 0 var(--c-primary-10);
}
.cf7-privacy .checkbox__symbol::after {
  content: "";
  position: absolute; top: 0.45em; left: 0.45em;
  width: 0.25em; height: 0.25em;
  background-color: var(--c-primary-20);
  opacity: 0; border-radius: 50%;
  transform: scale(1); transform-origin: 50% 50%;
}
.cf7-privacy .icon-checkbox {
  width: 1em; height: 1em; margin: auto;
  fill: none; stroke-width: 3; stroke: currentColor;
  stroke-linecap: round; stroke-linejoin: round;
  color: var(--c-primary); display: inline-block;
}
.cf7-privacy .icon-checkbox path {
  transition: stroke-dashoffset var(--t-fast) var(--e-in);
  stroke-dasharray: 30px, 31px;
  stroke-dashoffset: 31px;
}
.cf7-privacy .checkbox__textwrapper {
  margin: 0; font-size: 13px; line-height: 1.5;
  font-weight: 400 !important; color: var(--e-global-color-text);
}
.cf7-privacy .checkbox__textwrapper a {
  color: var(--e-global-color-text); text-decoration: underline;
  text-underline-offset: 2px; transition: color 0.2s;
}
.cf7-privacy .checkbox__textwrapper a:hover { color: var(--c-primary); }

.cf7-privacy .checkbox__trigger:checked + .checkbox__symbol::after {
  animation: ripple-cf7 1.5s var(--e-out);
}
.cf7-privacy .checkbox__trigger:checked + .checkbox__symbol .icon-checkbox path {
  transition: stroke-dashoffset var(--t-base) var(--e-out);
  stroke-dashoffset: 0px;
}
.cf7-privacy .checkbox__trigger:focus + .checkbox__symbol {
  box-shadow: 0 0 0 0.25em var(--c-primary-20);
}

@keyframes ripple-cf7 {
  from { transform: scale(0); opacity: 1; }
  to   { transform: scale(20); opacity: 0; }
}

.cf7-privacy .wpcf7-not-valid-tip {
  color: #ff7070; font-size: 12px; margin-top: 6px; display: block;
}

/* ===== Submit button con icona ===== */
.cf7-custom-wrapper .cf7-btn-icon {
  display: inline-flex; align-items: center; gap: 10px;
  background-color: #d4001b; color: #ffffff;
  border: none; border-radius: 6px;
  padding: 15px 32px;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.02em; cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, transform 0.15s ease;
  overflow: hidden;
}
.cf7-custom-wrapper .cf7-btn-icon:hover {
  background-color: var(--colore-blu);
  transform: translateY(-1px);
}
.cf7-custom-wrapper .cf7-btn-label { display: inline-block; }
.cf7-custom-wrapper .cf7-btn-arrow {
  display: inline-flex; align-items: center;
  transition: transform 0.3s cubic-bezier(.11,.29,.18,.98);
}
.cf7-custom-wrapper .cf7-btn-arrow img {
  display: block;
  filter: brightness(0) invert(1);
  width: 22px; height: 22px;
}
.cf7-custom-wrapper .cf7-btn-icon:hover .cf7-btn-arrow {
  transform: translateX(6px);
}


/* ============================================================
   BLOG SLIDER – da incollare nel tuo custom.css
   ============================================================ */

/* ── Sezione wrapper ── */
.nes-blog-slider-section {
    padding: 72px 0;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

 
/* ── Label rossa ── */
.nes-section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--colore-rosso);
    margin-bottom: 10px;
}
.nes-section-label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--colore-rosso);
    flex-shrink: 0;
}

/* ── Titolo sezione ── */
.nes-section-title { 
    font-weight: 800;
    color: var(--colore-blu);
    font-family: var(--e-global-typography-accent-font-family);
    line-height: 1.2;
    margin: 0;
}

 .nes-blog-slider-header {
    display: flex;
    align-items: center;          /* ← era flex-end, ora center */
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 36px;
}

.nes-slider-controls {
    display: flex;
    flex-direction: row;          /* ← forza orizzontale */
    align-items: center;
    flex-wrap: nowrap;            /* ← impedisce il wrap verticale */
    gap: 12px;
}

/* Sicurezza: i bottoni non diventino block */
.nes-btn-nav,
.nes-btn-cta {
    flex-shrink: 0;
}

/* Responsive: sotto 640px i controlli vanno sotto il titolo */
@media (max-width: 640px) {
    .nes-blog-slider-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .nes-slider-controls {
        flex-wrap: wrap;
    }
}
.nes-btn-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--colore-rosso);
    background: transparent;
    color: var(--colore-rosso);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
    line-height: 1;
    padding: 0;
}
.nes-btn-nav:hover {
    background: var(--colore-rosso);
    color: #fff;
}
.nes-btn-nav.swiper-button-disabled {
    opacity: .3;
    pointer-events: none;
}

/* ── Pagination dots ── */
.nes-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    width: auto !important;
}
.nes-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ddd;
    opacity: 1;
    border-radius: 50%;
    transition: all .3s;
    cursor: pointer;
    margin: 0 !important;
}
.nes-pagination .swiper-pagination-bullet-active {
    background: var(--colore-rosso);
    width: 24px;
    border-radius: 4px;
}

/* ── CTA ── */
.nes-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--colore-rosso);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background .2s, transform .2s;
}
.nes-btn-cta:hover {
    background: #a30d25;
    transform: translateY(-2px);
}

/* ── Swiper override ── */
.nes-blog-slider-section .swiper {
    overflow: hidden;
}
.nes-blog-slider-section .swiper-wrapper {
    align-items: stretch;
    padding-bottom: 50px;
}
.nes-blog-slider-section .swiper-slide {
    height: auto;
}

/* ── Card ── */
.nes-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease;
}
.nes-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(200,16,46,.13);
}

/* ── Immagine card ── */
.nes-card-img-link {
    display: block;
    overflow: hidden;
}
.nes-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.nes-card:hover .nes-card-img {
    transform: scale(1.04);
}
.nes-card-img-placeholder {
    background: linear-gradient(135deg, #f0f0f0, #e4e4e4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
}

/* ── Card body ── */
.nes-card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
button:focus, button:hover {
    background-color: var(--colore-rosso);
}
.nes-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nes-card-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--colore-rosso);
    background: rgba(200,16,46,.08);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.nes-card-date {
    font-size: 12px;
    color: #999;
    margin-left: auto;
    white-space: nowrap;
}

.nes-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin: 0;
}
.nes-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.nes-card-title a:hover { color: var(--colore-rosso); }

.nes-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
    flex: 1;
    margin: 0;
}

.nes-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--colore-rosso);
    text-decoration: none;
    margin-top: 4px;
    transition: gap .2s;
}
.nes-card-link::after { content: "→"; }
.nes-card-link:hover { gap: 9px; color: var(--colore-rosso); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nes-blog-slider-header {
        flex-direction: column;
        align-items: flex-start;
    }
}




/* =============================================================
   FOOTER – Nessuno è Solo Child Theme
   ============================================================= */

#site-footer {
    background: var(--colore-blu);
    color: rgba(255, 255, 255, 0.75);
    padding: 0;
    margin: 0;
}

/* ── Grid principale ──────────────────────────────────────── */
#site-footer .footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1.1fr 0.8fr 1.1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 15px 56px;
    box-sizing: border-box;
    align-items: start;
}

/* ── Col 1: Brand ─────────────────────────────────────────── */
.footer-brand .footer-logo {
    margin-bottom: 20px;
}
.footer-brand .footer-logo img {
    max-height: 65px;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    width: auto;
    display: block;
}
.footer-tagline {
    font-size: 14px !important;
    line-height: 18px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.60);
    margin: 0;
    max-width: 280px;
}
.p-2 {
    padding: 5px;
}
.footer-brand p {
    font-size: 14px !important;
}

/* ── Titoli colonne ───────────────────────────────────────── */
.footer-col-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.70);
    margin: 0 0 18px 0;
    padding: 0;
}

/* ── Menu Servizi / Info ──────────────────────────────────── */
.footer-menu-col nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.footer-menu-col nav ul li {
    background: transparent !important;
    border: none !important;
}
.footer-menu-col nav ul li a {
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.2s ease, padding-left 0.2s ease;
    background: transparent !important;
    font-family: var(--e-global-typography-primary-font-family);
}
.footer-menu-col nav ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* ── Contatti ─────────────────────────────────────────────── */
.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}
.footer-contact-list img {
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.65;
}
.footer-contact-list a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-contact-list a:hover { color: #ffffff; }

/* ── Bottom bar ───────────────────────────────────────────── */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
    gap: 20px;
}
.footer-copyright,
.footer-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.38);
    margin: 0;
    line-height: 1.5;
}
.footer-copyright strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    #site-footer .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-tagline { max-width: 100%; }
}
@media (max-width: 600px) {
    #site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 20px 40px;
    }
    .footer-brand { grid-column: auto; }
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
}

/* =============================================================
   WHATSAPP FAB – Floating Action Button
   ============================================================= */

.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9998;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    text-decoration: none;

    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;

    /* Animazione d'ingresso */
    animation: fab-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 1.2s;
    opacity: 0;
}

@keyframes fab-pop {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.whatsapp-fab:hover {
    background: #1ebe5d;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}
.whatsapp-fab:active {
    transform: scale(0.96);
}

/* ── Pulse ring ────────────────────────────────────────────── */
.whatsapp-fab::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.35);
    animation: fab-pulse 2.4s ease-out infinite;
    animation-delay: 2s;
    pointer-events: none;
}

@keyframes fab-pulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}

/* ── Tooltip ───────────────────────────────────────────────── */
.whatsapp-fab-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: rgba(20, 20, 20, 0.88);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    padding: 7px 13px;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.whatsapp-fab-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(20, 20, 20, 0.88);
}

.whatsapp-fab:hover .whatsapp-fab-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ── Mobile: più piccolo e in basso ────────────────────────── */
@media (max-width: 600px) {
    .whatsapp-fab {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 18px;
    }
    .whatsapp-fab svg {
        width: 24px;
        height: 24px;
    }
    .whatsapp-fab-tooltip { display: none; }
}