/* Theme Info */
Theme Name: SouthFresh v2
Description: Tema costruito su misura per Alberto Pepe — versione 2. Drop-in con compatibilità per LiteSpeed Cache, WP Rocket, W3 Total Cache, WP Super Cache, Hummingbird, Cache Enabler. Header cache-friendly (cart count via REST/ESI), lazy nativo, hover prodotti via CSS senza request extra, toggle wpadminbar lato frontend, mini-cart drawer opzionale, live search ridisegnata, analytics hooks GTM/GA4/Meta Pixel, pannello admin SouthFresh sotto Aspetto. Convive con la versione 1 senza sovrascriverla (cartella `southfresh-v2`).
Author: Davide Pica
Version: 2.2.0
Text Domain: southfresh-v2

/* Nasconde il bottone "Carica Altri", ma lo tiene nel DOM per il JS */
.load-more-container {
    display: none;
}

/*STILE DEI LINK */
/* Rimuove sottolineature e colori di default dai link */
a {
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all 0.3s ease;
}

/* Effetto hover elegante - sottile cambio di opacità */
a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* Effetto alternativo con bordino sottile che appare al hover */
a.border-effect {
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

a.border-effect:hover {
    border-bottom-color: currentColor;
    transform: translateY(-1px);
}

/* Effetto con sfondo sottile al hover */
a.bg-effect {
    padding: 2px 4px;
    border-radius: 3px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

a.bg-effect:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* Per temi scuri */
@media (prefers-color-scheme: dark) {
    a.bg-effect:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Effetto con scala leggera */
a.scale-effect {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

a.scale-effect:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Mantiene lo stato focus per accessibilità */
a:focus {
   /* outline: 2px solid rgba(0, 123, 255, 0.5); */
    outline-offset: 2px;
}

/* Eccezioni per link specifici che potrebbero aver bisogno del comportamento standard */
a.keep-default {
    color: #0066cc !important;
    text-decoration: underline !important;
}

a.keep-default:hover {
    color: #004499 !important;
    opacity: 1 !important;
    transform: none !important;
}



/* Fix specifico per i breadcrumb - forza la rimozione degli stili di default */
.breadcrumb-trail a,
.breadcrumb-trail a:link,
.breadcrumb-trail a:visited {
    color: inherit !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    transition: all 0.3s ease !important;
}

.breadcrumb-trail a:hover {
    opacity: 0.7 !important;
    transform: translateY(-1px) !important;
    color: inherit !important;
    text-decoration: none !important;
}

.breadcrumb-trail a:focus {
    outline: 2px solid rgba(0, 123, 255, 0.5) !important;
    outline-offset: 2px !important;
    color: inherit !important;
    text-decoration: none !important;
}

/* Alternativa con effetto bordino per i breadcrumb */
.breadcrumb-trail a.border-effect {
    border-bottom: 1px solid transparent !important;
    padding-bottom: 1px !important;
}

.breadcrumb-trail a.border-effect:hover {
    border-bottom-color: currentColor !important;
    opacity: 1 !important;
}

/* Fix per i link "Leggi tutto l'articolo" - con selettori più specifici */
.custom-blog-card .card-read-more a,
.custom-blog-card .card-read-more a:link,
.custom-blog-card .card-read-more a:visited,
.card-read-more a,
.card-read-more a:link,
.card-read-more a:visited,
a.card-read-more,
a.card-read-more:link,
a.card-read-more:visited {
	margin-top: auto; /* Spinge il link "Leggi tutto" in basso */
    color: inherit;
    text-decoration: none;
    border: none;
    background: none;
    box-shadow: none;
    text-shadow: none;
    transition: all 0.3s ease;
}

.custom-blog-card .card-read-more a:hover,
.card-read-more a:hover,
a.card-read-more:hover {
    opacity: 0.7 !important;
    transform: translateY(-1px) !important;
    color: inherit !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.custom-blog-card .card-read-more a:focus,
.card-read-more a:focus,
a.card-read-more:focus {
    outline: 2px solid rgba(0, 123, 255, 0.5) !important;
    outline-offset: 2px !important;
    color: inherit !important;
    text-decoration: none !important;
}

/* Fix specifico per i breadcrumb - forza la rimozione degli stili di default */
.breadcrumb-trail a,
.breadcrumb-trail a:link,
.breadcrumb-trail a:visited {
    color: inherit !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    transition: all 0.3s ease !important;
}

.breadcrumb-trail a:hover {
    opacity: 0.7 !important;
    transform: translateY(-1px) !important;
    color: inherit !important;
    text-decoration: none !important;
}

.breadcrumb-trail a:focus {
    outline: 2px solid rgba(0, 123, 255, 0.5) !important;
    outline-offset: 2px !important;
    color: inherit !important;
    text-decoration: none !important;
}

/* Alternativa con effetto bordino per i breadcrumb */
.breadcrumb-trail a.border-effect {
    border-bottom: 1px solid transparent !important;
    padding-bottom: 1px !important;
}

.breadcrumb-trail a.border-effect:hover {
    border-bottom-color: currentColor !important;
    opacity: 1 !important;
}

/* Fix per i link "Leggi tutto l'articolo" - con selettori più specifici */
.custom-blog-card .card-read-more a,
.custom-blog-card .card-read-more a:link,
.custom-blog-card .card-read-more a:visited,
.card-read-more a,
.card-read-more a:link,
.card-read-more a:visited,
a.card-read-more,
a.card-read-more:link,
a.card-read-more:visited {
    color: inherit !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: all 0.3s ease !important;
}

.custom-blog-card .card-read-more a:hover,
.card-read-more a:hover,
a.card-read-more:hover {
    opacity: 0.7 !important;
    transform: translateY(-1px) !important;
    color: inherit !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.custom-blog-card .card-read-more a:focus,
.card-read-more a:focus,
a.card-read-more:focus {
    outline: 2px solid rgba(0, 123, 255, 0.5) !important;
    outline-offset: 2px !important;
    color: inherit !important;
    text-decoration: none !important;
}

/* Fix per tutti i link nel contenuto degli articoli */
.entry-content a,
.entry-content a:link,
.entry-content a:visited,
article a,
article a:link,
article a:visited,
.post-content a,
.post-content a:link,
.post-content a:visited {
    color: inherit !important;
    /*text-decoration: none !important;*/
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-bottom: none !important;
    transition: all 0.3s ease !important;
}

.entry-content a:hover,
article a:hover,
.post-content a:hover {
    opacity: 0.7 !important;
    transform: translateY(-1px) !important;
    color: inherit !important;
    /*text-decoration: none !important;*/
    box-shadow: none !important;
    border-bottom: none !important;
}

.entry-content a:focus,
article a:focus,
.post-content a:focus {
    outline: 2px solid rgba(0, 123, 255, 0.5) !important;
    outline-offset: 2px !important;
    color: inherit !important;
    /*text-decoration: none !important;*/
}


img {
    max-width: 100%;
    height: auto;
}

/*DIMENSIONE MASSIMA DELLA THUMB DEGLI ARTICOLI IN CIMA ALLA PAGINA DELL'ARTICOLO STESSO*/
img.attachment-sf-single-thumb.size-sf-single-thumb.wp-post-image {
    object-fit: cover;
    object-position: center center;
    display: block;
	width: 100%;
}
img:is([sizes="auto" i], [sizes^="auto," i]) {
    max-width: 100%;
    height: auto;
}

/* Regola base (mobile-first) */
.editor-styles-wrapper,
.entry-content {
    padding: 2rem;
}

/* Tablet (es. larghezza >= 768px) */
@media (min-width: 768px) {
    .editor-styles-wrapper,
    .entry-content {
        padding: 4rem;
    }
}

/* Desktop (es. larghezza >= 1024px) */
@media (min-width: 1024px) {
    .editor-styles-wrapper,
    .entry-content {
        padding: 7rem;
    }
}


/* Responsive: altezza minore su schermi piccoli */
@media (max-width: 768px) {
    img.attachment-sf-single-thumb.size-sf-single-thumb.wp-post-image {
        max-height: 300px;
        height: 100%;
        width: 100%; /* Altezza mobile */
    }
}

/*NASCONDI INIZIALMENTE IL WIDGET WHATSAPP*/
div#wa {
	display: none;
}




/* CSS per la griglia del blog muro */
/* Stili per il Loop Blog Personalizzato */

.custom-blog-loop-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 1 colonna di default per mobile */
    gap: 20px; /* Spazio tra le card */
    padding: 20px 0;
}

.custom-blog-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden; /* Per contenere l'immagine e i bordi arrotondati */
    display: flex;
    flex-direction: column;
    height: 400px; /* Altezza fissa della card - aggiusta come preferisci */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease-in-out;
}

.custom-blog-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.custom-blog-card .card-link {
    text-decoration: none;
    color: inherit; /* Eredita il colore del testo dal genitore */
    display: flex;
    flex-direction: column;
    height: 100%; /* Assicura che il link occupi tutta la card */
}

.custom-blog-card .card-image {
    width: 100%;
    height: 200px; /* Altezza fissa per l'area dell'immagine */
    overflow: hidden;
}

.custom-blog-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Copre l'area mantenendo le proporzioni, potrebbe tagliare l'immagine */
    transition: transform 0.3s ease-in-out;
}

.custom-blog-card:hover .card-image img {
    transform: scale(1.05); /* Leggero zoom sull'immagine all'hover */
}

.custom-blog-card .card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Fa sì che questo contenuto si espanda per riempire lo spazio rimanente */
}

.custom-blog-card .card-title {
    font-size: 1.25em; /* Esempio di dimensione */
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.custom-blog-card .card-date {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 15px;
}


/* Stili per il bottone "Carica Altri Articoli" */
.load-more-container {
    text-align: center;
    padding: 20px 0 40px;
}

.btn-load-more {
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-load-more:hover {
    background-color: #000;
}

.btn-load-more:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


/* Media Queries per la griglia responsive */

/* Tablet e piccoli desktop: 2 colonne */
@media (min-width: 600px) {
    .custom-blog-loop-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop medi: 3 colonne */
@media (min-width: 900px) {
    .custom-blog-loop-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop grandi: 4 colonne */
@media (min-width: 1200px) {
    .custom-blog-loop-container {
        grid-template-columns: repeat(4, 1fr);
    }
}






/* RICERCA LIVE PRODOTTI
 * Tutto lo styling della modal live-search è in inc/live-search.php
 * (modulo v2.2.0). Il vecchio blocco con #search-box / #search-close /
 * div#search-results / #live-search-input / .search-result-item +
 * 4 media query di width 50/75.5/83.5/88% è stato rimosso: era dead
 * branch ereditato da v1 e costringeva il modulo a usare !important
 * per riconquistare il layout. Nessuna regola viene lasciata qui per
 * il modal.
 */



/* === BASE === */
/* Reset globale browser */

html {
  margin: 0;
  padding: 0;
  /* Rimuovi overflow-x da html */
}

body {

  max-width: 100%;
  overflow-x: hidden; /* ← mantienilo solo su body */
    background-color: #fff;
    color: #333;
    margin: 0;
    padding: 0;
}
/* Contenitore principale dei contenuti */
#primary.site-main {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 30px 20px;
    box-sizing: border-box;
}

/* Responsive: layout più stretto su mobile */
@media (max-width: 768px) {
    #primary.site-main {
        padding: 20px 15px;
    }
}

/* Spaziatura tra articoli */
#primary .post {
    margin-bottom: 40px;
}

/* Titoli articoli */
#primary .post h2,
#primary .entry-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Paragrafi leggibili */
#primary .entry-content p {
    line-height: 1.7;
    font-size: 16px;
    margin-bottom: 1.2em;
}

/* Stile generico per ogni widget (es. nel footer) */
.footer-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #333;
    padding: 12px 16px;
    background-color: #f9f9f9;
    border-radius: 5px;
    text-align: center;
}

/* Eventuali icone dentro al widget */
.footer-widget i {
    font-size: 20px;
    color: #333;
}

/* === FOOTER === */
.site-footer {
    background-color: #f9f9f9;
    padding: 40px 20px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}
.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 20px;
    box-sizing: border-box;
}
.footer-row .footer-widget {
    flex: 1 1 0;
    min-width: 200px;
    text-align: center;
}
.footer-widget h4 {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
}
.footer-row.single-column {
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.footer-row.credits {
    font-size: 13px;
    color: #777;
    text-align: center;
    padding: 0 20px;
}



/* Stile widget con icona, titolo e sottotitolo */
.info-widget {
    text-align: center;
    padding: 20px 15px;
    color: #333;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

.info-widget i {
    font-size: 52px;
    margin-bottom: 10px;
    color: #000;
    display: inline-block;
}

.info-widget .info-text h4 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    margin-bottom: 5px;
}

.info-widget .info-text p {
    font-size: 18px;
    margin: 0;
    color: #666;
}



/* === RESPONSIVE FOOTER === */
@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
    }

    .footer-row .footer-widget {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }
}

/* === MENU DESKTOP === */
.desktop-menu {
    display: grid;
	  grid-template-columns: 1fr 100px 1fr auto;
    align-items: center;
    max-width: 90%;
    margin-left: 65px;
    padding: 20px 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Allinea i menu lateralmente */
.menu-left ul,
.menu-right ul {
    display: flex;
    padding: 0;
    margin: 0;
}
.menu-right ul li:first-child {
    margin-left: 0 !important;
}

.menu-left {
    justify-content: flex-end;
}
.menu-right {
    justify-content: flex-start;
}


/* Centra il logo */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    max-height: 70px;
    height: auto;
    width: auto;
}

/* Pulsanti: login, carrello, cerca */
.menu-buttons {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-buttons i {
    font-size: 18px;
    color: #333;
}
/* === MENU MOBILE === */

/* Nascondi il menu mobile inizialmente */
.mobile-links {
    transition: visibility 0s, opacity 0.2s linear; /* Transizione per un effetto fluido */
}

/* Rendi visibile il menu mobile */
.mobile-links.visible {
	display: block !important;
    visibility: visible;
    opacity: 1;
}

@media (max-width: 1271px) {
	
    .mobile-menu {
        display: block;
        padding: 10px 20px;
    }

    .desktop-menu,
	.menu-buttons {
    	display: none;
		visibility:hidden;
   }
	.mobile-links ul {
	  margin-right: 0; /* ← elimina margine sospetto */
	  max-width: 100vw; /* ← evita overflow orizzontale */
	  box-sizing: border-box;
	}

	.mobile-buttons {
	  /* v2.2.0: era flex-wrap:wrap. Causava il wrap dei pulsanti su
	     viewport stretti, ma con il gap calibrato e le icone fluide
	     non serve più. Tenere nowrap: la regola mobile in
	     inc/customizer.php gestisce il caso 360px col fallback. */
	  flex-wrap: nowrap;
	  max-width: 100%;
	}
	
    .mobile-left,
    .mobile-center,
    .mobile-right {
        flex: 1;
        display: flex;
        align-items: center;
    }

	
	/* Struttura corretta a 3 colonne */
.mobile-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}

/* Posizionamento degli elementi */
.mobile-left {
    justify-self: start;
}

.mobile-center {
    justify-self: center;
}

.mobile-right {
    justify-self: end;
}

	
    .logo-mobile {
        display: flex;
        align-items: center;
        max-height: 50px;
        overflow: hidden;
    }

    .logo-mobile .custom-logo,
    .logo-mobile img {
        max-height: 40px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }

	
    .hamburger {
        font-size: 26px;
        cursor: pointer;
    }

	.mobile-links {
		margin-top: 20px;
		width: 100%;
	}


	/* Lista centrata all'interno */
	.mobile-links ul {
		list-style: none;
		padding: 0;
		gap: 10px;
		max-width: none; /* Larghezza visiva centrata */
		width: 100%;
	}

	.mobile-links ul li {
		width: 100%;
		text-align: center;
	}

	.mobile-links ul li a {
		padding: 10px 15px;
		font-size: 16px;
		color: #333;
		text-decoration: none;
		transition: color 0.3s ease, border-bottom 0.3s ease;
	}

	.mobile-links ul li a:hover {
		color: #000;
		border-bottom: 2px solid #000;
	}

	.mobile-buttons i {
		font-size: 20px;
		color: #333;
	}

	.cart-button {
		position: relative;
	}

	.cart-count {
		position: absolute;
		top: -6px;
		right: -13px;
		background: #ff4d4d;
		color: white;
		font-size: 11px;
		padding: 2px 8px;
		border-radius: 50%;
	}	
}

@media (min-width: 1272px) {
	/* Mostra solo menu desktop su larghezze grandi */
	.mobile-menu {
		display: none;
		visibility: hidden;
	}
}

/* === MENU STYLE UNIVERSALE === */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
nav ul li {
    margin: 0 20px;
}

nav ul li a {
    font-weight: 400;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    display: inline-block;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}
nav ul li a:hover {
    color: #000;
    border-bottom: 2px solid #000;
}
/* Logo mobile: forza ridimensionamento proporzionato */
	.logo-mobile .custom-logo,
	.logo-mobile img.custom-logo {
		max-height: 40px !important;
		width: auto !important;
		height: auto !important;
		object-fit: contain;
		display: block;
	}



/* Su mobile: mostra menu mobile, nasconde desktop */
@media (max-width: 1271px) {
    .desktop-menu {
        display: none !important;
    }

    .mobile-menu {
        display: block;
    }
}
.custom-logo {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0px 10px 0px -20px;
}

/* Menu sticky: desktop e mobile */
.site-header {
    position: sticky;
    top: 0;
    z-index: 9998; /* sotto il loader che ha z-index: 9999 */
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.site-header.scrolled {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Quando scrolli: header più compatto */
.site-header.shrink {
    padding: 5px 0px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Riduzione logo quando header è shrink */
.site-header.shrink .custom-logo {
    max-height: 45px !important;
    transition: max-height 0.3s ease;
}
/* Logo mobile: Fix bug che mostra nello shop sempre il logo piccolo */

.site-header .custom-logo {
    max-height: 80px;
    width: auto;
    height: auto;
    max-width: none; /* ← questo disinnesca il comportamento di WooCommerce */
}

/* Stile normale */
.desktop-menu {
    transition: padding 0.3s ease;
}

/* Quando il genitore .site-header ha .shrink */
.site-header.shrink .desktop-menu {
    padding: 5px 0px;
}


/* Contenitore pulsanti nel menu mobile */
.mobile-buttons {
    display: flex;
    flex-direction: row;        /* ← allineamento orizzontale */
    align-items: center;
    justify-content: center;
    gap: 12px;                  /* ← spazio tra i pulsanti */
    margin-top: 10px;
}

/* Stile dei pulsanti: login, carrello, cerca.
   v2.2.0: rimosso il `margin-left: 18px` cumulativo che si sommava al
   `gap: 12px` del flex container e creava distanze irregolari; lo
   spacing è ora gestito esclusivamente dal gap del parent. */
.mobile-buttons a,
.mobile-buttons button {
    background: none;
    border: none;
    font-size: 20px;
    padding: 5px;
    min-width: 24px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Uniforma stile delle icone header */
.menu-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-buttons a,
.menu-buttons button {
    background: none;
    border: none;
    font-size: 18px;
    color: #333;
    padding: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.menu-buttons i {
    font-size: 18px;
    color: #333;
}

.menu-buttons .cart-button {
    position: relative;
}

.menu-buttons .cart-count {
    position: absolute;
    top: -6px;
    right: -13px;
    background: #ff4d4d;
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 50%;
}


/* Voci nel menu mobile (hamburger) */
.mobile-links ul li {
    width: 100%;
    text-align: center;
    padding: 12px 0;
}

.mobile-links ul li a {
    font-size: 18px;
    padding: 12px 20px;
}

/* === FONT GLOBALE === */
body,
p,
span,
a,
li,
ul,
ol,
button,
input,
textarea,
select,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', Arial, Helvetica, sans-serif !important;
    font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* === UPPERCASE MENU === */
nav ul li a {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Reset icone native barra di wordpress === */
#wpadminbar .ab-icon,
#wpadminbar .ab-item:before {
    font-family: 'dashicons' !important;
}

.free-shipping-bar {
	height: 20px;
    line-height: 20px;
    padding: 0 20px;
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    position: sticky;
    top: 0;
    z-index: 9999;
}
/* Sposta il menu sotto la barra solo se attiva */
body.has-shipping-bar .site-header {
    top: 36px; /* altezza esatta del banner */
}
.newsletter-widget {
  text-align: center;
  font-family: 'Poppins', Arial, sans-serif;
  padding: 20px;
  max-width: 700px;
  margin: 0 auto;
  color: #333;
}

.newsletter-widget h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
  text-transform: uppercase;
}

.newsletter-privacy {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}
.newsletter-widget h4 {
  font-size: 26px; /* o 28px se vuoi ancora più impatto */
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
  text-transform: uppercase;
}
.mc4wp-form input[type="email"],
.mc4wp-form input[type="text"] {
  padding: 10px 15px;
  border: 1px solid #ccc;
  width: 100%;
  max-width: 160px;
  font-size: 16px;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.mc4wp-form input[type="submit"] {
  padding: 13px 20px;
  background-color: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease;
}

.mc4wp-form input[type="submit"]:hover {
  background-color: #333;
}

.instagram-callout {
  text-align: center;
  margin: 30px 0;
}

.instagram-callout a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  transition: color 0.3s ease;
}

.instagram-callout a:hover {
  color: #ff4d4d; /* oppure un colore brand */
}

.instagram-callout i {
  font-size: 36px;
  color: #000;
  transition: color 0.3s ease;
}

.footer-info-block {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 20px;
}

.footer-info-block h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: #000;
}

.footer-info-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align:center;
}

.footer-info-block ul li {
  margin-bottom: 6px;
}

.footer-info-block ul li a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
  text-align:center;
}

.footer-info-block ul li a:hover {
  color: #000;
}

.footer-info-block p {
  font-size: 13px;
  color: #666;
  margin: 0;  
  text-align:center;
}

/* Contenitore principale dello shop */
.woocommerce.archive.woocommerce-page #primary {
  padding: 60px 0;
}

/* Titolo della pagina */
.woocommerce-products-header h1.woocommerce-products-header__title.page-title {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 40px;
}

/* Griglia prodotti */
ul.products.columns-4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

/* Singolo prodotto */
ul.products li.product {
  background: #fff;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 10px;
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease;
}

ul.products li.product:hover {
 /* transform: translateY(-5px); */
    border: solid 2px #000 !important;
    box-sizing: border-box;
    border-radius: 0;
}

/* Immagine prodotto */
ul.products li.product img {
  max-height: 600px;
  object-fit: contain;
}

/* Titolo prodotto */
ul.products li.product h2.woocommerce-loop-product__title {
  font-size: 18px;
  font-weight: 500;
  color: #222;
  min-height: 48px;
}

/* Prezzo prodotto */
ul.products li.product .price {
  font-size: 16px;
  color: #444;
  margin: 10px 0;
}

/* Bottone Aggiungi al carrello */
ul.products li.product .button {
  background-color: #34b233;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

ul.products li.product .button:hover {
  background-color: #2b902a;
}


h1, h1.entry-title {
    text-align: center;
}

#masonry-grid > p {
    text-align: center;
    display: flex;
    align-content: center;
    justify-content: center;
}
.text-center.mt-10 {
    display: flex;
    align-content: center;
    justify-content: center;
    padding: 50px;
}

.blog-masonry-wrapper {
    min-height: 160px;
}

main#main {
	text-align: center;
    margin: 0px 4%;
}


/* Base Layout e Typography - Stili generali del tema */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.entry-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #333;
  line-height: 1.2;
}

/* Stili per il contenuto delle pagine */
.page-content {
  font-size: 1rem;
}

/* Stili specifici per la classe prose (contenuti formattati) */
.page-content.prose {
  max-width: 100%;
}

/* Headings */
.page-content h1, 
.page-content.prose h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  line-height: 1.2;
}

.page-content h2, 
.page-content.prose h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 1.75rem 0 1rem;
  line-height: 1.3;
}

.page-content h3, 
.page-content.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.page-content h4, 
.page-content.prose h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.25rem 0 0.75rem;
}

.page-content h5, 
.page-content.prose h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1rem 0 0.75rem;
}

.page-content h6, 
.page-content.prose h6 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

/* Paragrafi */
.page-content p, 
.page-content.prose p {
  margin-bottom: 1rem;
}

/* Spazi vuoti */
.page-content p:empty, 
.page-content.prose p:empty {
  margin: 1rem 0;
  height: 1rem;
  display: block;
}

/* Testo formattato */
.page-content strong, 
.page-content.prose strong,
.page-content b, 
.page-content.prose b {
  font-weight: 700;
}

.page-content em, 
.page-content.prose em,
.page-content i, 
.page-content.prose i {
  font-style: italic;
}

/* Liste */
.page-content ul, 
.page-content.prose ul {
  list-style-type: disc;
  padding: 0;
}

.page-content ol, 
.page-content.prose ol {
  list-style-type: decimal;
  margin: 0 0 1.5rem 2rem;
  padding: 0;
}

.page-content ul li, 
.page-content.prose ul li,
.page-content ol li, 
.page-content.prose ol li {
  margin-bottom: 0.5rem;
}

/* Liste annidate */
.page-content ul ul, 
.page-content.prose ul ul,
.page-content ol ol, 
.page-content.prose ol ol,
.page-content ul ol, 
.page-content.prose ul ol,
.page-content ol ul, 
.page-content.prose ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Link */
.page-content a, 
.page-content.prose a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-content a:hover, 
.page-content.prose a:hover {
  color: #ffffff;
}

/* Blocco quote */
.page-content blockquote, 
.page-content.prose blockquote {
  border-left: 4px solid #e2e8f0;
  padding-left: 1rem;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #4a5568;
}



/* Codice e Pre */
.page-content code, 
.page-content.prose code {
  background-color: #f1f5f9;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.9em;
}

.page-content pre, 
.page-content.prose pre {
  background-color: #f1f5f9;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.page-content pre code, 
.page-content.prose pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

/* Figure e immagini */
.page-content figure, 
.page-content.prose figure {
  margin: 1.5rem 0;
}

.page-content img, 
.page-content.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
}

.page-content figcaption, 
.page-content.prose figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.5rem;
}

/* Separatori orizzontali */
.page-content hr, 
.page-content.prose hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 2rem 0;
}

/* Gestione del form */
.page-content form, 
.page-content.prose form {
  margin-bottom: 1.5rem;
}

.page-content button, 
.page-content.prose button,
.page-content input[type="submit"], 
.page-content.prose input[type="submit"] {
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.page-content button:hover, 
.page-content.prose button:hover,
.page-content input[type="submit"]:hover, 
.page-content.prose input[type="submit"]:hover {
  background-color: #004c99;
}

/* Adattamenti Responsive */
@media (max-width: 1280px) {
  .page-wrapper {
    max-width: 95%;
  }
}

@media (max-width: 1024px) {
  .page-wrapper {
    padding: 2rem 1rem;
  }
  
  .entry-title {
    font-size: 1.875rem;
  }
  
  .page-content h1, .page-content.prose h1 {
    font-size: 2rem;
  }
  
  .page-content h2, .page-content.prose h2 {
    font-size: 1.625rem;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    padding: 1.5rem 1rem;
  }
  
  .entry-title {
    font-size: 1.75rem;
  }
  
  .page-content h1, .page-content.prose h1 {
    font-size: 1.75rem;
  }
  
  .page-content h2, .page-content.prose h2 {
    font-size: 1.5rem;
  }
  
  .page-content h3, .page-content.prose h3 {
    font-size: 1.375rem;
  }
}

@media (max-width: 640px) {
  .page-wrapper {
    padding: 1rem;
  }
  
  .entry-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .page-content h1, .page-content.prose h1 {
    font-size: 1.5rem;
  }
  
  .page-content h2, .page-content.prose h2 {
    font-size: 1.375rem;
  }
  
  .page-content h3, .page-content.prose h3 {
    font-size: 1.25rem;
  }
  
  .page-content ul, .page-content.prose ul,
  .page-content ol, .page-content.prose ol {
    margin-left: auto;
  }
}

/* Stili per Gutenberg e WordPress nativi */
.wp-block-image {
  margin: 1.5rem 0;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.wp-block-quote {
  border-left: 4px solid #e2e8f0;
  padding-left: 1rem;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1.5rem;
}

.wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  padding: 0;
  margin: 0 -8px 1.5rem;
}

.blocks-gallery-item {
  margin: 8px;
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.alignnone, 
.aligncenter,
.alignleft, 
.alignright {
  max-width: 100%;
  height: auto;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin-right: 1rem;
}

.alignright {
  float: right;
  margin-left: 1rem;
}

@media (max-width: 768px) {
  .alignleft, 
  .alignright {
    float: none;
    margin-left: 0;
    margin-right: 0;
    display: block;
    margin-bottom: 1rem;
  }
}

.wc-block-components-express-payment--checkout .wc-block-components-express-payment__content {
    padding: 40px 24px 24px !important;
}


/* Stile per la pagina 404 */
.page-not-found {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
}

.page-not-found .content-404 {
    max-width: 800px;
    margin: 0 auto;
}

.page-not-found .error-icon {
    font-size: 100px; /* Dimensione dell'icona */
    color: #CCCCCC; /* Colore grigio chiaro */
    margin-bottom: 20px;
	margin-top: 10px;
}

.page-not-found .error-code {
    font-size: 60px;
    color: #CCCCCC; /* Colore grigio chiaro */
    font-weight: bold;
    margin-bottom: 20px;
}

.page-not-found .error-message {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.page-not-found .error-subtext {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.page-not-found .back-home {
    display: inline-block;
    padding: 12px 25px;
    background-color: #CCCCCC; /* Colore del pulsante */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.page-not-found .back-home:hover {
    background-color: #A0A0A0; /* Colore grigio scuro al passaggio del mouse */
}
