/*
Theme Name: Fionda
Theme URI: https://www.enotecalosfizio.it e https://www.enoteca-losfizio.it
Author: Enrico
Description: Tema custom sviluppato per Alimentari Gentili - Enoteca Lo Sfizio.
Version: 1.0
License: Proprietary – All rights reserved
Text Domain: fionda
*/

@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@300;400;500;600&family=Montserrat:wght@300;400;500;600&display=swap');

/* PALETTE */
:root {
    --colore-debug: #ff00ff;
	--verde-logo: #0f411b;
	--verde-chiaro: #E8F5E9;
    --beige: #F4EDE2;
	--beige2: #F4F1EB;
    --oro: #C2A878;
	--grigio: #ddd;
	
	--font-debug: "Comic Sans MS", cursive;
	--font-titoli: "Dosis", serif;
	--font-testi: "Montserrat", sans-serif;
	
}
/* FINE PALETTE */

h1, h2, h3, h4 {
    font-family: var(--font-titoli);
    color: var(--verde-logo);
    margin-top: 0;
}

a {
    color: var(--verde-logo);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--oro);
}

body {
    background-image: url("/wp-content/themes/fionda/assets/img/sfondo.webp");
	background-repeat: repeat; 
	margin: 0;
    padding: 0;
    color: var(--verde-logo);
    font-family: var(--font-testi);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
	min-height: 100vh;
}

html {
    overflow-y: scroll;
	scrollbar-gutter: stable;
}

html, body {
	height: 100%;
}

.wp-site-blocks {
	min-height: 100vh;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* SPOSTA IL FOOTER IN FONDO ALLA PAGINA */
.wp-site-blocks > .contenitore-pagina { 
	flex: 1 0 auto;
}

/* DISSOLVENZA SFONDO */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.6); 
    pointer-events: none;
}



/* RIMOZIONE MARGINI DEL PRIMO BLOCCO NELLA HOME CHE WP METTE DI DEFAULT */

.wp-site-blocks * {
    margin-block-start: 0 !important;
}


/* HEADER */

.menu-mobile { 
	display: none;
}

.mobile-menu-panel {
        display: none;
}

/* blocco contenitore dell'header */
.wp-container-2 {
	z-index: 9999;
}
/* */

.header {
	max-width: var(--wp--style--global--content-size); 
	margin-left: auto;
	margin-right: auto;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	transition: padding .3s ease;
	box-sizing: border-box;
	padding: 0;
	background: white;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
} 

.header * { 
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

.header-left {
	position: relative;
	padding-left: 20px;
	height: 140px;
}

.wp-block-site-logo img {
	position: absolute;
	left: 20px;
	padding: 5px 0;
	opacity: 1;
	transform: translateY(0);
	transition: opacity .25s ease, transform .25s ease;
}

.header-center {
	justify-self: center;
	font-weight: 400;
	font-size: 22px;
	padding-top:50px;
}

nav.menu-principale * {
	color: var(--verde-logo);
	text-decoration: none;
	transition: color .2s ease;
}

nav.menu-principale *:hover { 
	color: var(--oro);
}

.pulsante-acquista a {
	background: var(--beige);
	padding: 10px 18px;
	border-radius: 12px;
	font-weight: 600;
} 

.header-right {
	justify-self: end;
	padding: 50px 20px 0 0;
} 

.wc-block-mini-cart__button svg {
    transform: scale(1.5);
    transform-origin: center;
}

/* MENU PRODOTTI */

.menu-prodotti { 
    background-color: var(--beige);
    border-top: 2px solid var(--oro);
	border-bottom: none !important;
    border-radius: 0px 0px 12px 12px;
    grid-column: 1 / -1;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	font-family: var(--font-testi);
    font-size: 1rem;
    font-weight: 400;
	color: black;
}

.menu-prodotti .wp-block-navigation__container {
    margin: 0;
    padding: 0 28px;
    list-style: none;
    display: flex;
    justify-content: flex-start;
    gap: 40px;
}

.menu-prodotti .wp-block-navigation-item__content {
    transition: color .2s ease;
    display: inline-block;
	padding: 0 !important;
}

.menu-prodotti .wp-block-navigation-item__content:hover {
    color: var(--oro);
}

.menu-prodotti .wp-block-navigation__submenu-container {
    position: absolute;
    left: -10px !important;
	background: var(--beige) !important;
	border-top: 2px solid var(--oro) !important;
    border-width: 2px 0 0 0 !important;	
	border-radius: 0 0 12px 12px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	padding: 10px 18px;
	min-width: 100px !important;
    width: auto;
}

/* FINE MENU PRODOTTI */


/*  Scroll fluido per le voci menù ad ancora */

html { 
	scroll-behavior: smooth;
}

/* FINE HEADER */

.contenitore-pagina {
	max-width: calc(var(--wp--style--global--content-size) - 24px);
	text-align: center; 
	align-items: center;
	width: 100%;
	margin: auto;
}

.contenitore-verde {
	background: var(--verde-chiaro);
	background-image: url("/wp-content/themes/fionda/assets/img/sfondo.webp");
	background-repeat: repeat; 
	text-align: center; 
	align-items: center;
}

.contenitore-bianco {
	background: white;
	background-image: url("/wp-content/themes/fionda/assets/img/sfondo.webp");
	background-repeat: repeat; 
	text-align: center; 
	align-items: center;
}

.contenitore-beige {
	background: var(--beige);
	background-image: url("/wp-content/themes/fionda/assets/img/sfondo.webp");
	background-repeat: repeat; 
	text-align: center; 
	align-items: center;
}

.contenitore-beige2 {
	background: var(--beige2);
	background-image: url("/wp-content/themes/fionda/assets/img/sfondo.webp");
	background-repeat: repeat; 
	text-align: center; 
	align-items: center;
}

/* SEZIONE */

.sezione {
	text-align: center;
	margin: 0 auto !important;
}

.sezione h2 {
	display: inline-block;
    background: white;
    padding: 14px 28px;
	border: 1px solid var(--oro);
    font-family: var(--font-titoli);
    color: var(--verde-logo);
    text-align: center;
	margin: 30px 0 30px 0  !important;
	text-transform: uppercase; 
}

.contenitore-testo-pagina {
	background: var(--verde-chiaro);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
	padding: 40px;
	margin-top: 20px !important;
	margin-bottom: 50px !important;
	text-align: justify;
}

/* FINE SEZIONE */

/* CAROSELLO 1400x933 */

.contenitore-carosello1 {
	max-width: calc(var(--wp--style--global--content-size) - 24px);
	margin: auto !important;
	text-align: center; 
	align-items: center;
}

.contenitore-carosello2 {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
	padding: 0 0 10px 0;
	text-align: center; 
	align-items: center;
}

.carosello-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity .8s ease;
}

.carosello-slide.active {
    opacity: 1;
    position: relative;
}

.carousel-slide picture,
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carosello-prev,
.carosello-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.65);
    border: none;
    padding: 12px 18px;
    font-size: 28px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1; 
}
.carosello-prev:hover,
.carosello-next:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-50%) scale(1.08);
}

.carosello-prev {
    left: 20px;
}

.carosello-next {
    right: 20px;
}

.carosello-testo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    padding: 20px 40px;
    max-width: 90%;
}

.carosello-testo h2 {
	color: white;
}

.carosello-testo .frase-sopra {
    font-family: "Playfair Display", serif;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 10px 0;
    text-shadow: 0 3px 12px rgba(0,0,0,0.45);
}

.carosello-testo .frase-sotto {
    font-family: "Playfair Display", serif;
    font-size: 52px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 3px 12px rgba(0,0,0,0.45);
}

/* FINE CAROSELLO */

/* SEZIONE SERVIZI (IMMAGINE LARGHEZZA 320px) */

.contenitore-servizi {
	padding: 20px 0 20px 0; 	
}

.servizi-griglia {
	justify-items: center;
	row-gap: 20px;
}

.servizi-griglia .wp-block-image img {
    background: #ffffff;
    padding: 12px;
    display: block;
    margin: 0 auto;
}

.servizio {
    background: var(--verde-chiaro);
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    max-width: 320px; 
    margin: 0 auto;
	box-shadow: 0 4px 14px rgba(0,0,0,0.10);
	width: 100%;
    text-align: center;
}

.servizio > .wp-block-group {
    width: 100%;
}

.servizio .wp-block-image img {
	width: 100%; 
	object-fit: contain;
    background: #ffffff;  
	padding: 0;
}

.servizio h3 {
    background: #ffffff;
	margin: 0;
    font-family: var(--font-titoli);
    color: var(--verde-logo);
}

.servizio p {
    padding: 20px;
    margin: 0;
    color: var(--verde-logo);
    font-family: var(--font-testi);
	text-align: justify;
    text-align-last: left;
}

/* FINE SEZIONE SERVIZI */

/* SEZIONE CONTATTI */

.contenitore-contatti {
	padding: 20px 0 50px 0; 	
}

.contatti-griglia {
	margin-bottom: 20px;
	justify-items: center;
}

.contatti-griglia .wp-block-image img {
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.contatto {
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    max-width: 320px; 
    margin: 0 auto;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
	width: 100%;
    text-align: center;
	background: white;
}

.contatto h3 {
    background: var(--verde-logo);
    font-family: var(--font-titoli);
	margin:0;
}
.contatto h3 > a {
	color: white;
}
/* FINE SEZIONE CONTATTI */

/* SEZIONE DOVE SIAMO */

.mappa iframe {
    border-radius: 12px;
}

.contenitore-mappa {
	display: flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    margin: 20px auto !important;
}

.contenitore-mappa-sinistra {
    width: 50%;
}

.contenitore-mappa-sinistra iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: 0;
    display: block;
}

.contenitore-mappa-destra {
    width: 50%;
    background: #ffffff;
    padding: 20px 20px 0px 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
	
}

.contenitore-mappa-destra p {
    font-family: var(--font-testi);
    color: var(--verde-logo);
    line-height: 1.6;
	text-align: justify;
    text-align-last: left;
}

/* FINE SEZIONE DOVE SIAMO */

/* SEZIONE RECENSIONI */
.contenitore-recensioni {	
	background: var(--verde-chiaro);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    margin: 20px auto !important;
	padding: 20px;
}
/* SEGNAPOSTO PER LE RECENSIONI, VISUALIZZATO SE NON SI ACCETTANO I COOKIE MARKETING */
.trustindex-segnaposto {
    display: none;
    padding: 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 0.9rem;
    color: #333;
    border-radius: 6px;
}


/* FINE SEZIONE RECENSIONI */

/* FOOTER */

.contenitore-footer {
	background: var(--verde-logo);
	color: white;

}
.contenitore-footer h3 {
	color: white;
	padding-top: 20px;
	padding-bottom: 10px;
	font-size: 14px;
}
.contenitore-footer p {
    font-size: 14px;
    font-weight: 400;
    line-height: 2;
	margin-top: 0;
	padding-bottom: 20px;
}

.contenitore-footer a {
    color: white;
}
.contenitore-footer a:hover {
    color: white;
}

.icone-social-footer {
	padding-top: 18px;
} 

.whatsapp-btn {
    position: fixed;
    bottom: 75px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 9;
    transition: opacity .3s ease;
	display: none;
}

.whatsapp-btn img {
    width: 38px;
    height: 38px;
    display: block;
}

.whatsapp-btn.visible {
    opacity: 1;
    pointer-events: auto;
}
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: #ffffff;
    color: var(--verde-logo);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    z-index: 9;
}


.scroll-top-btn:hover {
    transform: scale(1.08);
	transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.cmplz-btn.cmplz-manage-consent {
    background: none;
    border: none;
    padding: 0;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.cmplz-btn.cmplz-manage-consent:hover {
    text-decoration: none;
}

/* FINE FOOTER */
