/*
Theme Name: e061070-lite
Theme URI: https://e061070.com
Author: e061070
Author URI: https://e061070.com
Description: Tema personalizzato
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: e061070-lite
Tags: wordpress, custom
*/

/* ===== RISOLUZIONE DEFINITIVA LOGO MOBILE ===== */
/* NASCONDI FORZATAMENTE TUTTI I LOGO MOBILE SE NON IMPOSTATI */

body {
  margin-left: 0px;
  margin-right: 0px;
}

/* --- BOX GENERICI --- */
.banner-box {
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  color: #fff;
  text-align: center;
  position: relative;
}
.banner-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.banner-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: auto;
  animation: fadeInUp 1s ease;
}

.testimonial-box {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}
.cta-box {
  background: #eee;
  padding: 30px;
  text-align: center;
}
.cta-box .cta-button {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  margin-top: 10px;
}

/* --- BOX INFO --- */
.box-info {
  background: #f1f1f1;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.box-info:hover {
  transform: translateY(-4px);
}

/* --- TESTIMONIAL BOX --- */
.testimonial-box {
  background: #fff;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.testimonial-box:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.testimonial-photo img {
  border-radius: 50%;
  margin-bottom: 15px;
  max-width: 80px;
}

/* --- CTA BOX --- */
.cta-box {
  background: #333;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  border-radius: 8px;
}
.cta-button {
  display: inline-block;
  background: #ff6600;
  color: #fff;
  padding: 12px 24px;
  margin-top: 15px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: background 0.3s ease;
}
.cta-button:hover {
  background: #e65c00;
}

/* --- ANIMAZIONI BASE --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Per AOS animations */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-timing-function: ease;
  transition-duration: 0.8s;
}
[data-aos].aos-animate {
  opacity: 1;
}

/* --- CONTENITORE GENERALE --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* --- HEADER --- */
.site-header {
  width: 100%;
  background-color: inherit;
  color: inherit;
  padding: 15px 30px;
  box-sizing: border-box;
  position: relative;
  z-index: 1100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  margin-right: 20px;
}

.site-logo img {
  height: auto;
  width: auto;
  max-width: 100%;
  display: block;
}

/* Menu principale desktop */
.main-navigation {
  display: flex;
  flex-grow: 1;
  justify-content: flex-end;
}

.main-navigation .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

.main-navigation .menu li a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
}

/* Bottone burger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: inherit;
  flex-shrink: 0;
  margin-left: auto;
}

/* === HEADER LAYOUTS === */

/* Header 1: Default (logo sinistra, menu destra) - già definito */

/* Header 2: Centrato CON LOGO SOPRA E MENU SOTTO - DESKTOP */
.site-header.header-2 .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.site-header.header-2 .header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.site-header.header-2 .site-logo {
    margin-bottom: 15px;
    margin-right: 0;
}

.site-header.header-2 .main-navigation {
    display: flex;
    margin-top: 0;
    margin-left: 0;
    justify-content: center;
    flex-grow: 0;
}

.site-header.header-2 .menu {
    display: flex;
    flex-direction: row;
    gap: 25px;
    justify-content: center;
    padding: 0;
    margin: 0;
}

/* Header 3: Logo + menu a sinistra */
.site-header.header-3 .container {
  justify-content: flex-start;
}
.site-header.header-3 .main-navigation {
  justify-content: flex-start;
  margin-left: var(--header3-gap, 30px);
}
.site-header.header-3 .menu {
  gap: 25px;
}

/* === MOBILE === */
@media (max-width: 1024px) {
  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* Header 2 su mobile - logo sinistra, burger destra */
  .site-header.header-2 .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .site-header.header-2 .header-center {
    display: contents !important; /* Distrugge il layout a colonna */
  }
  
  .site-header.header-2 .site-logo {
    margin-bottom: 0;
    margin-right: 0;
    order: 1; /* Logo prima */
  }
  
  /* Burger menu */
  .site-header.header-2 .menu-toggle {
    display: block !important;
    order: 2; /* Burger dopo */
  }


  /* Nascondi il menu principale su mobile per Header 2 */
  .site-header.header-2 .main-navigation {
    display: none !important;
  }

  /* Menu principale nascosto su mobile per tutti gli header */
  .main-navigation {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: inherit;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .main-navigation.active {
    display: flex !important;
    flex-direction: column;
    padding: 10px 0;
  }

  .main-navigation .menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0;
  }

  .main-navigation .menu li {
    margin: 10px 0;
    padding: 0 20px;
  }

  .menu-toggle {
    display: block !important;
  }

  /* Header 3 su mobile */
  .site-header.header-3 .container {
    justify-content: space-between;
  }
  .site-header.header-3 .main-navigation {
    margin-left: 0 !important;
    display: none !important;
  }
}

/* === HEADER ACTIONS (icone personalizzate) === */
.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
}

.header-actions a,
.header-actions .search-toggle,
.header-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

.header-actions img,
.header-actions svg {
    width: 20px;
    height: 20px;
    display: block;
    filter: none !important;
    color: currentColor;
    fill: currentColor;
    transition: fill 0.2s;
}

.header-actions button:hover svg,
.header-actions a:hover svg,
.header-actions button:hover img,
.header-actions a:hover img {
    fill: #333;
    filter: brightness(0.8);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff6600;
  color: white;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    position: relative;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-close {
    position: absolute;
    top: 0px;
    right: 0px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* Form di ricerca migliorato */
.search-form {
    display: flex;
    gap: 0;
    align-items: stretch;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.search-field {
    flex: 1;
    padding: 0 20px;
    font-size: 18px;
    border: none;
    outline: none;
    background: #fff;
    color: #333;
    font-family: inherit;
}

.search-field::placeholder {
    color: #999;
}

.search-submit {
    background: #000000;
    color: white;
    border: none;
    padding: 0 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 6px 6px 0;
}

.search-submit:hover {
    background: #333333;
    transform: translateY(-1px);
}

/* Versione alternativa più semplice */
.search-form.simple {
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.search-form.simple .search-field {
    border: none;
    box-shadow: none;
}

.search-form.simple .search-submit {
    background: #333;
    color: white;
}

.search-form.simple .search-submit:hover {
    background: #555;
}

/* Stile moderno con icona */
.search-form.with-icon {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
}

.search-form.with-icon .search-field {
    padding-left: 50px;
    border: none;
    box-shadow: none;
}

.search-form.with-icon .search-submit {
    background: none;
    color: #666;
    min-width: 60px;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border: none;
}

.search-form.with-icon .search-submit:hover {
    background: none;
    color: #333;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .search-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .search-form {
        height: 50px;
    }
    
    .search-field {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .search-submit {
        padding: 0 20px;
        min-width: 100px;
        font-size: 14px;
    }
    
    .search-close {
        top: 0px;
        right: 0px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

/* Animazione di ingresso */
@keyframes searchFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.search-modal.active .search-modal-content {
    animation: searchFadeIn 0.3s ease-out;
}

/* --- FOOTER --- */
.site-footer {
  padding: 40px 0 20px;
  font-size: 14px;
  background-color: #222;
  color: #fff;
}

.footer-widgets {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    margin-bottom: 30px;
}

.footer-widget-area {
    flex: 0 1 200px;
    box-sizing: border-box;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
  .footer-widget-area {
    flex: 0 1 0px;
    padding: 0px;
  }
}

.footer-widget-area h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #fff;
}

.footer-widget-area p,
.footer-widget-area ul {
    margin: 0 0 10px 0;
    line-height: 1.6;
    text-align: center;
}

.footer-widget-area a {
    color: #ff6600;
    text-decoration: none;
}

.footer-widget-area a:hover {
    text-decoration: underline;
}

.site-info {
  padding-top: 20px;
  font-size: 12px;
  text-align: center;
}

.site-info a {
  color: #ff6600;
  text-decoration: none;
}

.site-info a:hover {
    text-decoration: underline;
}

/* Mobile: widget in colonna */
@media (max-width: 768px) {
    .footer-widgets {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .footer-widget-area {
        width: 100%;
        max-width: 300px;
    }
}

/* === MOBILE MENU MODAL === */
.mobile-menu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.mobile-menu-modal.active {
    display: flex;
}

.mobile-menu-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    text-align: center;
    color: #fff;
}

.mobile-nav {
    padding: 40px 0;
}

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

.mobile-nav li {
    margin: 15px 0;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    display: block;
}

.mobile-header-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-bottom: 40px;
}

.mobile-header-actions img {
    width: 24px;
    height: 24px;
    display: block;
}

.mobile-menu-close {
    position: fixed;
    top: 70px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* === BLOG GRID === */
.blog-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

/* Colonne fisse in base alla scelta del Customizer */
.blog-grid--cols-1 { grid-template-columns: 1fr; }
.blog-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.blog-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Responsive: su tablet e mobile, forza 1 colonna */
@media (max-width: 992px) {
    .blog-grid--cols-2,
    .blog-grid--cols-3 {
        grid-template-columns: 1fr;
    }
}

/* Stile card blog */
.blog-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.post-thumbnail {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2; /* AGGIUNGI QUESTA */
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3.6rem;
}

.post-title a {
    text-decoration: none;
    color: inherit;
}

.post-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3; /* AGGIUNGI QUESTA */
    overflow: hidden;
    line-height: 1.6;
    max-height: calc(3em * 3);
    color: #555;
    margin-bottom: 1rem;
}

/* --- BOTTONE LEGGI TUTTO --- */
.read-more-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 1rem;
}

/* --- PAGINAZIONE --- */
.pagination-wrapper {
    margin-top: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    text-decoration: none;
    border: 1px solid;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
}

/* --- LAYOUT POST SINGOLO CON SIDEBAR --- */
.single-post .content-boxed.with-sidebar {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.single-post {
  margin-top: 65px;
}

.single-post.layout-left-sidebar .content-boxed.with-sidebar {
    flex-direction: row-reverse;
}

.sidebar-post {
    width: 300px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.widget {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    margin-top: 5.0rem;
}

.widget-title {
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    .single-post .content-boxed.with-sidebar {
        flex-direction: column !important;
    }
    .sidebar-post {
        width: 100%;
    }
}

/* --- Immagine in evidenza FULL-WIDTH nel post singolo --- */
.post-featured-image-full {
    width: 100%;
    overflow: hidden;
}

.post-featured-image-full img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
    filter: brightness(50%);
}

/* FIX SIDEBAR SINISTRA - FORZATO */
.single-post.layout-left-sidebar .container.content-boxed.with-sidebar {
    display: flex !important;
    flex-direction: row-reverse !important;
}
.single-post.layout-left-sidebar .container.content-boxed.with-sidebar .sidebar-post {
    order: -1;
}

.single-post.layout-left-sidebar .container.content-boxed.with-sidebar {
    display: flex !important;
    flex-direction: row !important;
}
.single-post.layout-left-sidebar .container.content-boxed.with-sidebar > .sidebar-post {
    order: -1 !important;
}

@media (max-width: 991px) {
    .single-post .sidebar-post {
        display: none !important;
    }
    .single-post .content-boxed.with-sidebar {
        flex-direction: column !important;
    }
    .single-post .main-content {
        width: 100% !important;
        flex: 1 !important;
    }
    .single-post {
      margin-top: 65px;
    }
}

/* ✅ BOTTONE TORNA AL BLOG - CORRETTO E CENTRATO */
.back-to-blog {
    width: 100%;
    text-align: center;
    margin: 2.5rem 0;
}

.back-to-blog .back-button {
    display: inline-block;
    padding: 12px 32px;
    background-color: #ff6600; /* colore coerente con il tuo tema */
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.back-to-blog .back-button:hover {
    background-color: #e65c00;
    color: #fff;
}
/* --- FILTRI CATEGORIA BLOG --- */
.blog-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1.5rem 0 2rem;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.filter-link {
    display: inline-block;
    padding: 6px 16px;
    background-color: #f5f5f5;
    color: #555;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.filter-link:hover,
.filter-link.active {
    background-color: var(--link-color, #0073aa);
    color: #fff !important;
}

@media (max-width: 768px) {
    .blog-category-filters {
        justify-content: center;
    }
}

/* === HEADER 4: SPLIT MENU CON LOGO COME PUNTO CENTRALE === */
.site-header.header-4 .header-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.site-header.header-4 .split-nav {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.site-header.header-4 .split-nav-left {
    justify-content: flex-end;
}

.site-header.header-4 .split-nav-right {
    justify-content: flex-start;
    gap: 15px;
}

.site-header.header-4 .split-logo {
    flex: 0 0 auto;
    margin: 0 30px;
}

.site-header.header-4 .split-menu-left,
.site-header.header-4 .split-menu-right {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.site-header.header-4 .split-menu-left {
    justify-content: flex-end;
    width: 100%;
}

.site-header.header-4 .split-menu-right {
    justify-content: flex-start;
    width: 100%;
}

.site-header.header-4 .split-menu-left li,
.site-header.header-4 .split-menu-right li {
    margin: 0;
    white-space: nowrap;
}

.site-header.header-4 .split-menu-left a,
.site-header.header-4 .split-menu-right a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.site-header.header-4 .split-menu-left a:hover,
.site-header.header-4 .split-menu-right a:hover {
    opacity: 0.7;
}

.site-header.header-4 .split-search {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header.header-4 .split-search img {
    width: 18px;
    height: 18px;
    transition: opacity 0.2s ease;
}

.site-header.header-4 .split-search:hover img {
    opacity: 0.7;
}

/* === CORREZIONE MOBILE HEADER 4 === */
@media (max-width: 1024px) {
    .site-header.header-4 .container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .site-header.header-4 .header-split {
        display: contents !important; /* Distrugge il layout split su mobile */
    }
    
    .site-header.header-4 .split-nav-left,
    .site-header.header-4 .split-nav-right {
        display: none !important;
    }
    
    .site-header.header-4 .split-logo {
        margin: 0 !important;
        order: 1;
        flex-shrink: 0;
    }
    
    .site-header.header-4 .menu-toggle {
        display: block !important;
        order: 2;
        margin-left: auto;
    }
}

/* Ottimizzazione per schermi più piccoli */
@media (max-width: 1200px) {
    .site-header.header-4 .split-menu-left,
    .site-header.header-4 .split-menu-right {
        gap: 15px;
    }
    
    .site-header.header-4 .split-logo {
        margin: 0 20px;
    }
    
    .site-header.header-4 .split-menu-left a,
    .site-header.header-4 .split-menu-right a {
        font-size: 13px;
    }
}
/* Ottimizzazione logo burger menu */
.mobile-logo img {
    max-height: 60px;
    width: auto;
    max-width: 200px;
    display: block;
    margin: 0 auto;
}

.mobile-logo span {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

/* === HEADER 5: SPLIT MENU CONVERGENTE VERSO IL LOGO === */
.site-header.header-5 .header-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.site-header.header-5 .split-nav {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

/* Menu sinistra: si allinea a DESTRA (verso il logo) */
.site-header.header-5 .split-nav-left {
    justify-content: flex-end;
}

/* Menu destra: si allinea a SINISTRA (verso il logo) */
.site-header.header-5 .split-nav-right {
    justify-content: flex-start;
    gap: 15px;
}

.site-header.header-5 .split-logo {
    flex: 0 0 auto;
    margin: 0 30px;
}

/* MENU CONVERGENTE - CORREZIONE: ORIZZONTALE! */
.site-header.header-5 .convergent-left,
.site-header.header-5 .convergent-right {
    display: flex !important; /* FORZA DISPLAY FLEX */
    flex-direction: row !important; /* FORZA ORIZZONTALE */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.site-header.header-5 .convergent-left {
    justify-content: flex-start;  /* Da sinistra verso il logo */
    width: 100%;
    padding-right: 20px;        /* Spazio dal logo */
}

.site-header.header-5 .convergent-right {
    justify-content: flex-end; /* Da destra verso il logo */
    width: 100%;
    padding-left: 20px;         /* Spazio dal logo */
}

.site-header.header-5 .convergent-left li,
.site-header.header-5 .convergent-right li {
    margin: 0;
    white-space: nowrap;
}

.site-header.header-5 .convergent-left a,
.site-header.header-5 .convergent-right a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.site-header.header-5 .convergent-left a:hover,
.site-header.header-5 .convergent-right a:hover {
    opacity: 0.7;
}

.site-header.header-5 .split-search {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0 0 0 15px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header.header-5 .split-search img {
    width: 18px;
    height: 18px;
    transition: opacity 0.2s ease;
}

.site-header.header-5 .split-search:hover img {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .site-header.header-5 .container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .site-header.header-5 .header-split {
        display: contents !important;
    }
    
    .site-header.header-5 .split-nav-left,
    .site-header.header-5 .split-nav-right {
        display: none !important;
    }
    
    .site-header.header-5 .split-logo {
        margin: 0 !important;
        order: 1;
        flex-shrink: 0;
    }
    
    .site-header.header-5 .menu-toggle {
        display: block !important;
        order: 2;
        margin-left: auto;
    }
}

/* Ottimizzazione per schermi più piccoli */
@media (max-width: 1200px) {
    .site-header.header-5 .convergent-left,
    .site-header.header-5 .convergent-right {
        gap: 15px;
    }
    
    .site-header.header-5 .split-logo {
        margin: 0 20px;
    }
    
    .site-header.header-5 .convergent-left a,
    .site-header.header-5 .convergent-right a {
        font-size: 13px;
    }
}

/* Logo nel burger menu */
.mobile-logo {
    text-align: center;
    padding: 20px 0;
    border-bottom: 0px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.mobile-logo img {
    max-height: 60px !important;
    width: auto !important;
    max-width: 200px !important;
    display: block !important;
    margin: 0 auto !important;
}

.mobile-logo .no-logo-text {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    display: block !important;
}

.mobile-logo.has-logo .no-logo-text {
    display: none !important;
}
/* ===== GESTIONE LOGO SEMPLIFICATA E DEFINITIVA ===== */

/* DEFAULT: tutti i logo visibili di base */
.site-logo img {
    display: block;
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.site-logo a {
    display: flex !important;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* Testo fallback - solo se non ci sono immagini */
.site-title-text {
    display: none;
    font-weight: bold;
    font-size: 18px;
}

.site-logo:not(:has(img)) .site-title-text {
    display: block !important;
}

/* MOBILE: gestione pulita */
@media (max-width: 768px) {
    .site-logo {
        display: flex;
        align-items: center;
        min-height: 40px;
    }
    
    .site-logo img {
        max-height: 60px;
    }
    
    /* Se esiste un logo mobile, nascondi SOLO il desktop */
    .site-logo.has-mobile-logo .header-logo-default {
        display: none !important;
    }
    
    .site-logo.has-mobile-logo .mobile-logo-specific {
        display: block !important;
    }
    
    /* Se NON esiste logo mobile, mostra il desktop normalmente */
    .site-logo:not(.has-mobile-logo) .header-logo-default {
        display: block !important;
    }
}

/* DESKTOP: nascondi il logo mobile */
@media (min-width: 769px) {
    .site-logo .mobile-logo-specific {
        display: none !important;
    }
}

/* Logo nel burger menu */
.mobile-logo img {
    max-height: 60px !important;
    width: auto !important;
    max-width: 200px !important;
    display: block !important;
    margin: 0 auto !important;
}

.mobile-logo .no-logo-text {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    display: block !important;
}

.mobile-logo:has(img) .no-logo-text {
    display: none !important;
}

/* Backup: nascondi logo sticky se per caso viene stampato */
.sticky-logo-specific {
    display: none !important;
}

/* Mostra logo sticky SOLO quando header è sticky */
.site-header.sticky .sticky-logo-specific {
    display: block !important;
}

.site-header.sticky .header-logo-default {
    display: none !important;
}

/* Burger menu - mostra SOLO logo O testo */
.mobile-logo:has(img) .site-title {
    display: none !important;
}

.mobile-logo:not(:has(img)) .site-title {
    display: block !important;
}
/* === LOGO UNIFICATO DESKTOP / MOBILE / STICKY === */

/* --- Desktop (≥769px) --- */
@media (min-width: 769px) {
  .site-logo .header-logo-default {
    display: block !important;
  }
  .site-logo .mobile-logo-specific,
  .site-logo .sticky-logo-specific,
  .site-logo .site-title-text {
    display: none !important;
  }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
  .site-logo {
    display: flex;
    align-items: center;
    min-height: 40px;
  }

  /* Logo mobile se esiste */
  .site-logo.has-mobile-logo .header-logo-default {
    display: none !important;
  }
  .site-logo.has-mobile-logo .mobile-logo-specific {
    display: block !important;
  }

  /* Se non c'è logo mobile, mostra il desktop */
  .site-logo:not(.has-mobile-logo) .header-logo-default {
    display: block !important;
  }

  /* Nascondi testo se c'è un'immagine */
  .site-logo img + .site-title-text {
    display: none !important;
  }

  /* Nascondi sticky su mobile (facoltativo se logo identico) */
  .site-header.sticky .sticky-logo-specific {
    display: none !important;
  }
}

/* --- Sticky: usa sempre lo stesso logo del normale --- */
.site-header.sticky .header-logo-default {
  display: block !important;
}
.site-header.sticky .mobile-logo-specific,
.site-header.sticky .sticky-logo-specific,
.site-header.sticky .site-title-text {
  display: none !important;
}
/* --- aggiustamento varie inizio --- */
.tools_button_icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 2px;
    background-color: #000; /* Colore delle linee */
    box-shadow: 
        0 -6px 0 #000,
        0 6px 0 #000;
    visibility: visible;
}
@media (max-width: 1024px) {
    .tools_button_icon .spk-icon-menu {
        visibility: hidden;
    }
    
    .tools_button_icon::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 2px;
        background-color: #333;
        box-shadow: 
            0 -6px 0 #333,
            0 6px 0 #333;
        visibility: visible;
    }
}

@media screen and (min-width: 48em) {
  #site-footer {
    padding: 0px 0 0px;
  }
}
@media screen and (min-width: 48em) {
  #site-footer .copyright_text {
    margin-bottom: 10px;
  }
}
@media screen and (min-width: 48em) {
  .site-footer-widget-area {
    display: block;
    margin-bottom: 10px;
  }
}
.site-footer-widget-area > .row {
  border-bottom: 0px solid #ddd0;
}
@media screen and (min-width: 48em) {
  .widget {
    margin-bottom: 10px;
  }
}
.copyright_text {
  font-size: 14px;
  line-height: 20px;
  padding: 0;
  text-align: center;
  color: black;
	text-transform: uppercase;
}

.footer-widget-area {
  flex: 0 1 280px;
}
.site-info {
  padding-top: 0px;
  font-size: 12px;
  text-align: center;
}
footer.site-footer {
  padding-bottom: 5px;
	padding-top: 0px;
}
.mobile-logo img {
  max-height: 90px;
}
.mobile-menu-modal {
	background: rgb(0, 0, 0);
}

main {
  margin-top: 0px;
}
@media (min-width: 783px) {
  body.admin-bar header.site-header {
    top: 0px;
  }
}
.footer-widget-area a:hover {
  text-decoration: none;
}
/* --- aggiustamento varie fine --- */
/* ===== CURSORE POINTER SU TUTTO CIÒ CHE È CLICCABILE ===== */

/* Link normali e figli (span, img, svg, ecc.) */
a,
a * {
    cursor: pointer;
}

/* Menu principale desktop e mobile */
.main-navigation a,
.main-navigation a * {
    cursor: pointer;
}

/* Bottoni e toggle menu */
button,
button * {
    cursor: pointer;
}

/* Icone header e azioni (carrello, ricerca, ecc.) */
.header-actions a,
.header-actions a *,
.header-actions button,
.header-actions button * {
    cursor: pointer;
}

/* Link nel footer */
.site-footer a,
.site-footer a * {
    cursor: pointer;
}

/* Link in widget o altre aree cliccabili */
.widget a,
.widget a * {
    cursor: pointer;
}
